@uptimizr/dashboard 0.4.4 → 0.4.6

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 (347) hide show
  1. package/out/404.html +1 -1
  2. package/out/__next.__PAGE__.txt +4 -4
  3. package/out/__next._full.txt +11 -11
  4. package/out/__next._head.txt +4 -4
  5. package/out/__next._index.txt +4 -4
  6. package/out/__next._tree.txt +2 -2
  7. package/out/_next/static/chunks/{2o8k8x5zcepfy.js → 0-k4hp87gwues.js} +1 -1
  8. package/out/_next/static/chunks/{0s84ekz_f9ngx.js → 0-laj-bivzp4x.js} +1 -1
  9. package/out/_next/static/chunks/{3tdzweqszru4y.js → 04zj0yf1qhk1o.js} +1 -1
  10. package/out/_next/static/chunks/05s0t-besbvu1.css +3 -0
  11. package/out/_next/static/chunks/{1e_-_7biavwmb.js → 06fbalmyyfpsy.js} +1 -1
  12. package/out/_next/static/chunks/{3yr66ufoli71t.js → 07hgbbqksqd1g.js} +1 -1
  13. package/out/_next/static/chunks/08ou2nvy48e0u.js +1 -0
  14. package/out/_next/static/chunks/08y5-irjbsiy8.js +1 -0
  15. package/out/_next/static/chunks/{2pbgsq7vvtk8_.js → 0_jrfk2u1u3fi.js} +1 -1
  16. package/out/_next/static/chunks/{1-4v8oivkgnyl.js → 0a475u_q5i_dd.js} +2 -2
  17. package/out/_next/static/chunks/0aad2r4s4wl1x.js +5 -0
  18. package/out/_next/static/chunks/{2rjfrjhp4kjev.js → 0cmyc-uvk93kl.js} +52 -52
  19. package/out/_next/static/chunks/{1ozi46t8jajqh.js → 0d9pxx1w_zqr9.js} +1 -1
  20. package/out/_next/static/chunks/{3-x7522okdy-7.js → 0e5dcxmkprebg.js} +1 -1
  21. package/out/_next/static/chunks/{1n_gxvu31aofy.js → 0gk5rnci1hznh.js} +2 -2
  22. package/out/_next/static/chunks/0gnjtwq-474uc.js +1 -0
  23. package/out/_next/static/chunks/0gsh_d0m5xss1.js +1 -0
  24. package/out/_next/static/chunks/0i9wa8hjd-5tc.js +1 -0
  25. package/out/_next/static/chunks/0ibzpjo0h731v.js +1 -0
  26. package/out/_next/static/chunks/{41yy4p3-rtyz1.js → 0j0a0wvmmghxj.js} +1 -1
  27. package/out/_next/static/chunks/{29gv2swsp7tzu.js → 0j2ygtc_-bo3m.js} +1 -1
  28. package/out/_next/static/chunks/{0dck67in84de0.js → 0j_3k5qhv_mdx.js} +1 -1
  29. package/out/_next/static/chunks/0jap7l5-bskj4.js +114 -0
  30. package/out/_next/static/chunks/{0n92hec_jb_-_.js → 0jis2w2mfx062.js} +1 -1
  31. package/out/_next/static/chunks/0jjvp2slpf7d6.js +1 -0
  32. package/out/_next/static/chunks/0ko10wo4rc9-b.js +1 -0
  33. package/out/_next/static/chunks/0lqmvz6k2h_of.js +1 -0
  34. package/out/_next/static/chunks/0lwjmr8efrlbt.js +17 -0
  35. package/out/_next/static/chunks/0noxyupihh8dk.js +1 -0
  36. package/out/_next/static/chunks/{2-hdejef-mpka.js → 0o0qtv35dqv3i.js} +219 -16
  37. package/out/_next/static/chunks/{43hwl25uke0l_.js → 0o1vph7x9shzu.js} +1 -1
  38. package/out/_next/static/chunks/{1tt1bbry-4f-6.js → 0o73w0cn5n_vl.js} +1 -1
  39. package/out/_next/static/chunks/0p6phe9kjlxn8.js +1 -0
  40. package/out/_next/static/chunks/0ptxb9dcwsw3o.js +1 -0
  41. package/out/_next/static/chunks/{31ei992g8gqz9.js → 0q0i4pdyq66gb.js} +1 -1
  42. package/out/_next/static/chunks/0q8pt8fd0ma30.js +1 -0
  43. package/out/_next/static/chunks/0qqx9aoz8l5d2.js +1 -0
  44. package/out/_next/static/chunks/0r-x702_jvhud.js +112 -0
  45. package/out/_next/static/chunks/{2h5nvlgky7fpa.js → 0rykrf_vofbad.js} +1 -1
  46. package/out/_next/static/chunks/0tsk32q-88t_7.js +1 -0
  47. package/out/_next/static/chunks/0u7577db_ivyr.js +1 -0
  48. package/out/_next/static/chunks/0unnrt0un064x.js +1 -0
  49. package/out/_next/static/chunks/{3mvaub8qjdyuc.js → 0uygtr4mo3h0v.js} +1 -1
  50. package/out/_next/static/chunks/0vf3facit951s.js +1 -0
  51. package/out/_next/static/chunks/{2pcdnd4nzcw4c.js → 0vzo-8t8c26k9.js} +1 -1
  52. package/out/_next/static/chunks/0xx7_7y5jdlh4.js +1 -0
  53. package/out/_next/static/chunks/0xyija62b6txc.js +1 -0
  54. package/out/_next/static/chunks/{0vso09vdz38sr.js → 0xzamrecplwzw.js} +1 -1
  55. package/out/_next/static/chunks/{2khh_pmm224k5.js → 0yd4_xh476fjn.js} +14 -217
  56. package/out/_next/static/chunks/0ypejzd74ixbw.js +338 -0
  57. package/out/_next/static/chunks/0zeb37703zcz3.js +1 -0
  58. package/out/_next/static/chunks/0zu5ato7-1-q9.js +1 -0
  59. package/out/_next/static/chunks/0zydv7y47dxgh.js +1 -0
  60. package/out/_next/static/chunks/103x4jwovb6d-.js +1 -0
  61. package/out/_next/static/chunks/107wfq84g9-kn.js +1 -0
  62. package/out/_next/static/chunks/10afagk8yn__n.js +1 -0
  63. package/out/_next/static/chunks/12ory_c78yl31.js +1 -0
  64. package/out/_next/static/chunks/{1ccn725by19i1.js → 133dqp8_7_yo6.js} +1 -1
  65. package/out/_next/static/chunks/1365lgwdd4vuo.js +1 -0
  66. package/out/_next/static/chunks/146ou-ohb_qhs.js +1 -0
  67. package/out/_next/static/chunks/{425epvuw3yy-n.js → 14e4k-718qadd.js} +31 -31
  68. package/out/_next/static/chunks/14orr68xgdykd.js +1 -0
  69. package/out/_next/static/chunks/15qfoj-vl9thu.js +1 -0
  70. package/out/_next/static/chunks/{0okbyggxe6mx5.js → 161yjxmdz9obc.js} +1 -1
  71. package/out/_next/static/chunks/166yqx3_qvbpy.js +1 -0
  72. package/out/_next/static/chunks/16gwjao676ieb.js +1 -0
  73. package/out/_next/static/chunks/{0n-zml1gn0o1u.js → 16rmmzhy2p7bw.js} +1 -1
  74. package/out/_next/static/chunks/{442e2l3jzxd-_.js → 17_jjyx4jz9dd.js} +1 -1
  75. package/out/_next/static/chunks/{0zf26k6juhlzo.js → 184pz6z3dflfm.js} +13 -10
  76. package/out/_next/static/chunks/18h9ugdz6igdb.js +1 -0
  77. package/out/_next/static/chunks/19d8n5t7ka2fb.js +1 -0
  78. package/out/_next/static/chunks/{1mvadj46owrck.js → 1_4hh3dfop93j.js} +1 -1
  79. package/out/_next/static/chunks/1_rbzw3n4fk0g.js +1 -0
  80. package/out/_next/static/chunks/{22ja7c3gk0_ko.js → 1a94whad0y57f.js} +1 -1
  81. package/out/_next/static/chunks/{1vmpltnr0cyos.js → 1aa9g197l4twm.js} +1 -1
  82. package/out/_next/static/chunks/1bq0fcnt1wy86.js +1 -0
  83. package/out/_next/static/chunks/{1fyh50hjt7hi_.js → 1bv-jzy_2jiqs.js} +1 -1
  84. package/out/_next/static/chunks/1c6mho7e0enta.js +1 -0
  85. package/out/_next/static/chunks/{2ymtumj-hfrjo.js → 1dfaheve77dhi.js} +1 -1
  86. package/out/_next/static/chunks/1dgf112ehnhm1.js +1 -0
  87. package/out/_next/static/chunks/{32vaw89wdwv5_.js → 1eirucr9s6-h5.js} +1 -1
  88. package/out/_next/static/chunks/{0dva036n8ab62.js → 1f07l3q77zat1.js} +1 -1
  89. package/out/_next/static/chunks/1fervgvgv10r-.js +1 -0
  90. package/out/_next/static/chunks/1fsof7un7igrn.js +1 -0
  91. package/out/_next/static/chunks/{3gyyjsot8mdav.js → 1gvu5a6ffbs7l.js} +1 -1
  92. package/out/_next/static/chunks/{0t89-lfct-7m6.js → 1h1gixjbjkbsl.js} +5 -5
  93. package/out/_next/static/chunks/1iel4pzhhh-c3.js +1 -0
  94. package/out/_next/static/chunks/1iojfx3-g4_n9.js +1 -0
  95. package/out/_next/static/chunks/{1__nujzr9e352.js → 1j4c0nvdo5q68.js} +1 -1
  96. package/out/_next/static/chunks/{1o3ggu95lfu6i.js → 1j4jt5q7px8sy.js} +1 -1
  97. package/out/_next/static/chunks/{2g_1ov-0j2kwd.js → 1jjw9hxgi2vzi.js} +1 -1
  98. package/out/_next/static/chunks/1k_8olnprvi8r.js +1 -0
  99. package/out/_next/static/chunks/1l0rt7d4m-xdk.js +5 -0
  100. package/out/_next/static/chunks/{1oljzgz5jistn.js → 1lu7rjfvxj8yj.js} +1 -1
  101. package/out/_next/static/chunks/{2c2dspoukng-5.js → 1mt4cnd_d6jvf.js} +1 -1
  102. package/out/_next/static/chunks/1my968s78he8g.js +272 -0
  103. package/out/_next/static/chunks/{03zip1uidm6x9.js → 1s0dpdqy480hg.js} +1 -1
  104. package/out/_next/static/chunks/1t-yolk97lmot.js +12 -0
  105. package/out/_next/static/chunks/1t2g1v0ubcsam.js +1 -0
  106. package/out/_next/static/chunks/{18wa83g0qfh-b.js → 1tbes2sv-qzcx.js} +1 -1
  107. package/out/_next/static/chunks/1upy8a5cb75kt.js +1 -0
  108. package/out/_next/static/chunks/{2zpn7010iqgsy.js → 1x0j78ohufpul.js} +1 -1
  109. package/out/_next/static/chunks/1xed71f608m4b.js +1 -0
  110. package/out/_next/static/chunks/1z790xxb46gxy.js +1 -0
  111. package/out/_next/static/chunks/{22rl_arnzs-ve.js → 1zmx71cvc6ksk.js} +1 -1
  112. package/out/_next/static/chunks/{3kalvwsf11-ss.js → 2-_a-v1xeo5hb.js} +15 -12
  113. package/out/_next/static/chunks/2-i29-jdbwww6.js +532 -0
  114. package/out/_next/static/chunks/{1solqr18og2ot.js → 2117sv2qzo6yq.js} +1 -1
  115. package/out/_next/static/chunks/219n3q-_eengm.js +1 -0
  116. package/out/_next/static/chunks/21wo3vdr_uby8.js +1 -0
  117. package/out/_next/static/chunks/{1nqojcig-0m3c.js → 22yht3s7c-xih.js} +1 -1
  118. package/out/_next/static/chunks/{3go-mst7n3udd.js → 23-y1f_zw56vo.js} +1 -1
  119. package/out/_next/static/chunks/{0-tzsd_n-ywom.js → 25brs445bjbik.js} +2 -2
  120. package/out/_next/static/chunks/25gep78-izw79.js +4 -0
  121. package/out/_next/static/chunks/{099ilz3dmm1jw.js → 26i7dn31afdtm.js} +1 -1
  122. package/out/_next/static/chunks/27hbplu797elx.js +1 -0
  123. package/out/_next/static/chunks/{3n-7bcmfbh299.js → 27z7j17kcrty_.js} +11 -11
  124. package/out/_next/static/chunks/{380ivzcfb4o_3.js → 287hakn2ijupp.js} +2 -2
  125. package/out/_next/static/chunks/28i3wgvgn_at1.js +1 -0
  126. package/out/_next/static/chunks/2992eiy52nazj.js +1 -0
  127. package/out/_next/static/chunks/29_n5j-hg_gsa.js +1 -0
  128. package/out/_next/static/chunks/29bxq-67oazfg.js +1 -0
  129. package/out/_next/static/chunks/{309f81l5ucsb_.js → 29hkkj9raxte9.js} +50 -50
  130. package/out/_next/static/chunks/29ings58w7kp1.js +1 -0
  131. package/out/_next/static/chunks/{2e46-2ubc90do.js → 2_6b9lraq-exh.js} +5 -5
  132. package/out/_next/static/chunks/{3w4qettzp7khe.js → 2_lw4d7t-xcqi.js} +32 -32
  133. package/out/_next/static/chunks/2_n0cpkdsjzli.js +1 -0
  134. package/out/_next/static/chunks/2a3iy701j4r_y.js +1 -0
  135. package/out/_next/static/chunks/2al9dh3_1ixhv.js +1 -0
  136. package/out/_next/static/chunks/{1gvdmbr65lpud.js → 2as_br1awqk6k.js} +69 -69
  137. package/out/_next/static/chunks/{0c5d3qn2mb3ew.js → 2awr1c_vfsutb.js} +1 -1
  138. package/out/_next/static/chunks/{2q0rz76kj6h5z.js → 2b5nt7yn-pq3a.js} +1 -1
  139. package/out/_next/static/chunks/2bxe3kjr17tdp.js +1 -0
  140. package/out/_next/static/chunks/{2z9mdtudj8crz.js → 2c8rmxz151fxa.js} +20 -18
  141. package/out/_next/static/chunks/{35aagg46wp139.js → 2clevl_9ayd0x.js} +1 -1
  142. package/out/_next/static/chunks/{41qxc142snm22.js → 2dvbzar93ooc-.js} +1 -1
  143. package/out/_next/static/chunks/2e-vp0e11g9ew.js +1 -0
  144. package/out/_next/static/chunks/{2-p206i_ihx09.js → 2epukrz6paj9n.js} +1 -1
  145. package/out/_next/static/chunks/2exj9-0p6n9x-.js +1 -0
  146. package/out/_next/static/chunks/{05uqfgf-hh-p5.js → 2fspbfbxbswzd.js} +1 -1
  147. package/out/_next/static/chunks/2gf8l6hbmt7v3.js +1 -0
  148. package/out/_next/static/chunks/{1ph0tfo-4hl-f.js → 2h07np207nlx7.js} +1 -1
  149. package/out/_next/static/chunks/{11p92pnn5el0v.js → 2h9i_adbqaxs4.js} +1 -1
  150. package/out/_next/static/chunks/{0bj_310rugcn1.js → 2iu0_3cx-ny74.js} +11 -11
  151. package/out/_next/static/chunks/2jio3sio-_43z.js +1 -0
  152. package/out/_next/static/chunks/{0uxdbfa8gv6tk.js → 2kk_vvmr2xm3d.js} +29 -29
  153. package/out/_next/static/chunks/2kmmk9coo9_b0.js +505 -0
  154. package/out/_next/static/chunks/{055baac5e-c2o.js → 2laz1v9fg2a2z.js} +1 -1
  155. package/out/_next/static/chunks/{1qsut_e3msg0l.js → 2mjjo0yj-4ro4.js} +1 -1
  156. package/out/_next/static/chunks/{0av6n_6q6kzo3.js → 2mrkv0z2i74pv.js} +2 -2
  157. package/out/_next/static/chunks/{04_3ri5emyfcu.js → 2neieeo9g2u56.js} +1 -1
  158. package/out/_next/static/chunks/{1upkv4ltuh3s5.js → 2oacwtbslo90t.js} +84 -84
  159. package/out/_next/static/chunks/2pb_uosb-aa8x.js +1 -0
  160. package/out/_next/static/chunks/2qu-gpm3ux1l6.js +1 -0
  161. package/out/_next/static/chunks/2rsi6v7qmqx2b.js +1 -0
  162. package/out/_next/static/chunks/2s4fzgzkwjluu.js +2 -0
  163. package/out/_next/static/chunks/2tdvuc-27khif.js +1 -0
  164. package/out/_next/static/chunks/{2bm95r0011asw.js → 2trolrgd7neax.js} +1 -1
  165. package/out/_next/static/chunks/2uyuafmoe5wi0.js +3 -0
  166. package/out/_next/static/chunks/2w2e0pxgs-n8f.js +1 -0
  167. package/out/_next/static/chunks/{1qxhgauuomthl.js → 2wgh5i70bzelt.js} +60 -60
  168. package/out/_next/static/chunks/{3d76e_yd8l_0x.js → 2x-7kbwq8tl-o.js} +59 -59
  169. package/out/_next/static/chunks/{1t2exh89lnazc.js → 2xe4bgir5l-9b.js} +32 -99
  170. package/out/_next/static/chunks/2xujlsx3stqig.js +1 -0
  171. package/out/_next/static/chunks/{267q_eg-c6f6m.js → 3-yhe6rcsjh88.js} +1 -1
  172. package/out/_next/static/chunks/30y71dxdpv52d.js +1 -0
  173. package/out/_next/static/chunks/32c-e_v8_2xkf.js +1 -0
  174. package/out/_next/static/chunks/32oj0iudhp8bm.js +1 -0
  175. package/out/_next/static/chunks/{0w-hm7g7trtjg.js → 336ckqpboqmbn.js} +1 -1
  176. package/out/_next/static/chunks/33p9du6y9eegg.js +1 -0
  177. package/out/_next/static/chunks/{3w_umk1xtj6to.js → 36pz_ews7u0xb.js} +1 -1
  178. package/out/_next/static/chunks/{1ux1rpe-n1mai.js → 374lzksboll-t.js} +1 -1
  179. package/out/_next/static/chunks/38om-j0h0rryk.js +1 -0
  180. package/out/_next/static/chunks/{3oyuoqr8y2g9r.js → 38q0enmlg5q9o.js} +2 -2
  181. package/out/_next/static/chunks/{25gf6xn9u1c57.js → 39cou9lia_g7l.js} +1 -1
  182. package/out/_next/static/chunks/39pkya0_bvcaj.js +1 -0
  183. package/out/_next/static/chunks/{1x99m91nt1m3b.js → 39rhmj_32ujyj.js} +1 -1
  184. package/out/_next/static/chunks/3_1zzmx92j9c0.js +1 -0
  185. package/out/_next/static/chunks/{3z4suna4kq4j5.js → 3_dm45k0vk1aa.js} +34 -35
  186. package/out/_next/static/chunks/3_earszshuz4n.js +1 -0
  187. package/out/_next/static/chunks/{1ephzzweysylq.js → 3_gfl66zf638s.js} +38 -105
  188. package/out/_next/static/chunks/3ap_uxc8lx7ni.js +1 -0
  189. package/out/_next/static/chunks/{0pv2wirx45e1m.js → 3b6na8zrex8jo.js} +1 -1
  190. package/out/_next/static/chunks/3c0cxt72vilyz.js +1 -0
  191. package/out/_next/static/chunks/3cp5nmtwxq4gr.js +1 -0
  192. package/out/_next/static/chunks/{0tn-9w46cwydp.js → 3d43gd91r06y6.js} +39 -40
  193. package/out/_next/static/chunks/3g78x0pdaoi_4.js +1 -0
  194. package/out/_next/static/chunks/{1di5enkavl9vx.js → 3gjvl1p-tugfe.js} +2 -2
  195. package/out/_next/static/chunks/{1mrvp94tietcv.js → 3i8iro1gas1vx.js} +1 -1
  196. package/out/_next/static/chunks/{3-_08i4_7yhno.js → 3ioxfi3bvznhh.js} +1 -1
  197. package/out/_next/static/chunks/{2i82rmjta9ijs.js → 3j3ol_d1vsdhx.js} +1 -1
  198. package/out/_next/static/chunks/3kpqfqr99vo7z.js +1 -0
  199. package/out/_next/static/chunks/3lladf_wemm-2.js +1 -0
  200. package/out/_next/static/chunks/{0-0hui1_v3h8b.js → 3mmy9zsb7zo-m.js} +12 -9
  201. package/out/_next/static/chunks/{17aahvhpls1l7.js → 3my05px5mv_s5.js} +83 -16
  202. package/out/_next/static/chunks/3n62hbywoknop.js +1 -0
  203. package/out/_next/static/chunks/{0wq_9f98weoe3.js → 3nr48h9zwum-3.js} +1 -1
  204. package/out/_next/static/chunks/{2x83vs8ns4pww.js → 3nwaovnpiyrt8.js} +1 -1
  205. package/out/_next/static/chunks/3o_dmzpahx-5g.js +1 -0
  206. package/out/_next/static/chunks/{0g2wngc6oe7fd.js → 3p03l0z65c8vc.js} +27 -25
  207. package/out/_next/static/chunks/{00xc-0pj7on2s.js → 3puu2_-t0lln9.js} +29 -29
  208. package/out/_next/static/chunks/{077eo-0dhbxz-.js → 3qo7e6b73mfxq.js} +1 -1
  209. package/out/_next/static/chunks/3r7v7un976sn7.js +1 -0
  210. package/out/_next/static/chunks/{255knovck7pv2.js → 3rj-5v0j_2-_2.js} +4 -4
  211. package/out/_next/static/chunks/3rl_nhqwew40w.js +1 -0
  212. package/out/_next/static/chunks/3s7hqij6xp_4e.js +1 -0
  213. package/out/_next/static/chunks/{1ng-fqh2_n984.js → 3si3migsmvz9o.js} +1 -1
  214. package/out/_next/static/chunks/3t4ys6th6gf2w.js +1 -0
  215. package/out/_next/static/chunks/{1og49_atcksim.js → 3twr9ds68-9us.js} +1 -1
  216. package/out/_next/static/chunks/{2ftp5xmq_w23j.js → 3txu-i5qn183a.js} +65 -65
  217. package/out/_next/static/chunks/{3y_51bmdnc0ey.js → 3uarw1i1ij1er.js} +1 -1
  218. package/out/_next/static/chunks/3un-w6wutw1qn.js +1 -0
  219. package/out/_next/static/chunks/3v8kgnjk27wbe.js +1 -0
  220. package/out/_next/static/chunks/{1t7nl8rx7mabd.js → 3vtmucpx25o7q.js} +61 -61
  221. package/out/_next/static/chunks/{04j9pexbmysdy.js → 3vu5y270muh-7.js} +1 -1
  222. package/out/_next/static/chunks/3we1khqfexh3x.js +1 -0
  223. package/out/_next/static/chunks/3yk0hzfq5rcs6.js +1 -0
  224. package/out/_next/static/chunks/3z35loj4i-id4.js +1 -0
  225. package/out/_next/static/chunks/{28ndw4nsw2t_4.js → 3zv5kyos9vtmm.js} +1 -1
  226. package/out/_next/static/chunks/{1hsvckd0sgdgr.js → 415g3asdds1ac.js} +1 -1
  227. package/out/_next/static/chunks/{1nasz7q3tvb53.js → 42lqt7ig40wk5.js} +1 -1
  228. package/out/_next/static/chunks/42s6ghsurq5q7.js +1 -0
  229. package/out/_next/static/chunks/42yctcfi2rfwr.js +1 -0
  230. package/out/_next/static/chunks/43_fau1gg69eo.js +1 -0
  231. package/out/_next/static/chunks/43ywrdzg_7af8.js +31 -0
  232. package/out/_next/static/chunks/{1ho02fc091nj2.js → 44m1ijc5cv80x.js} +1 -1
  233. package/out/_next/static/chunks/{3k-gz8qf-mj-p.js → 453_bg0lgesmp.js} +1 -1
  234. package/out/_next/static/chunks/{turbopack-3r8yn0j92tqw_.js → turbopack-1s36ieuku1ds3.js} +1 -1
  235. package/out/_not-found/__next._full.txt +9 -9
  236. package/out/_not-found/__next._head.txt +4 -4
  237. package/out/_not-found/__next._index.txt +4 -4
  238. package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
  239. package/out/_not-found/__next._not-found.txt +3 -3
  240. package/out/_not-found/__next._tree.txt +2 -2
  241. package/out/_not-found.html +1 -1
  242. package/out/_not-found.txt +9 -9
  243. package/out/index.html +1 -1
  244. package/out/index.txt +11 -11
  245. package/package.json +14 -14
  246. package/out/_next/static/chunks/00g5suuoa-_wn.js +0 -1
  247. package/out/_next/static/chunks/00o9hr_3hd0r8.js +0 -1
  248. package/out/_next/static/chunks/01fh3_bncbe5u.js +0 -1
  249. package/out/_next/static/chunks/01urdkl1j8o6l.js +0 -1
  250. package/out/_next/static/chunks/026vw95s88gsy.js +0 -1
  251. package/out/_next/static/chunks/02eui3ctddbd2.js +0 -1
  252. package/out/_next/static/chunks/04c4nksb5y9r-.js +0 -1
  253. package/out/_next/static/chunks/04g-l-_b4payc.js +0 -1
  254. package/out/_next/static/chunks/05bdni_jrobq1.js +0 -1
  255. package/out/_next/static/chunks/05o0tb8l_htmw.js +0 -1
  256. package/out/_next/static/chunks/07z6p262h5hgl.js +0 -1
  257. package/out/_next/static/chunks/08m_4cihfmik8.js +0 -1
  258. package/out/_next/static/chunks/08obqw64faj8j.js +0 -1
  259. package/out/_next/static/chunks/09ppu_k464q-n.js +0 -1
  260. package/out/_next/static/chunks/0bgcaf2x51kms.js +0 -1
  261. package/out/_next/static/chunks/0dg4wxz-6u5lo.js +0 -1
  262. package/out/_next/static/chunks/0erga_bzezbza.js +0 -1
  263. package/out/_next/static/chunks/0f0-i105odxqd.js +0 -1
  264. package/out/_next/static/chunks/0gyeqz9pagssf.js +0 -1
  265. package/out/_next/static/chunks/0i82k-t0fbn8f.js +0 -1
  266. package/out/_next/static/chunks/0kzw45f61wm3j.js +0 -1
  267. package/out/_next/static/chunks/0l8bfa2xewq69.js +0 -1
  268. package/out/_next/static/chunks/0qxd_8t3nca36.js +0 -1
  269. package/out/_next/static/chunks/0s1jghzw8jufz.js +0 -1
  270. package/out/_next/static/chunks/0ti58h622yo-_.js +0 -2
  271. package/out/_next/static/chunks/0u8yr4k1y6m2t.js +0 -1
  272. package/out/_next/static/chunks/0ubxyut5rr600.js +0 -1
  273. package/out/_next/static/chunks/0wbw9h7rsis2r.js +0 -1
  274. package/out/_next/static/chunks/0y4e49hpuucdi.js +0 -1
  275. package/out/_next/static/chunks/0yvevihll7sz-.js +0 -1
  276. package/out/_next/static/chunks/1-b44873bjsdw.js +0 -1
  277. package/out/_next/static/chunks/1-c3a1vnl8v1q.js +0 -1
  278. package/out/_next/static/chunks/1-xf86jgea22y.js +0 -1
  279. package/out/_next/static/chunks/10b0qqdnb_nox.js +0 -1
  280. package/out/_next/static/chunks/12kdmh0h_mboy.js +0 -1
  281. package/out/_next/static/chunks/141tngxsk32hq.js +0 -1
  282. package/out/_next/static/chunks/14ijcpo72av4r.js +0 -1
  283. package/out/_next/static/chunks/16hdip1drt8o-.js +0 -1
  284. package/out/_next/static/chunks/18txc1wwwu9f9.js +0 -1
  285. package/out/_next/static/chunks/19dp8nr4uygg2.js +0 -5
  286. package/out/_next/static/chunks/1_8acnu6_-qe-.js +0 -1
  287. package/out/_next/static/chunks/1bmyq1b0by7ug.js +0 -1
  288. package/out/_next/static/chunks/1d1tpj9nm1nhf.js +0 -1
  289. package/out/_next/static/chunks/1dfwa563iciz3.js +0 -1
  290. package/out/_next/static/chunks/1fwsjnd1y-lx_.js +0 -1
  291. package/out/_next/static/chunks/1gaexq_suxai0.js +0 -1
  292. package/out/_next/static/chunks/1gtj_l5ame5mw.js +0 -1
  293. package/out/_next/static/chunks/1i4f3n_2_3ery.js +0 -1
  294. package/out/_next/static/chunks/1j7e3qpjuj89a.js +0 -1
  295. package/out/_next/static/chunks/1qjsgebn9m-0l.js +0 -1
  296. package/out/_next/static/chunks/1rb8wewjbdisv.js +0 -1
  297. package/out/_next/static/chunks/1rr74xxjtckyv.js +0 -1
  298. package/out/_next/static/chunks/1uu55ejvi7q5u.js +0 -1
  299. package/out/_next/static/chunks/1xbzxfeq9789f.js +0 -1
  300. package/out/_next/static/chunks/1ybiu-rkt50_1.js +0 -1
  301. package/out/_next/static/chunks/20qelrstvz9_n.js +0 -1
  302. package/out/_next/static/chunks/21at65obnoo8z.js +0 -1
  303. package/out/_next/static/chunks/21ko5mxfderw0.js +0 -1
  304. package/out/_next/static/chunks/21muzwu43o8xg.js +0 -1
  305. package/out/_next/static/chunks/23d-hvrwpixpm.js +0 -1
  306. package/out/_next/static/chunks/2569rrrffvm2w.js +0 -31
  307. package/out/_next/static/chunks/29o74k0d6hkdf.js +0 -1
  308. package/out/_next/static/chunks/2btabnibkm0db.js +0 -1
  309. package/out/_next/static/chunks/2c--awgkdcikq.js +0 -1
  310. package/out/_next/static/chunks/2ep7mjbaoeou0.js +0 -1
  311. package/out/_next/static/chunks/2ezgqm7atphi6.js +0 -1
  312. package/out/_next/static/chunks/2gfjzq_vjea4w.js +0 -1
  313. package/out/_next/static/chunks/2h5hase6ewoyc.js +0 -1
  314. package/out/_next/static/chunks/2hghi41nhdww2.css +0 -3
  315. package/out/_next/static/chunks/2ies66gmou203.js +0 -1
  316. package/out/_next/static/chunks/2jenu2eek9viz.js +0 -1
  317. package/out/_next/static/chunks/2luaj_cf5f19-.js +0 -1
  318. package/out/_next/static/chunks/2mgmvz66gh5ub.js +0 -1
  319. package/out/_next/static/chunks/2nwlqtv3vrzcv.js +0 -1
  320. package/out/_next/static/chunks/2si5cg3hl5dtf.js +0 -4
  321. package/out/_next/static/chunks/2uhrhq35bki6u.js +0 -1
  322. package/out/_next/static/chunks/2zdzgmacaoor9.js +0 -1
  323. package/out/_next/static/chunks/2zyjw8g4tiu51.js +0 -1
  324. package/out/_next/static/chunks/3-irhmtm1q5qw.js +0 -1
  325. package/out/_next/static/chunks/3-k74vn9exnb6.js +0 -1
  326. package/out/_next/static/chunks/34845aqksy1dl.js +0 -3
  327. package/out/_next/static/chunks/34y7nx6qmat06.js +0 -1
  328. package/out/_next/static/chunks/36rqw8h6ildpl.js +0 -1
  329. package/out/_next/static/chunks/3a_khw6q6pyh1.js +0 -1
  330. package/out/_next/static/chunks/3c_31f20z4jrl.js +0 -1
  331. package/out/_next/static/chunks/3ckp70rgr63u9.js +0 -1
  332. package/out/_next/static/chunks/3ed24zmt8qfys.js +0 -1
  333. package/out/_next/static/chunks/3ez20hi1mxw0w.js +0 -1
  334. package/out/_next/static/chunks/3fdx-rnos5ft-.js +0 -1
  335. package/out/_next/static/chunks/3fgfbxxb-j_bn.js +0 -4
  336. package/out/_next/static/chunks/3lehc5pujwhsz.js +0 -1
  337. package/out/_next/static/chunks/3m0ytnc241yfz.js +0 -1
  338. package/out/_next/static/chunks/3mpe7c3iyxn5h.js +0 -1
  339. package/out/_next/static/chunks/3nw7u4bie0-g6.js +0 -1
  340. package/out/_next/static/chunks/3qatb38-tk_gd.js +0 -1
  341. package/out/_next/static/chunks/3rpm-1ryf073k.js +0 -1
  342. package/out/_next/static/chunks/3tdcdi_utmoy_.js +0 -1
  343. package/out/_next/static/chunks/3tt_ir_va6262.js +0 -1
  344. package/out/_next/static/chunks/43qmngblcab8f.js +0 -1
  345. /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_buildManifest.js +0 -0
  346. /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_clientMiddlewareManifest.js +0 -0
  347. /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_ssgManifest.js +0 -0
@@ -0,0 +1,272 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67827,e=>{"use strict";var t=e.i(47150);let a="sceneUboDeclaration",s=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
2
+ #ifdef MULTIVIEW
3
+ mat4 viewProjectionR;
4
+ #endif
5
+ mat4 view;mat4 projection;vec4 vEyePosition;mat4 inverseProjection;};
6
+ `;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=s),e.s(["sceneUboDeclaration",0,{name:a,shader:s}])},38605,e=>{"use strict";var t=e.i(47150);let a="meshUboDeclaration",s=`#ifdef WEBGL2
7
+ uniform mat4 world;uniform float visibility;
8
+ #else
9
+ layout(std140,column_major) uniform;uniform Mesh
10
+ {mat4 world;float visibility;};
11
+ #endif
12
+ #define WORLD_UBO
13
+ `;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=s),e.s(["meshUboDeclaration",0,{name:a,shader:s}])},8571,63326,76305,e=>{"use strict";var t=e.i(47150);let a="gaussianSplattingVertexDeclaration",s="attribute vec3 position;attribute vec4 splatIndex0;attribute vec4 splatIndex1;attribute vec4 splatIndex2;attribute vec4 splatIndex3;uniform mat4 view;uniform mat4 projection;uniform mat4 world;uniform vec4 vEyePosition;";t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=s),e.s(["gaussianSplattingVertexDeclaration",0,{name:a,shader:s}],8571),e.i(67827),e.i(38605);let o="gaussianSplattingUboDeclaration",i=`#include<sceneUboDeclaration>
14
+ #include<meshUboDeclaration>
15
+ attribute vec3 position;attribute vec4 splatIndex0;attribute vec4 splatIndex1;attribute vec4 splatIndex2;attribute vec4 splatIndex3;
16
+ `;t.ShaderStore.IncludesShadersStore[o]||(t.ShaderStore.IncludesShadersStore[o]=i),e.s(["gaussianSplattingUboDeclaration",0,{name:o,shader:i}],63326);let c="gaussianSplatting",l=`#if !defined(WEBGL2) && !defined(WEBGPU) && !defined(NATIVE)
17
+ mat3 transpose(mat3 matrix) {return mat3(matrix[0][0],matrix[1][0],matrix[2][0],
18
+ matrix[0][1],matrix[1][1],matrix[2][1],
19
+ matrix[0][2],matrix[1][2],matrix[2][2]);}
20
+ #endif
21
+ vec2 getDataUV(float index,vec2 textureSize) {float y=floor(index/textureSize.x);float x=index-y*textureSize.x;return vec2((x+0.5)/textureSize.x,(y+0.5)/textureSize.y);}
22
+ #if SH_DEGREE>0 || IS_COMPOUND
23
+ ivec2 getDataUVint(float index,vec2 textureSize) {float y=floor(index/textureSize.x);float x=index-y*textureSize.x;return ivec2(uint(x+0.5),uint(y+0.5));}
24
+ #endif
25
+ struct Splat {vec4 center;vec4 color;vec4 covA;vec4 covB;
26
+ #if SH_DEGREE>0
27
+ uvec4 sh0;
28
+ #endif
29
+ #if SH_DEGREE>1
30
+ uvec4 sh1;
31
+ #endif
32
+ #if SH_DEGREE>2
33
+ uvec4 sh2;
34
+ #endif
35
+ #if SH_DEGREE>3
36
+ uvec4 sh3;uvec4 sh4;
37
+ #endif
38
+ #if IS_COMPOUND
39
+ uint partIndex;
40
+ #endif
41
+ #if defined(IS_FOR_VOXELIZATION)
42
+ vec4 rotationA;vec4 rotationB;vec4 rotationScale;
43
+ #endif
44
+ #ifdef USE_SOG
45
+ float splatIndex;
46
+ #endif
47
+ };float getSplatIndex(int localIndex)
48
+ {float splatIndex;switch (localIndex)
49
+ {case 0: splatIndex=splatIndex0.x; break;case 1: splatIndex=splatIndex0.y; break;case 2: splatIndex=splatIndex0.z; break;case 3: splatIndex=splatIndex0.w; break;case 4: splatIndex=splatIndex1.x; break;case 5: splatIndex=splatIndex1.y; break;case 6: splatIndex=splatIndex1.z; break;case 7: splatIndex=splatIndex1.w; break;case 8: splatIndex=splatIndex2.x; break;case 9: splatIndex=splatIndex2.y; break;case 10: splatIndex=splatIndex2.z; break;case 11: splatIndex=splatIndex2.w; break;case 12: splatIndex=splatIndex3.x; break;case 13: splatIndex=splatIndex3.y; break;case 14: splatIndex=splatIndex3.z; break;case 15: splatIndex=splatIndex3.w; break;}
50
+ return splatIndex;}
51
+ Splat readSplat(float splatIndex)
52
+ {Splat splat;vec2 splatUV=getDataUV(splatIndex,dataTextureSize);
53
+ #ifdef USE_SOG
54
+ ivec2 sogUVi=ivec2(int(splatUV.x*dataTextureSize.x),int(splatUV.y*dataTextureSize.y));vec4 mL=texelFetch(centersTexture,sogUVi,0);
55
+ vec4 mU=texelFetch(covariancesATexture,sogUVi,0);
56
+ vec4 sRaw=texelFetch(covariancesBTexture,sogUVi,0);
57
+ vec4 qRaw=texelFetch(sogQuatsTexture,sogUVi,0);
58
+ vec4 c0=texelFetch(colorsTexture,sogUVi,0);
59
+ vec3 q16=(mU.xyz*256.0+mL.xyz)*(255.0/65535.0);vec3 nPos=mix(sogMeansMin,sogMeansMax,q16);vec3 center=sign(nPos)*(exp(abs(nPos))-vec3(1.0));splat.center=vec4(center,1.0);
60
+ #ifdef USE_SOG_V2
61
+ vec3 sIdx=floor(sRaw.xyz*255.0+0.5);vec3 splatScale;splatScale.x=exp(texelFetch(sogCodebookTexture,ivec2(int(sIdx.x),0),0).r);splatScale.y=exp(texelFetch(sogCodebookTexture,ivec2(int(sIdx.y),0),0).r);splatScale.z=exp(texelFetch(sogCodebookTexture,ivec2(int(sIdx.z),0),0).r);
62
+ #else
63
+ vec3 splatScale=exp(mix(sogScalesMin,sogScalesMax,sRaw.xyz));
64
+ #endif
65
+ const float invSqrt2=0.70710678118;vec3 qabc=(qRaw.xyz-vec3(0.5))*2.0*invSqrt2;int qMode=int(qRaw.w*255.0+0.5)-252;float qd=sqrt(max(0.0,1.0-dot(qabc,qabc)));vec4 quat;if (qMode==0) quat=vec4(qd,qabc.x,qabc.y,qabc.z);else if (qMode==1) quat=vec4(qabc.x,qd,qabc.y,qabc.z);else if (qMode==2) quat=vec4(qabc.x,qabc.y,qd,qabc.z);else quat=vec4(qabc.x,qabc.y,qabc.z,qd);float qw=quat.x,qx=quat.y,qy=quat.z,qz=quat.w;mat3 R=mat3(
66
+ 1.0-2.0*(qy*qy+qz*qz),2.0*(qx*qy+qw*qz), 2.0*(qx*qz-qw*qy),
67
+ 2.0*(qx*qy-qw*qz), 1.0-2.0*(qx*qx+qz*qz),2.0*(qy*qz+qw*qx),
68
+ 2.0*(qx*qz+qw*qy), 2.0*(qy*qz-qw*qx), 1.0-2.0*(qx*qx+qy*qy)
69
+ );mat3 S2=mat3(4.0*splatScale.x*splatScale.x,0.0,0.0,
70
+ 0.0,4.0*splatScale.y*splatScale.y,0.0,
71
+ 0.0,0.0,4.0*splatScale.z*splatScale.z);mat3 Sigma=R*S2*transpose(R);splat.covA=vec4(Sigma[0][0],Sigma[0][1],Sigma[0][2],Sigma[1][1]);splat.covB=vec4(Sigma[1][2],Sigma[2][2],0.0,0.0);const float SH_C0=0.28209479177387814;
72
+ #ifdef USE_SOG_V2
73
+ vec3 c3;c3.x=texelFetch(sogCodebookTexture,ivec2(256+int(c0.x*255.0+0.5),0),0).r;c3.y=texelFetch(sogCodebookTexture,ivec2(256+int(c0.y*255.0+0.5),0),0).r;c3.z=texelFetch(sogCodebookTexture,ivec2(256+int(c0.z*255.0+0.5),0),0).r;vec3 colRgb=vec3(0.5)+c3*SH_C0;float colA=c0.w;
74
+ #else
75
+ vec4 cLerp=mix(sogSh0Min,sogSh0Max,c0);vec3 colRgb=vec3(0.5)+cLerp.xyz*SH_C0;float colA=1.0/(1.0+exp(-cLerp.w));
76
+ #endif
77
+ splat.color=vec4(colRgb,colA);splat.splatIndex=splatIndex;
78
+ #else
79
+ splat.center=texture2D(centersTexture,splatUV);splat.color=texture2D(colorsTexture,splatUV);
80
+ #if !defined(IS_FOR_VOXELIZATION)
81
+ splat.covA=texture2D(covariancesATexture,splatUV)*splat.center.w;splat.covB=texture2D(covariancesBTexture,splatUV)*splat.center.w;
82
+ #endif
83
+ #endif
84
+ #if SH_DEGREE>0 || IS_COMPOUND
85
+ ivec2 splatUVint=getDataUVint(splatIndex,dataTextureSize);
86
+ #endif
87
+ #if SH_DEGREE>0 && !defined(USE_SOG)
88
+ splat.sh0=texelFetch(shTexture0,splatUVint,0);
89
+ #endif
90
+ #if SH_DEGREE>1 && !defined(USE_SOG)
91
+ splat.sh1=texelFetch(shTexture1,splatUVint,0);
92
+ #endif
93
+ #if SH_DEGREE>2 && !defined(USE_SOG)
94
+ splat.sh2=texelFetch(shTexture2,splatUVint,0);
95
+ #endif
96
+ #if SH_DEGREE>3 && !defined(USE_SOG)
97
+ splat.sh3=texelFetch(shTexture3,splatUVint,0);splat.sh4=texelFetch(shTexture4,splatUVint,0);
98
+ #endif
99
+ #if IS_COMPOUND
100
+ splat.partIndex=uint(texture2D(partIndicesTexture,splatUV).r*255.0+0.5);
101
+ #endif
102
+ #if defined(IS_FOR_VOXELIZATION)
103
+ splat.rotationA=texture2D(rotationsATexture,splatUV);splat.rotationB=texture2D(rotationsBTexture,splatUV);splat.rotationScale=texture2D(rotationScaleTexture,splatUV);
104
+ #endif
105
+ return splat;}
106
+ #if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
107
+ vec3 computeColorFromSHDegree(vec3 dir,const vec3 sh[25],float _so1,float _so2,float _so3,float _so4)
108
+ {const float SH_C0=0.28209479;const float SH_C1=0.48860251;float SH_C2[5];SH_C2[0]=1.092548430;SH_C2[1]=-1.09254843;SH_C2[2]=0.315391565;SH_C2[3]=-1.09254843;SH_C2[4]=0.546274215;float SH_C3[7];SH_C3[0]=-0.59004358;SH_C3[1]=2.890611442;SH_C3[2]=-0.45704579;SH_C3[3]=0.373176332;SH_C3[4]=-0.45704579;SH_C3[5]=1.445305721;SH_C3[6]=-0.59004358;float SH_C4[9];SH_C4[0]= 2.5033429418;SH_C4[1]=-1.7701307698;SH_C4[2]= 0.9461746958;SH_C4[3]=-0.6690465436;SH_C4[4]= 0.1057855469;SH_C4[5]=-0.6690465436;SH_C4[6]= 0.4730873479;SH_C4[7]=-1.7701307698;SH_C4[8]= 0.6258357354;vec3 result=/*SH_C0**/sh[0];
109
+ #if SH_DEGREE>0
110
+ float x=dir.x;float y=dir.y;float z=dir.z;result+=_so1*(- SH_C1*y*sh[1]+SH_C1*z*sh[2]-SH_C1*x*sh[3]);
111
+ #if SH_DEGREE>1
112
+ float xx=x*x,yy=y*y,zz=z*z;float xy=x*y,yz=y*z,xz=x*z;result+=_so2*(
113
+ SH_C2[0]*xy*sh[4] +
114
+ SH_C2[1]*yz*sh[5] +
115
+ SH_C2[2]*(2.0*zz-xx-yy)*sh[6] +
116
+ SH_C2[3]*xz*sh[7] +
117
+ SH_C2[4]*(xx-yy)*sh[8]);
118
+ #if SH_DEGREE>2
119
+ result+=_so3*(
120
+ SH_C3[0]*y*(3.0*xx-yy)*sh[9] +
121
+ SH_C3[1]*xy*z*sh[10] +
122
+ SH_C3[2]*y*(4.0*zz-xx-yy)*sh[11] +
123
+ SH_C3[3]*z*(2.0*zz-3.0*xx-3.0*yy)*sh[12] +
124
+ SH_C3[4]*x*(4.0*zz-xx-yy)*sh[13] +
125
+ SH_C3[5]*z*(xx-yy)*sh[14] +
126
+ SH_C3[6]*x*(xx-3.0*yy)*sh[15]);
127
+ #if SH_DEGREE>3
128
+ result+=_so4*(
129
+ SH_C4[0]*x*y*(xx-yy)*sh[16] +
130
+ SH_C4[1]*y*z*(3.0*xx-yy)*sh[17] +
131
+ SH_C4[2]*x*y*(7.0*zz-1.0)*sh[18] +
132
+ SH_C4[3]*y*z*(7.0*zz-3.0)*sh[19] +
133
+ SH_C4[4]*(zz*(35.0*zz-30.0)+3.0)*sh[20] +
134
+ SH_C4[5]*x*z*(7.0*zz-3.0)*sh[21] +
135
+ SH_C4[6]*(xx-yy)*(7.0*zz-1.0)*sh[22] +
136
+ SH_C4[7]*x*z*(xx-3.0*yy)*sh[23] +
137
+ SH_C4[8]*(xx*(xx-3.0*yy)-yy*(3.0*xx-yy))*sh[24]);
138
+ #endif
139
+ #endif
140
+ #endif
141
+ #endif
142
+ return result;}
143
+ vec4 decompose(uint value)
144
+ {vec4 components=vec4(
145
+ float((value ) & 255u),
146
+ float((value>>uint( 8)) & 255u),
147
+ float((value>>uint(16)) & 255u),
148
+ float((value>>uint(24)) & 255u));return components*vec4(2./255.)-vec4(1.);}
149
+ #ifdef USE_SOG
150
+ vec3 computeSH(Splat splat,vec3 dir)
151
+ {
152
+ #if SH_DEGREE>0
153
+ vec3 sh[25];sh[0]=vec3(0.,0.,0.);ivec2 labelSize=textureSize(sogShNLabelsTexture,0);int idx=int(splat.splatIndex+0.5);int lx=idx-(idx/labelSize.x)*labelSize.x;int ly=idx/labelSize.x;vec4 labelRaw=texelFetch(sogShNLabelsTexture,ivec2(lx,ly),0);int n=int(labelRaw.r*255.0+0.5)+int(labelRaw.g*255.0+0.5)*256;int coeffs=int(sogShCoeffCount+0.5);int u=(n-(n/64)*64)*coeffs;int v=n/64;for (int k=0; k<24; k++) {if (k>=coeffs) break;vec4 centroidRaw=texelFetch(sogShNCentroidsTexture,ivec2(u+k,v),0);vec3 shCoeff;
154
+ #ifdef USE_SOG_V2
155
+ int rIdx=int(centroidRaw.r*255.0+0.5);int gIdx=int(centroidRaw.g*255.0+0.5);int bIdx=int(centroidRaw.b*255.0+0.5);shCoeff.r=texelFetch(sogCodebookTexture,ivec2(512+rIdx,0),0).r;shCoeff.g=texelFetch(sogCodebookTexture,ivec2(512+gIdx,0),0).r;shCoeff.b=texelFetch(sogCodebookTexture,ivec2(512+bIdx,0),0).r;
156
+ #else
157
+ shCoeff=mix(vec3(sogShnMin),vec3(sogShnMax),centroidRaw.rgb);
158
+ #endif
159
+ sh[k+1]=shCoeff;}
160
+ return computeColorFromSHDegree(dir,sh,1.,1.,1.,1.);
161
+ #else
162
+ return vec3(0.,0.,0.);
163
+ #endif
164
+ }
165
+ #else
166
+ vec3 computeSHWeighted(Splat splat,vec3 dir,float _so1,float _so2,float _so3,float _so4)
167
+ {vec3 sh[25];sh[0]=vec3(0.,0.,0.);
168
+ #if SH_DEGREE>0
169
+ vec4 sh00=decompose(splat.sh0.x);vec4 sh01=decompose(splat.sh0.y);vec4 sh02=decompose(splat.sh0.z);sh[1]=vec3(sh00.x,sh00.y,sh00.z);sh[2]=vec3(sh00.w,sh01.x,sh01.y);sh[3]=vec3(sh01.z,sh01.w,sh02.x);
170
+ #endif
171
+ #if SH_DEGREE>1
172
+ vec4 sh03=decompose(splat.sh0.w);vec4 sh04=decompose(splat.sh1.x);vec4 sh05=decompose(splat.sh1.y);sh[4]=vec3(sh02.y,sh02.z,sh02.w);sh[5]=vec3(sh03.x,sh03.y,sh03.z);sh[6]=vec3(sh03.w,sh04.x,sh04.y);sh[7]=vec3(sh04.z,sh04.w,sh05.x);sh[8]=vec3(sh05.y,sh05.z,sh05.w);
173
+ #endif
174
+ #if SH_DEGREE>2
175
+ vec4 sh06=decompose(splat.sh1.z);vec4 sh07=decompose(splat.sh1.w);vec4 sh08=decompose(splat.sh2.x);vec4 sh09=decompose(splat.sh2.y);vec4 sh10=decompose(splat.sh2.z);vec4 sh11=decompose(splat.sh2.w);sh[9]=vec3(sh06.x,sh06.y,sh06.z);sh[10]=vec3(sh06.w,sh07.x,sh07.y);sh[11]=vec3(sh07.z,sh07.w,sh08.x);sh[12]=vec3(sh08.y,sh08.z,sh08.w);sh[13]=vec3(sh09.x,sh09.y,sh09.z);sh[14]=vec3(sh09.w,sh10.x,sh10.y);sh[15]=vec3(sh10.z,sh10.w,sh11.x);
176
+ #endif
177
+ #if SH_DEGREE>3
178
+ vec4 sh12=decompose(splat.sh3.x);vec4 sh13=decompose(splat.sh3.y);vec4 sh14=decompose(splat.sh3.z);vec4 sh15=decompose(splat.sh3.w);vec4 sh16=decompose(splat.sh4.x);vec4 sh17=decompose(splat.sh4.y);sh[16]=vec3(sh11.y,sh11.z,sh11.w);sh[17]=vec3(sh12.x,sh12.y,sh12.z);sh[18]=vec3(sh12.w,sh13.x,sh13.y);sh[19]=vec3(sh13.z,sh13.w,sh14.x);sh[20]=vec3(sh14.y,sh14.z,sh14.w);sh[21]=vec3(sh15.x,sh15.y,sh15.z);sh[22]=vec3(sh15.w,sh16.x,sh16.y);sh[23]=vec3(sh16.z,sh16.w,sh17.x);sh[24]=vec3(sh17.y,sh17.z,sh17.w);
179
+ #endif
180
+ return computeColorFromSHDegree(dir,sh,_so1,_so2,_so3,_so4);}
181
+ vec3 computeSH(Splat splat,vec3 dir)
182
+ {
183
+ #if !defined(GS_DBG_ENABLED) || GS_DBG_SH_ORDER1==1
184
+ float _w1=1.0;
185
+ #else
186
+ float _w1=0.0;
187
+ #endif
188
+ #if !defined(GS_DBG_ENABLED) || GS_DBG_SH_ORDER2==1
189
+ float _w2=1.0;
190
+ #else
191
+ float _w2=0.0;
192
+ #endif
193
+ #if !defined(GS_DBG_ENABLED) || GS_DBG_SH_ORDER3==1
194
+ float _w3=1.0;
195
+ #else
196
+ float _w3=0.0;
197
+ #endif
198
+ #if !defined(GS_DBG_ENABLED) || GS_DBG_SH_ORDER4==1
199
+ float _w4=1.0;
200
+ #else
201
+ float _w4=0.0;
202
+ #endif
203
+ return computeSHWeighted(splat,dir,_w1,_w2,_w3,_w4);}
204
+ #endif
205
+ #else
206
+ vec3 computeSH(Splat splat,vec3 dir)
207
+ {return vec3(0.,0.,0.);}
208
+ #endif
209
+ #if !defined(IS_FOR_VOXELIZATION)
210
+ vec4 gaussianSplatting(vec2 meshPos,vec3 worldPos,vec2 scale,vec3 covA,vec3 covB,mat4 worldMatrix,mat4 viewMatrix,mat4 projectionMatrix)
211
+ {mat4 modelView=viewMatrix*worldMatrix;vec4 camspace=viewMatrix*vec4(worldPos,1.);vec4 pos2d=projectionMatrix*camspace;float bounds=1.2*pos2d.w;if (pos2d.z<-pos2d.w || pos2d.x<-bounds || pos2d.x>bounds
212
+ || pos2d.y<-bounds || pos2d.y>bounds) {return vec4(0.0,0.0,2.0,1.0);}
213
+ mat3 Vrk=mat3(
214
+ covA.x,covA.y,covA.z,
215
+ covA.y,covB.x,covB.y,
216
+ covA.z,covB.y,covB.z
217
+ );bool isOrtho=abs(projectionMatrix[3][3]-1.0)<0.001;mat3 J;if (isOrtho) {J=mat3(
218
+ focal.x,0.,0.,
219
+ 0.,focal.y,0.,
220
+ 0.,0.,0.
221
+ );} else {J=mat3(
222
+ focal.x/camspace.z,0.,-(focal.x*camspace.x)/(camspace.z*camspace.z),
223
+ 0.,focal.y/camspace.z,-(focal.y*camspace.y)/(camspace.z*camspace.z),
224
+ 0.,0.,0.
225
+ );}
226
+ mat3 T=transpose(mat3(modelView))*J;mat3 cov2d=transpose(T)*Vrk*T;
227
+ #if COMPENSATION
228
+ float c00=cov2d[0][0];float c11=cov2d[1][1];float c01=cov2d[0][1];float detOrig=c00*c11-c01*c01;
229
+ #endif
230
+ cov2d[0][0]+=kernelSize;cov2d[1][1]+=kernelSize;
231
+ #if COMPENSATION
232
+ vec3 c2d=vec3(cov2d[0][0],c01,cov2d[1][1]);float detBlur=c2d.x*c2d.z-c2d.y*c2d.y;float compensation=sqrt(max(0.,detOrig/detBlur));vColor.w*=compensation;
233
+ #endif
234
+ float mid=(cov2d[0][0]+cov2d[1][1])/2.0;float radius=length(vec2((cov2d[0][0]-cov2d[1][1])/2.0,cov2d[0][1]));float epsilon=0.0001;float lambda1=mid+radius+epsilon,lambda2=mid-radius+epsilon;if (lambda2<0.0)
235
+ {return vec4(0.0,0.0,2.0,1.0);}
236
+ if (minPixelSize>0.0) {float l1=2.0*min(sqrt(2.0*lambda1),1024.0);float l2=2.0*min(sqrt(2.0*lambda2),1024.0);if (max(l1,l2)<minPixelSize) {return vec4(0.0,0.0,2.0,1.0);}}
237
+ vec2 diagonalVector=normalize(vec2(cov2d[0][1],lambda1-cov2d[0][0]));vec2 majorAxis=min(sqrt(2.0*lambda1),1024.0)*diagonalVector;vec2 minorAxis=min(sqrt(2.0*lambda2),1024.0)*vec2(diagonalVector.y,-diagonalVector.x);vec2 vCenter=vec2(pos2d);float scaleFactor=isOrtho ? 1.0 : pos2d.w;return vec4(
238
+ vCenter
239
+ + ((meshPos.x*majorAxis
240
+ + meshPos.y*minorAxis)*invViewport*scaleFactor)*scale,pos2d.zw);}
241
+ #endif
242
+ #if IS_COMPOUND
243
+ mat4 getPartWorld(uint partIndex) {return partWorld[partIndex];}
244
+ #endif
245
+ #if defined(IS_FOR_VOXELIZATION)
246
+ vec4 computeVoxelSplatWorldPos(vec4 rotationA,vec4 rotationB,vec4 rotationScale,vec3 center,mat4 splatWorld,mat4 viewMatrix,mat4 invWorldScale,vec2 quadPos) {mat3 splatRotation=mat3(
247
+ vec3(rotationA.x,rotationA.y,rotationA.z),
248
+ vec3(rotationA.w,rotationB.x,rotationB.y),
249
+ vec3(rotationB.z,rotationB.w,rotationScale.x)
250
+ );vec3 splatScale=vec3(rotationScale.y,rotationScale.z,rotationScale.w);mat3 rotToView=mat3(viewMatrix)*mat3(invWorldScale)*mat3(splatWorld)*splatRotation;vec3 axisLengthInViewZ=abs(vec3(rotToView[0][2],rotToView[1][2],rotToView[2][2]));float gaussianSplatCutoffStddev=1.4142135624/2.0;
251
+ vec3 offsetSplatSpace;if (axisLengthInViewZ.x>axisLengthInViewZ.y && axisLengthInViewZ.x>axisLengthInViewZ.z) {offsetSplatSpace=vec3(0.0,quadPos.x,quadPos.y)*splatScale*gaussianSplatCutoffStddev;} else if (axisLengthInViewZ.y>axisLengthInViewZ.z) {offsetSplatSpace=vec3(quadPos.x,0.0,quadPos.y)*splatScale*gaussianSplatCutoffStddev;} else {offsetSplatSpace=vec3(quadPos.x,quadPos.y,0.0)*splatScale*gaussianSplatCutoffStddev;}
252
+ vec3 vertexObjectSpace=center+splatRotation*offsetSplatSpace;return splatWorld*vec4(vertexObjectSpace,1.0);}
253
+ #endif
254
+ `;t.ShaderStore.IncludesShadersStore[c]||(t.ShaderStore.IncludesShadersStore[c]=l),e.s(["gaussianSplatting",0,{name:c,shader:l}],76305)},21325,e=>{"use strict";var t=e.i(47150),a=e.i(8571),s=e.i(67827),o=e.i(38605),i=e.i(63326),c=e.i(76305);let l="gaussianSplattingVoxelVertexShader",r=`#include<__decl__gaussianSplattingVertex>
255
+ uniform vec2 dataTextureSize;uniform float alpha;uniform mat4 invWorldScale;uniform mat4 viewMatrix;uniform sampler2D rotationsATexture;uniform sampler2D rotationsBTexture;uniform sampler2D rotationScaleTexture;uniform sampler2D centersTexture;uniform sampler2D colorsTexture;
256
+ #if IS_COMPOUND
257
+ uniform mat4 partWorld[MAX_PART_COUNT];uniform float partVisibility[MAX_PART_COUNT];uniform sampler2D partIndicesTexture;
258
+ #endif
259
+ varying vec3 vNormalizedPosition;varying vec3 vNormalizedCenterPosition;varying float vAlpha;varying vec2 vPatchPosition;
260
+ #include<gaussianSplatting>
261
+ void main(void) {float splatIndex=getSplatIndex(int(position.z+0.5));Splat splat=readSplat(splatIndex);
262
+ #if IS_COMPOUND
263
+ if (partVisibility[splat.partIndex]==0.0) {gl_Position=vec4(2.0,2.0,2.0,1.0);return;}
264
+ mat4 splatWorld=getPartWorld(splat.partIndex);
265
+ #else
266
+ mat4 splatWorld=world;
267
+ #endif
268
+ vec4 worldPos=computeVoxelSplatWorldPos(splat.rotationA,splat.rotationB,splat.rotationScale,splat.center.xyz,splatWorld,viewMatrix,invWorldScale,position.xy);gl_Position=viewMatrix*invWorldScale*worldPos;vNormalizedPosition=gl_Position.xyz*0.5+0.5;vec4 viewCenterPos=viewMatrix*invWorldScale*splatWorld*vec4(splat.center.xyz,1.0);vNormalizedCenterPosition=viewCenterPos.xyz*0.5+0.5;vAlpha=splat.color.w*alpha;
269
+ #if IS_COMPOUND
270
+ vAlpha*=partVisibility[splat.partIndex];
271
+ #endif
272
+ vPatchPosition=position.xy;}`;for(let e of(t.ShaderStore.ShadersStore[l]||(t.ShaderStore.ShadersStore[l]=r),[a.gaussianSplattingVertexDeclaration,s.sceneUboDeclaration,o.meshUboDeclaration,i.gaussianSplattingUboDeclaration,c.gaussianSplatting]))t.ShaderStore.IncludesShadersStore[e.name]||(t.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["gaussianSplattingVoxelVertexShader",0,{name:l,shader:r}])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79562,t=>{"use strict";var i=t.i(19434),e=t.i(80434),n=t.i(84572),o=t.i(38116);class a extends n.FlowGraphAsyncExecutionBlock{constructor(t){super(t),this.animationGroup=this.registerDataInput("animationGroup",i.RichTypeAny),this.stopAtFrame=this.registerDataInput("stopAtFrame",i.RichTypeNumber,-1)}_preparePendingTasks(t){let i=this.animationGroup.getValue(t),e=this.stopAtFrame.getValue(t)??-1,n=t._getGlobalContextVariable("pendingStopAnimations",[]);n.push({uniqueId:i.uniqueId,stopAtFrame:e}),t._setGlobalContextVariable("pendingStopAnimations",n)}_cancelPendingTasks(t){let i=this.animationGroup.getValue(t),e=t._getGlobalContextVariable("pendingStopAnimations",[]);for(let n=0;n<e.length;n++)if(e[n].uniqueId===i.uniqueId){e.splice(n,1),t._setGlobalContextVariable("pendingStopAnimations",e);break}}_execute(t){let i=this.animationGroup.getValue(t),n=this.stopAtFrame.getValue(t)??-1;return i?isNaN(n)?this._reportError(t,"Invalid stop time."):void(n>0?this._startPendingTasks(t):this._stopAnimation(i,t),this.out._activateSignal(t)):(e.Logger.Warn("No animation group provided to stop."),this._reportError(t,"No animation group provided to stop."))}_executeOnTick(t){let i=this.animationGroup.getValue(t),e=t._getGlobalContextVariable("pendingStopAnimations",[]);for(let n=0;n<e.length;n++)if(e[n].uniqueId===i.uniqueId&&i.getCurrentFrame()>=e[n].stopAtFrame){this._stopAnimation(i,t),e.splice(n,1),t._setGlobalContextVariable("pendingStopAnimations",e),this.done._activateSignal(t),t._removePendingBlock(this);break}}getClassName(){return"FlowGraphStopAnimationBlock"}_stopAnimation(t,i){let e=i._getGlobalContextVariable("currentlyRunningAnimationGroups",[]),n=e.indexOf(t.uniqueId);-1!==n&&(t.stop(),e.splice(n,1),i._setGlobalContextVariable("currentlyRunningAnimationGroups",e))}}let r=!1;function s(){r||(r=!0,(0,o.RegisterClass)("FlowGraphStopAnimationBlock",a))}t.s(["FlowGraphStopAnimationBlock",0,a,"RegisterFlowGraphStopAnimationBlock",0,s],25310),s(),t.s([],26500),t.i(26500),t.i(25310),t.s(["FlowGraphStopAnimationBlock",0,a],79562)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,96138,t=>{"use strict";var i=t.i(75105),e=t.i(16347),n=t.i(79440),o=t.i(44520);class a extends n.FlowGraphAsyncExecutionBlock{constructor(t){super(t),this.animationGroup=this.registerDataInput("animationGroup",i.RichTypeAny),this.stopAtFrame=this.registerDataInput("stopAtFrame",i.RichTypeNumber,-1)}_preparePendingTasks(t){let i=this.animationGroup.getValue(t),e=this.stopAtFrame.getValue(t)??-1,n=t._getGlobalContextVariable("pendingStopAnimations",[]);n.push({uniqueId:i.uniqueId,stopAtFrame:e}),t._setGlobalContextVariable("pendingStopAnimations",n)}_cancelPendingTasks(t){let i=this.animationGroup.getValue(t),e=t._getGlobalContextVariable("pendingStopAnimations",[]);for(let n=0;n<e.length;n++)if(e[n].uniqueId===i.uniqueId){e.splice(n,1),t._setGlobalContextVariable("pendingStopAnimations",e);break}}_execute(t){let i=this.animationGroup.getValue(t),n=this.stopAtFrame.getValue(t)??-1;return i?isNaN(n)?this._reportError(t,"Invalid stop time."):void(n>0?this._startPendingTasks(t):this._stopAnimation(i,t),this.out._activateSignal(t)):(e.Logger.Warn("No animation group provided to stop."),this._reportError(t,"No animation group provided to stop."))}_executeOnTick(t){let i=this.animationGroup.getValue(t),e=t._getGlobalContextVariable("pendingStopAnimations",[]);for(let n=0;n<e.length;n++)if(e[n].uniqueId===i.uniqueId&&i.getCurrentFrame()>=e[n].stopAtFrame){this._stopAnimation(i,t),e.splice(n,1),t._setGlobalContextVariable("pendingStopAnimations",e),this.done._activateSignal(t),t._removePendingBlock(this);break}}getClassName(){return"FlowGraphStopAnimationBlock"}_stopAnimation(t,i){let e=i._getGlobalContextVariable("currentlyRunningAnimationGroups",[]),n=e.indexOf(t.uniqueId);-1!==n&&(t.stop(),e.splice(n,1),i._setGlobalContextVariable("currentlyRunningAnimationGroups",e))}}let r=!1;function s(){r||(r=!0,(0,o.RegisterClass)("FlowGraphStopAnimationBlock",a))}t.s(["FlowGraphStopAnimationBlock",0,a,"RegisterFlowGraphStopAnimationBlock",0,s],35329),s(),t.s([],71884),t.i(71884),t.i(35329),t.s(["FlowGraphStopAnimationBlock",0,a],96138)}]);
@@ -0,0 +1,12 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63463,e=>{"use strict";var o=e.i(47150);let t="gaussianSplattingVoxelPixelShader",i=`var voxel_storage: texture_storage_3d<r8unorm,write>;varying vNormalizedPosition: vec3f;varying vNormalizedCenterPosition: vec3f;varying vAlpha: f32;varying vPatchPosition: vec2f;fn gsVoxelPrngCanonical1d(co: f32)->f32 {return fract(sin(co*91.3458)*47453.5453);}
2
+ fn gsVoxelPrngCanonical2d(co: vec2f)->f32 {return fract(sin(dot(co,vec2f(12.9898,78.233)))*43758.5453);}
3
+ fn gsVoxelPrngCanonical3d(co: vec3f)->f32 {return gsVoxelPrngCanonical2d(vec2f(co.x,co.y)+gsVoxelPrngCanonical1d(co.z));}
4
+ @fragment
5
+ fn main(input: FragmentInputs)->FragmentOutputs {let normPos: vec3f=input.vNormalizedPosition;let stepSize: f32=1.0/f32(textureDimensions(voxel_storage).x);let diff: vec3f=abs(input.vNormalizedCenterPosition-normPos);let distToCenter: f32=max(max(diff.x,diff.y),diff.z);let gaussian: f32=exp(-dot(input.vPatchPosition,input.vPatchPosition));let shadowingOpacity: f32=clamp(
6
+ select(gaussian,1.0,distToCenter<stepSize)*input.vAlpha,
7
+ 0.0,1.0
8
+ );if (shadowingOpacity<1.0 && shadowingOpacity<gsVoxelPrngCanonical3d(normPos/stepSize)) {discard;}
9
+ let size: vec3f=vec3f(textureDimensions(voxel_storage));textureStore(voxel_storage,
10
+ vec3<i32>(i32(normPos.x*size.x),i32(normPos.y*size.y),i32(normPos.z*size.z)),
11
+ vec4f(1.0,1.0,1.0,1.0));fragmentOutputs.color=vec4f(0.0,0.0,0.0,0.0);}
12
+ `;o.ShaderStore.ShadersStoreWGSL[t]||(o.ShaderStore.ShadersStoreWGSL[t]=i),e.s(["gaussianSplattingVoxelPixelShaderWGSL",0,{name:t,shader:i}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,39411,t=>{"use strict";var e=t.i(62478),i=t.i(75105),o=t.i(44520);class r extends e.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.config=t,this.object=this.registerDataInput("object",i.RichTypeAny,t.target),this.value=this.registerDataInput("value",i.RichTypeAny),this.propertyName=this.registerDataInput("propertyName",i.RichTypeString,t.propertyName),this.customSetFunction=this.registerDataInput("customSetFunction",i.RichTypeAny)}_execute(t,e){try{let e=this.object.getValue(t),i=this.value.getValue(t),o=this.propertyName.getValue(t);this._stopRunningAnimations(t,e,o);let r=this.customSetFunction.getValue(t);r?r(e,o,i,t):this._setPropertyValue(e,o,i)}catch(e){this._reportError(t,e)}this.out._activateSignal(t)}_stopRunningAnimations(t,e,i){let o=t._getGlobalContextVariable("currentlyRunningAnimationGroups",[]);for(let r of o){let n=t.assetsContext.animationGroups.find(t=>t.uniqueId===r);if(n){for(let s of n.targetedAnimations)if(s.target===e&&s.animation.targetProperty===i){n.stop(!0),n.dispose();let e=o.indexOf(r);-1!==e&&(o.splice(e,1),t._setGlobalContextVariable("currentlyRunningAnimationGroups",o))}}}}_setPropertyValue(t,e,i){let o=e.split("."),r=t;for(let t=0;t<o.length-1;t++){let e=o[t];void 0===r[e]&&(r[e]={}),r=r[e]}r[o[o.length-1]]=i}getClassName(){return"FlowGraphSetPropertyBlock"}}let n=!1;function s(){n||(n=!0,(0,o.RegisterClass)("FlowGraphSetPropertyBlock",r))}t.s(["FlowGraphSetPropertyBlock",0,r,"RegisterFlowGraphSetPropertyBlock",0,s],82734),s(),t.s([],7929),t.i(7929),t.i(82734),t.s(["FlowGraphSetPropertyBlock",0,r],39411)}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17667,e=>{"use strict";var t=e.i(38759),s=e.i(19434),l=e.i(80434),o=e.i(38116);class r extends t.FlowGraphExecutionBlockWithOutSignal{constructor(e){if(super(e),this.message=this.registerDataInput("message",s.RichTypeAny),this.logType=this.registerDataInput("logType",s.RichTypeString,"log"),e?.messageTemplate)for(const t of this._getTemplateMatches(e.messageTemplate))this.registerDataInput(t,s.RichTypeAny)}_execute(e){let t=this.logType.getValue(e),s=this._getMessageValue(e);"warn"===t?l.Logger.Warn(s):"error"===t?l.Logger.Error(s):l.Logger.Log(s),this.out._activateSignal(e)}getClassName(){return"FlowGraphConsoleLogBlock"}_serializeValue(e){if(null==e)return String(e);if("object"==typeof e){let t=e.toString();if("[object Object]"===t)try{return JSON.stringify(e)}catch{}return t}return String(e)}_getMessageValue(e){if(!this.config?.messageTemplate)return this.message.getValue(e);{let t=this.config.messageTemplate,s=this._getTemplateMatches(t),l=this.message.getValue(e),o=null!=l&&"object"==typeof l?l:null;for(let l of s){let s;if(void 0!==(s=null!==o&&l in o?o[l]:this.getDataInput(l)?.getValue(e))){let e=l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp(`\\{${e}\\}`,"g"),this._serializeValue(s))}}return t}}_getTemplateMatches(e){let t,s=/\{([^}]+)\}/g,l=[];for(;null!==(t=s.exec(e));)l.push(t[1]);return l}}let i=!1;function a(){i||(i=!0,(0,o.RegisterClass)("FlowGraphConsoleLogBlock",r))}e.s(["FlowGraphConsoleLogBlock",0,r,"RegisterFlowGraphConsoleLogBlock",0,a],91508),a(),e.s([],74644),e.i(74644),e.i(91508),e.s(["FlowGraphConsoleLogBlock",0,r],17667)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,40311,e=>{"use strict";var t=e.i(62478),s=e.i(75105),l=e.i(16347),o=e.i(44520);class r extends t.FlowGraphExecutionBlockWithOutSignal{constructor(e){if(super(e),this.message=this.registerDataInput("message",s.RichTypeAny),this.logType=this.registerDataInput("logType",s.RichTypeString,"log"),e?.messageTemplate)for(const t of this._getTemplateMatches(e.messageTemplate))this.registerDataInput(t,s.RichTypeAny)}_execute(e){let t=this.logType.getValue(e),s=this._getMessageValue(e);"warn"===t?l.Logger.Warn(s):"error"===t?l.Logger.Error(s):l.Logger.Log(s),this.out._activateSignal(e)}getClassName(){return"FlowGraphConsoleLogBlock"}_serializeValue(e){if(null==e)return String(e);if("object"==typeof e){let t=e.toString();if("[object Object]"===t)try{return JSON.stringify(e)}catch{}return t}return String(e)}_getMessageValue(e){if(!this.config?.messageTemplate)return this.message.getValue(e);{let t=this.config.messageTemplate,s=this._getTemplateMatches(t),l=this.message.getValue(e),o=null!=l&&"object"==typeof l?l:null;for(let l of s){let s;if(void 0!==(s=null!==o&&l in o?o[l]:this.getDataInput(l)?.getValue(e))){let e=l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp(`\\{${e}\\}`,"g"),this._serializeValue(s))}}return t}}_getTemplateMatches(e){let t,s=/\{([^}]+)\}/g,l=[];for(;null!==(t=s.exec(e));)l.push(t[1]);return l}}let i=!1;function a(){i||(i=!0,(0,o.RegisterClass)("FlowGraphConsoleLogBlock",r))}e.s(["FlowGraphConsoleLogBlock",0,r,"RegisterFlowGraphConsoleLogBlock",0,a],7154),a(),e.s([],91918),e.i(91918),e.i(7154),e.s(["FlowGraphConsoleLogBlock",0,r],40311)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52624,e=>{"use strict";let t,i,s,n,a,r,o,h,l,d,_,u,c,g,f,m;var I,p=e.i(57575),b=e.i(69400),y=e.i(9855),S=e.i(3864),L=e.i(23003),M=e.i(85050),E=e.i(2060);class T{constructor(){this._doNotSerialize=!1,this._isDisposed=!1,this._sceneRootNodesIndex=-1,this._isEnabled=!0,this._isParentEnabled=!0,this._isReady=!0,this._onEnabledStateChangedObservable=new S.Observable,this._onEffectiveEnabledStateChangedObservable=null,this._onClonedObservable=new S.Observable,this._inheritVisibility=!1,this._isVisible=!0}}let D=(r=[],o=[],h=[],l=[],d=[],_=[],u=[],c=[],g=[],f=[],I=class{static AddNodeConstructor(e,t){this._NodeConstructors[e]=t}static Construct(e,t,i,s){let n=this._NodeConstructors[e];return n?n(t,i,s):null}set accessibilityTag(e){this._accessibilityTag=e,this.onAccessibilityTagChangedObservable.notifyObservers(e)}get accessibilityTag(){return this._accessibilityTag}get doNotSerialize(){return!!this._nodeDataStorage._doNotSerialize||!!this._parentNode&&this._parentNode.doNotSerialize}set doNotSerialize(e){this._nodeDataStorage._doNotSerialize=e}isDisposed(){return this._nodeDataStorage._isDisposed}set parent(e){if(this._parentNode===e)return;let t=this._parentNode;if(this._parentNode&&void 0!==this._parentNode._children&&null!==this._parentNode._children){let t=this._parentNode._children.indexOf(this);-1!==t&&this._parentNode._children.splice(t,1),e||this._nodeDataStorage._isDisposed||this._addToSceneRootNodes()}this._parentNode=e,this._isDirty=!0,this._parentNode&&((void 0===this._parentNode._children||null===this._parentNode._children)&&(this._parentNode._children=[]),this._parentNode._children.push(this),t||this._removeFromSceneRootNodes()),this._syncParentEnabledState()}get parent(){return this._parentNode}get inheritVisibility(){return this._nodeDataStorage._inheritVisibility}set inheritVisibility(e){this._nodeDataStorage._inheritVisibility=e}get isVisible(){return(!this.inheritVisibility||!this._parentNode||!!this._parentNode.isVisible)&&this._nodeDataStorage._isVisible}set isVisible(e){this._nodeDataStorage._isVisible=e}_serializeAsParent(e){e.parentId=this.uniqueId}_addToSceneRootNodes(){-1===this._nodeDataStorage._sceneRootNodesIndex&&(this._nodeDataStorage._sceneRootNodesIndex=this._scene.rootNodes.length,this._scene.rootNodes.push(this))}_removeFromSceneRootNodes(){if(-1!==this._nodeDataStorage._sceneRootNodesIndex){let e=this._scene.rootNodes,t=e.length-1;e[this._nodeDataStorage._sceneRootNodesIndex]=e[t],e[this._nodeDataStorage._sceneRootNodesIndex]._nodeDataStorage._sceneRootNodesIndex=this._nodeDataStorage._sceneRootNodesIndex,this._scene.rootNodes.pop(),this._nodeDataStorage._sceneRootNodesIndex=-1}}get animationPropertiesOverride(){return this._animationPropertiesOverride?this._animationPropertiesOverride:this._scene.animationPropertiesOverride}set animationPropertiesOverride(e){this._animationPropertiesOverride=e}getClassName(){return"Node"}set onDispose(e){this._onDisposeObserver&&this.onDisposeObservable.remove(this._onDisposeObserver),this._onDisposeObserver=this.onDisposeObservable.add(e)}get onEnabledStateChangedObservable(){return this._nodeDataStorage._onEnabledStateChangedObservable}get onEffectiveEnabledStateChangedObservable(){var e;return(e=this._nodeDataStorage)._onEffectiveEnabledStateChangedObservable??(e._onEffectiveEnabledStateChangedObservable=new S.Observable)}get onClonedObservable(){return this._nodeDataStorage._onClonedObservable}constructor(e,t=null,i=!0){this._isDirty=!1,this._nodeDataStorage=new T,this.name=(0,p.__runInitializers)(this,r,void 0),this.id=((0,p.__runInitializers)(this,o),(0,p.__runInitializers)(this,h,void 0)),this.uniqueId=((0,p.__runInitializers)(this,l),(0,p.__runInitializers)(this,d,void 0)),this.state=((0,p.__runInitializers)(this,_),(0,p.__runInitializers)(this,u,"")),this.metadata=((0,p.__runInitializers)(this,c),(0,p.__runInitializers)(this,g,null)),this._internalMetadata=(0,p.__runInitializers)(this,f),this.reservedDataStore=null,this._accessibilityTag=null,this.onAccessibilityTagChangedObservable=new S.Observable,this._parentContainer=null,this.animations=[],this._ranges={},this.onReady=null,this._currentRenderId=-1,this._parentUpdateId=-1,this._childUpdateId=-1,this._waitingParentId=null,this._waitingParentInstanceIndex=null,this._waitingParsedUniqueId=null,this._cache={},this._parentNode=null,this._children=null,this._worldMatrix=b.Matrix.Identity(),this._worldMatrixDeterminant=0,this._worldMatrixDeterminantIsDirty=!0,this._animationPropertiesOverride=null,this._isNode=!0,this.onDisposeObservable=new S.Observable,this._onDisposeObserver=null,this._behaviors=[],this.name=e,this.id=e,this._scene=t||L.EngineStore.LastCreatedScene,this.uniqueId=this._scene.getUniqueId(),this._initCache(),i&&this._addToSceneRootNodes()}getScene(){return this._scene}getEngine(){return this._scene.getEngine()}addBehavior(e,t=!1){return -1!==this._behaviors.indexOf(e)||(e.init(),this._scene.isLoading&&!t?this._scene.onDataLoadedObservable.addOnce(()=>{this._behaviors.includes(e)&&e.attach(this)}):e.attach(this),this._behaviors.push(e)),this}removeBehavior(e){let t=this._behaviors.indexOf(e);return -1===t||(this._behaviors.splice(t,1),e.detach()),this}get behaviors(){return this._behaviors}getBehaviorByName(e){for(let t of this._behaviors)if(t.name===e)return t;return null}getWorldMatrix(){return this._currentRenderId!==this._scene.getRenderId()&&this.computeWorldMatrix(),this._worldMatrix}_getWorldMatrixDeterminant(){return this._worldMatrixDeterminantIsDirty&&(this._worldMatrixDeterminantIsDirty=!1,this._worldMatrixDeterminant=this._worldMatrix.determinant()),this._worldMatrixDeterminant}get worldMatrixFromCache(){return this._worldMatrix}_initCache(){this._cache={}}updateCache(e){!e&&this.isSynchronized()||this._updateCache()}_getActionManagerForTrigger(e,t=!0){return this.parent?this.parent._getActionManagerForTrigger(e,!1):null}_updateCache(e){}_isSynchronized(){return!0}_markSyncedWithParent(){this._parentNode&&(this._parentUpdateId=this._parentNode._childUpdateId)}isSynchronizedWithParent(){return!this._parentNode||!this._parentNode._isDirty&&this._parentUpdateId===this._parentNode._childUpdateId&&this._parentNode.isSynchronized()}isSynchronized(){return(!this._parentNode||!!this.isSynchronizedWithParent())&&this._isSynchronized()}isReady(e=!1){return this._nodeDataStorage._isReady}markAsDirty(e){return this._currentRenderId=Number.MAX_VALUE,this._isDirty=!0,this}isEnabled(e=!0){return!1===e?this._nodeDataStorage._isEnabled:!!this._nodeDataStorage._isEnabled&&this._nodeDataStorage._isParentEnabled}_hasEffectiveEnabledStateObservers(){let e=this._nodeDataStorage._onEffectiveEnabledStateChangedObservable;return!!e&&e.hasObservers()}_syncParentEnabledState(){let e=this._hasEffectiveEnabledStateObservers(),t=e?this.isEnabled():null;if(this._nodeDataStorage._isParentEnabled=!this._parentNode||this._parentNode.isEnabled(),this._children)for(let e of this._children)e._syncParentEnabledState();if(e){let e=this.isEnabled();e!==t&&this._nodeDataStorage._onEffectiveEnabledStateChangedObservable.notifyObservers(e)}}setEnabled(e){if(this._nodeDataStorage._isEnabled===e)return;let t=this._hasEffectiveEnabledStateObservers(),i=t?this.isEnabled():null;if(this._nodeDataStorage._isEnabled=e,this._syncParentEnabledState(),this._nodeDataStorage._onEnabledStateChangedObservable.notifyObservers(e),t){let e=this.isEnabled();e!==i&&this._nodeDataStorage._onEffectiveEnabledStateChangedObservable.notifyObservers(e)}}isDescendantOf(e){return!!this.parent&&(this.parent===e||this.parent.isDescendantOf(e))}_getDescendants(e,t=!1,i){if(this._children)for(let s=0;s<this._children.length;s++){let n=this._children[s];(!i||i(n))&&e.push(n),t||n._getDescendants(e,!1,i)}}getDescendants(e,t){let i=[];return this._getDescendants(i,e,t),i}getChildMeshes(e,t){let i=[];return this._getDescendants(i,e,e=>(!t||t(e))&&void 0!==e.cullingStrategy),i}getChildren(e,t=!0){return this.getDescendants(t,e)}_setReady(e){if(e!==this._nodeDataStorage._isReady){if(!e){this._nodeDataStorage._isReady=!1;return}this.onReady&&this.onReady(this),this._nodeDataStorage._isReady=!0}}getAnimationByName(e){for(let t=0;t<this.animations.length;t++){let i=this.animations[t];if(i.name===e)return i}return null}createAnimationRange(e,t,i){if(!this._ranges[e]){this._ranges[e]=I._AnimationRangeFactory(e,t,i);for(let s=0,n=this.animations.length;s<n;s++)this.animations[s]&&this.animations[s].createRange(e,t,i)}}deleteAnimationRange(e,t=!0){for(let i=0,s=this.animations.length;i<s;i++)this.animations[i]&&this.animations[i].deleteRange(e,t);this._ranges[e]=null}getAnimationRange(e){return this._ranges[e]||null}clone(e,t,i){let s=E.SerializationHelper.Clone(()=>new I(e,this.getScene()),this);if(t&&(s.parent=t),!i){let t=this.getDescendants(!0);for(let i=0;i<t.length;i++){let n=t[i];n.clone(e+"."+n.name,s)}}return s}getAnimationRanges(){let e,t=[];for(e in this._ranges)t.push(this._ranges[e]);return t}beginAnimation(e,t,i,s){let n=this.getAnimationRange(e);return n?this._scene.beginAnimation(this,n.from,n.to,t,i,s):null}serializeAnimationRanges(){let e=[];for(let t in this._ranges){let i=this._ranges[t];if(!i)continue;let s={};s.name=t,s.from=i.from,s.to=i.to,e.push(s)}return e}computeWorldMatrix(e){return this._worldMatrix||(this._worldMatrix=b.Matrix.Identity()),this._worldMatrix}dispose(e,t=!1){if(this._nodeDataStorage._isDisposed=!0,!e)for(let i of this.getDescendants(!0))i.dispose(e,t);for(let e of(this.parent?this.parent=null:this._removeFromSceneRootNodes(),this.onDisposeObservable.notifyObservers(this),this.onDisposeObservable.clear(),this.onEnabledStateChangedObservable.clear(),this._nodeDataStorage._onEffectiveEnabledStateChangedObservable?.clear(),this.onClonedObservable.clear(),this._behaviors))e.detach();this._behaviors.length=0,this.metadata=null}static ParseAnimationRanges(e,t,i){if(t.ranges)for(let i=0;i<t.ranges.length;i++){let s=t.ranges[i];e.createAnimationRange(s.name,s.from,s.to)}}getHierarchyBoundingVectors(e=!0,t=null){let i,s;if(this.getScene().incrementRenderId(),this.computeWorldMatrix(!0),this.getBoundingInfo&&this.subMeshes){let e=this.getBoundingInfo();i=e.boundingBox.minimumWorld.clone(),s=e.boundingBox.maximumWorld.clone()}else i=new b.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),s=new b.Vector3(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE);if(e)for(let e of this.getDescendants(!1)){if(e.computeWorldMatrix(!0),t&&!t(e)||!e.getBoundingInfo||0===e.getTotalVertices())continue;let n=e.getBoundingInfo().boundingBox,a=n.minimumWorld,r=n.maximumWorld;b.Vector3.CheckExtends(a,i,s),b.Vector3.CheckExtends(r,i,s)}return{min:i,max:s}}},m="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,t=[(0,y.serialize)()],i=[(0,y.serialize)()],s=[(0,y.serialize)()],n=[(0,y.serialize)()],a=[(0,y.serialize)()],(0,p.__esDecorate)(null,null,t,{kind:"field",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:m},r,o),(0,p.__esDecorate)(null,null,i,{kind:"field",name:"id",static:!1,private:!1,access:{has:e=>"id"in e,get:e=>e.id,set:(e,t)=>{e.id=t}},metadata:m},h,l),(0,p.__esDecorate)(null,null,s,{kind:"field",name:"uniqueId",static:!1,private:!1,access:{has:e=>"uniqueId"in e,get:e=>e.uniqueId,set:(e,t)=>{e.uniqueId=t}},metadata:m},d,_),(0,p.__esDecorate)(null,null,n,{kind:"field",name:"state",static:!1,private:!1,access:{has:e=>"state"in e,get:e=>e.state,set:(e,t)=>{e.state=t}},metadata:m},u,c),(0,p.__esDecorate)(null,null,a,{kind:"field",name:"metadata",static:!1,private:!1,access:{has:e=>"metadata"in e,get:e=>e.metadata,set:(e,t)=>{e.metadata=t}},metadata:m},g,f),m&&Object.defineProperty(I,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:m}),I._AnimationRangeFactory=(e,t,i)=>{throw(0,M._WarnImport)("AnimationRange")},I._NodeConstructors={},I);e.s(["Node",0,D])},90160,e=>{"use strict";let t,i,s,n,a,r,o,h,l,d,_,u,c,g,f,m,I,p,b,y,S,L,M,E,T,D,N,O,v,C,A,P,x,z,R,w;var H,U,k=e.i(57575),G=e.i(9855),F=e.i(69400),Y=e.i(19919),W=e.i(52624),B=e.i(96333),V=e.i(44520),q=e.i(60420),j=e.i(2060);let X=(g=W.Node,f=[],m=[],I=[],p=[],b=[],y=[],S=[],L=[],M=[],E=[],T=[],D=[],N=[],O=[],v=[],C=[],A=[],P=[],x=[],z=[],R=[],H=class extends g{get range(){return this._range}set range(e){this._range=e,this._inverseSquaredRange=1/(this.range*this.range)}get intensityMode(){return this._intensityMode}set intensityMode(e){this._intensityMode=e,this._computePhotometricScale()}get radius(){return this._radius}set radius(e){this._radius=e,this._computePhotometricScale()}get renderPriority(){return(0,k.__classPrivateFieldGet)(this,U,"f")}set renderPriority(e){(0,k.__classPrivateFieldSet)(this,U,e,"f")}get shadowEnabled(){return this._shadowEnabled}set shadowEnabled(e){this._shadowEnabled!==e&&(this._shadowEnabled=e,this._markMeshesAsLightDirty())}get includedOnlyMeshes(){return this._includedOnlyMeshes}set includedOnlyMeshes(e){this._includedOnlyMeshes=e,this._hookArrayForIncludedOnly(e)}get excludedMeshes(){return this._excludedMeshes}set excludedMeshes(e){this._excludedMeshes=e,this._hookArrayForExcluded(e)}get excludeWithLayerMask(){return this._excludeWithLayerMask}set excludeWithLayerMask(e){this._excludeWithLayerMask=e,this._resyncMeshes()}get includeOnlyWithLayerMask(){return this._includeOnlyWithLayerMask}set includeOnlyWithLayerMask(e){this._includeOnlyWithLayerMask=e,this._resyncMeshes()}get lightmapMode(){return this._lightmapMode}set lightmapMode(e){this._lightmapMode!==e&&(this._lightmapMode=e,this._markMeshesAsLightDirty())}getViewMatrix(e){return null}getProjectionMatrix(e,t){return null}constructor(e,t,i){super(e,t,!1),this.diffuse=((0,k.__runInitializers)(this,f),(0,k.__runInitializers)(this,m,new Y.Color3(1,1,1))),this.specular=((0,k.__runInitializers)(this,I),(0,k.__runInitializers)(this,p,new Y.Color3(1,1,1))),this.falloffType=((0,k.__runInitializers)(this,b),(0,k.__runInitializers)(this,y,H.FALLOFF_DEFAULT)),this.intensity=((0,k.__runInitializers)(this,S),(0,k.__runInitializers)(this,L,1)),this._range=((0,k.__runInitializers)(this,M),Number.MAX_VALUE),this._inverseSquaredRange=0,this._photometricScale=1,this._intensityMode=H.INTENSITYMODE_AUTOMATIC,this._radius=1e-5,this._renderPriority=(0,k.__runInitializers)(this,E,void 0),U.set(this,((0,k.__runInitializers)(this,T),(0,k.__runInitializers)(this,D,0))),this._shadowEnabled=((0,k.__runInitializers)(this,N),(0,k.__runInitializers)(this,O,!0)),this._includedOnlyMeshes=(0,k.__runInitializers)(this,v),this._excludeWithLayerMask=(0,k.__runInitializers)(this,C,0),this._includeOnlyWithLayerMask=((0,k.__runInitializers)(this,A),(0,k.__runInitializers)(this,P,0)),this._lightmapMode=((0,k.__runInitializers)(this,x),(0,k.__runInitializers)(this,z,0)),this._shadowGenerators=((0,k.__runInitializers)(this,R),null),this._excludedMeshesIds=[],this._includedOnlyMeshesIds=[],this._currentViewDepth=0,this._clusteredContainer=null,this._isLight=!0,i||this.getScene().addLight(this),this._uniformBuffer=new B.UniformBuffer(this.getScene().getEngine(),void 0,void 0,e),this._buildUniformLayout(),this.includedOnlyMeshes=[],this.excludedMeshes=[],i||this._resyncMeshes()}transferTexturesToEffect(e,t){return this}_bindLight(e,t,i,s,n=!0){let a=e.toString(),r=!1;if(this._uniformBuffer.bindToEffect(i,"Light"+a),this._renderId!==t.getRenderId()||this._lastUseSpecular!==s||!this._uniformBuffer.useUbo){this._renderId=t.getRenderId(),this._lastUseSpecular=s;let e=this.getScaledIntensity();this.transferToEffect(i,a),this.diffuse.scaleToRef(e,Y.TmpColors.Color3[0]),this._uniformBuffer.updateColor4("vLightDiffuse",Y.TmpColors.Color3[0],this.range,a),s&&(this.specular.scaleToRef(e,Y.TmpColors.Color3[1]),this._uniformBuffer.updateColor4("vLightSpecular",Y.TmpColors.Color3[1],this.radius,a)),r=!0}if(this.transferTexturesToEffect(i,a),t.shadowsEnabled&&this.shadowEnabled&&n){let e=this.getShadowGenerator(t.activeCamera)??this.getShadowGenerator();e&&(e.bindShadowLight(a,i),r=!0)}r?this._uniformBuffer.update():this._uniformBuffer.bindUniformBuffer()}getClassName(){return"Light"}toString(e){let t="Name: "+this.name;if(t+=", type: "+["Point","Directional","Spot","Hemispheric","Clustered"][this.getTypeID()],this.animations)for(let i=0;i<this.animations.length;i++)t+=", animation[0]: "+this.animations[i].toString(e);return t}_syncParentEnabledState(){super._syncParentEnabledState(),this.isDisposed()||this._resyncMeshes()}setEnabled(e){super.setEnabled(e),this._resyncMeshes()}getShadowGenerator(e=null){return null===this._shadowGenerators?null:this._shadowGenerators.get(e)??null}getShadowGenerators(){return this._shadowGenerators}getAbsolutePosition(){return F.Vector3.Zero()}canAffectMesh(e){return!e||(!this.includedOnlyMeshes||!(this.includedOnlyMeshes.length>0)||-1!==this.includedOnlyMeshes.indexOf(e))&&(!this.excludedMeshes||!(this.excludedMeshes.length>0)||-1===this.excludedMeshes.indexOf(e))&&(0===this.includeOnlyWithLayerMask||(this.includeOnlyWithLayerMask&e.layerMask)!=0)&&(0===this.excludeWithLayerMask||!(this.excludeWithLayerMask&e.layerMask))}dispose(e,t=!1){if(this._shadowGenerators){let e=this._shadowGenerators.values();for(let t=e.next();!0!==t.done;t=e.next())t.value.dispose();this._shadowGenerators=null}if(this.getScene().stopAnimation(this),this._parentContainer){let e=this._parentContainer.lights.indexOf(this);e>-1&&this._parentContainer.lights.splice(e,1),this._parentContainer=null}for(let e of this.getScene().meshes)e._removeLightSource(this,!0);this._uniformBuffer.dispose(),this.getScene().removeLight(this),super.dispose(e,t)}getTypeID(){return 0}getScaledIntensity(){return this._photometricScale*this.intensity}clone(e,t=null){let i=H.GetConstructorFromName(this.getTypeID(),e,this.getScene());if(!i)return null;let s=j.SerializationHelper.Clone(i,this);return e&&(s.name=e),t&&(s.parent=t),s.setEnabled(this.isEnabled()),this.onClonedObservable.notifyObservers(s),s}serialize(){let e=j.SerializationHelper.Serialize(this);if(e.uniqueId=this.uniqueId,e.type=this.getTypeID(),this.parent&&this.parent._serializeAsParent(e),this.excludedMeshes.length>0)for(let t of(e.excludedMeshesIds=[],this.excludedMeshes))e.excludedMeshesIds.push(t.id);if(this.includedOnlyMeshes.length>0)for(let t of(e.includedOnlyMeshesIds=[],this.includedOnlyMeshes))e.includedOnlyMeshesIds.push(t.id);return j.SerializationHelper.AppendSerializedAnimations(this,e),e.ranges=this.serializeAnimationRanges(),e.isEnabled=this.isEnabled(),e}static GetConstructorFromName(e,t,i){let s=W.Node.Construct("Light_Type_"+e,t,i);return s||null}static Parse(e,t,i=""){let s=H.GetConstructorFromName(e.type,e.name,t);if(!s)return null;let n=j.SerializationHelper.Parse(s,e,t,i);if(e.excludedMeshesIds&&(n._excludedMeshesIds=e.excludedMeshesIds),e.includedOnlyMeshesIds&&(n._includedOnlyMeshesIds=e.includedOnlyMeshesIds),void 0!==e.parentId&&(n._waitingParentId=e.parentId),void 0!==e.parentInstanceIndex&&(n._waitingParentInstanceIndex=e.parentInstanceIndex),void 0!==e.falloffType&&(n.falloffType=e.falloffType),void 0!==e.lightmapMode&&(n.lightmapMode=e.lightmapMode),e.animations){for(let t=0;t<e.animations.length;t++){let i=e.animations[t],s=(0,V.GetClass)("BABYLON.Animation");s&&n.animations.push(s.Parse(i))}W.Node.ParseAnimationRanges(n,e,t)}return e.autoAnimate&&t.beginAnimation(n,e.autoAnimateFrom,e.autoAnimateTo,e.autoAnimateLoop,e.autoAnimateSpeed||1),void 0!==e.isEnabled&&n.setEnabled(e.isEnabled),n._onParsed(e,t,i),n}_onParsed(e,t,i=""){}_hookArrayForExcluded(e){let t=e.push;e.push=(...i)=>{let s=t.apply(e,i);if(this._clusteredContainer)return s;for(let e of i)e._resyncLightSource(this);return s};let i=e.splice;if(e.splice=(t,s)=>{let n=i.call(e,t,s??e.length);if(this._clusteredContainer)return n;for(let e of n)e._resyncLightSource(this);return n},!this._clusteredContainer)for(let t of e)t._resyncLightSource(this)}_hookArrayForIncludedOnly(e){let t=e.push;e.push=(...i)=>{let s=t.apply(e,i);return this._resyncMeshes(),s};let i=e.splice;e.splice=(t,s)=>{let n=i.call(e,t,s??e.length);return this._resyncMeshes(),n},this._resyncMeshes()}_resyncMeshes(){if(!this._clusteredContainer)for(let e of this.getScene().meshes)e._resyncLightSource(this)}_markMeshesAsLightDirty(){for(let e of this.getScene().meshes)-1!==e.lightSources.indexOf(this)&&e._markSubMeshesAsLightDirty()}_computePhotometricScale(){this._photometricScale=this._getPhotometricScale(),this.getScene().resetCachedMaterial()}_getPhotometricScale(){let e=0,t=this.getTypeID(),i=this.intensityMode;switch(i===H.INTENSITYMODE_AUTOMATIC&&(i=t===H.LIGHTTYPEID_DIRECTIONALLIGHT?H.INTENSITYMODE_ILLUMINANCE:H.INTENSITYMODE_LUMINOUSINTENSITY),t){case H.LIGHTTYPEID_POINTLIGHT:case H.LIGHTTYPEID_SPOTLIGHT:switch(i){case H.INTENSITYMODE_LUMINOUSPOWER:e=1/(4*Math.PI);break;case H.INTENSITYMODE_LUMINOUSINTENSITY:e=1;break;case H.INTENSITYMODE_LUMINANCE:e=this.radius*this.radius}break;case H.LIGHTTYPEID_DIRECTIONALLIGHT:switch(i){case H.INTENSITYMODE_ILLUMINANCE:e=1;break;case H.INTENSITYMODE_LUMINANCE:{let t=this.radius;e=2*Math.PI*(1-Math.cos(t=Math.max(t,.001)))}}break;case H.LIGHTTYPEID_HEMISPHERICLIGHT:case H.LIGHTTYPEID_RECT_AREALIGHT:e=1}return e}_reorderLightsInScene(){let e=this.getScene();0!=this._renderPriority&&(e.requireLightSorting=!0),this.getScene().sortLightsByPriority()}areLightTexturesReady(){return!0}_isReady(){return!0}},U=new WeakMap,w="function"==typeof Symbol&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0,t=[(0,G.serializeAsColor3)()],i=[(0,G.serializeAsColor3)()],s=[(0,G.serialize)()],n=[(0,G.serialize)()],a=[(0,G.serialize)()],r=[(0,G.serialize)()],o=[(0,G.serialize)()],h=[(0,G.serialize)()],l=[(0,G.expandToProperty)("_reorderLightsInScene")],d=[(0,G.serialize)("shadowEnabled")],_=[(0,G.serialize)("excludeWithLayerMask")],u=[(0,G.serialize)("includeOnlyWithLayerMask")],c=[(0,G.serialize)("lightmapMode")],(0,k.__esDecorate)(H,null,a,{kind:"getter",name:"range",static:!1,private:!1,access:{has:e=>"range"in e,get:e=>e.range},metadata:w},null,f),(0,k.__esDecorate)(H,null,r,{kind:"getter",name:"intensityMode",static:!1,private:!1,access:{has:e=>"intensityMode"in e,get:e=>e.intensityMode},metadata:w},null,f),(0,k.__esDecorate)(H,null,o,{kind:"getter",name:"radius",static:!1,private:!1,access:{has:e=>"radius"in e,get:e=>e.radius},metadata:w},null,f),(0,k.__esDecorate)(H,null,l,{kind:"accessor",name:"renderPriority",static:!1,private:!1,access:{has:e=>"renderPriority"in e,get:e=>e.renderPriority,set:(e,t)=>{e.renderPriority=t}},metadata:w},D,N),(0,k.__esDecorate)(null,null,t,{kind:"field",name:"diffuse",static:!1,private:!1,access:{has:e=>"diffuse"in e,get:e=>e.diffuse,set:(e,t)=>{e.diffuse=t}},metadata:w},m,I),(0,k.__esDecorate)(null,null,i,{kind:"field",name:"specular",static:!1,private:!1,access:{has:e=>"specular"in e,get:e=>e.specular,set:(e,t)=>{e.specular=t}},metadata:w},p,b),(0,k.__esDecorate)(null,null,s,{kind:"field",name:"falloffType",static:!1,private:!1,access:{has:e=>"falloffType"in e,get:e=>e.falloffType,set:(e,t)=>{e.falloffType=t}},metadata:w},y,S),(0,k.__esDecorate)(null,null,n,{kind:"field",name:"intensity",static:!1,private:!1,access:{has:e=>"intensity"in e,get:e=>e.intensity,set:(e,t)=>{e.intensity=t}},metadata:w},L,M),(0,k.__esDecorate)(null,null,h,{kind:"field",name:"_renderPriority",static:!1,private:!1,access:{has:e=>"_renderPriority"in e,get:e=>e._renderPriority,set:(e,t)=>{e._renderPriority=t}},metadata:w},E,T),(0,k.__esDecorate)(null,null,d,{kind:"field",name:"_shadowEnabled",static:!1,private:!1,access:{has:e=>"_shadowEnabled"in e,get:e=>e._shadowEnabled,set:(e,t)=>{e._shadowEnabled=t}},metadata:w},O,v),(0,k.__esDecorate)(null,null,_,{kind:"field",name:"_excludeWithLayerMask",static:!1,private:!1,access:{has:e=>"_excludeWithLayerMask"in e,get:e=>e._excludeWithLayerMask,set:(e,t)=>{e._excludeWithLayerMask=t}},metadata:w},C,A),(0,k.__esDecorate)(null,null,u,{kind:"field",name:"_includeOnlyWithLayerMask",static:!1,private:!1,access:{has:e=>"_includeOnlyWithLayerMask"in e,get:e=>e._includeOnlyWithLayerMask,set:(e,t)=>{e._includeOnlyWithLayerMask=t}},metadata:w},P,x),(0,k.__esDecorate)(null,null,c,{kind:"field",name:"_lightmapMode",static:!1,private:!1,access:{has:e=>"_lightmapMode"in e,get:e=>e._lightmapMode,set:(e,t)=>{e._lightmapMode=t}},metadata:w},z,R),w&&Object.defineProperty(H,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:w}),H.FALLOFF_DEFAULT=q.LightConstants.FALLOFF_DEFAULT,H.FALLOFF_PHYSICAL=q.LightConstants.FALLOFF_PHYSICAL,H.FALLOFF_GLTF=q.LightConstants.FALLOFF_GLTF,H.FALLOFF_STANDARD=q.LightConstants.FALLOFF_STANDARD,H.LIGHTMAP_DEFAULT=q.LightConstants.LIGHTMAP_DEFAULT,H.LIGHTMAP_SPECULAR=q.LightConstants.LIGHTMAP_SPECULAR,H.LIGHTMAP_SHADOWSONLY=q.LightConstants.LIGHTMAP_SHADOWSONLY,H.INTENSITYMODE_AUTOMATIC=q.LightConstants.INTENSITYMODE_AUTOMATIC,H.INTENSITYMODE_LUMINOUSPOWER=q.LightConstants.INTENSITYMODE_LUMINOUSPOWER,H.INTENSITYMODE_LUMINOUSINTENSITY=q.LightConstants.INTENSITYMODE_LUMINOUSINTENSITY,H.INTENSITYMODE_ILLUMINANCE=q.LightConstants.INTENSITYMODE_ILLUMINANCE,H.INTENSITYMODE_LUMINANCE=q.LightConstants.INTENSITYMODE_LUMINANCE,H.LIGHTTYPEID_POINTLIGHT=q.LightConstants.LIGHTTYPEID_POINTLIGHT,H.LIGHTTYPEID_DIRECTIONALLIGHT=q.LightConstants.LIGHTTYPEID_DIRECTIONALLIGHT,H.LIGHTTYPEID_SPOTLIGHT=q.LightConstants.LIGHTTYPEID_SPOTLIGHT,H.LIGHTTYPEID_HEMISPHERICLIGHT=q.LightConstants.LIGHTTYPEID_HEMISPHERICLIGHT,H.LIGHTTYPEID_RECT_AREALIGHT=q.LightConstants.LIGHTTYPEID_RECT_AREALIGHT,H);e.s(["Light",0,X])},88083,23017,e=>{"use strict";let t,i,s,n,a,r,o,h;var l,d=e.i(57575),_=e.i(9855),u=e.i(69400),c=e.i(19919),g=e.i(90160),f=e.i(52624),m=e.i(44520);let I=(s=g.Light,n=[],a=[],r=[],o=[],l=class extends s{constructor(e,t,i,s){super(e,i,s),this.groundColor=(0,d.__runInitializers)(this,n,new c.Color3(0,0,0)),this.direction=((0,d.__runInitializers)(this,a),(0,d.__runInitializers)(this,r,void 0)),(0,d.__runInitializers)(this,o),this.direction=t||u.Vector3.Up()}_buildUniformLayout(){this._uniformBuffer.addUniform("vLightData",4),this._uniformBuffer.addUniform("vLightDiffuse",4),this._uniformBuffer.addUniform("vLightSpecular",4),this._uniformBuffer.addUniform("vLightGround",3),this._uniformBuffer.addUniform("shadowsInfo",3),this._uniformBuffer.addUniform("depthValues",2),this._uniformBuffer.create()}getClassName(){return"HemisphericLight"}setDirectionToTarget(e){return this.direction=u.Vector3.Normalize(e.subtract(u.Vector3.Zero())),this.direction}getShadowGenerator(){return null}transferToEffect(e,t){let i=u.Vector3.Normalize(this.direction);return this._uniformBuffer.updateFloat4("vLightData",i.x,i.y,i.z,0,t),this._uniformBuffer.updateColor3("vLightGround",this.groundColor.scale(this.intensity),t),this}transferToNodeMaterialEffect(e,t){let i=u.Vector3.Normalize(this.direction);return e.setFloat3(t,i.x,i.y,i.z),this}computeWorldMatrix(){return this._worldMatrix||(this._worldMatrix=u.Matrix.Identity()),this._worldMatrix}getTypeID(){return g.Light.LIGHTTYPEID_HEMISPHERICLIGHT}prepareLightSpecificDefines(e,t){e["HEMILIGHT"+t]=!0}},h="function"==typeof Symbol&&Symbol.metadata?Object.create(s[Symbol.metadata]??null):void 0,t=[(0,_.serializeAsColor3)()],i=[(0,_.serializeAsVector3)()],(0,d.__esDecorate)(null,null,t,{kind:"field",name:"groundColor",static:!1,private:!1,access:{has:e=>"groundColor"in e,get:e=>e.groundColor,set:(e,t)=>{e.groundColor=t}},metadata:h},n,a),(0,d.__esDecorate)(null,null,i,{kind:"field",name:"direction",static:!1,private:!1,access:{has:e=>"direction"in e,get:e=>e.direction,set:(e,t)=>{e.direction=t}},metadata:h},r,o),h&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:h}),l),p=!1;function b(){p||(p=!0,f.Node.AddNodeConstructor("Light_Type_3",(e,t)=>()=>new I(e,u.Vector3.Zero(),t)),(0,m.RegisterClass)("BABYLON.HemisphericLight",I))}e.s(["HemisphericLight",0,I,"RegisterHemisphericLight",0,b],23017),b(),e.s([],88083)},5153,e=>{"use strict";e.i(88083);var t=e.i(23017);e.s(["HemisphericLight",()=>t.HemisphericLight,"RegisterHemisphericLight",()=>t.RegisterHemisphericLight])}]);
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42457,e=>{"use strict";var t=e.i(37875);let r="passCubePixelShader",u=`varying vUV: vec2f;var textureSamplerSampler: sampler;var textureSampler: texture_cube<f32>;
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,30728,e=>{"use strict";var t=e.i(47150);let r="passCubePixelShader",u=`varying vUV: vec2f;var textureSamplerSampler: sampler;var textureSampler: texture_cube<f32>;
2
2
  #define CUSTOM_FRAGMENT_DEFINITIONS
3
3
  @fragment
4
4
  fn main(input: FragmentInputs)->FragmentOutputs {var uv: vec2f=input.vUV*2.0-1.0;
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,47150,e=>{"use strict";class t{static GetShadersRepository(e=0){return 0===e?t.ShadersRepository:t.ShadersRepositoryWGSL}static GetShadersStore(e=0){return 0===e?t.ShadersStore:t.ShadersStoreWGSL}static GetIncludesShadersStore(e=0){return 0===e?t.IncludesShadersStore:t.IncludesShadersStoreWGSL}}t.ShadersRepository="src/Shaders/",t.ShadersStore={},t.IncludesShadersStore={},t.ShadersRepositoryWGSL="src/ShadersWGSL/",t.ShadersStoreWGSL={},t.IncludesShadersStoreWGSL={},e.s(["ShaderStore",0,t])},3524,69680,e=>{"use strict";var t=e.i(41041),r=e.i(3864);e.s(["PostProcessManager",0,class{constructor(e){this._vertexBuffers={},this._activePostProcesses=[],this.onBeforeRenderObservable=new r.Observable,this._scene=e}_prepareBuffers(){if(this._vertexBuffers[t.VertexBuffer.PositionKind])return;let e=[];e.push(1,1),e.push(-1,1),e.push(-1,-1),e.push(1,-1),this._vertexBuffers[t.VertexBuffer.PositionKind]=new t.VertexBuffer(this._scene.getEngine(),e,t.VertexBuffer.PositionKind,!1,!1,2),this._buildIndexBuffer()}_buildIndexBuffer(){let e=[];e.push(0),e.push(1),e.push(2),e.push(0),e.push(2),e.push(3),this._indexBuffer=this._scene.getEngine().createIndexBuffer(e)}_getActivePostProcesses(e){let t=this._activePostProcesses;t.length=0;for(let r=0;r<e.length;r++){let i=e[r];i&&t.push(i)}return t}_rebuild(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e._rebuild(),this._buildIndexBuffer())}_prepareFrame(e=null,t=null){let r=this._scene.activeCamera;return!!r&&!!(t=t||this._getActivePostProcesses(r._postProcesses))&&0!==t.length&&!!this._scene.postProcessesEnabled&&(t[0].activate(r,e,null!=t),!0)}directRender(e,t=null,r=!1,i=0,s=0,n=!1,a=e.length){let o=this._scene.getEngine();for(let h=0;h<a;h++){h<e.length-1?e[h+1].activate(this._scene.activeCamera||this._scene,t?.texture):(t?o.bindFramebuffer(t,i,void 0,void 0,r,s):n||o.restoreDefaultFramebuffer(),o._debugInsertMarker?.(`post process ${e[h].name} output`));let a=e[h],c=a.apply();c&&(a.onBeforeRenderObservable.notifyObservers(c),this._prepareBuffers(),o.bindBuffers(this._vertexBuffers,this._indexBuffer,c),o.drawElementsType(0,0,6),a.onAfterRenderObservable.notifyObservers(c))}o.setDepthBuffer(!0),o.setDepthWrite(!0)}_finalizeFrame(e,t,r,i,s=!1){let n=this._scene.activeCamera;if(!n||(this.onBeforeRenderObservable.notifyObservers(this),0===(i=i||this._getActivePostProcesses(n._postProcesses)).length||!this._scene.postProcessesEnabled))return;let a=this._scene.getEngine();for(let o=0,h=i.length;o<h;o++){let c=i[o];if(o<h-1?c._outputTexture=i[o+1].activate(n,t?.texture):(t?(a.bindFramebuffer(t,r,void 0,void 0,s),c._outputTexture=t):(a.restoreDefaultFramebuffer(),c._outputTexture=null),a._debugInsertMarker?.(`post process ${i[o].name} output`)),e)break;let l=c.apply();l&&(c.onBeforeRenderObservable.notifyObservers(l),this._prepareBuffers(),a.bindBuffers(this._vertexBuffers,this._indexBuffer,l),a.drawElementsType(0,0,6),c.onAfterRenderObservable.notifyObservers(l))}a.setDepthBuffer(!0),a.setDepthWrite(!0),a.setAlphaMode(0)}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),this._vertexBuffers[t.VertexBuffer.PositionKind]=null),this._indexBuffer&&(this._scene.getEngine()._releaseBuffer(this._indexBuffer),this._indexBuffer=null)}}],3524);var i=e.i(32451),s=e.i(69400);class n{set opaqueSortCompareFn(e){e?this._opaqueSortCompareFn=e:this._opaqueSortCompareFn=n.PainterSortCompare,this._renderOpaque=this._renderOpaqueSorted}set alphaTestSortCompareFn(e){e?this._alphaTestSortCompareFn=e:this._alphaTestSortCompareFn=n.PainterSortCompare,this._renderAlphaTest=this._renderAlphaTestSorted}set transparentSortCompareFn(e){e?this._transparentSortCompareFn=e:this._transparentSortCompareFn=n.defaultTransparentSortCompare,this._renderTransparent=this._renderTransparentSorted}constructor(e,t,r=null,s=null,n=null){this.index=e,this._opaqueSubMeshes=new i.SmartArray(256),this._transparentSubMeshes=new i.SmartArray(256),this._alphaTestSubMeshes=new i.SmartArray(256),this._depthOnlySubMeshes=new i.SmartArray(256),this._particleSystems=new i.SmartArray(256),this._spriteManagers=new i.SmartArray(256),this._empty=!0,this._edgesRenderers=new i.SmartArrayNoDuplicate(16),this.disableDepthPrePass=!1,this._scene=t,this.opaqueSortCompareFn=r,this.alphaTestSortCompareFn=s,this.transparentSortCompareFn=n}render(e,t,r,i,s=!0,n=!0,a=!0,o=!0,h){if(e)return void e(this._opaqueSubMeshes,this._alphaTestSubMeshes,this._transparentSubMeshes,this._depthOnlySubMeshes);let c=this._scene.getEngine();s&&0!==this._depthOnlySubMeshes.length&&(c.setColorWrite(!1),this._renderAlphaTest(this._depthOnlySubMeshes),c.setColorWrite(!0)),n&&0!==this._opaqueSubMeshes.length&&this._renderOpaque(this._opaqueSubMeshes),a&&0!==this._alphaTestSubMeshes.length&&this._renderAlphaTest(this._alphaTestSubMeshes);let l=c.getStencilBuffer();if(c.setStencilBuffer(!1),t&&this._renderSprites(),r&&this._renderParticles(i),this.onBeforeTransparentRendering&&this.onBeforeTransparentRendering(),o&&(h||0!==this._transparentSubMeshes.length||this._scene.useOrderIndependentTransparency)){if(c.setStencilBuffer(l),h)h(this._transparentSubMeshes,this);else if(this._scene.useOrderIndependentTransparency){let e=this._scene.depthPeelingRenderer.render(this._transparentSubMeshes);e.length&&this._renderTransparent(e)}else this._renderTransparent(this._transparentSubMeshes);c.setAlphaMode(0)}if(c.setStencilBuffer(!1),n&&this._edgesRenderers.length){for(let e=0;e<this._edgesRenderers.length;e++)this._edgesRenderers.data[e].render();c.setAlphaMode(0)}c.setStencilBuffer(l)}_renderOpaqueSorted(e){n._RenderSorted(e,this._opaqueSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderAlphaTestSorted(e){n._RenderSorted(e,this._alphaTestSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderTransparentSorted(e){n._RenderSorted(e,this._transparentSortCompareFn,this._scene.activeCamera,!0,this.disableDepthPrePass)}static _RenderSorted(e,t,r,i,a){let o,h=0,c=r?r.globalPosition:n._ZeroVector;if(i)for(;h<e.length;h++)(o=e.data[h])._alphaIndex=o.getMesh().alphaIndex,o._distanceToCamera=s.Vector3.Distance(o.getBoundingInfo().boundingSphere.centerWorld,c);let l=e.length===e.data.length?e.data:e.data.slice(0,e.length);t&&l.sort(t);let u=l[0].getMesh().getScene();for(h=0;h<l.length;h++)if(o=l[h],!u._activeMeshesFrozenButKeepClipping||o.isInFrustum(u._frustumPlanes)){if(i){let e=o.getMaterial();if(e&&e.needDepthPrePass&&!a){let t=e.getScene().getEngine();t.setColorWrite(!1),t.setAlphaMode(0),o.render(!1),t.setColorWrite(!0)}}o.render(i)}}static defaultTransparentSortCompare(e,t){return e._alphaIndex>t._alphaIndex?1:e._alphaIndex<t._alphaIndex?-1:n.backToFrontSortCompare(e,t)}static backToFrontSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?1:e._distanceToCamera>t._distanceToCamera?-1:0}static frontToBackSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?-1:+(e._distanceToCamera>t._distanceToCamera)}static PainterSortCompare(e,t){let r=e.getMesh(),i=t.getMesh();return r.material&&i.material?r.material.uniqueId-i.material.uniqueId:r.uniqueId-i.uniqueId}prepare(){this._opaqueSubMeshes.reset(),this._transparentSubMeshes.reset(),this._alphaTestSubMeshes.reset(),this._depthOnlySubMeshes.reset(),this._particleSystems.reset(),this.prepareSprites(),this._edgesRenderers.reset(),this._empty=!0}prepareSprites(){this._spriteManagers.reset()}dispose(){this._opaqueSubMeshes.dispose(),this._transparentSubMeshes.dispose(),this._alphaTestSubMeshes.dispose(),this._depthOnlySubMeshes.dispose(),this._particleSystems.dispose(),this._spriteManagers.dispose(),this._edgesRenderers.dispose()}dispatch(e,t,r){void 0===t&&(t=e.getMesh()),void 0===r&&(r=e.getMaterial()),null!=r&&(r.needAlphaBlendingForMesh(t)?this._transparentSubMeshes.push(e):r.needAlphaTestingForMesh(t)?(r.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._alphaTestSubMeshes.push(e)):(r.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._opaqueSubMeshes.push(e)),t._renderingGroup=this,t._edgesRenderer&&t.isEnabled()&&t.isVisible&&t._edgesRenderer.isEnabled&&this._edgesRenderers.pushNoDuplicate(t._edgesRenderer),this._empty=!1)}dispatchSprites(e){this._spriteManagers.push(e),this._empty=!1}dispatchParticles(e){this._particleSystems.push(e),this._empty=!1}_renderParticles(e){if(0===this._particleSystems.length)return;let t=this._scene.activeCamera;this._scene.onBeforeParticlesRenderingObservable.notifyObservers(this._scene);for(let r=0;r<this._particleSystems.length;r++){let i=this._particleSystems.data[r];if(0===(t&&t.layerMask&i.layerMask))continue;let s=i.emitter;s.position&&e&&-1===e.indexOf(s)||this._scene._activeParticles.addCount(i.render(),!1)}this._scene.onAfterParticlesRenderingObservable.notifyObservers(this._scene)}_renderSprites(){if(!this._scene.spritesEnabled||0===this._spriteManagers.length)return;let e=this._scene.activeCamera;this._scene.onBeforeSpritesRenderingObservable.notifyObservers(this._scene);for(let t=0;t<this._spriteManagers.length;t++){let r=this._spriteManagers.data[t];0!==(e&&e.layerMask&r.layerMask)&&r.render()}this._scene.onAfterSpritesRenderingObservable.notifyObservers(this._scene)}}n._ZeroVector=s.Vector3.Zero();class a{}class o{get disableDepthPrePass(){return this._disableDepthPrePass}set disableDepthPrePass(e){for(let t of(this._disableDepthPrePass=e,this._renderingGroups))t.disableDepthPrePass=e}get maintainStateBetweenFrames(){return this._maintainStateBetweenFrames}set maintainStateBetweenFrames(e){e!==this._maintainStateBetweenFrames&&(this._maintainStateBetweenFrames=e,this._maintainStateBetweenFrames||this.restoreDispachedFlags())}restoreDispachedFlags(){for(let e of this._scene.meshes)if(e.subMeshes)for(let t of e.subMeshes)t._wasDispatched=!1;if(this._scene.spriteManagers)for(let e of this._scene.spriteManagers)e._wasDispatched=!1;for(let e of this._scene.particleSystems)e._wasDispatched=!1}constructor(e){this._useSceneAutoClearSetup=!1,this._disableDepthPrePass=!1,this._renderingGroups=[],this._autoClearDepthStencil={},this._customOpaqueSortCompareFn={},this._customAlphaTestSortCompareFn={},this._customTransparentSortCompareFn={},this._renderingGroupInfo=new a,this._maintainStateBetweenFrames=!1,this._scene=e;for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++)this._autoClearDepthStencil[e]={autoClear:!0,depth:!0,stencil:!0}}get renderingGroups(){return this._renderingGroups}getRenderingGroup(e){let t=e||0;return this._prepareRenderingGroup(t),this._renderingGroups[t]}_clearDepthStencilBuffer(e=!0,t=!0){this._depthStencilBufferAlreadyCleaned||(this._scene.getEngine().clear(null,!1,e,t),this._depthStencilBufferAlreadyCleaned=!0)}render(e,t,r,i,s=!0,n=!0,a=!0,h=!0,c){let l=this._renderingGroupInfo;if(l.scene=this._scene,l.camera=this._scene.activeCamera,l.renderingManager=this,this._scene.spriteManagers&&i)for(let e=0;e<this._scene.spriteManagers.length;e++){let t=this._scene.spriteManagers[e];this.dispatchSprites(t)}for(let u=o.MIN_RENDERINGGROUPS;u<o.MAX_RENDERINGGROUPS;u++){this._depthStencilBufferAlreadyCleaned=u===o.MIN_RENDERINGGROUPS;let p=this._renderingGroups[u];if(!p||p._empty)continue;let d=1<<u;if(l.renderingGroupId=u,this._scene.onBeforeRenderingGroupObservable.notifyObservers(l,d),o.AUTOCLEAR){let e=this._useSceneAutoClearSetup?this._scene.getAutoClearDepthStencilSetup(u):this._autoClearDepthStencil[u];e&&e.autoClear&&this._clearDepthStencilBuffer(e.depth,e.stencil)}for(let e of this._scene._beforeRenderingGroupDrawStage)e.action(u);for(let o of(p.render(e,i,r,t,s,n,a,h,c),this._scene._afterRenderingGroupDrawStage))o.action(u);this._scene.onAfterRenderingGroupObservable.notifyObservers(l,d)}}reset(){if(!this.maintainStateBetweenFrames)for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepare()}}resetSprites(){if(!this.maintainStateBetweenFrames)for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepareSprites()}}dispose(){this.freeRenderingGroups(),this._renderingGroups.length=0,this._renderingGroupInfo=null}freeRenderingGroups(){for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.dispose()}}_prepareRenderingGroup(e){void 0===this._renderingGroups[e]&&(this._renderingGroups[e]=new n(e,this._scene,this._customOpaqueSortCompareFn[e],this._customAlphaTestSortCompareFn[e],this._customTransparentSortCompareFn[e]),this._renderingGroups[e].disableDepthPrePass=this._disableDepthPrePass)}dispatchSprites(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchSprites(e))}dispatchParticles(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchParticles(e))}dispatch(e,t,r){void 0===t&&(t=e.getMesh()),this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(t.renderingGroupId).dispatch(e,t,r))}setRenderingOrder(e,t=null,r=null,i=null){if(this._customOpaqueSortCompareFn[e]=t,this._customAlphaTestSortCompareFn[e]=r,this._customTransparentSortCompareFn[e]=i,this._renderingGroups[e]){let t=this._renderingGroups[e];t.opaqueSortCompareFn=this._customOpaqueSortCompareFn[e],t.alphaTestSortCompareFn=this._customAlphaTestSortCompareFn[e],t.transparentSortCompareFn=this._customTransparentSortCompareFn[e]}}setRenderingAutoClearDepthStencil(e,t,r=!0,i=!0){this._autoClearDepthStencil[e]={autoClear:t,depth:r,stencil:i}}getAutoClearDepthStencilSetup(e){return this._autoClearDepthStencil[e]}}o.MAX_RENDERINGGROUPS=4,o.MIN_RENDERINGGROUPS=0,o.AUTOCLEAR=!0,e.s(["RenderingManager",0,o],69680)},11267,e=>{"use strict";var t=e.i(87627);class r{get min(){return this._min}get max(){return this._max}get average(){return this._average}get lastSecAverage(){return this._lastSecAverage}get current(){return this._current}get total(){return this._totalAccumulated}get count(){return this._totalValueCount}constructor(){this._startMonitoringTime=0,this._min=0,this._max=0,this._hasResult=!1,this._hasCurrentValue=!1,this._average=0,this._lastSecAverage=0,this._current=0,this._totalValueCount=0,this._totalAccumulated=0,this._lastSecAccumulated=0,this._lastSecTime=0,this._lastSecValueCount=0}fetchNewFrame(){this._totalValueCount++,this._current=0,this._hasCurrentValue=r.Enabled,this._lastSecValueCount++}addCount(e,t){r.Enabled&&(this._current+=e,this._hasCurrentValue=!0,t&&this._fetchResult())}beginMonitoring(){r.Enabled&&(this._startMonitoringTime=t.PrecisionDate.Now)}endMonitoring(e=!0){if(!r.Enabled)return;e&&this.fetchNewFrame();let i=t.PrecisionDate.Now;this._current=i-this._startMonitoringTime,this._hasCurrentValue=!0,e&&this._fetchResult()}endFrame(){this._fetchResult()}_fetchResult(){if(!this._hasCurrentValue)return;this._totalAccumulated+=this._current,this._lastSecAccumulated+=this._current,this._hasResult?(this._min=Math.min(this._min,this._current),this._max=Math.max(this._max,this._current)):(this._min=this._current,this._max=this._current,this._hasResult=!0),this._average=this._totalAccumulated/this._totalValueCount;let e=t.PrecisionDate.Now;e-this._lastSecTime>1e3&&(this._lastSecAverage=this._lastSecAccumulated/this._lastSecValueCount,this._lastSecTime=e,this._lastSecAccumulated=0,this._lastSecValueCount=0)}}r.Enabled=!0,e.s(["PerfCounter",0,r])},57660,e=>{"use strict";var t=e.i(96042);class r{static GetPlanes(e){let i=[];for(let e=0;e<6;e++)i.push(new t.Plane(0,0,0,0));return r.GetPlanesToRef(e,i),i}static GetNearPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[2],t.normal.y=r[7]+r[6],t.normal.z=r[11]+r[10],t.d=r[15]+r[14],t.normalize()}static GetFarPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[2],t.normal.y=r[7]-r[6],t.normal.z=r[11]-r[10],t.d=r[15]-r[14],t.normalize()}static GetLeftPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[0],t.normal.y=r[7]+r[4],t.normal.z=r[11]+r[8],t.d=r[15]+r[12],t.normalize()}static GetRightPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[0],t.normal.y=r[7]-r[4],t.normal.z=r[11]-r[8],t.d=r[15]-r[12],t.normalize()}static GetTopPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[1],t.normal.y=r[7]-r[5],t.normal.z=r[11]-r[9],t.d=r[15]-r[13],t.normalize()}static GetBottomPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[1],t.normal.y=r[7]+r[5],t.normal.z=r[11]+r[9],t.d=r[15]+r[13],t.normalize()}static GetPlanesToRef(e,t){r.GetNearPlaneToRef(e,t[0]),r.GetFarPlaneToRef(e,t[1]),r.GetLeftPlaneToRef(e,t[2]),r.GetRightPlaneToRef(e,t[3]),r.GetTopPlaneToRef(e,t[4]),r.GetBottomPlaneToRef(e,t[5])}static IsPointInFrustum(e,t){for(let r=0;r<6;r++)if(0>t[r].dotCoordinate(e))return!1;return!0}}e.s(["Frustum",0,r])},92247,e=>{"use strict";var t=e.i(69400),r=e.i(41041);e.s(["PickingInfo",0,class{constructor(){this.hit=!1,this.distance=0,this.pickedPoint=null,this.pickedMesh=null,this.bu=0,this.bv=0,this.faceId=-1,this.subMeshFaceId=-1,this.subMeshId=0,this.pickedSprite=null,this.thinInstanceIndex=-1,this.ray=null,this.originMesh=null,this.aimTransform=null,this.gripTransform=null}getNormal(e=!1,i=!0){let s;if(!this.pickedMesh||i&&!this.pickedMesh.isVerticesDataPresent(r.VertexBuffer.NormalKind))return null;let n=this.pickedMesh.getIndices();n?.length===0&&(n=null);let a=t.TmpVectors.Vector3[0],o=t.TmpVectors.Vector3[1],h=t.TmpVectors.Vector3[2];if(i){let e=this.pickedMesh.getVerticesData(r.VertexBuffer.NormalKind),i=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+1],o):o.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],h):h.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]);i=i.scale(this.bu),c=c.scale(this.bv),l=l.scale(1-this.bu-this.bv),s=new t.Vector3(i.x+c.x+l.x,i.y+c.y+l.y,i.z+c.z+l.z)}else{let e=this.pickedMesh.getVerticesData(r.VertexBuffer.PositionKind),i=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+1],o):o.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],h):h.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]),u=i.subtract(c),p=l.subtract(c);s=t.Vector3.Cross(u,p)}let c=(e,r)=>{if(-1!==this.thinInstanceIndex){let i=e._thinInstanceDataStorage.matrixData,s=this.thinInstanceIndex<<4;if(i&&i.length>s){let e=t.TmpVectors.Matrix[0];t.Matrix.FromArrayToRef(i,s,e),t.Vector3.TransformNormalToRef(r,e,r)}}let i=e.getWorldMatrix();e.nonUniformScaling&&(t.TmpVectors.Matrix[0].copyFrom(i),(i=t.TmpVectors.Matrix[0]).setTranslationFromFloats(0,0,0),i.invert(),i.transposeToRef(t.TmpVectors.Matrix[1]),i=t.TmpVectors.Matrix[1]),t.Vector3.TransformNormalToRef(r,i,r)};if(e&&c(this.pickedMesh,s),this.ray){let r=t.TmpVectors.Vector3[0].copyFrom(s);e||c(this.pickedMesh,r),t.Vector3.Dot(r,this.ray.direction)>0&&s.negateInPlace()}return s.normalize(),s}getTextureCoordinates(e=r.VertexBuffer.UVKind){if(!this.pickedMesh||!this.pickedMesh.isVerticesDataPresent(e))return null;let i=this.pickedMesh.getIndices();if(!i)return null;let s=this.pickedMesh.getVerticesData(e);if(!s)return null;let n=t.Vector2.FromArray(s,2*i[3*this.faceId]),a=t.Vector2.FromArray(s,2*i[3*this.faceId+1]),o=t.Vector2.FromArray(s,2*i[3*this.faceId+2]);return n=n.scale(this.bu),a=a.scale(this.bv),o=o.scale(1-this.bu-this.bv),new t.Vector2(n.x+a.x+o.x,n.y+a.y+o.y)}}])},84964,e=>{"use strict";var t=e.i(69400);class r{}r.POINTERDOWN=1,r.POINTERUP=2,r.POINTERMOVE=4,r.POINTERWHEEL=8,r.POINTERPICK=16,r.POINTERTAP=32,r.POINTERDOUBLETAP=64;class i{constructor(e,t){this.type=e,this.event=t}}e.s(["PointerEventTypes",0,r,"PointerInfo",0,class extends i{get pickInfo(){return this._pickInfo||this._generatePickInfo(),this._pickInfo}constructor(e,t,r,i=null){super(e,t),this._pickInfo=r,this._inputManager=i}_generatePickInfo(){this._inputManager&&(this._pickInfo=this._inputManager._pickMove(this.event),this._inputManager._setRayOnPointerInfo(this._pickInfo,this.event),this._inputManager=null)}},"PointerInfoPre",0,class extends i{constructor(e,r,i,s){super(e,r),this.ray=null,this.originalPickingInfo=null,this.skipOnPointerObservable=!1,this.localPosition=new t.Vector2(i,s)}}])},71092,e=>{"use strict";class t{}t.KEYDOWN=1,t.KEYUP=2;class r{constructor(e,t){this.type=e,this.event=t}}e.s(["KeyboardEventTypes",0,t,"KeyboardInfo",0,r,"KeyboardInfoPre",0,class extends r{get skipOnPointerObservable(){return this.skipOnKeyboardObservable}set skipOnPointerObservable(e){this.skipOnKeyboardObservable=e}constructor(e,t){super(e,t),this.type=e,this.event=t,this.skipOnKeyboardObservable=!1}}])},4021,e=>{"use strict";var t,r;(r=t||(t={}))[r.PointerMove=0]="PointerMove",r[r.PointerDown=1]="PointerDown",r[r.PointerUp=2]="PointerUp";class i{}i.DOM_DELTA_PIXEL=0,i.DOM_DELTA_LINE=1,i.DOM_DELTA_PAGE=2,e.s(["EventConstants",0,i])},22287,e=>{"use strict";e.s(["IntersectionInfo",0,class{constructor(e,t,r){this.bu=e,this.bv=t,this.distance=r,this.faceId=0,this.subMeshId=0,this._internalSubMeshId=0}}])},12675,e=>{"use strict";var t=e.i(66460),r=e.i(55288),i=e.i(84106),s=e.i(69400),n=e.i(30672),a=e.i(22287),o=e.i(92247),h=e.i(23003),c=e.i(52390);let l={internalPickerForMesh:void 0};class u{constructor(e,t,r=Number.MAX_VALUE,s=i.Epsilon){this.origin=e,this.direction=t,this.length=r,this.epsilon=s}clone(){return new u(this.origin.clone(),this.direction.clone(),this.length)}intersectsBoxMinMax(e,t,r=0){let i,s,n,a,o=u._TmpVector3[0].copyFromFloats(e.x-r,e.y-r,e.z-r),h=u._TmpVector3[1].copyFromFloats(t.x+r,t.y+r,t.z+r),c=0,l=Number.MAX_VALUE;if(1e-7>Math.abs(this.direction.x)){if(this.origin.x<o.x||this.origin.x>h.x)return!1}else if(i=1/this.direction.x,s=(o.x-this.origin.x)*i,(n=(h.x-this.origin.x)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;if(1e-7>Math.abs(this.direction.y)){if(this.origin.y<o.y||this.origin.y>h.y)return!1}else if(i=1/this.direction.y,s=(o.y-this.origin.y)*i,(n=(h.y-this.origin.y)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;if(1e-7>Math.abs(this.direction.z)){if(this.origin.z<o.z||this.origin.z>h.z)return!1}else if(i=1/this.direction.z,s=(o.z-this.origin.z)*i,(n=(h.z-this.origin.z)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;return!0}intersectsBox(e,t=0){return this.intersectsBoxMinMax(e.minimum,e.maximum,t)}intersectsSphere(e,t=0){let r=e.center.x-this.origin.x,i=e.center.y-this.origin.y,s=e.center.z-this.origin.z,n=r*r+i*i+s*s,a=e.radius+t,o=a*a;if(n<=o)return!0;let h=r*this.direction.x+i*this.direction.y+s*this.direction.z;return!(h<0)&&n-h*h<=o}intersectsTriangle(e,t,r){let i=u._TmpVector3[0],n=u._TmpVector3[1],o=u._TmpVector3[2],h=u._TmpVector3[3],c=u._TmpVector3[4];t.subtractToRef(e,i),r.subtractToRef(e,n),s.Vector3.CrossToRef(this.direction,n,o);let l=s.Vector3.Dot(i,o);if(0===l)return null;let p=1/l;this.origin.subtractToRef(e,h);let d=s.Vector3.Dot(h,o)*p;if(d<-this.epsilon||d>1+this.epsilon)return null;s.Vector3.CrossToRef(h,i,c);let f=s.Vector3.Dot(this.direction,c)*p;if(f<-this.epsilon||d+f>1+this.epsilon)return null;let _=s.Vector3.Dot(n,c)*p;return _>this.length||_<0?null:new a.IntersectionInfo(1-d-f,d,_)}intersectsPlane(e){let t,r=s.Vector3.Dot(e.normal,this.direction);if(999999997475243e-21>Math.abs(r))return null;{let i=s.Vector3.Dot(e.normal,this.origin);if((t=(-e.d-i)/r)<0)if(t<-999999997475243e-21)return null;else return 0;return t}}intersectsAxis(e,t=0){switch(e){case"y":{let e=(this.origin.y-t)/this.direction.y;if(e>0)return null;return new s.Vector3(this.origin.x+-(this.direction.x*e),t,this.origin.z+-(this.direction.z*e))}case"x":{let e=(this.origin.x-t)/this.direction.x;if(e>0)return null;return new s.Vector3(t,this.origin.y+-(this.direction.y*e),this.origin.z+-(this.direction.z*e))}case"z":{let e=(this.origin.z-t)/this.direction.z;if(e>0)return null;return new s.Vector3(this.origin.x+-(this.direction.x*e),this.origin.y+-(this.direction.y*e),t)}default:return null}}intersectsMesh(e,t,r,i=!1,n,a=!1){let o=s.TmpVectors.Matrix[0];return e.getWorldMatrix().invertToRef(o),this._tmpRay?u.TransformToRef(this,o,this._tmpRay):this._tmpRay=u.Transform(this,o),e.intersects(this._tmpRay,t,r,i,n,a)}intersectsMeshes(e,t,r){r?r.length=0:r=[];for(let i=0;i<e.length;i++){let s=this.intersectsMesh(e[i],t);s.hit&&r.push(s)}return r.sort(this._comparePickingInfo),r}_comparePickingInfo(e,t){return e.distance<t.distance?-1:+(e.distance>t.distance)}intersectionSegment(e,t,r){let i=this.origin,n=s.TmpVectors.Vector3[0],a=s.TmpVectors.Vector3[1],o=s.TmpVectors.Vector3[2],h=s.TmpVectors.Vector3[3];t.subtractToRef(e,n),this.direction.scaleToRef(u._Rayl,o),i.addToRef(o,a),e.subtractToRef(i,h);let c=s.Vector3.Dot(n,n),l=s.Vector3.Dot(n,o),p=s.Vector3.Dot(o,o),d=s.Vector3.Dot(n,h),f=s.Vector3.Dot(o,h),_=c*p-l*l,m,g=_,R,y=_;_<u._Smallnum?(m=0,g=1,R=f,y=p):(m=l*f-p*d,R=c*f-l*d,m<0?(m=0,R=f,y=p):m>g&&(m=g,R=f+l,y=p)),R<0?(R=0,0>-d?m=0:-d>c?m=g:(m=-d,g=c)):R>y&&(R=y,-d+l<0?m=0:-d+l>c?m=g:(m=-d+l,g=c));let S=Math.abs(m)<u._Smallnum?0:m/g,T=Math.abs(R)<u._Smallnum?0:R/y,P=s.TmpVectors.Vector3[4];o.scaleToRef(T,P);let M=s.TmpVectors.Vector3[5];n.scaleToRef(S,M),M.addInPlace(h);let b=s.TmpVectors.Vector3[6];return(M.subtractToRef(P,b),T>0&&T<=this.length&&b.lengthSquared()<r*r)?M.length():-1}update(e,t,r,i,n,a,o,h=!1){if(h){u._RayDistant||(u._RayDistant=u.Zero()),u._RayDistant.unprojectRayToRef(e,t,r,i,s.Matrix.IdentityReadOnly,a,o);let h=s.TmpVectors.Matrix[0];n.invertToRef(h),u.TransformToRef(u._RayDistant,h,this)}else this.unprojectRayToRef(e,t,r,i,n,a,o);return this}static Zero(){return new u(s.Vector3.Zero(),s.Vector3.Zero())}static CreateNew(e,t,r,i,s,n,a){return u.Zero().update(e,t,r,i,s,n,a)}static CreateNewFromTo(e,t,r=s.Matrix.IdentityReadOnly){let i=new u(new s.Vector3(0,0,0),new s.Vector3(0,0,0));return u.CreateFromToToRef(e,t,i,r)}static CreateFromToToRef(e,t,r,i=s.Matrix.IdentityReadOnly){r.origin.copyFrom(e);let n=t.subtractToRef(e,r.direction);return r.length=Math.sqrt(n.x*n.x+n.y*n.y+n.z*n.z),r.direction.normalize(),u.TransformToRef(r,i,r)}static Transform(e,t){let r=new u(new s.Vector3(0,0,0),new s.Vector3(0,0,0));return u.TransformToRef(e,t,r),r}static TransformToRef(e,t,r){s.Vector3.TransformCoordinatesToRef(e.origin,t,r.origin),s.Vector3.TransformNormalToRef(e.direction,t,r.direction),r.length=e.length,r.epsilon=e.epsilon;let i=r.direction,n=i.length();if(0!==n&&1!==n){let e=1/n;i.x*=e,i.y*=e,i.z*=e,r.length*=n}return r}unprojectRayToRef(e,t,r,i,n,a,o){let c=s.TmpVectors.Matrix[0];n.multiplyToRef(a,c),c.multiplyToRef(o,c),c.invert();let l=h.EngineStore.LastCreatedEngine,u=s.TmpVectors.Vector3[0];u.x=e/r*2-1,u.y=-(t/i*2-1),u.z=l?.useReverseDepthBuffer?1:l?.isNDCHalfZRange?0:-1;let p=s.TmpVectors.Vector3[1].copyFromFloats(u.x,u.y,1-1e-8),d=s.TmpVectors.Vector3[2],f=s.TmpVectors.Vector3[3];s.Vector3.TransformCoordinatesToRef(u,c,d),s.Vector3.TransformCoordinatesToRef(p,c,f),this.origin.copyFrom(d),f.subtractToRef(d,this.direction),this.direction.normalize()}}function p(e,t,r,i,s,n=!1){let a=u.Zero();return d(e,t,r,i,a,s,n),a}function d(e,t,r,i,n,a,o=!1,h=!1){let c=e.getEngine();if(!a&&!(a=e.activeCamera)&&!(a=e.cameraToUseForPointers))return e;let l=a.viewport,u=c.getRenderHeight(),{x:p,y:f,width:_,height:m}=l.toGlobal(c.getRenderWidth(),u),g=1/c.getHardwareScalingLevel();return t=t*g-p,r=r*g-(u-f-m),n.update(t,r,_,m,i||s.Matrix.IdentityReadOnly,o?s.Matrix.IdentityReadOnly:a.getViewMatrix(),a.getProjectionMatrix(),h),e}function f(e,t,r,i){let s=u.Zero();return _(e,t,r,s,i),s}function _(e,t,r,i,n){if(!o.PickingInfo)return e;let a=e.getEngine();if(!n&&!(n=e.activeCamera)&&!(n=e.cameraToUseForPointers))throw Error("Active camera not set");let h=n.viewport,c=a.getRenderHeight(),{x:l,y:u,width:p,height:d}=h.toGlobal(a.getRenderWidth(),c),f=s.Matrix.Identity(),_=1/a.getHardwareScalingLevel();return t=t*_-l,r=r*_-(c-u-d),i.update(t,r,p,d,f,f,n.getProjectionMatrix()),e}function m(e,t,r,i,s,n,a,o){let h=t(i,r.enableDistantPicking);return g(e,r,i,h,s,n,a,o)}function g(e,t,r,i,s,n,a,o){let h=t.intersects(i,s,a,n,r,o);return h&&h.hit&&(s||null==e||!(h.distance>=e.distance))?h:null}function R(e){let t=e.getClassName();if("GreasedLineMesh"===t)return{rawBoundingInfo:null,intersectionThreshold:0};let r=e.rawBoundingInfo;return{rawBoundingInfo:r,intersectionThreshold:r?"InstancedLinesMesh"===t||"LinesMesh"===t?e.intersectionThreshold:0:0}}function y(e,t,r,i,s){let n=e(r,t.enableDistantPicking);return n.intersectsSphere(i.boundingSphere,s)&&n.intersectsBox(i.boundingBox,s)?n:null}function S(e,t,r,i,n,a){let h=null,c=!!(e.activeCameras&&e.activeCameras.length>1&&e.cameraToUseForPointers!==e.activeCamera),u=e.cameraToUseForPointers||e.activeCamera,p=l.internalPickerForMesh||m,d=p===m;for(let o=0;o<e.meshes.length;o++){let l=e.meshes[o];if(r){if(!r(l,-1))continue}else if(!l.isEnabled()||!l.isVisible||!l.isPickable)continue;let f=c&&l.isWorldMatrixCameraDependent(),_=l.computeWorldMatrix(f,u);if(l.hasThinInstances&&l.thinInstanceEnablePicking){let e=p(h,t,l,_,!0,!0,a);if(e){if(n)return e;let{rawBoundingInfo:o,intersectionThreshold:c}=R(l),u=l._thinInstanceDataStorage.matrixData;if(u){let e=s.TmpVectors.Matrix[0],f=s.TmpVectors.Matrix[1],m=Math.min(l.thinInstanceCount,u.length>>4);for(let R=0;R<m;R++){if(r&&!r(l,R))continue;s.Matrix.FromArrayToRef(u,R<<4,e),e.multiplyToRef(_,f);let m=d&&o?y(t,l,f,o,c):null;if(d&&o&&!m)continue;let S=d&&m?g(h,l,f,m,i,n,a,!0):p(h,t,l,f,i,n,a,!0);if(S&&((h=S).thinInstanceIndex=R,i))return h}}}}else{let e=p(h,t,l,_,i,n,a);if(e&&(h=e,i))return h}}return h||new o.PickingInfo}function T(e,t,r,i){if(!o.PickingInfo)return null;let n=[],a=!!(e.activeCameras&&e.activeCameras.length>1&&e.cameraToUseForPointers!==e.activeCamera),h=e.cameraToUseForPointers||e.activeCamera,c=l.internalPickerForMesh||m,u=c===m;for(let o=0;o<e.meshes.length;o++){let l=e.meshes[o];if(r){if(!r(l,-1))continue}else if(!l.isEnabled()||!l.isVisible||!l.isPickable)continue;let p=a&&l.isWorldMatrixCameraDependent(),d=l.computeWorldMatrix(p,h);if(l.hasThinInstances&&l.thinInstanceEnablePicking){if(c(null,t,l,d,!0,!0,i)){let{rawBoundingInfo:e,intersectionThreshold:a}=R(l),o=l._thinInstanceDataStorage.matrixData;if(o){let h=s.TmpVectors.Matrix[0],p=s.TmpVectors.Matrix[1],f=Math.min(l.thinInstanceCount,o.length>>4);for(let _=0;_<f;_++){if(r&&!r(l,_))continue;s.Matrix.FromArrayToRef(o,_<<4,h),h.multiplyToRef(d,p);let f=u&&e?y(t,l,p,e,a):null;if(u&&e&&!f)continue;let m=u&&f?g(null,l,p,f,!1,!1,i,!0):c(null,t,l,p,!1,!1,i,!0);m&&(m.thinInstanceIndex=_,n.push(m))}}}}else{let e=c(null,t,l,d,!1,!1,i);e&&n.push(e)}}return n}function P(e,t,r,i,n,a){if(!o.PickingInfo)return null;let h=S(e,i=>(e._tempPickingRay||(e._tempPickingRay=u.Zero()),d(e,t,r,i,e._tempPickingRay,a||null),e._tempPickingRay),i,n,!0);return h&&(h.ray=p(e,t,r,s.Matrix.Identity(),a||null)),h}function M(e,t,r,i,n,a,o,h=!1){let c=S(e,(i,s)=>(e._tempPickingRay||(e._tempPickingRay=u.Zero()),d(e,t,r,i,e._tempPickingRay,a||null,!1,s),e._tempPickingRay),i,n,!1,o);return c&&(c.ray=p(e,t,r,s.Matrix.Identity(),a||null)),c}function b(e,t,r,i,n){let a=S(e,r=>(e._pickWithRayInverseMatrix||(e._pickWithRayInverseMatrix=s.Matrix.Identity()),r.invertToRef(e._pickWithRayInverseMatrix),e._cachedRayForTransform||(e._cachedRayForTransform=u.Zero()),u.TransformToRef(t,e._pickWithRayInverseMatrix,e._cachedRayForTransform),e._cachedRayForTransform),r,i,!1,n);return a&&(a.ray=t),a}function I(e,t,r,i,s,n){return T(e,i=>p(e,t,r,i,s||null),i,n)}function x(e,t,r,i){return T(e,r=>(e._pickWithRayInverseMatrix||(e._pickWithRayInverseMatrix=s.Matrix.Identity()),r.invertToRef(e._pickWithRayInverseMatrix),e._cachedRayForTransform||(e._cachedRayForTransform=u.Zero()),u.TransformToRef(t,e._pickWithRayInverseMatrix,e._cachedRayForTransform),e._cachedRayForTransform),r,i)}function C(e,t=100,r,i){return V(e,new u(s.Vector3.Zero(),s.Vector3.Zero(),t),t,r,i)}function V(e,t,r=100,i,n){i||(i=e.getWorldMatrix()),t.length=r,n?t.origin.copyFrom(n):t.origin.copyFrom(e.position);let a=s.TmpVectors.Vector3[2];a.set(0,0,e._scene.useRightHandedSystem?-1:1);let o=s.TmpVectors.Vector3[3];return s.Vector3.TransformNormalToRef(a,i,o),s.Vector3.NormalizeToRef(o,t.direction),t}function v(e,t){t&&(t.prototype.getForwardRay=function(e=100,t,r){return V(this,new u(s.Vector3.Zero(),s.Vector3.Zero(),e),e,t,r)},t.prototype.getForwardRayToRef=function(e,t=100,r,i){return V(this,e,t,r,i)}),e&&(c._ImportHelper._IsPickingAvailable=!0,e.prototype.createPickingRay=function(e,t,r,i,s=!1){return p(this,e,t,r,i,s)})}u._TmpVector3=(0,n.BuildArray)(6,s.Vector3.Zero),u._RayDistant=u.Zero(),u._Smallnum=1e-8,u._Rayl=1e9,e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,P,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u],75258);let F=!1;function k(){F||(F=!0,v(t.Scene,r.Camera),t.Scene.prototype.createPickingRayToRef=function(e,t,r,i,s,n=!1,a=!1){return d(this,e,t,r,i,s,n,a)},t.Scene.prototype.createPickingRayInCameraSpace=function(e,t,r){return f(this,e,t,r)},t.Scene.prototype.createPickingRayInCameraSpaceToRef=function(e,t,r,i){return _(this,e,t,r,i)},t.Scene.prototype.pickWithBoundingInfo=function(e,t,r,i,s){return P(this,e,t,r,i,s)},t.Scene.prototype.pick=function(e,t,r,i,s,n,a=!1){return M(this,e,t,r,i,s,n,a)},t.Scene.prototype.pickWithRay=function(e,t,r,i){return b(this,e,t,r,i)},t.Scene.prototype.multiPick=function(e,t,r,i,s){return I(this,e,t,r,i,s)},t.Scene.prototype.multiPickWithRay=function(e,t,r){return x(this,e,t,r)})}e.s(["RegisterRay",0,k],88165),k(),e.s([],95484),e.i(95484),e.i(88165),e.i(75258),e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,P,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u,"RegisterRay",0,k],73034),e.i(73034),e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,P,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u,"RegisterRay",0,k],12675)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52542,i=>{"use strict";i.i(79714);var n=i.i(56447);i.i(73935),i.s(["AnimationGroup",()=>n.AnimationGroup,"AnimationGroupClipFrames",()=>n.AnimationGroupClipFrames,"AnimationGroupClipFramesInPlace",()=>n.AnimationGroupClipFramesInPlace,"AnimationGroupClipInPlace",()=>n.AnimationGroupClipInPlace,"AnimationGroupClipKeys",()=>n.AnimationGroupClipKeys,"AnimationGroupClipKeysInPlace",()=>n.AnimationGroupClipKeysInPlace,"AnimationGroupMakeAnimationAdditive",()=>n.AnimationGroupMakeAnimationAdditive,"AnimationGroupMergeAnimationGroups",()=>n.AnimationGroupMergeAnimationGroups,"AnimationGroupParse",()=>n.AnimationGroupParse,"RegisterAnimationGroup",()=>n.RegisterAnimationGroup,"TargetedAnimation",()=>n.TargetedAnimation])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,49890,t=>{"use strict";var e=t.i(19434),i=t.i(38759),o=t.i(38116);class s extends i.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.count=this.registerDataOutput("count",e.RichTypeNumber),this.reset=this._registerSignalInput("reset")}_execute(t,e){if(e===this.reset){t._setExecutionVariable(this,"count",0),this.count.setValue(0,t);return}let i=t._getExecutionVariable(this,"count",0)+1;t._setExecutionVariable(this,"count",i),this.count.setValue(i,t),this.out._activateSignal(t)}getClassName(){return"FlowGraphCallCounterBlock"}}let l=!1;function r(){l||(l=!0,(0,o.RegisterClass)("FlowGraphCallCounterBlock",s))}t.s(["FlowGraphCallCounterBlock",0,s,"RegisterFlowGraphCounterBlock",0,r],509),r(),t.s([],8999),t.i(8999),t.i(509),t.s(["FlowGraphCallCounterBlock",0,s],49890)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75551,t=>{"use strict";var e=t.i(75105),i=t.i(62478),o=t.i(44520);class s extends i.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.count=this.registerDataOutput("count",e.RichTypeNumber),this.reset=this._registerSignalInput("reset")}_execute(t,e){if(e===this.reset){t._setExecutionVariable(this,"count",0),this.count.setValue(0,t);return}let i=t._getExecutionVariable(this,"count",0)+1;t._setExecutionVariable(this,"count",i),this.count.setValue(i,t),this.out._activateSignal(t)}getClassName(){return"FlowGraphCallCounterBlock"}}let l=!1;function r(){l||(l=!0,(0,o.RegisterClass)("FlowGraphCallCounterBlock",s))}t.s(["FlowGraphCallCounterBlock",0,s,"RegisterFlowGraphCounterBlock",0,r],79236),r(),t.s([],62181),t.i(62181),t.i(79236),t.s(["FlowGraphCallCounterBlock",0,s],75551)}]);