@splinetool/runtime 2.0.122 → 2.0.123

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 (315) hide show
  1. package/build/{runtime-bloom-QGSTGMB6.js → runtime-bloom-MTFDC7ER.js} +1 -1
  2. package/build/runtime-bloom-MTFDC7ER.js.br +0 -0
  3. package/build/runtime-bloom-MTFDC7ER.js.gz +0 -0
  4. package/build/{runtime-brightnessContrast-M44DGJBG.js → runtime-brightnessContrast-YXIZNFR6.js} +1 -1
  5. package/build/runtime-brightnessContrast-YXIZNFR6.js.br +0 -0
  6. package/build/runtime-brightnessContrast-YXIZNFR6.js.gz +0 -0
  7. package/build/{runtime-chromaticAberration-N26MI7IU.js → runtime-chromaticAberration-DPZTGTJC.js} +1 -1
  8. package/build/runtime-chromaticAberration-DPZTGTJC.js.br +0 -0
  9. package/build/runtime-chromaticAberration-DPZTGTJC.js.gz +0 -0
  10. package/build/{runtime-chunk-62MRMUWY.js → runtime-chunk-2ZZAZQTN.js} +1 -1
  11. package/build/runtime-chunk-2ZZAZQTN.js.br +0 -0
  12. package/build/runtime-chunk-2ZZAZQTN.js.gz +0 -0
  13. package/build/{runtime-chunk-L5LJDQNF.js → runtime-chunk-4CCT57BJ.js} +1 -1
  14. package/build/runtime-chunk-4CCT57BJ.js.br +0 -0
  15. package/build/runtime-chunk-4CCT57BJ.js.gz +0 -0
  16. package/build/{runtime-chunk-IWQFGQC6.js → runtime-chunk-5RKX6VXQ.js} +1 -1
  17. package/build/runtime-chunk-5RKX6VXQ.js.br +0 -0
  18. package/build/runtime-chunk-5RKX6VXQ.js.gz +0 -0
  19. package/build/{runtime-chunk-IMRDCYQI.js → runtime-chunk-6NZUY3NX.js} +1 -1
  20. package/build/runtime-chunk-6NZUY3NX.js.br +0 -0
  21. package/build/runtime-chunk-6NZUY3NX.js.gz +0 -0
  22. package/build/{runtime-chunk-NGG3OYG6.js → runtime-chunk-7OHCCGTO.js} +1 -1
  23. package/build/runtime-chunk-7OHCCGTO.js.br +0 -0
  24. package/build/runtime-chunk-7OHCCGTO.js.gz +0 -0
  25. package/build/{runtime-chunk-AV6J54G4.js → runtime-chunk-AFG7F56V.js} +1 -1
  26. package/build/runtime-chunk-AFG7F56V.js.br +0 -0
  27. package/build/runtime-chunk-AFG7F56V.js.gz +0 -0
  28. package/build/{runtime-chunk-2UVT2KHC.js → runtime-chunk-C54LYWKE.js} +1 -1
  29. package/build/runtime-chunk-C54LYWKE.js.br +0 -0
  30. package/build/runtime-chunk-C54LYWKE.js.gz +0 -0
  31. package/build/{runtime-chunk-PJ65M4QC.js → runtime-chunk-CLDWHXJJ.js} +1 -1
  32. package/build/runtime-chunk-CLDWHXJJ.js.br +0 -0
  33. package/build/runtime-chunk-CLDWHXJJ.js.gz +0 -0
  34. package/build/runtime-chunk-DJCYPXS4.js +1 -0
  35. package/build/runtime-chunk-DJCYPXS4.js.br +0 -0
  36. package/build/runtime-chunk-DJCYPXS4.js.gz +0 -0
  37. package/build/{runtime-chunk-F7SMPWRM.js → runtime-chunk-DO3TPFJ2.js} +1 -1
  38. package/build/runtime-chunk-DO3TPFJ2.js.br +0 -0
  39. package/build/runtime-chunk-DO3TPFJ2.js.gz +0 -0
  40. package/build/{runtime-chunk-45VZLDRG.js → runtime-chunk-DOGUWR2L.js} +1 -1
  41. package/build/runtime-chunk-DOGUWR2L.js.br +0 -0
  42. package/build/runtime-chunk-DOGUWR2L.js.gz +0 -0
  43. package/build/{runtime-chunk-YOOFWCK3.js → runtime-chunk-ERT6AFRF.js} +1 -1
  44. package/build/runtime-chunk-ERT6AFRF.js.br +4 -0
  45. package/build/runtime-chunk-ERT6AFRF.js.gz +0 -0
  46. package/build/{runtime-chunk-VS7DNIVW.js → runtime-chunk-FL4HJTIV.js} +1 -1
  47. package/build/runtime-chunk-FL4HJTIV.js.br +1 -0
  48. package/build/runtime-chunk-FL4HJTIV.js.gz +0 -0
  49. package/build/{runtime-chunk-CGATHHPB.js → runtime-chunk-JQCHQ4ER.js} +1 -1
  50. package/build/runtime-chunk-JQCHQ4ER.js.br +0 -0
  51. package/build/runtime-chunk-JQCHQ4ER.js.gz +0 -0
  52. package/build/{runtime-chunk-TKQ3KHKV.js → runtime-chunk-MKJIY6KV.js} +1 -1
  53. package/build/runtime-chunk-MKJIY6KV.js.br +0 -0
  54. package/build/runtime-chunk-MKJIY6KV.js.gz +0 -0
  55. package/build/{runtime-chunk-KMGTNELG.js → runtime-chunk-MOV6HDQG.js} +1 -1
  56. package/build/runtime-chunk-MOV6HDQG.js.br +0 -0
  57. package/build/runtime-chunk-MOV6HDQG.js.gz +0 -0
  58. package/build/{runtime-chunk-HEXC6XD5.js → runtime-chunk-MXQFKZNI.js} +1 -1
  59. package/build/runtime-chunk-MXQFKZNI.js.br +0 -0
  60. package/build/runtime-chunk-MXQFKZNI.js.gz +0 -0
  61. package/build/{runtime-chunk-NLKAKPFR.js → runtime-chunk-N6B2CRAR.js} +1 -1
  62. package/build/runtime-chunk-N6B2CRAR.js.br +0 -0
  63. package/build/runtime-chunk-N6B2CRAR.js.gz +0 -0
  64. package/build/{runtime-chunk-GSRMDJ2B.js → runtime-chunk-NYHKYL7K.js} +1 -1
  65. package/build/runtime-chunk-NYHKYL7K.js.br +0 -0
  66. package/build/runtime-chunk-NYHKYL7K.js.gz +0 -0
  67. package/build/{runtime-chunk-7LYBUWKR.js → runtime-chunk-OQCWMRSW.js} +1 -1
  68. package/build/runtime-chunk-OQCWMRSW.js.br +0 -0
  69. package/build/runtime-chunk-OQCWMRSW.js.gz +0 -0
  70. package/build/{runtime-chunk-NQ7MEW2V.js → runtime-chunk-P7LY5VJF.js} +1 -1
  71. package/build/runtime-chunk-P7LY5VJF.js.br +0 -0
  72. package/build/runtime-chunk-P7LY5VJF.js.gz +0 -0
  73. package/build/{runtime-chunk-XKWWD2YP.js → runtime-chunk-PZQ2H4BA.js} +1 -1
  74. package/build/runtime-chunk-PZQ2H4BA.js.br +0 -0
  75. package/build/runtime-chunk-PZQ2H4BA.js.gz +0 -0
  76. package/build/{runtime-chunk-VN7ZE256.js → runtime-chunk-QJ4BBCAT.js} +1 -1
  77. package/build/runtime-chunk-QJ4BBCAT.js.br +0 -0
  78. package/build/runtime-chunk-QJ4BBCAT.js.gz +0 -0
  79. package/build/{runtime-chunk-VXKYYAFK.js → runtime-chunk-R3EYG5KF.js} +1 -1
  80. package/build/runtime-chunk-R3EYG5KF.js.br +0 -0
  81. package/build/runtime-chunk-R3EYG5KF.js.gz +0 -0
  82. package/build/{runtime-chunk-KVJLES5Z.js → runtime-chunk-TY3IYRYE.js} +1 -1
  83. package/build/runtime-chunk-TY3IYRYE.js.br +0 -0
  84. package/build/runtime-chunk-TY3IYRYE.js.gz +0 -0
  85. package/build/{runtime-chunk-AFJBJ777.js → runtime-chunk-W2OWSMDC.js} +1 -1
  86. package/build/runtime-chunk-W2OWSMDC.js.br +0 -0
  87. package/build/{runtime-chunk-AFJBJ777.js.gz → runtime-chunk-W2OWSMDC.js.gz} +0 -0
  88. package/build/{runtime-chunk-VXNOYAPU.js → runtime-chunk-X6SMMPOO.js} +1 -1
  89. package/build/{runtime-chunk-VXNOYAPU.js.br → runtime-chunk-X6SMMPOO.js.br} +0 -0
  90. package/build/runtime-chunk-X6SMMPOO.js.gz +0 -0
  91. package/build/{runtime-classicRuntime-F55VTIDT.js → runtime-classicRuntime-LDYJDIR6.js} +1 -1
  92. package/build/runtime-classicRuntime-LDYJDIR6.js.br +0 -0
  93. package/build/runtime-classicRuntime-LDYJDIR6.js.gz +0 -0
  94. package/build/{runtime-cloners-GPNW5YNO.js → runtime-cloners-5UKOYERM.js} +1 -1
  95. package/build/runtime-cloners-5UKOYERM.js.br +0 -0
  96. package/build/runtime-cloners-5UKOYERM.js.gz +0 -0
  97. package/build/{runtime-components-ACSNBJEQ.js → runtime-components-Q72F4GJN.js} +1 -1
  98. package/build/runtime-components-Q72F4GJN.js.br +0 -0
  99. package/build/runtime-components-Q72F4GJN.js.gz +0 -0
  100. package/build/{runtime-createDestroy-RAGAWYKU.js → runtime-createDestroy-NYPVZJK3.js} +1 -1
  101. package/build/runtime-createDestroy-NYPVZJK3.js.br +0 -0
  102. package/build/runtime-createDestroy-NYPVZJK3.js.gz +0 -0
  103. package/build/{runtime-depthOfField-2GIBN7DZ.js → runtime-depthOfField-SC6THZD3.js} +1 -1
  104. package/build/runtime-depthOfField-SC6THZD3.js.br +0 -0
  105. package/build/runtime-depthOfField-SC6THZD3.js.gz +0 -0
  106. package/build/{runtime-dragDrop-4ZDYKYEQ.js → runtime-dragDrop-FTW7Y7BP.js} +1 -1
  107. package/build/runtime-dragDrop-FTW7Y7BP.js.br +0 -0
  108. package/build/runtime-dragDrop-FTW7Y7BP.js.gz +0 -0
  109. package/build/{runtime-gameControls-OWTMTELK.js → runtime-gameControls-3DLBZLBK.js} +1 -1
  110. package/build/runtime-gameControls-3DLBZLBK.js.br +0 -0
  111. package/build/runtime-gameControls-3DLBZLBK.js.gz +0 -0
  112. package/build/{runtime-hair-YYR6E566.js → runtime-hair-BUO7NHNF.js} +1 -1
  113. package/build/runtime-hair-BUO7NHNF.js.br +1 -0
  114. package/build/runtime-hair-BUO7NHNF.js.gz +0 -0
  115. package/build/{runtime-hueSaturation-ZXORHM7X.js → runtime-hueSaturation-FS6CRWZ5.js} +1 -1
  116. package/build/runtime-hueSaturation-FS6CRWZ5.js.br +0 -0
  117. package/build/runtime-hueSaturation-FS6CRWZ5.js.gz +0 -0
  118. package/build/{runtime-mergeStaticGeometries-W4LLHVK6.js → runtime-mergeStaticGeometries-QE3FFNBP.js} +1 -1
  119. package/build/runtime-mergeStaticGeometries-QE3FFNBP.js.br +0 -0
  120. package/build/runtime-mergeStaticGeometries-QE3FFNBP.js.gz +0 -0
  121. package/build/{runtime-miscActions-IVM63IKT.js → runtime-miscActions-2NTZVLGS.js} +1 -1
  122. package/build/runtime-miscActions-2NTZVLGS.js.br +0 -0
  123. package/build/runtime-miscActions-2NTZVLGS.js.gz +0 -0
  124. package/build/{runtime-mouseHover-SVLXCXJN.js → runtime-mouseHover-RBUSQ55V.js} +1 -1
  125. package/build/runtime-mouseHover-RBUSQ55V.js.br +0 -0
  126. package/build/runtime-mouseHover-RBUSQ55V.js.gz +0 -0
  127. package/build/{runtime-noise-R2NABSRP.js → runtime-noise-FSTUGJBX.js} +1 -1
  128. package/build/runtime-noise-FSTUGJBX.js.br +0 -0
  129. package/build/runtime-noise-FSTUGJBX.js.gz +0 -0
  130. package/build/{runtime-particles-QYTNOITS.js → runtime-particles-M4RVYDCT.js} +1 -1
  131. package/build/runtime-particles-M4RVYDCT.js.br +0 -0
  132. package/build/runtime-particles-M4RVYDCT.js.gz +0 -0
  133. package/build/{runtime-paths-AASKRDRW.js → runtime-paths-TCYUKIIU.js} +1 -1
  134. package/build/runtime-paths-TCYUKIIU.js.br +0 -0
  135. package/build/runtime-paths-TCYUKIIU.js.gz +0 -0
  136. package/build/{runtime-pixelation-CXYLBL5C.js → runtime-pixelation-BXF4L42G.js} +1 -1
  137. package/build/runtime-pixelation-BXF4L42G.js.br +0 -0
  138. package/build/runtime-pixelation-BXF4L42G.js.gz +0 -0
  139. package/build/{runtime-resize-PABPXPNO.js → runtime-resize-JOI3L7XJ.js} +1 -1
  140. package/build/runtime-resize-JOI3L7XJ.js.br +0 -0
  141. package/build/runtime-resize-JOI3L7XJ.js.gz +0 -0
  142. package/build/{runtime-sceneTransition-QNO6QSBG.js → runtime-sceneTransition-WCZ3L5ZZ.js} +1 -1
  143. package/build/runtime-sceneTransition-WCZ3L5ZZ.js.br +0 -0
  144. package/build/runtime-sceneTransition-WCZ3L5ZZ.js.gz +0 -0
  145. package/build/{runtime-scroll-SXFCSAFZ.js → runtime-scroll-OOIYYKTK.js} +1 -1
  146. package/build/runtime-scroll-OOIYYKTK.js.br +0 -0
  147. package/build/runtime-scroll-OOIYYKTK.js.gz +0 -0
  148. package/build/runtime-shapeBlends-CNWTYEO4.js +1 -0
  149. package/build/runtime-shapeBlends-CNWTYEO4.js.br +2 -0
  150. package/build/runtime-shapeBlends-CNWTYEO4.js.gz +0 -0
  151. package/build/{runtime-text-FATE3YBP.js → runtime-text-ZOVHZSQE.js} +1 -1
  152. package/build/runtime-text-ZOVHZSQE.js.br +0 -0
  153. package/build/runtime-text-ZOVHZSQE.js.gz +0 -0
  154. package/build/{runtime-textInputs-LKZHD2QF.js → runtime-textInputs-JHNYKYEY.js} +1 -1
  155. package/build/runtime-textInputs-JHNYKYEY.js.br +0 -0
  156. package/build/runtime-textInputs-JHNYKYEY.js.gz +0 -0
  157. package/build/{runtime-timeline-CYU2INYZ.js → runtime-timeline-H7XVA3G4.js} +1 -1
  158. package/build/runtime-timeline-H7XVA3G4.js.br +0 -0
  159. package/build/runtime-timeline-H7XVA3G4.js.gz +0 -0
  160. package/build/{runtime-tracking-ES7PN7MH.js → runtime-tracking-HHKQG7E6.js} +1 -1
  161. package/build/runtime-tracking-HHKQG7E6.js.br +0 -0
  162. package/build/runtime-tracking-HHKQG7E6.js.gz +0 -0
  163. package/build/{runtime-transitions-H4Y463DS.js → runtime-transitions-S5HKMABM.js} +1 -1
  164. package/build/runtime-transitions-S5HKMABM.js.br +0 -0
  165. package/build/runtime-transitions-S5HKMABM.js.gz +0 -0
  166. package/build/{runtime-ui2d-ZN6PZERP.js → runtime-ui2d-IUJJVWOF.js} +1 -1
  167. package/build/runtime-ui2d-IUJJVWOF.js.br +0 -0
  168. package/build/runtime-ui2d-IUJJVWOF.js.gz +0 -0
  169. package/build/{runtime-vectorShapes-A5LFOWTT.js → runtime-vectorShapes-6YOGOL6H.js} +1 -1
  170. package/build/runtime-vectorShapes-6YOGOL6H.js.br +0 -0
  171. package/build/runtime-vectorShapes-6YOGOL6H.js.gz +0 -0
  172. package/build/{runtime-vignette-GICD2OTL.js → runtime-vignette-4FYDSJ6O.js} +1 -1
  173. package/build/runtime-vignette-4FYDSJ6O.js.br +0 -0
  174. package/build/runtime-vignette-4FYDSJ6O.js.gz +0 -0
  175. package/build/{runtime-webgpu-2IQSKQTX.js → runtime-webgpu-CXYFPHFD.js} +1 -1
  176. package/build/runtime-webgpu-CXYFPHFD.js.br +0 -0
  177. package/build/runtime-webgpu-CXYFPHFD.js.gz +0 -0
  178. package/build/runtime.cjs +9 -9
  179. package/build/runtime.js +1 -1
  180. package/build/runtime.js.br +0 -0
  181. package/build/runtime.js.gz +0 -0
  182. package/build/runtime.standalone.js +1 -1
  183. package/build/runtime.standalone.js.br +0 -0
  184. package/build/runtime.standalone.js.gz +0 -0
  185. package/build/runtime.standalone.webgl.js +1 -1
  186. package/build/runtime.standalone.webgl.js.br +0 -0
  187. package/build/runtime.standalone.webgl.js.gz +0 -0
  188. package/build/runtime.standalone.webgpu.js +1 -1
  189. package/build/runtime.standalone.webgpu.js.br +0 -0
  190. package/build/runtime.standalone.webgpu.js.gz +0 -0
  191. package/build/runtime.standalone.webgpu.micro.js +1 -1
  192. package/build/runtime.standalone.webgpu.micro.js.br +0 -0
  193. package/build/runtime.standalone.webgpu.micro.js.gz +0 -0
  194. package/build/runtime.standalone.webgpu.min.js +1 -1
  195. package/build/runtime.standalone.webgpu.min.js.br +0 -0
  196. package/build/runtime.standalone.webgpu.min.js.gz +0 -0
  197. package/package.json +1 -1
  198. package/build/runtime-bloom-QGSTGMB6.js.br +0 -0
  199. package/build/runtime-bloom-QGSTGMB6.js.gz +0 -0
  200. package/build/runtime-brightnessContrast-M44DGJBG.js.br +0 -0
  201. package/build/runtime-brightnessContrast-M44DGJBG.js.gz +0 -0
  202. package/build/runtime-chromaticAberration-N26MI7IU.js.br +0 -0
  203. package/build/runtime-chromaticAberration-N26MI7IU.js.gz +0 -0
  204. package/build/runtime-chunk-2UVT2KHC.js.br +0 -0
  205. package/build/runtime-chunk-2UVT2KHC.js.gz +0 -0
  206. package/build/runtime-chunk-45VZLDRG.js.br +0 -0
  207. package/build/runtime-chunk-45VZLDRG.js.gz +0 -0
  208. package/build/runtime-chunk-62MRMUWY.js.br +0 -0
  209. package/build/runtime-chunk-62MRMUWY.js.gz +0 -0
  210. package/build/runtime-chunk-7LYBUWKR.js.br +0 -0
  211. package/build/runtime-chunk-7LYBUWKR.js.gz +0 -0
  212. package/build/runtime-chunk-AFJBJ777.js.br +0 -0
  213. package/build/runtime-chunk-AV6J54G4.js.br +0 -0
  214. package/build/runtime-chunk-AV6J54G4.js.gz +0 -0
  215. package/build/runtime-chunk-CGATHHPB.js.br +0 -0
  216. package/build/runtime-chunk-CGATHHPB.js.gz +0 -0
  217. package/build/runtime-chunk-F7SMPWRM.js.br +0 -0
  218. package/build/runtime-chunk-F7SMPWRM.js.gz +0 -0
  219. package/build/runtime-chunk-GSRMDJ2B.js.br +0 -0
  220. package/build/runtime-chunk-GSRMDJ2B.js.gz +0 -0
  221. package/build/runtime-chunk-HEXC6XD5.js.br +0 -0
  222. package/build/runtime-chunk-HEXC6XD5.js.gz +0 -0
  223. package/build/runtime-chunk-IMRDCYQI.js.br +0 -0
  224. package/build/runtime-chunk-IMRDCYQI.js.gz +0 -0
  225. package/build/runtime-chunk-IWQFGQC6.js.br +0 -0
  226. package/build/runtime-chunk-IWQFGQC6.js.gz +0 -0
  227. package/build/runtime-chunk-KMGTNELG.js.br +0 -0
  228. package/build/runtime-chunk-KMGTNELG.js.gz +0 -0
  229. package/build/runtime-chunk-KVJLES5Z.js.br +0 -0
  230. package/build/runtime-chunk-KVJLES5Z.js.gz +0 -0
  231. package/build/runtime-chunk-L5LJDQNF.js.br +0 -0
  232. package/build/runtime-chunk-L5LJDQNF.js.gz +0 -0
  233. package/build/runtime-chunk-NGG3OYG6.js.br +0 -0
  234. package/build/runtime-chunk-NGG3OYG6.js.gz +0 -0
  235. package/build/runtime-chunk-NLKAKPFR.js.br +0 -0
  236. package/build/runtime-chunk-NLKAKPFR.js.gz +0 -0
  237. package/build/runtime-chunk-NQ7MEW2V.js.br +0 -0
  238. package/build/runtime-chunk-NQ7MEW2V.js.gz +0 -0
  239. package/build/runtime-chunk-P73KWTPK.js +0 -1
  240. package/build/runtime-chunk-P73KWTPK.js.br +0 -0
  241. package/build/runtime-chunk-P73KWTPK.js.gz +0 -0
  242. package/build/runtime-chunk-PJ65M4QC.js.br +0 -0
  243. package/build/runtime-chunk-PJ65M4QC.js.gz +0 -0
  244. package/build/runtime-chunk-TKQ3KHKV.js.br +0 -0
  245. package/build/runtime-chunk-TKQ3KHKV.js.gz +0 -0
  246. package/build/runtime-chunk-VN7ZE256.js.br +0 -0
  247. package/build/runtime-chunk-VN7ZE256.js.gz +0 -0
  248. package/build/runtime-chunk-VS7DNIVW.js.br +0 -3
  249. package/build/runtime-chunk-VS7DNIVW.js.gz +0 -0
  250. package/build/runtime-chunk-VXKYYAFK.js.br +0 -0
  251. package/build/runtime-chunk-VXKYYAFK.js.gz +0 -0
  252. package/build/runtime-chunk-VXNOYAPU.js.gz +0 -0
  253. package/build/runtime-chunk-XKWWD2YP.js.br +0 -0
  254. package/build/runtime-chunk-XKWWD2YP.js.gz +0 -0
  255. package/build/runtime-chunk-YOOFWCK3.js.br +0 -0
  256. package/build/runtime-chunk-YOOFWCK3.js.gz +0 -0
  257. package/build/runtime-classicRuntime-F55VTIDT.js.br +0 -0
  258. package/build/runtime-classicRuntime-F55VTIDT.js.gz +0 -0
  259. package/build/runtime-cloners-GPNW5YNO.js.br +0 -0
  260. package/build/runtime-cloners-GPNW5YNO.js.gz +0 -0
  261. package/build/runtime-components-ACSNBJEQ.js.br +0 -0
  262. package/build/runtime-components-ACSNBJEQ.js.gz +0 -0
  263. package/build/runtime-createDestroy-RAGAWYKU.js.br +0 -0
  264. package/build/runtime-createDestroy-RAGAWYKU.js.gz +0 -0
  265. package/build/runtime-depthOfField-2GIBN7DZ.js.br +0 -0
  266. package/build/runtime-depthOfField-2GIBN7DZ.js.gz +0 -0
  267. package/build/runtime-dragDrop-4ZDYKYEQ.js.br +0 -0
  268. package/build/runtime-dragDrop-4ZDYKYEQ.js.gz +0 -0
  269. package/build/runtime-gameControls-OWTMTELK.js.br +0 -0
  270. package/build/runtime-gameControls-OWTMTELK.js.gz +0 -0
  271. package/build/runtime-hair-YYR6E566.js.br +0 -2
  272. package/build/runtime-hair-YYR6E566.js.gz +0 -0
  273. package/build/runtime-hueSaturation-ZXORHM7X.js.br +0 -0
  274. package/build/runtime-hueSaturation-ZXORHM7X.js.gz +0 -0
  275. package/build/runtime-mergeStaticGeometries-W4LLHVK6.js.br +0 -0
  276. package/build/runtime-mergeStaticGeometries-W4LLHVK6.js.gz +0 -0
  277. package/build/runtime-miscActions-IVM63IKT.js.br +0 -0
  278. package/build/runtime-miscActions-IVM63IKT.js.gz +0 -0
  279. package/build/runtime-mouseHover-SVLXCXJN.js.br +0 -0
  280. package/build/runtime-mouseHover-SVLXCXJN.js.gz +0 -0
  281. package/build/runtime-noise-R2NABSRP.js.br +0 -0
  282. package/build/runtime-noise-R2NABSRP.js.gz +0 -0
  283. package/build/runtime-particles-QYTNOITS.js.br +0 -0
  284. package/build/runtime-particles-QYTNOITS.js.gz +0 -0
  285. package/build/runtime-paths-AASKRDRW.js.br +0 -0
  286. package/build/runtime-paths-AASKRDRW.js.gz +0 -0
  287. package/build/runtime-pixelation-CXYLBL5C.js.br +0 -0
  288. package/build/runtime-pixelation-CXYLBL5C.js.gz +0 -0
  289. package/build/runtime-resize-PABPXPNO.js.br +0 -0
  290. package/build/runtime-resize-PABPXPNO.js.gz +0 -0
  291. package/build/runtime-sceneTransition-QNO6QSBG.js.br +0 -0
  292. package/build/runtime-sceneTransition-QNO6QSBG.js.gz +0 -0
  293. package/build/runtime-scroll-SXFCSAFZ.js.br +0 -0
  294. package/build/runtime-scroll-SXFCSAFZ.js.gz +0 -0
  295. package/build/runtime-shapeBlends-3FJX65GM.js +0 -1
  296. package/build/runtime-shapeBlends-3FJX65GM.js.br +0 -0
  297. package/build/runtime-shapeBlends-3FJX65GM.js.gz +0 -0
  298. package/build/runtime-text-FATE3YBP.js.br +0 -0
  299. package/build/runtime-text-FATE3YBP.js.gz +0 -0
  300. package/build/runtime-textInputs-LKZHD2QF.js.br +0 -0
  301. package/build/runtime-textInputs-LKZHD2QF.js.gz +0 -0
  302. package/build/runtime-timeline-CYU2INYZ.js.br +0 -0
  303. package/build/runtime-timeline-CYU2INYZ.js.gz +0 -0
  304. package/build/runtime-tracking-ES7PN7MH.js.br +0 -0
  305. package/build/runtime-tracking-ES7PN7MH.js.gz +0 -0
  306. package/build/runtime-transitions-H4Y463DS.js.br +0 -0
  307. package/build/runtime-transitions-H4Y463DS.js.gz +0 -0
  308. package/build/runtime-ui2d-ZN6PZERP.js.br +0 -0
  309. package/build/runtime-ui2d-ZN6PZERP.js.gz +0 -0
  310. package/build/runtime-vectorShapes-A5LFOWTT.js.br +0 -0
  311. package/build/runtime-vectorShapes-A5LFOWTT.js.gz +0 -0
  312. package/build/runtime-vignette-GICD2OTL.js.br +0 -0
  313. package/build/runtime-vignette-GICD2OTL.js.gz +0 -0
  314. package/build/runtime-webgpu-2IQSKQTX.js.br +0 -0
  315. package/build/runtime-webgpu-2IQSKQTX.js.gz +0 -0
@@ -1 +1 @@
1
- import{f as t}from"./runtime-chunk-RTLL6WIB.js";import{h as e}from"./runtime-chunk-2PT2WH66.js";import{c as i}from"./runtime-chunk-TZCHGFVF.js";import{C as s,Ca as r,Da as a,Fa as n,J as o,Qa as l,i as h,j as p,k as d,n as c}from"./runtime-chunk-CSILWFMF.js";import{Ec as u,Gc as m,Hc as f,Md as y,Qc as v,Rc as g,Rd as x,Tc as S,Te as w,Zc as M,bd as b,dd as B,ed as P,fd as E,md as A,nd as C}from"./runtime-chunk-KPOUV3HD.js";var D={Cloner:null,changeEntityProptotype:()=>{},createEntity:()=>{}};function O(t,e){let i=[];if(e.length!==t.length)return null;{let s=0;for(;s<t.length;){if("*"===e[s])i.push(t[s]);else if(t[s]!==e[s])return null;s+=1}}return i}function _(t,e){let i=[];if(!(e.length<=t.length))return null;{let s=0;for(;s<e.length;){if("*"===e[s])i.push(t[s]);else if(t[s]!==e[s])return null;s+=1}}return i}var V=new f,W=new f,R=new v,T=[new f(-1,1,1),new f(-1,-1,1),new f(1,-1,1),new f(1,1,1),new f(-1,1,-1),new f(-1,-1,-1),new f(1,-1,-1),new f(1,1,-1)],U=[[0,3],[1,2],[5,6],[4,7],[0,1],[3,2],[7,6],[4,5],[0,4],[1,5],[2,6],[3,7]],I=[[0,2],[7,5],[4,1],[3,6],[4,3],[1,6]],L=(t,e,i)=>{t.updateEntityBoxSize(V,W),R.copy(e).multiply(t.matrixWorld),0===W.x&&0===W.y&&0===W.z?i.push(new f(V.x,V.y,V.z).applyMatrix4(R)):T.forEach(t=>{i.push(t.clone().multiply(W).add(V).applyMatrix4(R))})},F=class extends M{constructor(){super(...arguments),this.matrix=new v,this.vertices=[],this.faces=[],this.edges=[],this.centerEdges=[]}copy(t){return super.copy(t),this.matrix.copy(t.matrix),this.vertices=t.vertices.map(t=>t.clone()),this.faces=t.faces.map(t=>t.clone()),this.edges=t.edges.map(t=>t.clone()),this.centerEdges=t.centerEdges.map(t=>t.clone()),this}setFromObjectSize(t,e=!1){t.updateWorldMatrix(!1,e),this.makeEmpty(),this.matrix.copy(t.matrixWorld);let i=(new v).copy(t.matrixWorld).invert();return this.expandByObjectSize(t,i,e)}expandByObjectSize(t,e,i=!1){let s=[];if(!0===i){let i=[];t.traverseEntity(t=>{if(t.visible||t.cloner&&t.data.visible){if(!("geometry"in t))return R.copy(e).multiply(t.matrixWorld),void i.push((new f).applyMatrix4(R));L(t,e,s)}}),0===s.length&&s.push(...i)}else L(t,e,s);return this.setFromPoints(s)}getCenter(t){return(t=super.getCenter(t)).applyMatrix4(this.matrix),t}getPositionToCenter(t){return(t=super.getCenter(t)).applyMatrix4(R.copy(this.matrix).setPosition(0,0,0)),t}computeVertices(){this.getSize(W).multiplyScalar(.5),this.getCenter(V),R.copy(this.matrix).setPosition(V),this.vertices=T.map(t=>t.clone().multiply(W).applyMatrix4(R))}computeEdges(){this.vertices.length>0&&this.computeVertices(),this.edges=U.map(([t,e])=>new w(this.vertices[t],this.vertices[e])),this.centerEdges=this.edges.map(t=>t.getCenter(new f))}computeFaces(){this.vertices.length>0&&this.computeVertices(),this.faces=I.map(([t,e])=>this.vertices[t].clone().add(this.vertices[e]).multiplyScalar(.5))}},z=new f(1,1,1);function j(t,e,i,s,r=new v){return r.compose(t,e,z).multiply(i).scale(s)}var N,k=new v;(N||(N={})).is=function(t){return t&&t.__isSPEObject};var G=t=>class extends t{constructor(){super(...arguments),this.previousModelViewMatrix=new v,this.copyPreviousMatrix=!0,this.pivotMatrix=new v,this.matrixWorldRigid=new v,this.shearScale=new v,this.shearScaleInv=new v,this.shearMatrix=new v}get __isSPEObject(){return!0}getPhysicsLocalMatrix(t){return!!this.rigidBody?.isDynamic()&&(t.copy(this.matrixWorld),this.hasNonUniformScale&&t.multiply(this.shearScaleInv),this.parent&&t.premultiply(k.copy(this.parent.matrixWorld).invert()),t.multiply(k.copy(this.pivotMatrix).invert()),!0)}isDescendantOf(t){t instanceof S&&(t=t.uuid);let e=this;for(;e.parent;){if(e.parent.uuid===t)return!0;e=e.parent}return!1}updateMatrix(){!this.shearMatrix||(j(this.position,this.quaternion,this.shearMatrix,this.scale,this.matrix),this.matrixWorldNeedsUpdate=!0)}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorld.multiply(this.pivotMatrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(let e of this.children)e.updateMatrixWorld(t)}updateWorldMatrix(t,e){let i=this.parent;if(t&&null!==i&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorld.multiply(this.pivotMatrix),e)for(let t of this.children)t.updateWorldMatrix(!1,!0)}traverseChildren(t,e=0){for(let i of this.children)N.is(i)&&i.traverseObject(t,e+1)}traverseObject(t,e=0){if(!0!==t(this,e))for(let i of this.children)N.is(i)&&i.traverseObject(t,e+1)}updateMatrixWorldRigid(){this.hasNonUniformScale=l(this.matrixWorld,this.matrixWorldRigid,this.shearScale),this.matrixWorldRigid.copyPosition(this.matrixWorld),this.shearScaleInv.copy(this.shearScale).invert()}attach(t,e){this.updateWorldMatrix(!0,!1);let i=(new v).copy(this.matrixWorld).invert();return null!==t.parent&&(t.parent.updateWorldMatrix(!0,!1),i.multiply(t.parent.matrixWorld)),t.applyMatrix4(i),t.updateWorldMatrix(!1,!1),this.add(t),void 0!==e&&(this.children.pop(),this.children.splice(e,0,t)),this}copy(t,e=!1){return super.copy(t,e),this}onAfterRender(t,e,i,s,r,a){this.copyPreviousMatrix&&this.previousModelViewMatrix.copy(this.modelViewMatrix)}},q=class extends x{constructor(){super()}getPoints(t=12){let e,i=[],s=this.getCurveLengths(),r=s[s.length-1]/s.length;for(let a=0,n=this.curves;a<n.length;a++){let o=n[a],l=0===a?s[a]:s[a]-s[a-1],h=Math.ceil(t*l/r),p=o.getPoints(h);for(let t=0;t<p.length;t++){let s=p[t];e&&e.equals(s)||(i.push(s),e=s)}}return this.autoClose&&i.length>1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i}},H=.001,Q=new f,Z=new f,J=new f,K=new f,X=new f,Y=new f,$=new f,tt=new f,et=new f;function it(t,e,i){return Q.subVectors(e,t),Z.subVectors(e,i),Q.cross(Z).length()<=H}var st=new WeakMap;function rt(t){let e=st.get(t.points);if(void 0!==e&&e.isClosed===t.isClosed)return e.curve;let i=function(t){let e=t.points,i=[e[0]],s=[new f(...e[0].data.position)];J.copy(s[0]);for(let t=0;t<e.length-1;t++)Q.fromArray(e[t].data.position),Z.fromArray(e[t+1].data.position),X.subVectors(Q,J),$.subVectors(Q,Z),X.cross($).length()>H&&(i.push(e[t]),s.push((new f).copy(Q)),J.copy(Q));let r=e[e.length-1];i.push(r),s.push(new f(...r.data.position));let a=t.isClosed,n=i.length-(a?0:1),o=i.length,l=[],h=[];for(let t=0;t<o;t++){let e=i[t].data;l.push(new f(...e.controlPrevious.position)),h.push(new f(...e.controlNext.position))}let p=[];for(let t=0;t<n;t++){let e=t===o-1?0:t+1;p.push(it(s[t],h[t],s[e])&&it(s[t],l[e],s[e]))}let d=[];for(let t=0;t<o;t++){let e=i[t].data,r=s[t],n={position:r,prevDir:void 0,nextDir:void 0,controlPrevious:l[t],controlNext:h[t],tan:void 0,baseRoundness:e.roundness,removedLength:0};if(d.push(n),0===e.roundness||!a&&(0===t||t===o-1))continue;let c=a&&0==t?o-1:t-1,u=a&&t==o-1?0:t+1,m=(new f).subVectors(s[c],r).normalize(),y=(new f).subVectors(s[u],r).normalize();n.prevDir=m,n.nextDir=y;let v=p[a&&0===t?o-1:t-1],g=p[t];if(v&&g){K.addVectors(m,y).normalize();let t=J.crossVectors(K,m).length()/m.dot(K);n.tan=t,n.removedLength=e.roundness/t}}for(let t=0;t<n;t++){let e=a&&t===o-1?0:t+1,i=d[t],s=d[e];if(0!==i.removedLength||0!==s.removedLength){let t=i.position.distanceTo(s.position);i.removedLength=Math.min(i.removedLength,t/2),s.removedLength=Math.min(s.removedLength,t/2)}}let c=new Array(2*o).fill(null);for(let t=0;t<n;t++){let e=a&&t===o-1?0:t+1,i=d[t],s=d[e],r=null;if(p[t]){let t=i.position.clone(),e=s.position.clone();(0!==i.removedLength||0!==s.removedLength)&&(i.nextDir&&t.add(J.copy(i.nextDir).setLength(i.removedLength)),s.prevDir&&e.add(J.copy(s.prevDir).setLength(s.removedLength))),t.distanceTo(e)>H&&(r=new y(t,t.clone().lerp(e,.3),e.clone().lerp(t,.3),e))}else i.position.distanceTo(s.position)>H&&(r=new y(i.position,i.controlNext,s.controlPrevious,s.position));c[2*t+1]=r}for(let t=0;t<o;t++){let e=d[t];if(0===e.removedLength)continue;let i=e.position,s=e.prevDir.clone().multiplyScalar(e.removedLength).add(i),r=e.nextDir.clone().multiplyScalar(e.removedLength).add(i),a=e.tan*e.removedLength;K.addVectors(e.prevDir,e.nextDir).normalize(),X.copy(s).lerp(r,.5);let n=s.distanceTo(r)/2;et.copy(K).multiplyScalar(Math.sqrt(Math.pow(a,2)-Math.pow(n,2))).add(X),Y.copy(K).multiplyScalar(-a).add(et);let o=i.distanceTo(Y)/i.distanceTo(X);$.copy(e.prevDir).multiplyScalar(o*i.distanceTo(s)).add(i),tt.copy($).lerp(Y,2);let l=s.clone().lerp($,4/3),h=r.clone().lerp(tt,4/3);c[2*t]=new y(s,l,h,r)}let u=new q;for(let t=0;t<c.length;t++){let e=c[t];e&&u.add(e)}return u}(t);return st.set(t.points,{isClosed:t.isClosed,curve:i}),i}var at,nt=new v,ot=new m,lt=new m,ht=new g,pt=new f,dt=new f(0,1,0);(at||(at={})).is=function(t){return t&&t.__isEntity};var ct=t=>at.is(t),ut={type:"completeState",isfromEntity:!0},mt=["x","y","z"],ft=new f,yt=new f(1,1,1),vt=new m,gt=new g,xt=new v,St=l=>class extends(G(l)){constructor(){super(...arguments),this.raycastLock=!1,this.scaleLock=!1,this.disposed=!1,this.stateSelection=null,this.destroyedInAction=!1,this.instances=[],this.prevState=null,this.currentState=null,this.currentAnimationAction=null,this.reversibleToState=null,this.transitionState={settled:!0,state:null},this.currentTransitionEvent=null,this.previousAction=null,this._singleBBox=new F,this._recursiveBBox=new F,this.singleBBoxNeedsUpdate=!0,this.recursiveBBoxNeedsUpdate=!0,this._needApplyPathSnapping=!0,this.attachedPaths=new Set}get __isEntity(){return!0}entityChildren(t){let e=this.children[t];if(at.is(e))return e}entityChildrenCount(){let t=this.children.length;for(;t--;)if(at.is(this.children[t]))return t+1;return 0}get isConcreteEntity(){return"string"==typeof this.identity}get isVirtualEntity(){return"string"!=typeof this.identity}get isInstanceRoot(){return this.isConcreteEntity&&"Instance"===this.data.type}nearestInstanceSelfOrParent(){let t=this;for(;"Instance"!==t.data.type;){let e=t.parent;if(!at.is(e))return;t=e}return t}forInstancesRec(t){this.instances.forEach(e=>{e.disposed||t(e),e.forInstancesRec(t)})}super_Entity(t,e){"string"==typeof t&&(this.uuid=t),this.identity=t,this.data=e,this.matrixAutoUpdate=!1,this.dataPatched=this.data}changeSelectedState(t,e,i=!1){if(0!==this.data.states.length||i){for(let t of this.data.states)n.toOps(this.data,t.data).forEach(t=>{let i=p.replaceProps(t,this.data);this.dataPatched=this.data,this.updateByPatchedOp(i,this.data,e)});if(null!==t){let i=this.data.states.data(t);i&&(this.dataPatched=n.patch(this.data,i),n.toOps(this.data,i).forEach(t=>{this.updateByPatchedOp(t,this.dataPatched,e)}))}i&&this.updateTransformState(this.dataPatched,e),this.stateSelection=t,this.updatePathSnapping(this.dataPatched.pathSnapping)}}get singleBBox(){return this.singleBBoxNeedsUpdate&&(this.singleBBoxNeedsUpdate=!1,this._singleBBox.setFromObjectSize(this,!1),this._singleBBox.computeVertices(),this._singleBBox.computeEdges(),this._singleBBox.computeFaces()),this._singleBBox}get recursiveBBox(){return this.recursiveBBoxNeedsUpdate&&(this.recursiveBBoxNeedsUpdate=!1,this._recursiveBBox.setFromObjectSize(this,!0),this._recursiveBBox.computeVertices(),this._recursiveBBox.computeEdges(),this._recursiveBBox.computeFaces()),this._recursiveBBox}updateEntityBoxSize(t,e){t.setScalar(0),e.setScalar(0)}resetBBoxNeedsUpdateSelf(){this.singleBBoxNeedsUpdate=!0,this.recursiveBBoxNeedsUpdate=!0}resetBBoxNeedsUpdate(){this.resetBBoxNeedsUpdateSelf(),this.traverseAncestors(t=>{ct(t)&&t.resetBBoxNeedsUpdateSelf()}),this.traverseEntity(t=>{t.resetBBoxNeedsUpdateSelf()})}find(t){let e;return this.traverseEntity(i=>{i.uuid===t&&(e=i)}),e}traverseSortNextHelper(){let t=this.parent;if(t){let e=t.children,i=e.indexOf(this)+1;if(at.is(e[i]))return e[i];if(at.is(t))return t.traverseSortNextHelper()}}sortNext(){let t=this.children;return this.children.length>0&&at.is(this.children[0])?t[0]:this.traverseSortNextHelper()}goUp(t){let e=this;for(;t>0&&null!==e;)e=e.parent,t-=1;return e}hasAnccestorOrSelf(t){return this===t||this.hasAnccestor(t)}hasAnccestor(t){let e=this.parent;for(;e;){if(t===e)return!0;e=e.parent}return!1}countToAccestor(t){let e=0,i=this;for(;i!==t;){if(null===i)return-1;i=i.parent,e+=1}return e}forEachEntity(t){for(let e of this.children)ct(e)&&t(e)}traverseEntityAncestors(t){this.traverseAncestors(e=>{at.is(e)&&t(e)})}traverseConcreteEntity(t,e=0){if(!0!==t(this,e))for(let i of this.children)ct(i)&&i.isConcreteEntity&&i.traverseEntity(t,e+1)}traverseEntity(t,e=0){if(!0!==t(this,e))for(let i of this.children)ct(i)&&i.traverseEntity(t,e+1)}traverseVisibleEntity(t){t(this);for(let e of this.children)ct(e)&&e.visible&&e.traverseVisibleEntity(t)}updateMatrix(){super.updateMatrix(),this.cloner&&this.cloner.onObjUpdateMatrix(),this.dispatchEvent({type:"updateMatrix"})}updateMatrixWorld(t){super.updateMatrixWorld(t),this.dispatchEvent({type:"updateMatrixWorld"})}copy(t,e=!1){return super.copy(t,e),this.dataPatched=t.dataPatched,this.raycastLock=t.raycastLock,this.scaleLock=t.scaleLock,this}hasEntityChild(){return this.children.some(t=>ct(t))}isAncestorOf(t){if(this.uuid===t)return!1;let e=!1;return this.traverseEntity(i=>{i.uuid===t&&(e=!0)}),e}toObjectTransformState(e=[]){this.updateWorldMatrix(!0,!1);let i={position:this.position.toArray(),rotation:[this.rotation.x*u.RAD2DEG,this.rotation.y*u.RAD2DEG,this.rotation.z*u.RAD2DEG],scale:this.scale.toArray(),shear:s.fromMatrix(this.shearMatrix.toArray()),pivot:[0,0,0],pivotRotation:[0,0,0]};return t(i,e)}getTransformValues(t,e,i){return e[t].map((e,s)=>i?.shared.getVariable(e,[this.uuid,t,mt[s]])??e)}updateTransformState(t,e){let i=!1;if(t.position&&(this.position.fromArray(this.getTransformValues("position",t,e)),i=!0),t.rotation&&(ft.fromArray(this.getTransformValues("rotation",t,e)).multiplyScalar(u.DEG2RAD),this.rotation.setFromVector3(ft),i=!0),t.scale&&(this.scale.fromArray(this.getTransformValues("scale",t,e)),i=!0),t.shear&&(this.shearMatrix.fromArray(s.toMatrix(t.shear)),i=!0),void 0!==t.pivot||void 0!==t.pivotRotation)if(i=!0,void 0!==t.pivot&&void 0!==t.pivotRotation)this.pivotMatrix.compose(ft.fromArray(t.pivot).negate(),vt.setFromEuler(gt.fromArray(t.pivotRotation.map(t=>t*u.DEG2RAD))).invert(),yt);else if(void 0!==t.pivot)this.pivotMatrix.setPosition(-t.pivot[0],-t.pivot[1],-t.pivot[2]);else if(void 0!==t.pivotRotation){let e=ft.setFromMatrixPosition(this.pivotMatrix);vt.setFromEuler(gt.fromArray(t.pivotRotation.map(t=>t*u.DEG2RAD))).invert(),this.pivotMatrix.compose(e,vt,yt)}return i&&(this.updateMatrix(),this.resetBBoxNeedsUpdate(),this.invalidateClonerTransform(this),this.traverseEntityAncestors(t=>{t.invalidateClonerTransform(this)})),t.position&&t.rotation&&t.scale&&this.updateWorldMatrix(!1,!0),i}onVariableUpdate(t=!1){t?this.resetBBoxNeedsUpdate():(this.updateMatrix(),this.resetBBoxNeedsUpdate(),this.invalidateClonerTransform(this),this.traverseEntityAncestors(t=>{t.invalidateClonerTransform(this)}),this.requestRender())}dispose(){this.disposed=!0,this.cloner&&(this.cloner.dispose(),this.cloner=void 0)}disposeChildrenRecursively(){for(let t of this.children)at.is(t)&&t.disposeRecursively()}disposeRecursively(){this.dispose(),this.children.forEach(t=>{at.is(t)&&t.disposeRecursively()})}toState(e=[]){let i={name:this.name,visible:this.visible,raycastLock:this.raycastLock,...this.toObjectTransformState(e)};return t(i,e)}updateByObjUpdateOp(t,e){void 0!==t&&this.updateByOp({type:0,props:t,path:[]},{...this.data,...t},e,!1)}updateByOp(t,e,i,s){let o=this.data;this.data=e;let l=t,p=_(t.path,["states","*"]);if(null!==p){if(0===t.type){let[e]=p;if(this?.stateSelection===e){let e={...t.props};if(delete e.name,Object.values(t.props).some(t=>void 0===t)){let i=this.data;if(void 0!==i){let s=c.zoom(i,t.path.slice(2));if(s)for(let i in t.props)void 0===t.props[i]&&i in s&&(e[i]=s[i])}}l={...t,props:e,path:t.path.slice(2)}}}}else if(0===t.type){let e=this.stateSelection?this.data.states.data(this.stateSelection):void 0;if(void 0!==e){if(void 0!==t.props.name&&e.name){let{name:t,...i}=e;e=i}if(void 0!==t.props.material&&"material"in e){let{material:t,...i}=e;e=i}let i=c.removeOverridden(t.path,t.props,e);l={...t,props:i}}}if(this.updateByPatchedOpBase(l,n.patch(this.data,this.stateSelection?this.data.states.data(this.stateSelection):void 0),i),_(t.path,["overrides"])){let s=[],a=[...t.path];for(s.push(a[1]),a.splice(0,2);a.length>0&&"descendants"===a[0];)s.push(a[1]),a.splice(0,2);if(void 0===s[s.length-1]){if(0===t.type)for(let e of Object.keys(t.props)){s[s.length-1]=e;let r=i.scene.findInstance([this.uuid,...s]);r&&(r.overrideData=t.props[e],r.updateState(h.apply(r.component.data,r.overrideData),i))}}else{let n=i.scene.findInstance([this.uuid,...s]);if(n){let o=c.zoom(n.component.data,a);if(0===(t={...t,path:a}).type){let e=t.props;if(o)for(let[i,s]of Object.entries(t.props))void 0===s&&(e===t.props&&(e={...t.props}),e[i]=o[i]);t={...t,props:e}}n.overrideData=r.resolve(e.overrides,s),n.updateByOp(t,d.applySimple(n.data,t),i,!1)}}}else if(this.instances.length>0){let s;if(0===t.path.length&&0===t.type){let e;for(let i of a.rootOverrideProps)i in t.props&&(void 0===e&&(e={}),e[i]=t.props[i]);e&&(s={...t,props:e})}else for(let e of a.rootOverrideProps)if(_(t.path,[e])){s=t;break}void 0!==s&&this.instances.forEach(t=>{if(t.isInstanceRoot){let e=h.filterOp(t.overrideData,s);e&&t.updateByOp(e,d.applySimple(t.data,e),i,!0)}}),this.instances.forEach(s=>{if(!s.isInstanceRoot){let r=h.filterOp(s.overrideData,t);if(r){let a;a=o===s.data&&t===r?e:d.applySimple(s.data,r),s.updateByOp(r,a,i,!0)}}})}}updateByPatchedOpBase(t,e,i){if(this.dataPatched=e,0===t.path.length&&0===t.type)void 0!==t.props.type&&!o.is(t.props.type)&&D.changeEntityProptotype(this,this.data,i);else if(1===t.path.length&&"geometry"===t.path[0]&&0===t.type&&"type"in t.props){D.changeEntityProptotype(this,this.data,i);for(let t of this.children)at.is(t)&&t.updateVisible(i.scene)}this.updateByPatchedOp(t,e,i)}updateByPatchedOp(t,e,i){if(0===t.path.length&&0===t.type?this.updateState(t.props,i):0===t.type&&("resolutionLevel"in t.props||"useChildrenColors"in t.props)&&this.updateState(e,i),"morphTargetInfluences"===t.path[0]&&0===t.type){let s=e.morphTargetInfluences.get(t.path[1])?.data.name;s&&this.updateMorphInfluences(s,i.shared.getVariable(t.props.value,[this.uuid,"morphTargetInfluences",s]))}if(null!==_(t.path,["pathSnapping"])&&(this.updatePathSnapping(e.pathSnapping),this.isVirtualEntity&&i.scene?.syncInstancePathConstraint(this)),null!==_(t.path,["cloner"])){let s=d.drop(t,1);0===s.path.length&&0===s.type&&!0===s.props.disabled?this.setFromClonerState(null,i):this.cloner?this.cloner.updateState(e.cloner,i):(this.setFromClonerState(e.cloner,i),this.expandCloner(i)),this.updateVisible(i.scene)}}updatePathSnapping(t=this.dataPatched.pathSnapping){this._updatedPathSnapping=t,this._needApplyPathSnapping=!0}get updatedPathSnapping(){return this._updatedPathSnapping}applyPathSnapping(t){if(!1===this._needApplyPathSnapping)return;let e=this._updatedPathSnapping?.pathId??this.dataPatched.pathSnapping.pathId,i=this._updatedPathSnapping?.slide??this.dataPatched.pathSnapping.slide??0,s=this._updatedPathSnapping?.offset??this.dataPatched.pathSnapping.offset??0,r=this._updatedPathSnapping?.orientation??this.dataPatched.pathSnapping.orientation;if(null===e)return;let a=t.find(this.isVirtualEntity&&t.pathConstraints.getConstraint(this.uuid)||e);if(!a)return;this._needApplyPathSnapping=!1;let n=a.data;if(n.geometry.path.points.length<=1)return;let o=rt(n.geometry.path),l=function(t){let e=t%1;return e<0?e+1:0===e&&t>0?1:e}(i+s),h=null;try{h=o.curves.length?o.getPointAt(l):null}catch(t){}if(null===h)return;a.updateMatrixWorld();let p=this.parent?xt.copy(this.parent.matrixWorld):xt.identity(),d=function(t,e,i,s){ot.setFromRotationMatrix(nt.extractRotation(s));let r=t.clone().applyMatrix4(nt.copy(s).invert().multiply(i));if(null===e)lt.setFromRotationMatrix(nt.extractRotation(i));else{let t=e.clone().applyMatrix4(nt.extractRotation(i));lt.setFromRotationMatrix(nt.lookAt(pt.set(0,0,0),t,dt))}return{position:r,rotation:(new f).setFromEuler(ht.setFromQuaternion(ot.invert().multiply(lt))).multiplyScalar(u.RAD2DEG)}}(h,"tangential"===r?o.getTangentAt(l):null,a.matrixWorld,p);this.updateTransformState({position:d.position.toArray(),rotation:d.rotation.toArray()}),this.traverseEntity(t=>{t._cameraType&&t.dispatchEvent(ut)})}updateVisible(t){if(this.visible=this.dataPatched.visible&&(!this.dataPatched.cloner||(this.dataPatched.cloner.disabled??!1)||!0!==this.dataPatched.cloner?.hideBase),!t)return;let e=!1;this.traverseEntity(t=>{if("Splat"===t.data.type)return e=!0,!0}),e&&t.reloadSplats()}updateState_Entity(t,e){void 0!==t.name&&(this.name=t.name),void 0!==t.raycastLock&&(this.raycastLock=t.raycastLock),void 0!==t.visible&&(this.updateVisible(e?.scene),this.resetBBoxNeedsUpdate()),e&&"cloner"in t&&void 0!==t.cloner&&(this.setFromClonerState(t.cloner,e),this.updateVisible(e.scene)),this.updateTransformState(t,e)}get attachedSurfaceCloners(){return this.children.filter(t=>e(t)&&"toObject"===t.parameters.type)}setFromClonerState(t,e){if(!this.disposed)if(null===t||t.disabled)this.cloner&&this.cloner.dispose(),this.cloner=void 0;else if(void 0===this.cloner){if(null===D.Cloner)return void i("cloners","a cloner");this.cloner=new D.Cloner(this,t),e.scene.addPendingExpandCloner(this)}else this.cloner.updateState(t,e)}expandCloner(t){!this.disposed&&this.cloner&&this.cloner.expandClones(t)}invalidateClonerTransform(t){this.cloner&&this.cloner.invalidateTransform(t)}requestRender(){this.dispatchEvent({type:"requestRender"})}},wt=class{static create(t){return this.build(this.normalizeInputs(t))}static normalizeInputs(t,e){let i=Object.assign({},e?.parameters??{width:100,revolutions:2,segments:40,pathRadius:10,pathType:0,pathSegments:30,cornerRadius:30,cornerSegments:4},t.parameters),s=Math.abs(i.width),r=Math.abs(i.height??s),a=Math.abs(i.depth??s),n=Math.abs(Math.min(s,a))/2;return{parameters:Object.assign(i,{width:s,height:r,depth:a,radius:n,segments:Math.round(i.segments),pathSegments:Math.round(i.pathSegments),cornerSegments:Math.round(i.cornerSegments)})}}static build(t){let{width:e,height:i,depth:s,radius:r,revolutions:a,segments:n,pathRadius:o,pathType:l,pathSegments:h,cornerRadius:p,cornerSegments:d}=t.parameters,c=new Et(!1,e,i,s,r,a,n,o,l,h,p,d);return Object.assign(c,{userData:{...t,type:"HelixGeometry"}})}},Mt=new b([0,0,0],1);function bt(t){return"TorusGeometry"===t.type&&360===t.arc}var Bt,Pt,Et=class extends E{constructor(t=!0,e=1,i=1,s=1,r=1,a=1,n=1,o=1,l=1,h=1,p=1,d=1){if(super(),0===a)return;let c=t&&1===a;c&&(d=0),p>100&&(p=100),0===p&&(d=0);let u,m,y,v,g,x,S,w,M=()=>new f,b=new f,P=M(),E=M(),A=M(),C=M(),D=M(),O=M(),_=M(),V=M(),W=M(),R=M(),T=M(),U=i-2*o+.001,I=U/a,L=Math.ceil(n*a),F=L+1,z=U/L,j=-U/2,N=h+1,k=2*Math.PI/h,G=Math.PI/2/d,q=Math.min((1-p/100)*o,o-.01),H=o-q,Q=0,Z=2*d+2,J=N*Z/2,K=J+N*F,X=Math.max(0,N*(F+Z)),[Y,$,tt]=[3,3,2].map(t=>Array(X*t).fill(0)),et=[],it=r-o;function st(e,i){let s=Math.PI/2;x=i*z,w=2*Math.PI*(x%I)/I+s,x+=j,S=Math.sin(w)*it,g=Math.cos(w)*it,t?e.set(g,S,x):e.set(g,x,S)}st(b,-1e-10),st(P,0),C.copy(b),st(b,1);let rt=b.distanceTo(P),at=c?0:H+q,nt=rt*L+2*at,ot=q,lt=nt-at;for(let e=0;e<=L;e++){st(E,e),T.subVectors(E,C).normalize(),C.copy(E),W.copy(E).setComponent(+t+1,0).normalize(),R.crossVectors(T,W).normalize();let i=0===e,s=e===L,r=i?3*Math.PI/2:G,a=i?ot:lt,n=i?N:K,l=i?0:X-N,p=T.clone().multiplyScalar(i?-H:H).add(E),u=T.clone().multiplyScalar(i?-1:1).normalize();for(let t=0;t<N;t++){let m=t*k;if(D.addVectors(b.copy(W).multiplyScalar(o*Math.cos(m)),P.copy(R).multiplyScalar(o*Math.sin(m))),O.copy(D).normalize(),i||s){c||(Q=l+t,[0,1,2].forEach(t=>{Y[3*Q+t]=p.getComponent(t),$[3*Q+t]=u.getComponent(t)}),tt[2*Q]=+s,tt[2*Q+1]=t/h),P.copy(O).multiplyScalar(q),A.addVectors(E,P);for(let e=0;e<d;e++){let s=e*G+r;_.addVectors(b.copy(T).multiplyScalar(H*Math.sin(s)),P.copy(O).multiplyScalar(H*Math.cos(s))),V.copy(_).normalize(),P.addVectors(A,_),_.normalize(),Q=n+e*N+t,[0,1,2].forEach(t=>{Y[3*Q+t]=P.getComponent(t),$[3*Q+t]=V.getComponent(t)});let o=+i+Math.sin(s);tt[2*Q]=(a+H*o)/nt,tt[2*Q+1]=t/h}}P.addVectors(E,D),Q=J+e*N+t,[0,1,2].forEach(t=>{Y[3*Q+t]=P.getComponent(t),$[3*Q+t]=O.getComponent(t)}),tt[2*Q]=(at+e*rt)/nt,tt[2*Q+1]=t/h}}let ht=F+2*d+2,[pt,dt]=[+c,ht-1];for(let t=pt;t<=dt-1;t++){let e=c&&t===dt-1;for(let i=0;i<N-1;i++)u=t*N+i,m=u+1,y=(e?i:u)+N,v=(e?i+1:m)+N,0===t?et.push(m,v,y):t===ht-2?et.push(u,m,y):et.push(u,m,y,m,v,y)}this.setIndex(et),this.setAttribute("position",new B(Y,3)),this.setAttribute("normal",new B($,3)),this.setAttribute("uv",new B(tt,2))}getClosedTorusIndicesForBooleanOrSubdiv(){let t,e,i,s,r=this.userData.parameters,a=Math.ceil(r.tubularSegments),n=r.radialSegments,o=n+1,l=[];for(let r=1;r<a;r++)for(let a=0;a<n;a++)t=r*o+a,e=t+1,i=t+o,s=e+o,l.push(t,e,i,e,s,i);for(let r=0;r<n;r++)t=a*o+r,e=t+1,i=r+o,s=r+1+o,l.push(t,e,i,e,s,i);return Mt.array=new Uint32Array(l),Mt.count=l.length,Mt}},At=new Map,Ct=0;function Dt(t){return Pt||(Pt=async function(){let e=t??"https://cdn.spline.design/@splinetool/runtime@2.0.122/build",i=import("./boolean.js"),[s,r]=await Promise.all([i,fetch(`${e}/boolean.wasm`).then(t=>t.arrayBuffer())]);await s.default({module_or_path:r}),Bt=s}())}function Ot(){if(void 0===Bt)throw new Error("boolean-wasm is not loaded");return Bt}function _t(t){let e=At.get(t);if(void 0===e)throw new Error("Unknown csg mesh set handle "+t);return e}function Vt(t){return At.set(++Ct,t),Ct}var Wt={0:0,1:1,2:2};function Rt(t,e,i){if(void 0===Bt)return-1;let{positions:s,indices:r,normals:a}=function(t,e){if(e&&void 0!==t.userData.positions){let e=t.userData,i=[];for(let t=0,s=0;t<e.verticesPerFace.length;t++){let r=e.verticesPerFace[t];for(let t=1;t<r-1;t++)i.push(e.indices[s],e.indices[s+t],e.indices[s+t+1]);s+=r}return{positions:e.positions instanceof Float32Array?e.positions:new Float32Array(e.positions),indices:new Uint32Array(i)}}let i;i=bt(t.userData.parameters)?t.getClosedTorusIndicesForBooleanOrSubdiv():t.getIndex();let s,r=t.getAttribute("position");if(null===i){s=new Uint32Array(r.count);for(let t=0;t<s.length;t++)s[t]=t}else s=i.array instanceof Uint32Array?i.array:new Uint32Array(i.array);let a=t.getAttribute("normal"),n=void 0!==a&&3===a.itemSize&&a.count===r.count&&a.array instanceof Float32Array&&!0!==a.isInterleavedBufferAttribute?a.array:void 0;return{positions:r.array,indices:s,normals:n}}(t,e);return Vt(new Bt.CsgMesh(s,r,a))}function Tt(t,e){let i=Ot(),s=Wt[e];if(void 0===s)throw new Error("Unknown boolean operation "+e);let r=t.map(_t);if(1===r.length)return i.clone_mesh(r[0]);let a,n=[];if(2===e&&r.length>2){let t=r[0];for(let e=1;e<r.length-1;e++)t=i.boolean_mesh(t,r[e],0),n.push(t);a=i.boolean_mesh(r[r.length-1],t,2)}else if(2===e)a=i.boolean_mesh(r[1],r[0],2);else{let t=r[r.length-1];for(let e=0;e<r.length-1&&(t=i.boolean_mesh(t,r[e],s),n.push(t),0!==t.tri_count());e++);a=t,n.pop()}for(let t of n)t.free();return a}function Ut(t,e,i,s){let r=Ot(),a=Tt(t,e),n=r.mesh_render_data(a,Math.max(s,0));if(i.setAttribute("position",new B(n.positions(),3)),i.setAttribute("normal",new B(n.normals(),3)),n.free(),null===i.boundingSphere&&(i.boundingSphere=new P),0===a.tri_count())i.boundingSphere.center.set(0,0,0),i.boundingSphere.radius=0,i.userData.parameters={width:0,height:0,depth:0};else{let t=a.bounds();i.boundingSphere.center.set(t[0],t[1],t[2]),i.boundingSphere.radius=(t[3]**2+t[4]**2+t[5]**2)**.5,i.userData.parameters={width:2*t[3],height:2*t[4],depth:2*t[5]}}return Vt(a)}function It(t,e){let i=Ot(),s=Tt(t,e),r=i.mesh_topological_data(s),a=r.positions(),n=r.indices();return r.free(),s.free(),{positions:a,indices:n,verticesPerFace:new Uint8Array(n.length/3).fill(3)}}function Lt(t,e){_t(t).transform(new Float32Array(e.elements))}function Ft(t){let e=At.get(t);void 0!==e&&(e.free(),At.delete(t))}function zt(t,e){return Vt(Ot().instanced_union(_t(t),e))}function jt(t){return null!==t&&"booleanOp"in t}var Nt=class extends(St(C)){constructor(){super(...arguments),this.booleanMeshSetAddress=-1,this.booleanWasTransformed=!1,this.booleanMatrixInvOld=new v}updateVisible(t){super.updateVisible(t),this.visible=!jt(this.parent)&&this.visible,jt(this.parent)&&this.parent.invalidateDownstreamBooleanData()}onClonerLayoutUpdated(){jt(this.parent)&&this.invalidateDownstreamBooleanData()}freeBooleanPointer(){-1!==this.booleanMeshSetAddress&&(Ft(this.booleanMeshSetAddress),this.booleanMeshSetAddress=-1)}dispose(){super.dispose(),this.freeBooleanPointer()}invalidateDownstreamBooleanData(t=!1){return t?this.booleanWasTransformed=!0:this.freeBooleanPointer(),jt(this.parent)?this.parent.invalidateDownstreamBooleanData():this}invalidateUpstreamBooleanData(){this.freeBooleanPointer();for(let t of this.children)t instanceof Nt&&(t.freeBooleanPointer(),jt(t)&&t.invalidateUpstreamBooleanData())}updateTransformState(t,e){let i=super.updateTransformState(t,e);return i&&jt(this.parent)&&this.invalidateDownstreamBooleanData(!0),i}onVariableUpdate(t=!1){super.onVariableUpdate(t),jt(this.parent)&&this.invalidateDownstreamBooleanData(!0)}},kt=new M;function Gt(t,e=0,i=t.count,s,r){let a=1/0,n=1/0,o=1/0,l=-1/0,h=-1/0,p=-1/0;for(let s=e;s<i;s++){let e=t.getX(s),i=t.getY(s),r=t.getZ(s);e<a&&(a=e),i<n&&(n=i),r<o&&(o=r),e>l&&(l=e),i>h&&(h=i),r>p&&(p=r)}kt.min.set(a,n,o),kt.max.set(l,h,p),kt.getCenter(s),kt.getSize(r).multiplyScalar(.5)}var qt=new E,Ht=new A,Qt=class extends Nt{constructor(t,e){super(qt,Ht),this.super_Entity(t,e)}updateState(t,e){this.updateState_Entity(t,e)}raycast(t,e){if(this.raycastDeformed(t,e))return;super.raycast(t,e)}raycastDeformed(t,e){return!1}updateEntityBoxSize(t,e){let i=this.geometry.getAttribute("position");void 0!==i?Gt(i,this.geometry.drawRange.start,this.geometry.drawRange.count<1/0?this.geometry.drawRange.count:i.count,t,e):super.updateEntityBoxSize(t,e)}};export{O as a,_ as b,D as c,j as d,N as e,G as f,rt as g,at as h,ct as i,St as j,wt as k,bt as l,Et as m,Dt as n,Rt as o,Ut as p,It as q,Lt as r,Ft as s,zt as t,Gt as u,Qt as v};
1
+ import{f as t}from"./runtime-chunk-RTLL6WIB.js";import{h as e}from"./runtime-chunk-2PT2WH66.js";import{c as i}from"./runtime-chunk-TZCHGFVF.js";import{C as s,Ca as r,Da as a,Fa as n,J as o,Qa as l,i as h,j as p,k as d,n as c}from"./runtime-chunk-CSILWFMF.js";import{Ec as u,Gc as m,Hc as f,Md as y,Qc as v,Rc as g,Rd as x,Tc as S,Te as w,Zc as M,bd as b,dd as B,ed as P,fd as E,md as A,nd as C}from"./runtime-chunk-KPOUV3HD.js";var D={Cloner:null,changeEntityProptotype:()=>{},createEntity:()=>{}};function O(t,e){let i=[];if(e.length!==t.length)return null;{let s=0;for(;s<t.length;){if("*"===e[s])i.push(t[s]);else if(t[s]!==e[s])return null;s+=1}}return i}function _(t,e){let i=[];if(!(e.length<=t.length))return null;{let s=0;for(;s<e.length;){if("*"===e[s])i.push(t[s]);else if(t[s]!==e[s])return null;s+=1}}return i}var V=new f,W=new f,R=new v,T=[new f(-1,1,1),new f(-1,-1,1),new f(1,-1,1),new f(1,1,1),new f(-1,1,-1),new f(-1,-1,-1),new f(1,-1,-1),new f(1,1,-1)],U=[[0,3],[1,2],[5,6],[4,7],[0,1],[3,2],[7,6],[4,5],[0,4],[1,5],[2,6],[3,7]],I=[[0,2],[7,5],[4,1],[3,6],[4,3],[1,6]],L=(t,e,i)=>{t.updateEntityBoxSize(V,W),R.copy(e).multiply(t.matrixWorld),0===W.x&&0===W.y&&0===W.z?i.push(new f(V.x,V.y,V.z).applyMatrix4(R)):T.forEach(t=>{i.push(t.clone().multiply(W).add(V).applyMatrix4(R))})},F=class extends M{constructor(){super(...arguments),this.matrix=new v,this.vertices=[],this.faces=[],this.edges=[],this.centerEdges=[]}copy(t){return super.copy(t),this.matrix.copy(t.matrix),this.vertices=t.vertices.map(t=>t.clone()),this.faces=t.faces.map(t=>t.clone()),this.edges=t.edges.map(t=>t.clone()),this.centerEdges=t.centerEdges.map(t=>t.clone()),this}setFromObjectSize(t,e=!1){t.updateWorldMatrix(!1,e),this.makeEmpty(),this.matrix.copy(t.matrixWorld);let i=(new v).copy(t.matrixWorld).invert();return this.expandByObjectSize(t,i,e)}expandByObjectSize(t,e,i=!1){let s=[];if(!0===i){let i=[];t.traverseEntity(t=>{if(t.visible||t.cloner&&t.data.visible){if(!("geometry"in t))return R.copy(e).multiply(t.matrixWorld),void i.push((new f).applyMatrix4(R));L(t,e,s)}}),0===s.length&&s.push(...i)}else L(t,e,s);return this.setFromPoints(s)}getCenter(t){return(t=super.getCenter(t)).applyMatrix4(this.matrix),t}getPositionToCenter(t){return(t=super.getCenter(t)).applyMatrix4(R.copy(this.matrix).setPosition(0,0,0)),t}computeVertices(){this.getSize(W).multiplyScalar(.5),this.getCenter(V),R.copy(this.matrix).setPosition(V),this.vertices=T.map(t=>t.clone().multiply(W).applyMatrix4(R))}computeEdges(){this.vertices.length>0&&this.computeVertices(),this.edges=U.map(([t,e])=>new w(this.vertices[t],this.vertices[e])),this.centerEdges=this.edges.map(t=>t.getCenter(new f))}computeFaces(){this.vertices.length>0&&this.computeVertices(),this.faces=I.map(([t,e])=>this.vertices[t].clone().add(this.vertices[e]).multiplyScalar(.5))}},z=new f(1,1,1);function j(t,e,i,s,r=new v){return r.compose(t,e,z).multiply(i).scale(s)}var N,k=new v;(N||(N={})).is=function(t){return t&&t.__isSPEObject};var G=t=>class extends t{constructor(){super(...arguments),this.previousModelViewMatrix=new v,this.copyPreviousMatrix=!0,this.pivotMatrix=new v,this.matrixWorldRigid=new v,this.shearScale=new v,this.shearScaleInv=new v,this.shearMatrix=new v}get __isSPEObject(){return!0}getPhysicsLocalMatrix(t){return!!this.rigidBody?.isDynamic()&&(t.copy(this.matrixWorld),this.hasNonUniformScale&&t.multiply(this.shearScaleInv),this.parent&&t.premultiply(k.copy(this.parent.matrixWorld).invert()),t.multiply(k.copy(this.pivotMatrix).invert()),!0)}isDescendantOf(t){t instanceof S&&(t=t.uuid);let e=this;for(;e.parent;){if(e.parent.uuid===t)return!0;e=e.parent}return!1}updateMatrix(){!this.shearMatrix||(j(this.position,this.quaternion,this.shearMatrix,this.scale,this.matrix),this.matrixWorldNeedsUpdate=!0)}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorld.multiply(this.pivotMatrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(let e of this.children)e.updateMatrixWorld(t)}updateWorldMatrix(t,e){let i=this.parent;if(t&&null!==i&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorld.multiply(this.pivotMatrix),e)for(let t of this.children)t.updateWorldMatrix(!1,!0)}traverseChildren(t,e=0){for(let i of this.children)N.is(i)&&i.traverseObject(t,e+1)}traverseObject(t,e=0){if(!0!==t(this,e))for(let i of this.children)N.is(i)&&i.traverseObject(t,e+1)}updateMatrixWorldRigid(){this.hasNonUniformScale=l(this.matrixWorld,this.matrixWorldRigid,this.shearScale),this.matrixWorldRigid.copyPosition(this.matrixWorld),this.shearScaleInv.copy(this.shearScale).invert()}attach(t,e){this.updateWorldMatrix(!0,!1);let i=(new v).copy(this.matrixWorld).invert();return null!==t.parent&&(t.parent.updateWorldMatrix(!0,!1),i.multiply(t.parent.matrixWorld)),t.applyMatrix4(i),t.updateWorldMatrix(!1,!1),this.add(t),void 0!==e&&(this.children.pop(),this.children.splice(e,0,t)),this}copy(t,e=!1){return super.copy(t,e),this}onAfterRender(t,e,i,s,r,a){this.copyPreviousMatrix&&this.previousModelViewMatrix.copy(this.modelViewMatrix)}},q=class extends x{constructor(){super()}getPoints(t=12){let e,i=[],s=this.getCurveLengths(),r=s[s.length-1]/s.length;for(let a=0,n=this.curves;a<n.length;a++){let o=n[a],l=0===a?s[a]:s[a]-s[a-1],h=Math.ceil(t*l/r),p=o.getPoints(h);for(let t=0;t<p.length;t++){let s=p[t];e&&e.equals(s)||(i.push(s),e=s)}}return this.autoClose&&i.length>1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i}},H=.001,Q=new f,Z=new f,J=new f,K=new f,X=new f,Y=new f,$=new f,tt=new f,et=new f;function it(t,e,i){return Q.subVectors(e,t),Z.subVectors(e,i),Q.cross(Z).length()<=H}var st=new WeakMap;function rt(t){let e=st.get(t.points);if(void 0!==e&&e.isClosed===t.isClosed)return e.curve;let i=function(t){let e=t.points,i=[e[0]],s=[new f(...e[0].data.position)];J.copy(s[0]);for(let t=0;t<e.length-1;t++)Q.fromArray(e[t].data.position),Z.fromArray(e[t+1].data.position),X.subVectors(Q,J),$.subVectors(Q,Z),X.cross($).length()>H&&(i.push(e[t]),s.push((new f).copy(Q)),J.copy(Q));let r=e[e.length-1];i.push(r),s.push(new f(...r.data.position));let a=t.isClosed,n=i.length-(a?0:1),o=i.length,l=[],h=[];for(let t=0;t<o;t++){let e=i[t].data;l.push(new f(...e.controlPrevious.position)),h.push(new f(...e.controlNext.position))}let p=[];for(let t=0;t<n;t++){let e=t===o-1?0:t+1;p.push(it(s[t],h[t],s[e])&&it(s[t],l[e],s[e]))}let d=[];for(let t=0;t<o;t++){let e=i[t].data,r=s[t],n={position:r,prevDir:void 0,nextDir:void 0,controlPrevious:l[t],controlNext:h[t],tan:void 0,baseRoundness:e.roundness,removedLength:0};if(d.push(n),0===e.roundness||!a&&(0===t||t===o-1))continue;let c=a&&0==t?o-1:t-1,u=a&&t==o-1?0:t+1,m=(new f).subVectors(s[c],r).normalize(),y=(new f).subVectors(s[u],r).normalize();n.prevDir=m,n.nextDir=y;let v=p[a&&0===t?o-1:t-1],g=p[t];if(v&&g){K.addVectors(m,y).normalize();let t=J.crossVectors(K,m).length()/m.dot(K);n.tan=t,n.removedLength=e.roundness/t}}for(let t=0;t<n;t++){let e=a&&t===o-1?0:t+1,i=d[t],s=d[e];if(0!==i.removedLength||0!==s.removedLength){let t=i.position.distanceTo(s.position);i.removedLength=Math.min(i.removedLength,t/2),s.removedLength=Math.min(s.removedLength,t/2)}}let c=new Array(2*o).fill(null);for(let t=0;t<n;t++){let e=a&&t===o-1?0:t+1,i=d[t],s=d[e],r=null;if(p[t]){let t=i.position.clone(),e=s.position.clone();(0!==i.removedLength||0!==s.removedLength)&&(i.nextDir&&t.add(J.copy(i.nextDir).setLength(i.removedLength)),s.prevDir&&e.add(J.copy(s.prevDir).setLength(s.removedLength))),t.distanceTo(e)>H&&(r=new y(t,t.clone().lerp(e,.3),e.clone().lerp(t,.3),e))}else i.position.distanceTo(s.position)>H&&(r=new y(i.position,i.controlNext,s.controlPrevious,s.position));c[2*t+1]=r}for(let t=0;t<o;t++){let e=d[t];if(0===e.removedLength)continue;let i=e.position,s=e.prevDir.clone().multiplyScalar(e.removedLength).add(i),r=e.nextDir.clone().multiplyScalar(e.removedLength).add(i),a=e.tan*e.removedLength;K.addVectors(e.prevDir,e.nextDir).normalize(),X.copy(s).lerp(r,.5);let n=s.distanceTo(r)/2;et.copy(K).multiplyScalar(Math.sqrt(Math.pow(a,2)-Math.pow(n,2))).add(X),Y.copy(K).multiplyScalar(-a).add(et);let o=i.distanceTo(Y)/i.distanceTo(X);$.copy(e.prevDir).multiplyScalar(o*i.distanceTo(s)).add(i),tt.copy($).lerp(Y,2);let l=s.clone().lerp($,4/3),h=r.clone().lerp(tt,4/3);c[2*t]=new y(s,l,h,r)}let u=new q;for(let t=0;t<c.length;t++){let e=c[t];e&&u.add(e)}return u}(t);return st.set(t.points,{isClosed:t.isClosed,curve:i}),i}var at,nt=new v,ot=new m,lt=new m,ht=new g,pt=new f,dt=new f(0,1,0);(at||(at={})).is=function(t){return t&&t.__isEntity};var ct=t=>at.is(t),ut={type:"completeState",isfromEntity:!0},mt=["x","y","z"],ft=new f,yt=new f(1,1,1),vt=new m,gt=new g,xt=new v,St=l=>class extends(G(l)){constructor(){super(...arguments),this.raycastLock=!1,this.scaleLock=!1,this.disposed=!1,this.stateSelection=null,this.destroyedInAction=!1,this.instances=[],this.prevState=null,this.currentState=null,this.currentAnimationAction=null,this.reversibleToState=null,this.transitionState={settled:!0,state:null},this.currentTransitionEvent=null,this.previousAction=null,this._singleBBox=new F,this._recursiveBBox=new F,this.singleBBoxNeedsUpdate=!0,this.recursiveBBoxNeedsUpdate=!0,this._needApplyPathSnapping=!0,this.attachedPaths=new Set}get __isEntity(){return!0}entityChildren(t){let e=this.children[t];if(at.is(e))return e}entityChildrenCount(){let t=this.children.length;for(;t--;)if(at.is(this.children[t]))return t+1;return 0}get isConcreteEntity(){return"string"==typeof this.identity}get isVirtualEntity(){return"string"!=typeof this.identity}get isInstanceRoot(){return this.isConcreteEntity&&"Instance"===this.data.type}nearestInstanceSelfOrParent(){let t=this;for(;"Instance"!==t.data.type;){let e=t.parent;if(!at.is(e))return;t=e}return t}forInstancesRec(t){this.instances.forEach(e=>{e.disposed||t(e),e.forInstancesRec(t)})}super_Entity(t,e){"string"==typeof t&&(this.uuid=t),this.identity=t,this.data=e,this.matrixAutoUpdate=!1,this.dataPatched=this.data}changeSelectedState(t,e,i=!1){if(0!==this.data.states.length||i){for(let t of this.data.states)n.toOps(this.data,t.data).forEach(t=>{let i=p.replaceProps(t,this.data);this.dataPatched=this.data,this.updateByPatchedOp(i,this.data,e)});if(null!==t){let i=this.data.states.data(t);i&&(this.dataPatched=n.patch(this.data,i),n.toOps(this.data,i).forEach(t=>{this.updateByPatchedOp(t,this.dataPatched,e)}))}i&&this.updateTransformState(this.dataPatched,e),this.stateSelection=t,this.updatePathSnapping(this.dataPatched.pathSnapping)}}get singleBBox(){return this.singleBBoxNeedsUpdate&&(this.singleBBoxNeedsUpdate=!1,this._singleBBox.setFromObjectSize(this,!1),this._singleBBox.computeVertices(),this._singleBBox.computeEdges(),this._singleBBox.computeFaces()),this._singleBBox}get recursiveBBox(){return this.recursiveBBoxNeedsUpdate&&(this.recursiveBBoxNeedsUpdate=!1,this._recursiveBBox.setFromObjectSize(this,!0),this._recursiveBBox.computeVertices(),this._recursiveBBox.computeEdges(),this._recursiveBBox.computeFaces()),this._recursiveBBox}updateEntityBoxSize(t,e){t.setScalar(0),e.setScalar(0)}resetBBoxNeedsUpdateSelf(){this.singleBBoxNeedsUpdate=!0,this.recursiveBBoxNeedsUpdate=!0}resetBBoxNeedsUpdate(){this.resetBBoxNeedsUpdateSelf(),this.traverseAncestors(t=>{ct(t)&&t.resetBBoxNeedsUpdateSelf()}),this.traverseEntity(t=>{t.resetBBoxNeedsUpdateSelf()})}find(t){let e;return this.traverseEntity(i=>{i.uuid===t&&(e=i)}),e}traverseSortNextHelper(){let t=this.parent;if(t){let e=t.children,i=e.indexOf(this)+1;if(at.is(e[i]))return e[i];if(at.is(t))return t.traverseSortNextHelper()}}sortNext(){let t=this.children;return this.children.length>0&&at.is(this.children[0])?t[0]:this.traverseSortNextHelper()}goUp(t){let e=this;for(;t>0&&null!==e;)e=e.parent,t-=1;return e}hasAnccestorOrSelf(t){return this===t||this.hasAnccestor(t)}hasAnccestor(t){let e=this.parent;for(;e;){if(t===e)return!0;e=e.parent}return!1}countToAccestor(t){let e=0,i=this;for(;i!==t;){if(null===i)return-1;i=i.parent,e+=1}return e}forEachEntity(t){for(let e of this.children)ct(e)&&t(e)}traverseEntityAncestors(t){this.traverseAncestors(e=>{at.is(e)&&t(e)})}traverseConcreteEntity(t,e=0){if(!0!==t(this,e))for(let i of this.children)ct(i)&&i.isConcreteEntity&&i.traverseEntity(t,e+1)}traverseEntity(t,e=0){if(!0!==t(this,e))for(let i of this.children)ct(i)&&i.traverseEntity(t,e+1)}traverseVisibleEntity(t){t(this);for(let e of this.children)ct(e)&&e.visible&&e.traverseVisibleEntity(t)}updateMatrix(){super.updateMatrix(),this.cloner&&this.cloner.onObjUpdateMatrix(),this.dispatchEvent({type:"updateMatrix"})}updateMatrixWorld(t){super.updateMatrixWorld(t),this.dispatchEvent({type:"updateMatrixWorld"})}copy(t,e=!1){return super.copy(t,e),this.dataPatched=t.dataPatched,this.raycastLock=t.raycastLock,this.scaleLock=t.scaleLock,this}hasEntityChild(){return this.children.some(t=>ct(t))}isAncestorOf(t){if(this.uuid===t)return!1;let e=!1;return this.traverseEntity(i=>{i.uuid===t&&(e=!0)}),e}toObjectTransformState(e=[]){this.updateWorldMatrix(!0,!1);let i={position:this.position.toArray(),rotation:[this.rotation.x*u.RAD2DEG,this.rotation.y*u.RAD2DEG,this.rotation.z*u.RAD2DEG],scale:this.scale.toArray(),shear:s.fromMatrix(this.shearMatrix.toArray()),pivot:[0,0,0],pivotRotation:[0,0,0]};return t(i,e)}getTransformValues(t,e,i){return e[t].map((e,s)=>i?.shared.getVariable(e,[this.uuid,t,mt[s]])??e)}updateTransformState(t,e){let i=!1;if(t.position&&(this.position.fromArray(this.getTransformValues("position",t,e)),i=!0),t.rotation&&(ft.fromArray(this.getTransformValues("rotation",t,e)).multiplyScalar(u.DEG2RAD),this.rotation.setFromVector3(ft),i=!0),t.scale&&(this.scale.fromArray(this.getTransformValues("scale",t,e)),i=!0),t.shear&&(this.shearMatrix.fromArray(s.toMatrix(t.shear)),i=!0),void 0!==t.pivot||void 0!==t.pivotRotation)if(i=!0,void 0!==t.pivot&&void 0!==t.pivotRotation)this.pivotMatrix.compose(ft.fromArray(t.pivot).negate(),vt.setFromEuler(gt.fromArray(t.pivotRotation.map(t=>t*u.DEG2RAD))).invert(),yt);else if(void 0!==t.pivot)this.pivotMatrix.setPosition(-t.pivot[0],-t.pivot[1],-t.pivot[2]);else if(void 0!==t.pivotRotation){let e=ft.setFromMatrixPosition(this.pivotMatrix);vt.setFromEuler(gt.fromArray(t.pivotRotation.map(t=>t*u.DEG2RAD))).invert(),this.pivotMatrix.compose(e,vt,yt)}return i&&(this.updateMatrix(),this.resetBBoxNeedsUpdate(),this.invalidateClonerTransform(this),this.traverseEntityAncestors(t=>{t.invalidateClonerTransform(this)})),t.position&&t.rotation&&t.scale&&this.updateWorldMatrix(!1,!0),i}onVariableUpdate(t=!1){t?this.resetBBoxNeedsUpdate():(this.updateMatrix(),this.resetBBoxNeedsUpdate(),this.invalidateClonerTransform(this),this.traverseEntityAncestors(t=>{t.invalidateClonerTransform(this)}),this.requestRender())}dispose(){this.disposed=!0,this.cloner&&(this.cloner.dispose(),this.cloner=void 0)}disposeChildrenRecursively(){for(let t of this.children)at.is(t)&&t.disposeRecursively()}disposeRecursively(){this.dispose(),this.children.forEach(t=>{at.is(t)&&t.disposeRecursively()})}toState(e=[]){let i={name:this.name,visible:this.visible,raycastLock:this.raycastLock,...this.toObjectTransformState(e)};return t(i,e)}updateByObjUpdateOp(t,e){void 0!==t&&this.updateByOp({type:0,props:t,path:[]},{...this.data,...t},e,!1)}updateByOp(t,e,i,s){let o=this.data;this.data=e;let l=t,p=_(t.path,["states","*"]);if(null!==p){if(0===t.type){let[e]=p;if(this?.stateSelection===e){let e={...t.props};if(delete e.name,Object.values(t.props).some(t=>void 0===t)){let i=this.data;if(void 0!==i){let s=c.zoom(i,t.path.slice(2));if(s)for(let i in t.props)void 0===t.props[i]&&i in s&&(e[i]=s[i])}}l={...t,props:e,path:t.path.slice(2)}}}}else if(0===t.type){let e=this.stateSelection?this.data.states.data(this.stateSelection):void 0;if(void 0!==e){if(void 0!==t.props.name&&e.name){let{name:t,...i}=e;e=i}if(void 0!==t.props.material&&"material"in e){let{material:t,...i}=e;e=i}let i=c.removeOverridden(t.path,t.props,e);l={...t,props:i}}}if(this.updateByPatchedOpBase(l,n.patch(this.data,this.stateSelection?this.data.states.data(this.stateSelection):void 0),i),_(t.path,["overrides"])){let s=[],a=[...t.path];for(s.push(a[1]),a.splice(0,2);a.length>0&&"descendants"===a[0];)s.push(a[1]),a.splice(0,2);if(void 0===s[s.length-1]){if(0===t.type)for(let e of Object.keys(t.props)){s[s.length-1]=e;let r=i.scene.findInstance([this.uuid,...s]);r&&(r.overrideData=t.props[e],r.updateState(h.apply(r.component.data,r.overrideData),i))}}else{let n=i.scene.findInstance([this.uuid,...s]);if(n){let o=c.zoom(n.component.data,a);if(0===(t={...t,path:a}).type){let e=t.props;if(o)for(let[i,s]of Object.entries(t.props))void 0===s&&(e===t.props&&(e={...t.props}),e[i]=o[i]);t={...t,props:e}}n.overrideData=r.resolve(e.overrides,s),n.updateByOp(t,d.applySimple(n.data,t),i,!1)}}}else if(this.instances.length>0){let s;if(0===t.path.length&&0===t.type){let e;for(let i of a.rootOverrideProps)i in t.props&&(void 0===e&&(e={}),e[i]=t.props[i]);e&&(s={...t,props:e})}else for(let e of a.rootOverrideProps)if(_(t.path,[e])){s=t;break}void 0!==s&&this.instances.forEach(t=>{if(t.isInstanceRoot){let e=h.filterOp(t.overrideData,s);e&&t.updateByOp(e,d.applySimple(t.data,e),i,!0)}}),this.instances.forEach(s=>{if(!s.isInstanceRoot){let r=h.filterOp(s.overrideData,t);if(r){let a;a=o===s.data&&t===r?e:d.applySimple(s.data,r),s.updateByOp(r,a,i,!0)}}})}}updateByPatchedOpBase(t,e,i){if(this.dataPatched=e,0===t.path.length&&0===t.type)void 0!==t.props.type&&!o.is(t.props.type)&&D.changeEntityProptotype(this,this.data,i);else if(1===t.path.length&&"geometry"===t.path[0]&&0===t.type&&"type"in t.props){D.changeEntityProptotype(this,this.data,i);for(let t of this.children)at.is(t)&&t.updateVisible(i.scene)}this.updateByPatchedOp(t,e,i)}updateByPatchedOp(t,e,i){if(0===t.path.length&&0===t.type?this.updateState(t.props,i):0===t.type&&("resolutionLevel"in t.props||"useChildrenColors"in t.props)&&this.updateState(e,i),"morphTargetInfluences"===t.path[0]&&0===t.type){let s=e.morphTargetInfluences.get(t.path[1])?.data.name;s&&this.updateMorphInfluences(s,i.shared.getVariable(t.props.value,[this.uuid,"morphTargetInfluences",s]))}if(null!==_(t.path,["pathSnapping"])&&(this.updatePathSnapping(e.pathSnapping),this.isVirtualEntity&&i.scene?.syncInstancePathConstraint(this)),null!==_(t.path,["cloner"])){let s=d.drop(t,1);0===s.path.length&&0===s.type&&!0===s.props.disabled?this.setFromClonerState(null,i):this.cloner?this.cloner.updateState(e.cloner,i):(this.setFromClonerState(e.cloner,i),this.expandCloner(i)),this.updateVisible(i.scene)}}updatePathSnapping(t=this.dataPatched.pathSnapping){this._updatedPathSnapping=t,this._needApplyPathSnapping=!0}get updatedPathSnapping(){return this._updatedPathSnapping}applyPathSnapping(t){if(!1===this._needApplyPathSnapping)return;let e=this._updatedPathSnapping?.pathId??this.dataPatched.pathSnapping.pathId,i=this._updatedPathSnapping?.slide??this.dataPatched.pathSnapping.slide??0,s=this._updatedPathSnapping?.offset??this.dataPatched.pathSnapping.offset??0,r=this._updatedPathSnapping?.orientation??this.dataPatched.pathSnapping.orientation;if(null===e)return;let a=t.find(this.isVirtualEntity&&t.pathConstraints.getConstraint(this.uuid)||e);if(!a)return;this._needApplyPathSnapping=!1;let n=a.data;if(n.geometry.path.points.length<=1)return;let o=rt(n.geometry.path),l=function(t){let e=t%1;return e<0?e+1:0===e&&t>0?1:e}(i+s),h=null;try{h=o.curves.length?o.getPointAt(l):null}catch(t){}if(null===h)return;a.updateMatrixWorld();let p=this.parent?xt.copy(this.parent.matrixWorld):xt.identity(),d=function(t,e,i,s){ot.setFromRotationMatrix(nt.extractRotation(s));let r=t.clone().applyMatrix4(nt.copy(s).invert().multiply(i));if(null===e)lt.setFromRotationMatrix(nt.extractRotation(i));else{let t=e.clone().applyMatrix4(nt.extractRotation(i));lt.setFromRotationMatrix(nt.lookAt(pt.set(0,0,0),t,dt))}return{position:r,rotation:(new f).setFromEuler(ht.setFromQuaternion(ot.invert().multiply(lt))).multiplyScalar(u.RAD2DEG)}}(h,"tangential"===r?o.getTangentAt(l):null,a.matrixWorld,p);this.updateTransformState({position:d.position.toArray(),rotation:d.rotation.toArray()}),this.traverseEntity(t=>{t._cameraType&&t.dispatchEvent(ut)})}updateVisible(t){if(this.visible=this.dataPatched.visible&&(!this.dataPatched.cloner||(this.dataPatched.cloner.disabled??!1)||!0!==this.dataPatched.cloner?.hideBase),!t)return;let e=!1;this.traverseEntity(t=>{if("Splat"===t.data.type)return e=!0,!0}),e&&t.reloadSplats()}updateState_Entity(t,e){void 0!==t.name&&(this.name=t.name),void 0!==t.raycastLock&&(this.raycastLock=t.raycastLock),void 0!==t.visible&&(this.updateVisible(e?.scene),this.resetBBoxNeedsUpdate()),e&&"cloner"in t&&void 0!==t.cloner&&(this.setFromClonerState(t.cloner,e),this.updateVisible(e.scene)),this.updateTransformState(t,e)}get attachedSurfaceCloners(){return this.children.filter(t=>e(t)&&"toObject"===t.parameters.type)}setFromClonerState(t,e){if(!this.disposed)if(null===t||t.disabled)this.cloner&&this.cloner.dispose(),this.cloner=void 0;else if(void 0===this.cloner){if(null===D.Cloner)return void i("cloners","a cloner");this.cloner=new D.Cloner(this,t),e.scene.addPendingExpandCloner(this)}else this.cloner.updateState(t,e)}expandCloner(t){!this.disposed&&this.cloner&&this.cloner.expandClones(t)}invalidateClonerTransform(t){this.cloner&&this.cloner.invalidateTransform(t)}requestRender(){this.dispatchEvent({type:"requestRender"})}},wt=class{static create(t){return this.build(this.normalizeInputs(t))}static normalizeInputs(t,e){let i=Object.assign({},e?.parameters??{width:100,revolutions:2,segments:40,pathRadius:10,pathType:0,pathSegments:30,cornerRadius:30,cornerSegments:4},t.parameters),s=Math.abs(i.width),r=Math.abs(i.height??s),a=Math.abs(i.depth??s),n=Math.abs(Math.min(s,a))/2;return{parameters:Object.assign(i,{width:s,height:r,depth:a,radius:n,segments:Math.round(i.segments),pathSegments:Math.round(i.pathSegments),cornerSegments:Math.round(i.cornerSegments)})}}static build(t){let{width:e,height:i,depth:s,radius:r,revolutions:a,segments:n,pathRadius:o,pathType:l,pathSegments:h,cornerRadius:p,cornerSegments:d}=t.parameters,c=new Et(!1,e,i,s,r,a,n,o,l,h,p,d);return Object.assign(c,{userData:{...t,type:"HelixGeometry"}})}},Mt=new b([0,0,0],1);function bt(t){return"TorusGeometry"===t.type&&360===t.arc}var Bt,Pt,Et=class extends E{constructor(t=!0,e=1,i=1,s=1,r=1,a=1,n=1,o=1,l=1,h=1,p=1,d=1){if(super(),0===a)return;let c=t&&1===a;c&&(d=0),p>100&&(p=100),0===p&&(d=0);let u,m,y,v,g,x,S,w,M=()=>new f,b=new f,P=M(),E=M(),A=M(),C=M(),D=M(),O=M(),_=M(),V=M(),W=M(),R=M(),T=M(),U=i-2*o+.001,I=U/a,L=Math.ceil(n*a),F=L+1,z=U/L,j=-U/2,N=h+1,k=2*Math.PI/h,G=Math.PI/2/d,q=Math.min((1-p/100)*o,o-.01),H=o-q,Q=0,Z=2*d+2,J=N*Z/2,K=J+N*F,X=Math.max(0,N*(F+Z)),[Y,$,tt]=[3,3,2].map(t=>Array(X*t).fill(0)),et=[],it=r-o;function st(e,i){let s=Math.PI/2;x=i*z,w=2*Math.PI*(x%I)/I+s,x+=j,S=Math.sin(w)*it,g=Math.cos(w)*it,t?e.set(g,S,x):e.set(g,x,S)}st(b,-1e-10),st(P,0),C.copy(b),st(b,1);let rt=b.distanceTo(P),at=c?0:H+q,nt=rt*L+2*at,ot=q,lt=nt-at;for(let e=0;e<=L;e++){st(E,e),T.subVectors(E,C).normalize(),C.copy(E),W.copy(E).setComponent(+t+1,0).normalize(),R.crossVectors(T,W).normalize();let i=0===e,s=e===L,r=i?3*Math.PI/2:G,a=i?ot:lt,n=i?N:K,l=i?0:X-N,p=T.clone().multiplyScalar(i?-H:H).add(E),u=T.clone().multiplyScalar(i?-1:1).normalize();for(let t=0;t<N;t++){let m=t*k;if(D.addVectors(b.copy(W).multiplyScalar(o*Math.cos(m)),P.copy(R).multiplyScalar(o*Math.sin(m))),O.copy(D).normalize(),i||s){c||(Q=l+t,[0,1,2].forEach(t=>{Y[3*Q+t]=p.getComponent(t),$[3*Q+t]=u.getComponent(t)}),tt[2*Q]=+s,tt[2*Q+1]=t/h),P.copy(O).multiplyScalar(q),A.addVectors(E,P);for(let e=0;e<d;e++){let s=e*G+r;_.addVectors(b.copy(T).multiplyScalar(H*Math.sin(s)),P.copy(O).multiplyScalar(H*Math.cos(s))),V.copy(_).normalize(),P.addVectors(A,_),_.normalize(),Q=n+e*N+t,[0,1,2].forEach(t=>{Y[3*Q+t]=P.getComponent(t),$[3*Q+t]=V.getComponent(t)});let o=+i+Math.sin(s);tt[2*Q]=(a+H*o)/nt,tt[2*Q+1]=t/h}}P.addVectors(E,D),Q=J+e*N+t,[0,1,2].forEach(t=>{Y[3*Q+t]=P.getComponent(t),$[3*Q+t]=O.getComponent(t)}),tt[2*Q]=(at+e*rt)/nt,tt[2*Q+1]=t/h}}let ht=F+2*d+2,[pt,dt]=[+c,ht-1];for(let t=pt;t<=dt-1;t++){let e=c&&t===dt-1;for(let i=0;i<N-1;i++)u=t*N+i,m=u+1,y=(e?i:u)+N,v=(e?i+1:m)+N,0===t?et.push(m,v,y):t===ht-2?et.push(u,m,y):et.push(u,m,y,m,v,y)}this.setIndex(et),this.setAttribute("position",new B(Y,3)),this.setAttribute("normal",new B($,3)),this.setAttribute("uv",new B(tt,2))}getClosedTorusIndicesForBooleanOrSubdiv(){let t,e,i,s,r=this.userData.parameters,a=Math.ceil(r.tubularSegments),n=r.radialSegments,o=n+1,l=[];for(let r=1;r<a;r++)for(let a=0;a<n;a++)t=r*o+a,e=t+1,i=t+o,s=e+o,l.push(t,e,i,e,s,i);for(let r=0;r<n;r++)t=a*o+r,e=t+1,i=r+o,s=r+1+o,l.push(t,e,i,e,s,i);return Mt.array=new Uint32Array(l),Mt.count=l.length,Mt}},At=new Map,Ct=0;function Dt(t){return Pt||(Pt=async function(){let e=t??"https://cdn.spline.design/@splinetool/runtime@2.0.123/build",i=import("./boolean.js"),[s,r]=await Promise.all([i,fetch(`${e}/boolean.wasm`).then(t=>t.arrayBuffer())]);await s.default({module_or_path:r}),Bt=s}())}function Ot(){if(void 0===Bt)throw new Error("boolean-wasm is not loaded");return Bt}function _t(t){let e=At.get(t);if(void 0===e)throw new Error("Unknown csg mesh set handle "+t);return e}function Vt(t){return At.set(++Ct,t),Ct}var Wt={0:0,1:1,2:2};function Rt(t,e,i){if(void 0===Bt)return-1;let{positions:s,indices:r,normals:a}=function(t,e){if(e&&void 0!==t.userData.positions){let e=t.userData,i=[];for(let t=0,s=0;t<e.verticesPerFace.length;t++){let r=e.verticesPerFace[t];for(let t=1;t<r-1;t++)i.push(e.indices[s],e.indices[s+t],e.indices[s+t+1]);s+=r}return{positions:e.positions instanceof Float32Array?e.positions:new Float32Array(e.positions),indices:new Uint32Array(i)}}let i;i=bt(t.userData.parameters)?t.getClosedTorusIndicesForBooleanOrSubdiv():t.getIndex();let s,r=t.getAttribute("position");if(null===i){s=new Uint32Array(r.count);for(let t=0;t<s.length;t++)s[t]=t}else s=i.array instanceof Uint32Array?i.array:new Uint32Array(i.array);let a=t.getAttribute("normal"),n=void 0!==a&&3===a.itemSize&&a.count===r.count&&a.array instanceof Float32Array&&!0!==a.isInterleavedBufferAttribute?a.array:void 0;return{positions:r.array,indices:s,normals:n}}(t,e);return Vt(new Bt.CsgMesh(s,r,a))}function Tt(t,e){let i=Ot(),s=Wt[e];if(void 0===s)throw new Error("Unknown boolean operation "+e);let r=t.map(_t);if(1===r.length)return i.clone_mesh(r[0]);let a,n=[];if(2===e&&r.length>2){let t=r[0];for(let e=1;e<r.length-1;e++)t=i.boolean_mesh(t,r[e],0),n.push(t);a=i.boolean_mesh(r[r.length-1],t,2)}else if(2===e)a=i.boolean_mesh(r[1],r[0],2);else{let t=r[r.length-1];for(let e=0;e<r.length-1&&(t=i.boolean_mesh(t,r[e],s),n.push(t),0!==t.tri_count());e++);a=t,n.pop()}for(let t of n)t.free();return a}function Ut(t,e,i,s){let r=Ot(),a=Tt(t,e),n=r.mesh_render_data(a,Math.max(s,0));if(i.setAttribute("position",new B(n.positions(),3)),i.setAttribute("normal",new B(n.normals(),3)),n.free(),null===i.boundingSphere&&(i.boundingSphere=new P),0===a.tri_count())i.boundingSphere.center.set(0,0,0),i.boundingSphere.radius=0,i.userData.parameters={width:0,height:0,depth:0};else{let t=a.bounds();i.boundingSphere.center.set(t[0],t[1],t[2]),i.boundingSphere.radius=(t[3]**2+t[4]**2+t[5]**2)**.5,i.userData.parameters={width:2*t[3],height:2*t[4],depth:2*t[5]}}return Vt(a)}function It(t,e){let i=Ot(),s=Tt(t,e),r=i.mesh_topological_data(s),a=r.positions(),n=r.indices();return r.free(),s.free(),{positions:a,indices:n,verticesPerFace:new Uint8Array(n.length/3).fill(3)}}function Lt(t,e){_t(t).transform(new Float32Array(e.elements))}function Ft(t){let e=At.get(t);void 0!==e&&(e.free(),At.delete(t))}function zt(t,e){return Vt(Ot().instanced_union(_t(t),e))}function jt(t){return null!==t&&"booleanOp"in t}var Nt=class extends(St(C)){constructor(){super(...arguments),this.booleanMeshSetAddress=-1,this.booleanWasTransformed=!1,this.booleanMatrixInvOld=new v}updateVisible(t){super.updateVisible(t),this.visible=!jt(this.parent)&&this.visible,jt(this.parent)&&this.parent.invalidateDownstreamBooleanData()}onClonerLayoutUpdated(){jt(this.parent)&&this.invalidateDownstreamBooleanData()}freeBooleanPointer(){-1!==this.booleanMeshSetAddress&&(Ft(this.booleanMeshSetAddress),this.booleanMeshSetAddress=-1)}dispose(){super.dispose(),this.freeBooleanPointer()}invalidateDownstreamBooleanData(t=!1){return t?this.booleanWasTransformed=!0:this.freeBooleanPointer(),jt(this.parent)?this.parent.invalidateDownstreamBooleanData():this}invalidateUpstreamBooleanData(){this.freeBooleanPointer();for(let t of this.children)t instanceof Nt&&(t.freeBooleanPointer(),jt(t)&&t.invalidateUpstreamBooleanData())}updateTransformState(t,e){let i=super.updateTransformState(t,e);return i&&jt(this.parent)&&this.invalidateDownstreamBooleanData(!0),i}onVariableUpdate(t=!1){super.onVariableUpdate(t),jt(this.parent)&&this.invalidateDownstreamBooleanData(!0)}},kt=new M;function Gt(t,e=0,i=t.count,s,r){let a=1/0,n=1/0,o=1/0,l=-1/0,h=-1/0,p=-1/0;for(let s=e;s<i;s++){let e=t.getX(s),i=t.getY(s),r=t.getZ(s);e<a&&(a=e),i<n&&(n=i),r<o&&(o=r),e>l&&(l=e),i>h&&(h=i),r>p&&(p=r)}kt.min.set(a,n,o),kt.max.set(l,h,p),kt.getCenter(s),kt.getSize(r).multiplyScalar(.5)}var qt=new E,Ht=new A,Qt=class extends Nt{constructor(t,e){super(qt,Ht),this.super_Entity(t,e)}updateState(t,e){this.updateState_Entity(t,e)}raycast(t,e){if(this.raycastDeformed(t,e))return;super.raycast(t,e)}raycastDeformed(t,e){return!1}updateEntityBoxSize(t,e){let i=this.geometry.getAttribute("position");void 0!==i?Gt(i,this.geometry.drawRange.start,this.geometry.drawRange.count<1/0?this.geometry.drawRange.count:i.count,t,e):super.updateEntityBoxSize(t,e)}};export{O as a,_ as b,D as c,j as d,N as e,G as f,rt as g,at as h,ct as i,St as j,wt as k,bt as l,Et as m,Dt as n,Rt as o,Ut as p,It as q,Lt as r,Ft as s,zt as t,Gt as u,Qt as v};
@@ -1 +1 @@
1
- import{na as t}from"./runtime-chunk-CGATHHPB.js";import{Hc as e,Qc as r,ld as i}from"./runtime-chunk-KPOUV3HD.js";var s=new e,n=new r,a=new i,h=class extends t{constructor(t,e,r){super(t,e,r),this.data=e}get textGeometry(){return this.geometry}get charWidths(){return this.textGeometry.charWidths}get charCoords(){return this.textGeometry.charCoords}get wrappedText(){return this.textGeometry.wrappedText}get font(){return this.textGeometry.font}get initialOffsetY(){let t=this.dataPatched;return this.font?.getLineInitialOffsetY(this.lineHeight,this.wrappedText.length,"number"==typeof t.geometry.height?t.geometry.height:1,this.fontScale,t.geometry.verticalAlign)??0}get fontScale(){let t=this.dataPatched;return this.font?t.geometry.fontSize/this.font.unitsPerEm:1}get AD(){return Math.abs(this.ascender-this.descender)}get ascender(){return(this.font?.ascender??1)*this.fontScale}get descender(){return(this.font?.descender??1)*this.fontScale}get lineHeight(){let t=this.dataPatched;return t.geometry.fontSize*t.geometry.lineHeight}raycast(t,e){let{matrixWorld:r}=this;if(!isNaN(t.ray.origin.x)&&0!==this.scale.x&&0!==this.scale.y&&0!==this.scale.z&&(n.copy(r).invert(),a.copy(t.ray).applyMatrix4(n),a.intersectBox(this.singleBBox,s))){let i=s.applyMatrix4(r),n=t.ray.origin.distanceTo(i);e.push({distance:n,point:i.clone(),object:this})}}};export{h as a};
1
+ import{na as t}from"./runtime-chunk-JQCHQ4ER.js";import{Hc as e,Qc as r,ld as i}from"./runtime-chunk-KPOUV3HD.js";var s=new e,n=new r,a=new i,h=class extends t{constructor(t,e,r){super(t,e,r),this.data=e}get textGeometry(){return this.geometry}get charWidths(){return this.textGeometry.charWidths}get charCoords(){return this.textGeometry.charCoords}get wrappedText(){return this.textGeometry.wrappedText}get font(){return this.textGeometry.font}get initialOffsetY(){let t=this.dataPatched;return this.font?.getLineInitialOffsetY(this.lineHeight,this.wrappedText.length,"number"==typeof t.geometry.height?t.geometry.height:1,this.fontScale,t.geometry.verticalAlign)??0}get fontScale(){let t=this.dataPatched;return this.font?t.geometry.fontSize/this.font.unitsPerEm:1}get AD(){return Math.abs(this.ascender-this.descender)}get ascender(){return(this.font?.ascender??1)*this.fontScale}get descender(){return(this.font?.descender??1)*this.fontScale}get lineHeight(){let t=this.dataPatched;return t.geometry.fontSize*t.geometry.lineHeight}raycast(t,e){let{matrixWorld:r}=this;if(!isNaN(t.ray.origin.x)&&0!==this.scale.x&&0!==this.scale.y&&0!==this.scale.z&&(n.copy(r).invert(),a.copy(t.ray).applyMatrix4(n),a.intersectBox(this.singleBBox,s))){let i=s.applyMatrix4(r),n=t.ray.origin.distanceTo(i);e.push({distance:n,point:i.clone(),object:this})}}};export{h as a};