@splinetool/runtime 2.0.15 → 2.0.16

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 (263) hide show
  1. package/build/{runtime-chunk-EURKOMHL.js → runtime-chunk-4V44BUT4.js} +1 -1
  2. package/build/runtime-chunk-4V44BUT4.js.br +0 -0
  3. package/build/runtime-chunk-4V44BUT4.js.gz +0 -0
  4. package/build/{runtime-chunk-FBCD3R36.js → runtime-chunk-6N4VUXSU.js} +1 -1
  5. package/build/runtime-chunk-6N4VUXSU.js.br +0 -0
  6. package/build/runtime-chunk-6N4VUXSU.js.gz +0 -0
  7. package/build/{runtime-chunk-YMIF427N.js → runtime-chunk-B4C7LB2B.js} +1 -1
  8. package/build/runtime-chunk-B4C7LB2B.js.br +0 -0
  9. package/build/runtime-chunk-B4C7LB2B.js.gz +0 -0
  10. package/build/{runtime-chunk-L5RCWNDQ.js → runtime-chunk-BRGVQTZR.js} +1 -1
  11. package/build/{runtime-chunk-L5RCWNDQ.js.br → runtime-chunk-BRGVQTZR.js.br} +0 -0
  12. package/build/runtime-chunk-BRGVQTZR.js.gz +0 -0
  13. package/build/{runtime-chunk-BPAFNLII.js → runtime-chunk-C222NS5V.js} +1 -1
  14. package/build/runtime-chunk-C222NS5V.js.br +0 -0
  15. package/build/runtime-chunk-C222NS5V.js.gz +0 -0
  16. package/build/{runtime-chunk-Q6APYTMQ.js → runtime-chunk-C4UCKW24.js} +1 -1
  17. package/build/runtime-chunk-C4UCKW24.js.br +0 -0
  18. package/build/runtime-chunk-C4UCKW24.js.gz +0 -0
  19. package/build/{runtime-chunk-UMZFXXKA.js → runtime-chunk-EOAWSAVM.js} +1 -1
  20. package/build/runtime-chunk-EOAWSAVM.js.br +0 -0
  21. package/build/runtime-chunk-EOAWSAVM.js.gz +0 -0
  22. package/build/{runtime-chunk-JTCRHTP5.js → runtime-chunk-EOITBA75.js} +1 -1
  23. package/build/runtime-chunk-EOITBA75.js.br +0 -0
  24. package/build/runtime-chunk-EOITBA75.js.gz +0 -0
  25. package/build/{runtime-chunk-CUHMXXUJ.js → runtime-chunk-HHAC2SNT.js} +1 -1
  26. package/build/runtime-chunk-HHAC2SNT.js.br +0 -0
  27. package/build/runtime-chunk-HHAC2SNT.js.gz +0 -0
  28. package/build/{runtime-chunk-V3MCHOOI.js → runtime-chunk-HWCLX3MX.js} +1 -1
  29. package/build/runtime-chunk-HWCLX3MX.js.br +0 -0
  30. package/build/runtime-chunk-HWCLX3MX.js.gz +0 -0
  31. package/build/{runtime-chunk-P6BXMQGY.js → runtime-chunk-IHQG4FS7.js} +1 -1
  32. package/build/runtime-chunk-IHQG4FS7.js.br +0 -0
  33. package/build/runtime-chunk-IHQG4FS7.js.gz +0 -0
  34. package/build/{runtime-chunk-NW52Q4HD.js → runtime-chunk-OMTLYUU2.js} +1 -1
  35. package/build/runtime-chunk-OMTLYUU2.js.br +0 -0
  36. package/build/runtime-chunk-OMTLYUU2.js.gz +0 -0
  37. package/build/{runtime-chunk-HOLN2XJ4.js → runtime-chunk-OPUEULYT.js} +1 -1
  38. package/build/runtime-chunk-OPUEULYT.js.br +0 -0
  39. package/build/runtime-chunk-OPUEULYT.js.gz +0 -0
  40. package/build/{runtime-chunk-4ZQPPXYQ.js → runtime-chunk-PTQSKVSN.js} +1 -1
  41. package/build/runtime-chunk-PTQSKVSN.js.br +0 -0
  42. package/build/runtime-chunk-PTQSKVSN.js.gz +0 -0
  43. package/build/{runtime-chunk-B5VICREM.js → runtime-chunk-RB2YUXYT.js} +1 -1
  44. package/build/runtime-chunk-RB2YUXYT.js.br +0 -0
  45. package/build/runtime-chunk-RB2YUXYT.js.gz +0 -0
  46. package/build/{runtime-chunk-SCSWZU4Q.js → runtime-chunk-SUKB2OT6.js} +1 -1
  47. package/build/runtime-chunk-SUKB2OT6.js.br +0 -0
  48. package/build/runtime-chunk-SUKB2OT6.js.gz +0 -0
  49. package/build/{runtime-chunk-INCMRA3G.js → runtime-chunk-U3O6AK7G.js} +1 -1
  50. package/build/{runtime-chunk-INCMRA3G.js.br → runtime-chunk-U3O6AK7G.js.br} +0 -0
  51. package/build/{runtime-chunk-INCMRA3G.js.gz → runtime-chunk-U3O6AK7G.js.gz} +0 -0
  52. package/build/{runtime-chunk-4PHTCO6X.js → runtime-chunk-UHC42CMW.js} +1 -1
  53. package/build/runtime-chunk-UHC42CMW.js.br +0 -0
  54. package/build/runtime-chunk-UHC42CMW.js.gz +0 -0
  55. package/build/{runtime-chunk-RTPMYX3U.js → runtime-chunk-UIJZIWN4.js} +1 -1
  56. package/build/runtime-chunk-UIJZIWN4.js.br +0 -0
  57. package/build/runtime-chunk-UIJZIWN4.js.gz +0 -0
  58. package/build/{runtime-chunk-S6TASSEZ.js → runtime-chunk-UUXCNAV7.js} +1 -1
  59. package/build/runtime-chunk-UUXCNAV7.js.br +0 -0
  60. package/build/runtime-chunk-UUXCNAV7.js.gz +0 -0
  61. package/build/{runtime-chunk-RE6425XL.js → runtime-chunk-VDW6UL2I.js} +1 -1
  62. package/build/runtime-chunk-VDW6UL2I.js.br +0 -0
  63. package/build/runtime-chunk-VDW6UL2I.js.gz +0 -0
  64. package/build/{runtime-chunk-YEEI5QDH.js → runtime-chunk-WIWW5RJN.js} +1 -1
  65. package/build/runtime-chunk-WIWW5RJN.js.br +0 -0
  66. package/build/runtime-chunk-WIWW5RJN.js.gz +0 -0
  67. package/build/{runtime-chunk-NS6KQNJR.js → runtime-chunk-X5OX4DSZ.js} +1 -1
  68. package/build/runtime-chunk-X5OX4DSZ.js.br +0 -0
  69. package/build/runtime-chunk-X5OX4DSZ.js.gz +0 -0
  70. package/build/{runtime-chunk-VRG5QXYH.js → runtime-chunk-XUTYOBLR.js} +1 -1
  71. package/build/runtime-chunk-XUTYOBLR.js.br +0 -0
  72. package/build/runtime-chunk-XUTYOBLR.js.gz +0 -0
  73. package/build/{runtime-chunk-3C3OTY6U.js → runtime-chunk-ZCK4Z4EH.js} +1 -1
  74. package/build/runtime-chunk-ZCK4Z4EH.js.br +0 -0
  75. package/build/runtime-chunk-ZCK4Z4EH.js.gz +0 -0
  76. package/build/{runtime-classicRuntime-FK6D43S4.js → runtime-classicRuntime-IAEBXWWG.js} +1 -1
  77. package/build/runtime-classicRuntime-IAEBXWWG.js.br +0 -0
  78. package/build/runtime-classicRuntime-IAEBXWWG.js.gz +0 -0
  79. package/build/{runtime-cloners-OJTAHMC3.js → runtime-cloners-6MEAJ65W.js} +1 -1
  80. package/build/runtime-cloners-6MEAJ65W.js.br +0 -0
  81. package/build/runtime-cloners-6MEAJ65W.js.gz +0 -0
  82. package/build/{runtime-components-BRNBBEXJ.js → runtime-components-CRKL2ZGZ.js} +1 -1
  83. package/build/runtime-components-CRKL2ZGZ.js.br +0 -0
  84. package/build/runtime-components-CRKL2ZGZ.js.gz +0 -0
  85. package/build/{runtime-createDestroy-7C3QZWJD.js → runtime-createDestroy-D7TLBP5H.js} +1 -1
  86. package/build/runtime-createDestroy-D7TLBP5H.js.br +0 -0
  87. package/build/runtime-createDestroy-D7TLBP5H.js.gz +0 -0
  88. package/build/{runtime-dragDrop-4UUXLWHY.js → runtime-dragDrop-2EATJCGV.js} +1 -1
  89. package/build/runtime-dragDrop-2EATJCGV.js.br +0 -0
  90. package/build/runtime-dragDrop-2EATJCGV.js.gz +0 -0
  91. package/build/{runtime-gameControls-46CXQQLQ.js → runtime-gameControls-GRH3XFUT.js} +1 -1
  92. package/build/runtime-gameControls-GRH3XFUT.js.br +0 -0
  93. package/build/runtime-gameControls-GRH3XFUT.js.gz +0 -0
  94. package/build/{runtime-hair-AE4DFQ6X.js → runtime-hair-MSBLDKXL.js} +1 -1
  95. package/build/runtime-hair-MSBLDKXL.js.br +2 -0
  96. package/build/runtime-hair-MSBLDKXL.js.gz +0 -0
  97. package/build/{runtime-mergeStaticGeometries-QJHAWRMG.js → runtime-mergeStaticGeometries-5TVLIGDN.js} +1 -1
  98. package/build/runtime-mergeStaticGeometries-5TVLIGDN.js.br +0 -0
  99. package/build/runtime-mergeStaticGeometries-5TVLIGDN.js.gz +0 -0
  100. package/build/{runtime-miscActions-RRNH7EQU.js → runtime-miscActions-5FKGJYQ4.js} +1 -1
  101. package/build/runtime-miscActions-5FKGJYQ4.js.br +0 -0
  102. package/build/runtime-miscActions-5FKGJYQ4.js.gz +0 -0
  103. package/build/{runtime-mouseHover-2BQTD5IN.js → runtime-mouseHover-JA4CJZDB.js} +1 -1
  104. package/build/runtime-mouseHover-JA4CJZDB.js.br +0 -0
  105. package/build/runtime-mouseHover-JA4CJZDB.js.gz +0 -0
  106. package/build/{runtime-particles-WLJJTH3A.js → runtime-particles-OZJ2YUNM.js} +1 -1
  107. package/build/runtime-particles-OZJ2YUNM.js.br +0 -0
  108. package/build/runtime-particles-OZJ2YUNM.js.gz +0 -0
  109. package/build/{runtime-paths-I5X2JZCC.js → runtime-paths-ZV4YTOEY.js} +1 -1
  110. package/build/runtime-paths-ZV4YTOEY.js.br +0 -0
  111. package/build/runtime-paths-ZV4YTOEY.js.gz +0 -0
  112. package/build/{runtime-resize-Z4YK22QG.js → runtime-resize-MPSPTIHT.js} +1 -1
  113. package/build/runtime-resize-MPSPTIHT.js.br +0 -0
  114. package/build/runtime-resize-MPSPTIHT.js.gz +0 -0
  115. package/build/{runtime-sceneTransition-KNNPTDKC.js → runtime-sceneTransition-QRGYUBTR.js} +1 -1
  116. package/build/runtime-sceneTransition-QRGYUBTR.js.br +0 -0
  117. package/build/runtime-sceneTransition-QRGYUBTR.js.gz +0 -0
  118. package/build/{runtime-scroll-Q2IWTTSW.js → runtime-scroll-EGZ5ROW6.js} +1 -1
  119. package/build/runtime-scroll-EGZ5ROW6.js.br +0 -0
  120. package/build/runtime-scroll-EGZ5ROW6.js.gz +0 -0
  121. package/build/runtime-shapeBlends-LSVA2H6A.js +1 -0
  122. package/build/runtime-shapeBlends-LSVA2H6A.js.br +2 -0
  123. package/build/runtime-shapeBlends-LSVA2H6A.js.gz +0 -0
  124. package/build/{runtime-text-FAE5FMAD.js → runtime-text-7O7CYADG.js} +1 -1
  125. package/build/runtime-text-7O7CYADG.js.br +0 -0
  126. package/build/runtime-text-7O7CYADG.js.gz +0 -0
  127. package/build/{runtime-textInputs-WYF6SIBJ.js → runtime-textInputs-Y77C2A6Y.js} +1 -1
  128. package/build/runtime-textInputs-Y77C2A6Y.js.br +0 -0
  129. package/build/runtime-textInputs-Y77C2A6Y.js.gz +0 -0
  130. package/build/{runtime-timeline-Z6VDQLZB.js → runtime-timeline-ZJ24PFAW.js} +1 -1
  131. package/build/runtime-timeline-ZJ24PFAW.js.br +0 -0
  132. package/build/runtime-timeline-ZJ24PFAW.js.gz +0 -0
  133. package/build/{runtime-tracking-GFIOSMZY.js → runtime-tracking-JEDTOMFE.js} +1 -1
  134. package/build/runtime-tracking-JEDTOMFE.js.br +0 -0
  135. package/build/runtime-tracking-JEDTOMFE.js.gz +0 -0
  136. package/build/{runtime-transitions-FW5TZCPG.js → runtime-transitions-NP22MHBN.js} +1 -1
  137. package/build/runtime-transitions-NP22MHBN.js.br +0 -0
  138. package/build/runtime-transitions-NP22MHBN.js.gz +0 -0
  139. package/build/{runtime-ui2d-IDI2FX5R.js → runtime-ui2d-JPC6RUQ5.js} +1 -1
  140. package/build/runtime-ui2d-JPC6RUQ5.js.br +0 -0
  141. package/build/runtime-ui2d-JPC6RUQ5.js.gz +0 -0
  142. package/build/{runtime-vectorShapes-NRQIV2ZX.js → runtime-vectorShapes-NFY542TW.js} +1 -1
  143. package/build/runtime-vectorShapes-NFY542TW.js.br +0 -0
  144. package/build/runtime-vectorShapes-NFY542TW.js.gz +0 -0
  145. package/build/{runtime-webgpu-GCEL6FIJ.js → runtime-webgpu-F6GGNIBN.js} +1 -1
  146. package/build/runtime-webgpu-F6GGNIBN.js.br +0 -0
  147. package/build/runtime-webgpu-F6GGNIBN.js.gz +0 -0
  148. package/build/runtime.cjs +5 -5
  149. package/build/runtime.js +1 -1
  150. package/build/runtime.js.br +0 -0
  151. package/build/runtime.js.gz +0 -0
  152. package/build/runtime.standalone.js +1 -1
  153. package/build/runtime.standalone.js.br +0 -0
  154. package/build/runtime.standalone.js.gz +0 -0
  155. package/build/runtime.standalone.webgl.js +1 -1
  156. package/build/runtime.standalone.webgl.js.br +0 -0
  157. package/build/runtime.standalone.webgl.js.gz +0 -0
  158. package/build/runtime.standalone.webgpu.js +1 -1
  159. package/build/runtime.standalone.webgpu.js.br +0 -0
  160. package/build/runtime.standalone.webgpu.js.gz +0 -0
  161. package/build/runtime.standalone.webgpu.micro.js +1 -1
  162. package/build/runtime.standalone.webgpu.micro.js.br +0 -0
  163. package/build/runtime.standalone.webgpu.micro.js.gz +0 -0
  164. package/build/runtime.standalone.webgpu.min.js +1 -1
  165. package/build/runtime.standalone.webgpu.min.js.br +0 -0
  166. package/build/runtime.standalone.webgpu.min.js.gz +0 -0
  167. package/package.json +1 -1
  168. package/build/runtime-chunk-3C3OTY6U.js.br +0 -0
  169. package/build/runtime-chunk-3C3OTY6U.js.gz +0 -0
  170. package/build/runtime-chunk-4PHTCO6X.js.br +0 -0
  171. package/build/runtime-chunk-4PHTCO6X.js.gz +0 -0
  172. package/build/runtime-chunk-4ZQPPXYQ.js.br +0 -0
  173. package/build/runtime-chunk-4ZQPPXYQ.js.gz +0 -0
  174. package/build/runtime-chunk-B5VICREM.js.br +0 -2
  175. package/build/runtime-chunk-B5VICREM.js.gz +0 -0
  176. package/build/runtime-chunk-BPAFNLII.js.br +0 -0
  177. package/build/runtime-chunk-BPAFNLII.js.gz +0 -0
  178. package/build/runtime-chunk-CUHMXXUJ.js.br +0 -0
  179. package/build/runtime-chunk-CUHMXXUJ.js.gz +0 -0
  180. package/build/runtime-chunk-EURKOMHL.js.br +0 -0
  181. package/build/runtime-chunk-EURKOMHL.js.gz +0 -0
  182. package/build/runtime-chunk-FBCD3R36.js.br +0 -0
  183. package/build/runtime-chunk-FBCD3R36.js.gz +0 -0
  184. package/build/runtime-chunk-HOLN2XJ4.js.br +0 -0
  185. package/build/runtime-chunk-HOLN2XJ4.js.gz +0 -0
  186. package/build/runtime-chunk-JTCRHTP5.js.br +0 -0
  187. package/build/runtime-chunk-JTCRHTP5.js.gz +0 -0
  188. package/build/runtime-chunk-L5RCWNDQ.js.gz +0 -0
  189. package/build/runtime-chunk-NS6KQNJR.js.br +0 -0
  190. package/build/runtime-chunk-NS6KQNJR.js.gz +0 -0
  191. package/build/runtime-chunk-NW52Q4HD.js.br +0 -0
  192. package/build/runtime-chunk-NW52Q4HD.js.gz +0 -0
  193. package/build/runtime-chunk-P6BXMQGY.js.br +0 -0
  194. package/build/runtime-chunk-P6BXMQGY.js.gz +0 -0
  195. package/build/runtime-chunk-Q6APYTMQ.js.br +0 -0
  196. package/build/runtime-chunk-Q6APYTMQ.js.gz +0 -0
  197. package/build/runtime-chunk-RE6425XL.js.br +0 -0
  198. package/build/runtime-chunk-RE6425XL.js.gz +0 -0
  199. package/build/runtime-chunk-RTPMYX3U.js.br +0 -0
  200. package/build/runtime-chunk-RTPMYX3U.js.gz +0 -0
  201. package/build/runtime-chunk-S6TASSEZ.js.br +0 -0
  202. package/build/runtime-chunk-S6TASSEZ.js.gz +0 -0
  203. package/build/runtime-chunk-SCSWZU4Q.js.br +0 -0
  204. package/build/runtime-chunk-SCSWZU4Q.js.gz +0 -0
  205. package/build/runtime-chunk-UMZFXXKA.js.br +0 -0
  206. package/build/runtime-chunk-UMZFXXKA.js.gz +0 -0
  207. package/build/runtime-chunk-V3MCHOOI.js.br +0 -0
  208. package/build/runtime-chunk-V3MCHOOI.js.gz +0 -0
  209. package/build/runtime-chunk-VRG5QXYH.js.br +0 -0
  210. package/build/runtime-chunk-VRG5QXYH.js.gz +0 -0
  211. package/build/runtime-chunk-YEEI5QDH.js.br +0 -0
  212. package/build/runtime-chunk-YEEI5QDH.js.gz +0 -0
  213. package/build/runtime-chunk-YMIF427N.js.br +0 -0
  214. package/build/runtime-chunk-YMIF427N.js.gz +0 -0
  215. package/build/runtime-classicRuntime-FK6D43S4.js.br +0 -0
  216. package/build/runtime-classicRuntime-FK6D43S4.js.gz +0 -0
  217. package/build/runtime-cloners-OJTAHMC3.js.br +0 -0
  218. package/build/runtime-cloners-OJTAHMC3.js.gz +0 -0
  219. package/build/runtime-components-BRNBBEXJ.js.br +0 -0
  220. package/build/runtime-components-BRNBBEXJ.js.gz +0 -0
  221. package/build/runtime-createDestroy-7C3QZWJD.js.br +0 -0
  222. package/build/runtime-createDestroy-7C3QZWJD.js.gz +0 -0
  223. package/build/runtime-dragDrop-4UUXLWHY.js.br +0 -0
  224. package/build/runtime-dragDrop-4UUXLWHY.js.gz +0 -0
  225. package/build/runtime-gameControls-46CXQQLQ.js.br +0 -0
  226. package/build/runtime-gameControls-46CXQQLQ.js.gz +0 -0
  227. package/build/runtime-hair-AE4DFQ6X.js.br +0 -2
  228. package/build/runtime-hair-AE4DFQ6X.js.gz +0 -0
  229. package/build/runtime-mergeStaticGeometries-QJHAWRMG.js.br +0 -0
  230. package/build/runtime-mergeStaticGeometries-QJHAWRMG.js.gz +0 -0
  231. package/build/runtime-miscActions-RRNH7EQU.js.br +0 -0
  232. package/build/runtime-miscActions-RRNH7EQU.js.gz +0 -0
  233. package/build/runtime-mouseHover-2BQTD5IN.js.br +0 -0
  234. package/build/runtime-mouseHover-2BQTD5IN.js.gz +0 -0
  235. package/build/runtime-particles-WLJJTH3A.js.br +0 -0
  236. package/build/runtime-particles-WLJJTH3A.js.gz +0 -0
  237. package/build/runtime-paths-I5X2JZCC.js.br +0 -0
  238. package/build/runtime-paths-I5X2JZCC.js.gz +0 -0
  239. package/build/runtime-resize-Z4YK22QG.js.br +0 -0
  240. package/build/runtime-resize-Z4YK22QG.js.gz +0 -0
  241. package/build/runtime-sceneTransition-KNNPTDKC.js.br +0 -0
  242. package/build/runtime-sceneTransition-KNNPTDKC.js.gz +0 -0
  243. package/build/runtime-scroll-Q2IWTTSW.js.br +0 -0
  244. package/build/runtime-scroll-Q2IWTTSW.js.gz +0 -0
  245. package/build/runtime-shapeBlends-MHMGMRM6.js +0 -1
  246. package/build/runtime-shapeBlends-MHMGMRM6.js.br +0 -0
  247. package/build/runtime-shapeBlends-MHMGMRM6.js.gz +0 -0
  248. package/build/runtime-text-FAE5FMAD.js.br +0 -0
  249. package/build/runtime-text-FAE5FMAD.js.gz +0 -0
  250. package/build/runtime-textInputs-WYF6SIBJ.js.br +0 -0
  251. package/build/runtime-textInputs-WYF6SIBJ.js.gz +0 -0
  252. package/build/runtime-timeline-Z6VDQLZB.js.br +0 -0
  253. package/build/runtime-timeline-Z6VDQLZB.js.gz +0 -0
  254. package/build/runtime-tracking-GFIOSMZY.js.br +0 -0
  255. package/build/runtime-tracking-GFIOSMZY.js.gz +0 -0
  256. package/build/runtime-transitions-FW5TZCPG.js.br +0 -0
  257. package/build/runtime-transitions-FW5TZCPG.js.gz +0 -0
  258. package/build/runtime-ui2d-IDI2FX5R.js.br +0 -0
  259. package/build/runtime-ui2d-IDI2FX5R.js.gz +0 -0
  260. package/build/runtime-vectorShapes-NRQIV2ZX.js.br +0 -0
  261. package/build/runtime-vectorShapes-NRQIV2ZX.js.gz +0 -0
  262. package/build/runtime-webgpu-GCEL6FIJ.js.br +0 -0
  263. package/build/runtime-webgpu-GCEL6FIJ.js.gz +0 -0
@@ -1 +1 @@
1
- import{a as t,b as e,d as r}from"./runtime-chunk-YEEI5QDH.js";import{f as i}from"./runtime-chunk-RTLL6WIB.js";import{J as a,xa as o}from"./runtime-chunk-AIWIOLR6.js";import{Ae as s,Ec as n,Fc as p,Oc as h,Rc as c,Tc as m,bd as f,dd as u,ud as d,wd as l,we as g,xe as v}from"./runtime-chunk-BVVSZMXD.js";var C=new p,j=new g,T=class extends l{constructor(t){let e=new u,r=new d({color:16777215,vertexColors:!0,toneMapped:!1}),i=[],a=[],o={},s=new m(15711266),n=new m(15711266),p=new m(2857471);function h(t,e,r){c(t,r),c(e,r)}function c(t,e){i.push(0,0,0),a.push(e.r,e.g,e.b),void 0===o[t]&&(o[t]=[]),o[t].push(i.length/3-1)}h("n1","n2",s),h("n2","n4",s),h("n4","n3",s),h("n3","n1",s),h("f1","f2",s),h("f2","f4",s),h("f4","f3",s),h("f3","f1",s),h("n1","f1",s),h("n2","f2",s),h("n3","f3",s),h("n4","f4",s),h("p","n1",n),h("p","n2",n),h("p","n3",n),h("p","n4",n),h("u1","u2",p),h("u2","u3",p),h("u3","u1",p),e.setAttribute("position",new f(i,3)),e.setAttribute("color",new f(a,3)),super(e,r),this.type="CameraHelper",this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update()}update(){let t=this.geometry,e=this.pointMap;j.projectionMatrixInverse.elements=[.5112609807824982,-0,-0,-0,-0,.41421356237309503,-0,-0,-0,-0,-0,-.099999,-0,-0,-1.0000000000000002,.100001];let r=.8;y("n1",e,t,j,-1,-1,r),y("n2",e,t,j,1,-1,r),y("n3",e,t,j,-1,1,r),y("n4",e,t,j,1,1,r);let i=r;y("f1",e,t,j,-1,-1,i),y("f2",e,t,j,1,-1,i),y("f3",e,t,j,-1,1,i),y("f4",e,t,j,1,1,i);let a=i;y("u1",e,t,j,.35,1.1,a),y("u2",e,t,j,-.35,1.1,a),y("u3",e,t,j,0,1.55,a),t.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}};function y(t,e,r,i,a,o,s){C.set(a,o,s).unproject(i);let n=e[t];if(void 0!==n){let t=r.getAttribute("position");for(let e=0,r=n.length;e<r;e++)t.setXYZ(n[e],C.x,C.y,C.z)}}var w=class extends(t(T)){constructor(t){super(t),this.object=t,this.name=`CombinedCameraHelper: ${t.uuid}`}updateMatrixWorld(t){super.updateMatrixWorld(t),this.updateTarget()}updateTarget(){let t=this.object.getTarget();this.updateWorldMatrix(!0,!1),this.worldToLocal(t)}raycast(t,r){e(this.object,this.geometry,t,r,!0)}};function P(t){return 1-Math.pow(1-t,3)}var x=new p,b=new p,_=new n,M=new p,O=new p,F=new p,A=class extends(r(g,w)){constructor(t="",e={...o.defaultData,name:""}){super(),this._cameraType="OrthographicCamera",this.targetOffset=a.DefaultTargetOffset,this.isUpVectorFlipped=!1,this.angleOffsetFromUp=0,this.wasMovedByUser=!1,this.wasMovedBySwitchCameraAction=!1,this._createdAt=typeof performance<"u"?performance.now():0,this._tickProjectionTransition=()=>{let t=this._projectionTransition;if(void 0===t)return;if(this.disposed)return void this._endProjectionTransition();t.raf=requestAnimationFrame(this._tickProjectionTransition);let e=A.projectionTransitionRequestRender??t.requestRender;this.updateProjectionMatrix(),e?.()},this.super_Entity(t,e),this.previousProjectionMatrix=new h,this.matrixAutoUpdate=!0,this.width=window.innerWidth,this.height=window.innerHeight;let r=this.width,i=this.height;this.orthoCamera=new s(-.5*r,.5*r,.5*i,-.5*i,-5e4,1e4),this.perspCamera=new v(45,r/i,50,1e4),this.left=this.orthoCamera.left,this.right=this.orthoCamera.right,this.top=this.orthoCamera.top,this.bottom=this.orthoCamera.bottom,this.far=this.orthoCamera.far,this.view=this.orthoCamera.view,this.aspect=this.perspCamera.aspect,this.focus=this.perspCamera.focus,this.filmGauge=this.perspCamera.filmGauge,this.filmOffset=this.perspCamera.filmOffset,this.objectHelper.update()}static withoutProjectionTransition(t){let e=A.projectionTransitionsEnabled;A.projectionTransitionsEnabled=!1;try{return t()}finally{A.projectionTransitionsEnabled=e}}get isPerspectiveCamera(){return"PerspectiveCamera"===this.cameraType}get isOrthographicCamera(){return!this.isPerspectiveCamera}get cameraType(){return this._cameraType}set fov(t){this.perspCamera.fov=t}get fov(){return this.perspCamera.fov}setNear(t,e){"PerspectiveCamera"===t?this.perspCamera.near=e:this.orthoCamera.near=e}setZoom(t,e){e>=0&&("PerspectiveCamera"===t?this.perspCamera.zoom=e:this.orthoCamera.zoom=e)}set cameraType(t){"PerspectiveCamera"===t?this.toPerspective():"OrthographicCamera"===t&&this.toOrthographic()}get near(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.near:this.orthoCamera.near}set near(t){"PerspectiveCamera"===this._cameraType?this.perspCamera.near=t:this.orthoCamera.near=t}get zoom(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.zoom:this.orthoCamera.zoom}set zoom(t){t>=0&&("PerspectiveCamera"===this._cameraType?this.perspCamera.zoom=t:this.orthoCamera.zoom=t)}lookAt(t,e,r){"number"==typeof t&&(t=new p(t,e,r)),super.lookAt(t),this.getWorldPosition(x),this.targetOffset=x.distanceTo(t)}getTarget(t=new p){return this.getWorldDirection(b),this.getWorldPosition(x),b.multiplyScalar(this.targetOffset),t.copy(x).add(b),t}getDistanceToTarget(){let t=this.getTarget();return this.getWorldPosition(x),x.distanceTo(t)}updateUp(){this.getWorldQuaternion(_),M.set(0,0,1).applyQuaternion(_),O.copy(c.DEFAULT_UP),this.isUpVectorFlipped&&O.negate(),O.applyQuaternion(_),F.copy(c.DEFAULT_UP).projectOnPlane(M),this.angleOffsetFromUp=F.angleTo(O),this.angleOffsetFromUp*=F.cross(O).dot(M)>=0?1:-1}updateTransformState(t,e){let r=super.updateTransformState(t,e);return void 0!==t.isUpVectorFlipped&&(this.isUpVectorFlipped=t.isUpVectorFlipped),this.updateUp(),r}getViewFrontToObject(t){let e=t.getWorldPosition(new p),r=t.getWorldDirection(new p).multiplyScalar(this.targetOffset);return{position:e.clone().add(r),target:e}}getViewToTarget(t){let e=this.getWorldDirection(new p).multiplyScalar(this.targetOffset);return{position:t.clone().sub(e),target:t}}getViewToObject(t){let e=new p;return t.getWorldPosition(e),this.getViewToTarget(e)}setViewplaneSize(t,e,r=!1){if(this.aspect=t/e,r){let r=t>e?this.aspect:1,i=t>e?1:this.aspect;this.left=-395*r,this.right=395*r,this.top=1/i*395,this.bottom=1/i*-395}else this.left=.5*-t,this.right=.5*t,this.top=.5*e,this.bottom=.5*-e;this.updateProjectionMatrix()}copyViewPlaneSize(t){this.aspect=t.aspect,this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.updateProjectionMatrix()}toOrthographic(){this.orthoCamera.left=this.left,this.orthoCamera.right=this.right,this.orthoCamera.top=this.top,this.orthoCamera.bottom=this.bottom,this.orthoCamera.view=this.view,this.orthoCamera.far=this.far,this.orthoCamera.updateProjectionMatrix(),this.projectionMatrix=this.orthoCamera.projectionMatrix,this.projectionMatrixInverse=this.orthoCamera.projectionMatrixInverse,this._cameraType="OrthographicCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}toPerspective(){this.perspCamera.aspect=this.aspect,this.perspCamera.fov=this.fov,this.perspCamera.view=this.view,this.perspCamera.far=this.far,this.perspCamera.updateProjectionMatrix(),this.projectionMatrix=this.perspCamera.projectionMatrix,this.projectionMatrixInverse=this.perspCamera.projectionMatrixInverse,this._cameraType="PerspectiveCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}get isProjectionTransitioning(){return void 0!==this._projectionTransition}get projectionTransitionProgress(){let t=this._projectionTransition;if(void 0===t)return 1;let e=(performance.now()-t.start)/t.duration;return e>=1?1:e<=0?0:P(e)}get _activeSubCamera(){return"PerspectiveCamera"===this._cameraType?this.perspCamera:this.orthoCamera}_canAnimateProjection(){return A.projectionTransitionsEnabled&&"function"==typeof requestAnimationFrame&&typeof performance<"u"&&performance.now()-this._createdAt>=A.projectionTransitionMinAgeMs}_beginProjectionTransition(t){let e=this._projectionTransition;void 0===e&&(e={from:new h,blend:new h,blendInverse:new h,start:0,duration:A.projectionTransitionDuration,referenceDepth:1,raf:0,requestRender:t},this._projectionTransition=e),e.from.copy(this.projectionMatrix),e.start=performance.now(),e.duration=A.projectionTransitionDuration,e.referenceDepth=Number.isFinite(this.targetOffset)?Math.max(1,this.targetOffset):1,t&&(e.requestRender=t),0!==e.raf&&cancelAnimationFrame(e.raf),e.raf=requestAnimationFrame(this._tickProjectionTransition)}_applyProjectionTransition(){let t=this._projectionTransition;if(void 0===t)return;let e=(performance.now()-t.start)/t.duration;if(e>=1)return void this._endProjectionTransition();let r=P(e),i=t.from.elements,a=this._activeSubCamera.projectionMatrix.elements,o=t.blend.elements,s=t.referenceDepth,n=Math.max(1e-6,i[15]-i[11]*s),p=r*n/(r*n+(1-r)*Math.max(1e-6,a[15]-a[11]*s));for(let t=0;t<16;t++)o[t]=i[t]+(a[t]-i[t])*p;t.blendInverse.copy(t.blend).invert(),this.projectionMatrix=t.blend,this.projectionMatrixInverse=t.blendInverse}_endProjectionTransition(){let t=this._projectionTransition;if(void 0===t)return;0!==t.raf&&cancelAnimationFrame(t.raf),this._projectionTransition=void 0;let e=this._activeSubCamera;this.projectionMatrix=e.projectionMatrix,this.projectionMatrixInverse=e.projectionMatrixInverse}_syncProjectionTransition(t){let e=t._projectionTransition;if(void 0===e)return void(void 0!==this._projectionTransition&&this._endProjectionTransition());let r=this._projectionTransition;void 0===r?(r={from:new h,blend:new h,blendInverse:new h,start:0,duration:1,referenceDepth:1,raf:0,requestRender:void 0},this._projectionTransition=r):0!==r.raf&&(cancelAnimationFrame(r.raf),r.raf=0),r.requestRender=void 0,r.from.copy(e.from),r.start=e.start,r.duration=e.duration,r.referenceDepth=e.referenceDepth,this._applyProjectionTransition()}setFocalLength(t){this.perspCamera.setFocalLength(t),this.toPerspective()}getFocalLength(){return this.perspCamera.getFocalLength()}getEffectiveFOV(){return this.perspCamera.getEffectiveFOV()}getFilmWidth(){return this.perspCamera.getFilmWidth()}getFilmHeight(){return this.perspCamera.getFilmHeight()}setViewOffset(t,e,r,i,a,o){"PerspectiveCamera"===this._cameraType?this.perspCamera.setViewOffset(t,e,r,i,a,o):this.orthoCamera.setViewOffset(t,e,r,i,a,o),this._applyProjectionTransition()}clearViewOffset(){"PerspectiveCamera"===this._cameraType?(this.perspCamera.clearViewOffset(),this.toPerspective()):(this.orthoCamera.clearViewOffset(),this.toOrthographic())}copyHistory(){this.previousProjectionMatrix&&this.previousProjectionMatrix.copy(this.projectionMatrix)}updateProjectionMatrix(){"PerspectiveCamera"===this._cameraType?this.toPerspective():"OrthographicCamera"===this._cameraType&&this.toOrthographic()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}copy(t,e){return super.copy(t,e),this.parent=t.parent,this.orthoCamera.copy(t.orthoCamera),this.perspCamera.copy(t.perspCamera),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.far=t.far,this.view=null===t.view?null:Object.assign({},t.view),this._cameraType=t._cameraType,this.aspect=t.aspect,this.fov=t.fov,this.focus=t.focus,this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this.targetOffset=a.sanitizeTargetOffset(t.targetOffset),this.updateProjectionMatrix(),this._syncProjectionTransition(t),this}toCameraState(t=[]){let e={type:this.cameraType,far:this.far,orthographic:{near:this.orthoCamera.near,zoom:this.orthoCamera.zoom},perspective:{near:this.perspCamera.near,fov:this.perspCamera.fov,zoom:this.perspCamera.zoom},up:this.up.toArray(),targetOffset:this.targetOffset,isUpVectorFlipped:this.isUpVectorFlipped};return i(e,t)}updateCameraSubtype(t,e){let r="perspective"===t?"PerspectiveCamera":"OrthographicCamera";void 0!==e.zoom&&this.setZoom(r,e.zoom),void 0!==e.near&&this.setNear(r,e.near),void 0!==e.fov&&"PerspectiveCamera"===r&&(this.fov=e.fov)}updateState(t,e){this.updateCameraState(t,e)}updateCameraState(t,e){this.updateState_Entity(t,e),void 0!==t.far&&(this.far=t.far),void 0!==t.orthographic&&this.updateCameraSubtype("orthographic",t.orthographic),void 0!==t.perspective&&this.updateCameraSubtype("perspective",t.perspective),void 0!==t.type&&(t.type!==this._cameraType&&this._canAnimateProjection()&&this._beginProjectionTransition(e?.shared.requestRender),this.cameraType=t.type),void 0!==t.up&&this.up.fromArray(t.up.map(t=>"number"==typeof t?t:0)),void 0!==t.targetOffset&&(this.targetOffset=a.sanitizeTargetOffset(t.targetOffset)),void 0!==t.isUpVectorFlipped&&(this.isUpVectorFlipped=t.isUpVectorFlipped),this.updateProjectionMatrix()}updateByPatchedOp(t,e,r){super.updateByPatchedOp(t,e,r),1===t.path.length&&0===t.type&&this.updateCameraSubtype(t.path[0],t.props)}toState(t){return{...super.toState(t),...this.toCameraState(t),type:this.cameraType}}},V=A;V.projectionTransitionsEnabled=!1,V.projectionTransitionDuration=350,V.projectionTransitionMinAgeMs=1e3;export{V as a};
1
+ import{a as t,b as e,d as r}from"./runtime-chunk-WIWW5RJN.js";import{f as i}from"./runtime-chunk-RTLL6WIB.js";import{J as a,xa as o}from"./runtime-chunk-AIWIOLR6.js";import{Ae as s,Ec as n,Fc as p,Oc as h,Rc as c,Tc as m,bd as f,dd as u,ud as d,wd as l,we as g,xe as v}from"./runtime-chunk-BVVSZMXD.js";var C=new p,j=new g,T=class extends l{constructor(t){let e=new u,r=new d({color:16777215,vertexColors:!0,toneMapped:!1}),i=[],a=[],o={},s=new m(15711266),n=new m(15711266),p=new m(2857471);function h(t,e,r){c(t,r),c(e,r)}function c(t,e){i.push(0,0,0),a.push(e.r,e.g,e.b),void 0===o[t]&&(o[t]=[]),o[t].push(i.length/3-1)}h("n1","n2",s),h("n2","n4",s),h("n4","n3",s),h("n3","n1",s),h("f1","f2",s),h("f2","f4",s),h("f4","f3",s),h("f3","f1",s),h("n1","f1",s),h("n2","f2",s),h("n3","f3",s),h("n4","f4",s),h("p","n1",n),h("p","n2",n),h("p","n3",n),h("p","n4",n),h("u1","u2",p),h("u2","u3",p),h("u3","u1",p),e.setAttribute("position",new f(i,3)),e.setAttribute("color",new f(a,3)),super(e,r),this.type="CameraHelper",this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update()}update(){let t=this.geometry,e=this.pointMap;j.projectionMatrixInverse.elements=[.5112609807824982,-0,-0,-0,-0,.41421356237309503,-0,-0,-0,-0,-0,-.099999,-0,-0,-1.0000000000000002,.100001];let r=.8;y("n1",e,t,j,-1,-1,r),y("n2",e,t,j,1,-1,r),y("n3",e,t,j,-1,1,r),y("n4",e,t,j,1,1,r);let i=r;y("f1",e,t,j,-1,-1,i),y("f2",e,t,j,1,-1,i),y("f3",e,t,j,-1,1,i),y("f4",e,t,j,1,1,i);let a=i;y("u1",e,t,j,.35,1.1,a),y("u2",e,t,j,-.35,1.1,a),y("u3",e,t,j,0,1.55,a),t.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}};function y(t,e,r,i,a,o,s){C.set(a,o,s).unproject(i);let n=e[t];if(void 0!==n){let t=r.getAttribute("position");for(let e=0,r=n.length;e<r;e++)t.setXYZ(n[e],C.x,C.y,C.z)}}var w=class extends(t(T)){constructor(t){super(t),this.object=t,this.name=`CombinedCameraHelper: ${t.uuid}`}updateMatrixWorld(t){super.updateMatrixWorld(t),this.updateTarget()}updateTarget(){let t=this.object.getTarget();this.updateWorldMatrix(!0,!1),this.worldToLocal(t)}raycast(t,r){e(this.object,this.geometry,t,r,!0)}};function P(t){return 1-Math.pow(1-t,3)}var x=new p,b=new p,_=new n,M=new p,O=new p,F=new p,W=class extends(r(g,w)){constructor(t="",e={...o.defaultData,name:""}){super(),this._cameraType="OrthographicCamera",this.targetOffset=a.DefaultTargetOffset,this.isUpVectorFlipped=!1,this.angleOffsetFromUp=0,this.wasMovedByUser=!1,this.wasMovedBySwitchCameraAction=!1,this._createdAt=typeof performance<"u"?performance.now():0,this._tickProjectionTransition=()=>{let t=this._projectionTransition;if(void 0===t)return;if(this.disposed)return void this._endProjectionTransition();t.raf=requestAnimationFrame(this._tickProjectionTransition);let e=W.projectionTransitionRequestRender??t.requestRender;this.updateProjectionMatrix(),e?.()},this.super_Entity(t,e),this.previousProjectionMatrix=new h,this.matrixAutoUpdate=!0,this.width=window.innerWidth,this.height=window.innerHeight;let r=this.width,i=this.height;this.orthoCamera=new s(-.5*r,.5*r,.5*i,-.5*i,-5e4,1e4),this.perspCamera=new v(45,r/i,50,1e4),this.left=this.orthoCamera.left,this.right=this.orthoCamera.right,this.top=this.orthoCamera.top,this.bottom=this.orthoCamera.bottom,this.far=this.orthoCamera.far,this.view=this.orthoCamera.view,this.aspect=this.perspCamera.aspect,this.focus=this.perspCamera.focus,this.filmGauge=this.perspCamera.filmGauge,this.filmOffset=this.perspCamera.filmOffset,this.objectHelper.update()}static withoutProjectionTransition(t){let e=W.projectionTransitionsEnabled;W.projectionTransitionsEnabled=!1;try{return t()}finally{W.projectionTransitionsEnabled=e}}get isPerspectiveCamera(){return"PerspectiveCamera"===this.cameraType}get isOrthographicCamera(){return!this.isPerspectiveCamera}get cameraType(){return this._cameraType}set fov(t){this.perspCamera.fov=t}get fov(){return this.perspCamera.fov}setNear(t,e){"PerspectiveCamera"===t?this.perspCamera.near=e:this.orthoCamera.near=e}setZoom(t,e){e>=0&&("PerspectiveCamera"===t?this.perspCamera.zoom=e:this.orthoCamera.zoom=e)}set cameraType(t){"PerspectiveCamera"===t?this.toPerspective():"OrthographicCamera"===t&&this.toOrthographic()}get near(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.near:this.orthoCamera.near}set near(t){"PerspectiveCamera"===this._cameraType?this.perspCamera.near=t:this.orthoCamera.near=t}get zoom(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.zoom:this.orthoCamera.zoom}set zoom(t){t>=0&&("PerspectiveCamera"===this._cameraType?this.perspCamera.zoom=t:this.orthoCamera.zoom=t)}lookAt(t,e,r){"number"==typeof t&&(t=new p(t,e,r)),super.lookAt(t),this.getWorldPosition(x),this.targetOffset=x.distanceTo(t)}getTarget(t=new p){return this.getWorldDirection(b),this.getWorldPosition(x),b.multiplyScalar(this.targetOffset),t.copy(x).add(b),t}getDistanceToTarget(){let t=this.getTarget();return this.getWorldPosition(x),x.distanceTo(t)}updateUp(){this.getWorldQuaternion(_),M.set(0,0,1).applyQuaternion(_),O.copy(c.DEFAULT_UP),this.isUpVectorFlipped&&O.negate(),O.applyQuaternion(_),F.copy(c.DEFAULT_UP).projectOnPlane(M),this.angleOffsetFromUp=F.angleTo(O),this.angleOffsetFromUp*=F.cross(O).dot(M)>=0?1:-1}updateTransformState(t,e){let r=super.updateTransformState(t,e);return void 0!==t.isUpVectorFlipped&&(this.isUpVectorFlipped=t.isUpVectorFlipped),this.updateUp(),r}getViewFrontToObject(t){let e=t.getWorldPosition(new p),r=t.getWorldDirection(new p).multiplyScalar(this.targetOffset);return{position:e.clone().add(r),target:e}}getViewToTarget(t){let e=this.getWorldDirection(new p).multiplyScalar(this.targetOffset);return{position:t.clone().sub(e),target:t}}getViewToObject(t){let e=new p;return t.getWorldPosition(e),this.getViewToTarget(e)}setViewplaneSize(t,e,r=!1){if(this.aspect=t/e,r){let r=t>e?this.aspect:1,i=t>e?1:this.aspect;this.left=-395*r,this.right=395*r,this.top=1/i*395,this.bottom=1/i*-395}else this.left=.5*-t,this.right=.5*t,this.top=.5*e,this.bottom=.5*-e;this.updateProjectionMatrix()}copyViewPlaneSize(t){this.aspect=t.aspect,this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.updateProjectionMatrix()}toOrthographic(){this.orthoCamera.left=this.left,this.orthoCamera.right=this.right,this.orthoCamera.top=this.top,this.orthoCamera.bottom=this.bottom,this.orthoCamera.view=this.view,this.orthoCamera.far=this.far,this.orthoCamera.updateProjectionMatrix(),this.projectionMatrix=this.orthoCamera.projectionMatrix,this.projectionMatrixInverse=this.orthoCamera.projectionMatrixInverse,this._cameraType="OrthographicCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}toPerspective(){this.perspCamera.aspect=this.aspect,this.perspCamera.fov=this.fov,this.perspCamera.view=this.view,this.perspCamera.far=this.far,this.perspCamera.updateProjectionMatrix(),this.projectionMatrix=this.perspCamera.projectionMatrix,this.projectionMatrixInverse=this.perspCamera.projectionMatrixInverse,this._cameraType="PerspectiveCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}get isProjectionTransitioning(){return void 0!==this._projectionTransition}get projectionTransitionProgress(){let t=this._projectionTransition;if(void 0===t)return 1;let e=(performance.now()-t.start)/t.duration;return e>=1?1:e<=0?0:P(e)}get _activeSubCamera(){return"PerspectiveCamera"===this._cameraType?this.perspCamera:this.orthoCamera}_canAnimateProjection(){return W.projectionTransitionsEnabled&&"function"==typeof requestAnimationFrame&&typeof performance<"u"&&performance.now()-this._createdAt>=W.projectionTransitionMinAgeMs}_beginProjectionTransition(t){let e=this._projectionTransition;void 0===e&&(e={from:new h,blend:new h,blendInverse:new h,start:0,duration:W.projectionTransitionDuration,referenceDepth:1,raf:0,requestRender:t},this._projectionTransition=e),e.from.copy(this.projectionMatrix),e.start=performance.now(),e.duration=W.projectionTransitionDuration,e.referenceDepth=Number.isFinite(this.targetOffset)?Math.max(1,this.targetOffset):1,t&&(e.requestRender=t),0!==e.raf&&cancelAnimationFrame(e.raf),e.raf=requestAnimationFrame(this._tickProjectionTransition)}_applyProjectionTransition(){let t=this._projectionTransition;if(void 0===t)return;let e=(performance.now()-t.start)/t.duration;if(e>=1)return void this._endProjectionTransition();let r=P(e),i=t.from.elements,a=this._activeSubCamera.projectionMatrix.elements,o=t.blend.elements,s=t.referenceDepth,n=Math.max(1e-6,i[15]-i[11]*s),p=r*n/(r*n+(1-r)*Math.max(1e-6,a[15]-a[11]*s));for(let t=0;t<16;t++)o[t]=i[t]+(a[t]-i[t])*p;t.blendInverse.copy(t.blend).invert(),this.projectionMatrix=t.blend,this.projectionMatrixInverse=t.blendInverse}_endProjectionTransition(){let t=this._projectionTransition;if(void 0===t)return;0!==t.raf&&cancelAnimationFrame(t.raf),this._projectionTransition=void 0;let e=this._activeSubCamera;this.projectionMatrix=e.projectionMatrix,this.projectionMatrixInverse=e.projectionMatrixInverse}_syncProjectionTransition(t){let e=t._projectionTransition;if(void 0===e)return void(void 0!==this._projectionTransition&&this._endProjectionTransition());let r=this._projectionTransition;void 0===r?(r={from:new h,blend:new h,blendInverse:new h,start:0,duration:1,referenceDepth:1,raf:0,requestRender:void 0},this._projectionTransition=r):0!==r.raf&&(cancelAnimationFrame(r.raf),r.raf=0),r.requestRender=void 0,r.from.copy(e.from),r.start=e.start,r.duration=e.duration,r.referenceDepth=e.referenceDepth,this._applyProjectionTransition()}setFocalLength(t){this.perspCamera.setFocalLength(t),this.toPerspective()}getFocalLength(){return this.perspCamera.getFocalLength()}getEffectiveFOV(){return this.perspCamera.getEffectiveFOV()}getFilmWidth(){return this.perspCamera.getFilmWidth()}getFilmHeight(){return this.perspCamera.getFilmHeight()}setViewOffset(t,e,r,i,a,o){"PerspectiveCamera"===this._cameraType?this.perspCamera.setViewOffset(t,e,r,i,a,o):this.orthoCamera.setViewOffset(t,e,r,i,a,o),this._applyProjectionTransition()}clearViewOffset(){"PerspectiveCamera"===this._cameraType?(this.perspCamera.clearViewOffset(),this.toPerspective()):(this.orthoCamera.clearViewOffset(),this.toOrthographic())}copyHistory(){this.previousProjectionMatrix&&this.previousProjectionMatrix.copy(this.projectionMatrix)}updateProjectionMatrix(){"PerspectiveCamera"===this._cameraType?this.toPerspective():"OrthographicCamera"===this._cameraType&&this.toOrthographic()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}copy(t,e){return super.copy(t,e),this.parent=t.parent,this.orthoCamera.copy(t.orthoCamera),this.perspCamera.copy(t.perspCamera),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.far=t.far,this.view=null===t.view?null:Object.assign({},t.view),this._cameraType=t._cameraType,this.aspect=t.aspect,this.fov=t.fov,this.focus=t.focus,this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this.targetOffset=a.sanitizeTargetOffset(t.targetOffset),this.updateProjectionMatrix(),this._syncProjectionTransition(t),this}toCameraState(t=[]){let e={type:this.cameraType,far:this.far,orthographic:{near:this.orthoCamera.near,zoom:this.orthoCamera.zoom},perspective:{near:this.perspCamera.near,fov:this.perspCamera.fov,zoom:this.perspCamera.zoom},up:this.up.toArray(),targetOffset:this.targetOffset,isUpVectorFlipped:this.isUpVectorFlipped};return i(e,t)}updateCameraSubtype(t,e){let r="perspective"===t?"PerspectiveCamera":"OrthographicCamera";void 0!==e.zoom&&this.setZoom(r,e.zoom),void 0!==e.near&&this.setNear(r,e.near),void 0!==e.fov&&"PerspectiveCamera"===r&&(this.fov=e.fov)}updateState(t,e){this.updateCameraState(t,e)}updateCameraState(t,e){this.updateState_Entity(t,e),void 0!==t.far&&(this.far=t.far),void 0!==t.orthographic&&this.updateCameraSubtype("orthographic",t.orthographic),void 0!==t.perspective&&this.updateCameraSubtype("perspective",t.perspective),void 0!==t.type&&(t.type!==this._cameraType&&this._canAnimateProjection()&&this._beginProjectionTransition(e?.shared.requestRender),this.cameraType=t.type),void 0!==t.up&&this.up.fromArray(t.up.map(t=>"number"==typeof t?t:0)),void 0!==t.targetOffset&&(this.targetOffset=a.sanitizeTargetOffset(t.targetOffset)),void 0!==t.isUpVectorFlipped&&(this.isUpVectorFlipped=t.isUpVectorFlipped),this.updateProjectionMatrix()}updateByPatchedOp(t,e,r){super.updateByPatchedOp(t,e,r),1===t.path.length&&0===t.type&&this.updateCameraSubtype(t.path[0],t.props)}toState(t){return{...super.toState(t),...this.toCameraState(t),type:this.cameraType}}},A=W;A.projectionTransitionsEnabled=!1,A.projectionTransitionDuration=350,A.projectionTransitionMinAgeMs=1e3;export{A as a};