@uptimizr/dashboard 0.4.6 → 0.4.7
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.
- package/out/404.html +1 -1
- package/out/__next.__PAGE__.txt +19 -5
- package/out/__next._full.txt +10 -10
- package/out/__next._tree.txt +1 -1
- package/out/_next/static/chunks/{2-_a-v1xeo5hb.js → 0-_j1khfoib6l.js} +116 -115
- package/out/_next/static/chunks/{25brs445bjbik.js → 005bbq_px7lke.js} +2 -2
- package/out/_next/static/chunks/00fbhtmui-yxg.js +1 -0
- package/out/_next/static/chunks/017pn-pen381_.js +1 -0
- package/out/_next/static/chunks/01vov6inx1zzt.js +1 -0
- package/out/_next/static/chunks/{2x-7kbwq8tl-o.js → 02qk_wmkf9at-.js} +196 -196
- package/out/_next/static/chunks/03bd5plut08tg.js +1 -0
- package/out/_next/static/chunks/03dwfqmo73w_z.js +1 -0
- package/out/_next/static/chunks/03sn4419dam-h.js +5 -0
- package/out/_next/static/chunks/05ere0-228syf.js +1 -0
- package/out/_next/static/chunks/{1jjw9hxgi2vzi.js → 05h8u5lrypn5m.js} +1 -1
- package/out/_next/static/chunks/{23-y1f_zw56vo.js → 05v-nubi896jg.js} +1 -1
- package/out/_next/static/chunks/05z79zh625ezu.js +1 -0
- package/out/_next/static/chunks/{2xe4bgir5l-9b.js → 060iult6f68_e.js} +504 -504
- package/out/_next/static/chunks/08lvtnv7b1cxp.js +1 -0
- package/out/_next/static/chunks/0_v2luu_qmeid.js +1 -0
- package/out/_next/static/chunks/0ai0zgbgjqb92.js +1 -0
- package/out/_next/static/chunks/0boov9mwycanf.js +1 -0
- package/out/_next/static/chunks/{2mrkv0z2i74pv.js → 0btmk0wmekl02.js} +2 -2
- package/out/_next/static/chunks/0d8x8m2x6ca_m.js +1 -0
- package/out/_next/static/chunks/0dmrdrwtd093b.js +1 -0
- package/out/_next/static/chunks/0e1jfrmioeuws.js +1 -0
- package/out/_next/static/chunks/0e7nlxmneb2j_.js +1 -0
- package/out/_next/static/chunks/0es97pusfxupl.js +1 -0
- package/out/_next/static/chunks/{2fspbfbxbswzd.js → 0fd-0i1yt23kz.js} +1 -1
- package/out/_next/static/chunks/0fxdyvb1w23d1.js +1 -0
- package/out/_next/static/chunks/0fxhc24djjcgq.js +1 -0
- package/out/_next/static/chunks/0gf-ztg86zd80.js +1 -0
- package/out/_next/static/chunks/{287hakn2ijupp.js → 0grasqqf5dw7r.js} +2 -2
- package/out/_next/static/chunks/{161yjxmdz9obc.js → 0hajwk2yd-rwr.js} +1 -1
- package/out/_next/static/chunks/0hk1wg7h4araz.js +1 -0
- package/out/_next/static/chunks/{1aa9g197l4twm.js → 0j74ipw4fps-n.js} +1 -1
- package/out/_next/static/chunks/{1s0dpdqy480hg.js → 0kj-vckdn7t5p.js} +1 -1
- package/out/_next/static/chunks/0lbs5xdyjuzuo.js +1 -0
- package/out/_next/static/chunks/0lep3_bqwfuin.js +1 -0
- package/out/_next/static/chunks/0mp0jh1gj7290.js +1 -0
- package/out/_next/static/chunks/0ngpoj2g5i4kz.js +1 -0
- package/out/_next/static/chunks/0nhljhguceh66.js +1 -0
- package/out/_next/static/chunks/0p6z73afb9dj2.js +1 -0
- package/out/_next/static/chunks/0p9zfmidzqkps.js +1 -0
- package/out/_next/static/chunks/0q75860p8u_ii.js +1 -0
- package/out/_next/static/chunks/{3mmy9zsb7zo-m.js → 0rracz73p38mo.js} +23 -23
- package/out/_next/static/chunks/{3_dm45k0vk1aa.js → 0sw-8gxbg4x0l.js} +565 -565
- package/out/_next/static/chunks/0sx-6rf3eteqn.js +1 -0
- package/out/_next/static/chunks/0thw099xk3_0p.js +3 -0
- package/out/_next/static/chunks/0u85f0dhb4i8e.js +1 -0
- package/out/_next/static/chunks/0uk7kigzm4vi2.js +31 -0
- package/out/_next/static/chunks/0ulufxnsrou61.js +1 -0
- package/out/_next/static/chunks/0xa9dyg6ezzyd.js +2 -0
- package/out/_next/static/chunks/0xvrfvur0p534.js +1 -0
- package/out/_next/static/chunks/{2clevl_9ayd0x.js → 0ybs1u66q26su.js} +1 -1
- package/out/_next/static/chunks/0ydfhk-p6zvm0.js +1 -0
- package/out/_next/static/chunks/{0j2ygtc_-bo3m.js → 0z004fn14pbcu.js} +1 -1
- package/out/_next/static/chunks/{2c8rmxz151fxa.js → 0z9erbl3llr_b.js} +224 -224
- package/out/_next/static/chunks/0zcsxvcvog9ue.js +1 -0
- package/out/_next/static/chunks/0zqgq0lwtz9tn.js +1 -0
- package/out/_next/static/chunks/1-ogak5u00kwa.js +1 -0
- package/out/_next/static/chunks/{3si3migsmvz9o.js → 10_5p5-xf2aoo.js} +1 -1
- package/out/_next/static/chunks/118qlrzdwpfmo.js +1 -0
- package/out/_next/static/chunks/11km5p4gd0ut4.js +1 -0
- package/out/_next/static/chunks/120rl4l29q9xs.js +1 -0
- package/out/_next/static/chunks/{44m1ijc5cv80x.js → 129m5i93ltoym.js} +1 -1
- package/out/_next/static/chunks/12n73o884lyyl.js +1 -0
- package/out/_next/static/chunks/{27z7j17kcrty_.js → 13zcn4lv0qj76.js} +11 -11
- package/out/_next/static/chunks/15jlgfcaeaki9.js +1 -0
- package/out/_next/static/chunks/{374lzksboll-t.js → 15o4_2t-l3rj5.js} +1 -1
- package/out/_next/static/chunks/175st2ogkg_1o.js +1 -0
- package/out/_next/static/chunks/19rsodtu91ja_.js +1 -0
- package/out/_next/static/chunks/1a2ouhup611bz.js +1 -0
- package/out/_next/static/chunks/{2117sv2qzo6yq.js → 1by60_b14x-3o.js} +1 -1
- package/out/_next/static/chunks/{2al9dh3_1ixhv.js → 1cyq7i39885sl.js} +1 -1
- package/out/_next/static/chunks/1d9it6yocgt54.js +1 -0
- package/out/_next/static/chunks/{29_n5j-hg_gsa.js → 1dp1s1t-y7gal.js} +1 -1
- package/out/_next/static/chunks/1dr7gh6xgypl8.js +1 -0
- package/out/_next/static/chunks/{1eirucr9s6-h5.js → 1dt30s_sp8415.js} +1 -1
- package/out/_next/static/chunks/{3vtmucpx25o7q.js → 1e8_jl2cxd3rp.js} +584 -584
- package/out/_next/static/chunks/1f1rek_fxk3of.js +1 -0
- package/out/_next/static/chunks/1f2mna0k5efeq.js +1 -0
- package/out/_next/static/chunks/1gfz3sxwkkg3d.js +1 -0
- package/out/_next/static/chunks/1gr35qeguuws0.js +1 -0
- package/out/_next/static/chunks/{3p03l0z65c8vc.js → 1gttu-n9am66k.js} +253 -253
- package/out/_next/static/chunks/1imi0xwi9hd99.js +1 -0
- package/out/_next/static/chunks/1ka5v5zu0cstt.js +1 -0
- package/out/_next/static/chunks/{3my05px5mv_s5.js → 1l_3oidssbhns.js} +235 -235
- package/out/_next/static/chunks/{0r-x702_jvhud.js → 1m9zc5gm-327d.js} +12 -12
- package/out/_next/static/chunks/1n9nhz-6azcp3.js +3 -0
- package/out/_next/static/chunks/1ncqwe81t_9_x.js +1 -0
- package/out/_next/static/chunks/{3un-w6wutw1qn.js → 1nix_lulkpklo.js} +1 -1
- package/out/_next/static/chunks/1ntqovuz2c217.js +1 -0
- package/out/_next/static/chunks/1pgs-98tfkq9_.js +1 -0
- package/out/_next/static/chunks/1q2z0aeopo8t8.js +1 -0
- package/out/_next/static/chunks/{1x0j78ohufpul.js → 1q4lkgxfnqnew.js} +1 -1
- package/out/_next/static/chunks/{0yd4_xh476fjn.js → 1qg1l7t00nyib.js} +97 -97
- package/out/_next/static/chunks/{2wgh5i70bzelt.js → 1rcdimhu0qhlu.js} +392 -392
- package/out/_next/static/chunks/1rlfg62jxqj3z.js +1 -0
- package/out/_next/static/chunks/1ses023uud001.js +1 -0
- package/out/_next/static/chunks/1t5oynmttpfsw.js +1 -0
- package/out/_next/static/chunks/{39cou9lia_g7l.js → 1t9i20i5-f8ze.js} +1 -1
- package/out/_next/static/chunks/{0rykrf_vofbad.js → 1tgj55b305g4h.js} +1 -1
- package/out/_next/static/chunks/{3rj-5v0j_2-_2.js → 1u8snlm6a7uhi.js} +4 -4
- package/out/_next/static/chunks/{2neieeo9g2u56.js → 1ug4k-1zhr63a.js} +1 -1
- package/out/_next/static/chunks/{3ioxfi3bvznhh.js → 1uh9zgsy69g92.js} +1 -1
- package/out/_next/static/chunks/1vrpzlif-z_p0.js +1 -0
- package/out/_next/static/chunks/{0lwjmr8efrlbt.js → 1vurgl6oz2qey.js} +1 -1
- package/out/_next/static/chunks/1w-qc09n9ijtq.js +1 -0
- package/out/_next/static/chunks/1ycqxcht6x54p.js +1 -0
- package/out/_next/static/chunks/1zj4307ugq0qz.js +1 -0
- package/out/_next/static/chunks/{14e4k-718qadd.js → 1zkd8v-qka--j.js} +163 -168
- package/out/_next/static/chunks/1zm52cjrfrq7c.js +1 -0
- package/out/_next/static/chunks/{3-yhe6rcsjh88.js → 1zm6eo861i3c8.js} +1 -1
- package/out/_next/static/chunks/{06fbalmyyfpsy.js → 1zp9363yfhpom.js} +1 -1
- package/out/_next/static/chunks/1zt1xxovnjhkm.js +1 -0
- package/out/_next/static/chunks/2-3hk_db5fpok.js +1 -0
- package/out/_next/static/chunks/2-bv9a_0zgw1f.js +1 -0
- package/out/_next/static/chunks/{3cp5nmtwxq4gr.js → 209sxygecny37.js} +1 -1
- package/out/_next/static/chunks/{133dqp8_7_yo6.js → 216uiih3_vdfd.js} +1 -1
- package/out/_next/static/chunks/21kfpd_bityxt.js +1 -0
- package/out/_next/static/chunks/{3yk0hzfq5rcs6.js → 22yqh0zlo_vwr.js} +1 -1
- package/out/_next/static/chunks/24ecas0m9tao7.js +3 -0
- package/out/_next/static/chunks/24pq9210rng3f.js +1 -0
- package/out/_next/static/chunks/{184pz6z3dflfm.js → 267prao6fyt22.js} +20 -20
- package/out/_next/static/chunks/26skkagvj1z96.js +1 -0
- package/out/_next/static/chunks/{0i9wa8hjd-5tc.js → 26y9sv8_-ykxf.js} +1 -1
- package/out/_next/static/chunks/2701xfv_07wz_.js +1 -0
- package/out/_next/static/chunks/{39rhmj_32ujyj.js → 271333m8y3k0e.js} +1 -1
- package/out/_next/static/chunks/29rkmguzky-bp.js +1 -0
- package/out/_next/static/chunks/{3qo7e6b73mfxq.js → 2a07so920b6aa.js} +1 -1
- package/out/_next/static/chunks/{1z790xxb46gxy.js → 2a2oy8ryz2tsk.js} +1 -1
- package/out/_next/static/chunks/{2-i29-jdbwww6.js → 2ao-3jzz7yw3p.js} +111 -111
- package/out/_next/static/chunks/2apihn9ra2ufp.js +1 -0
- package/out/_next/static/chunks/2apnpj0-fs9ks.js +1 -0
- package/out/_next/static/chunks/2b481pitl4k85.js +1 -0
- package/out/_next/static/chunks/2bettxaqt3d2p.js +1 -0
- package/out/_next/static/chunks/{1bv-jzy_2jiqs.js → 2c721vfva711t.js} +1 -1
- package/out/_next/static/chunks/{17_jjyx4jz9dd.js → 2d2kl_m64j9cb.js} +1 -1
- package/out/_next/static/chunks/2droqjmvmgj13.js +1 -0
- package/out/_next/static/chunks/2dxbvwbbgpzoq.js +1 -0
- package/out/_next/static/chunks/2eqbsut829r5l.js +1 -0
- package/out/_next/static/chunks/2f3_mzxjh3gso.js +1 -0
- package/out/_next/static/chunks/2fsde0jwi5qtt.js +1 -0
- package/out/_next/static/chunks/{0jap7l5-bskj4.js → 2h249uvhh2sij.js} +12 -12
- package/out/_next/static/chunks/{2as_br1awqk6k.js → 2izok2otbk8-2.js} +496 -496
- package/out/_next/static/chunks/2j120dkh7q3uf.js +1 -0
- package/out/_next/static/chunks/2j2ynchpqh34-.js +1 -0
- package/out/_next/static/chunks/2kj6pzs_wap1v.js +1 -0
- package/out/_next/static/chunks/{2epukrz6paj9n.js → 2kok6zedeeltw.js} +1 -1
- package/out/_next/static/chunks/2lnj9jruy4nrv.js +1 -0
- package/out/_next/static/chunks/{0j0a0wvmmghxj.js → 2lsvk7xcfkarc.js} +1 -1
- package/out/_next/static/chunks/2n-pveub8b_5t.js +1 -0
- package/out/_next/static/chunks/{3puu2_-t0lln9.js → 2n3xu_wbvtj7h.js} +12 -12
- package/out/_next/static/chunks/{1lu7rjfvxj8yj.js → 2of8q0kaeqpf0.js} +1 -1
- package/out/_next/static/chunks/2ofwtw6p08sfz.js +1 -0
- package/out/_next/static/chunks/{1t-yolk97lmot.js → 2phl5ta4iim7l.js} +1 -1
- package/out/_next/static/chunks/2q6l-xdqzgmpf.js +1 -0
- package/out/_next/static/chunks/2q8yg63br2jc9.js +1 -0
- package/out/_next/static/chunks/2r5qgieqldcd9.js +1 -0
- package/out/_next/static/chunks/2r7y401cvjc1s.js +1 -0
- package/out/_next/static/chunks/{1a94whad0y57f.js → 2r96kyeehsji9.js} +1 -1
- package/out/_next/static/chunks/{1gvu5a6ffbs7l.js → 2rmc6ru7mc-kg.js} +1 -1
- package/out/_next/static/chunks/{3_gfl66zf638s.js → 2s6kpclh6ie7o.js} +901 -906
- package/out/_next/static/chunks/{0xzamrecplwzw.js → 2sys9nj8lo3uk.js} +1 -1
- package/out/_next/static/chunks/{336ckqpboqmbn.js → 2tc3e-iqv71y_.js} +1 -1
- package/out/_next/static/chunks/{1t2g1v0ubcsam.js → 2uo6vm7mfgrbf.js} +1 -1
- package/out/_next/static/chunks/{2kmmk9coo9_b0.js → 2urx6fow8c8c9.js} +143 -143
- package/out/_next/static/chunks/2w2k1gveljyb7.js +1 -0
- package/out/_next/static/chunks/{1zmx71cvc6ksk.js → 2w99knknr5i8c.js} +1 -1
- package/out/_next/static/chunks/2w_ptlw-ad8-9.js +4 -0
- package/out/_next/static/chunks/2ws1s9d52ayv8.js +1 -0
- package/out/_next/static/chunks/2x7enks3ydgai.js +1 -0
- package/out/_next/static/chunks/{2_6b9lraq-exh.js → 2y8i7_nxm4r05.js} +5 -5
- package/out/_next/static/chunks/2ydub0t01728d.js +1 -0
- package/out/_next/static/chunks/{29hkkj9raxte9.js → 2z_iab7ozohhq.js} +77 -77
- package/out/_next/static/chunks/3-m_vzabs1uez.js +1 -0
- package/out/_next/static/chunks/{1h1gixjbjkbsl.js → 302qk2fjdrthp.js} +5 -5
- package/out/_next/static/chunks/30bhz7czzs4mf.js +1 -0
- package/out/_next/static/chunks/{3d43gd91r06y6.js → 30n4y_uu8chbh.js} +507 -505
- package/out/_next/static/chunks/{0o0qtv35dqv3i.js → 32_c4mbb6j1l6.js} +239 -239
- package/out/_next/static/chunks/33hp-khdfohdq.js +1 -0
- package/out/_next/static/chunks/{3zv5kyos9vtmm.js → 33i36o_l69sm5.js} +1 -1
- package/out/_next/static/chunks/3527r3jo5fj3i.js +1 -0
- package/out/_next/static/chunks/355dg8yaa94hr.js +1 -0
- package/out/_next/static/chunks/{2h9i_adbqaxs4.js → 35ntbr_c-yx44.js} +1 -1
- package/out/_next/static/chunks/{0cmyc-uvk93kl.js → 35sne1llxnc-m.js} +74 -74
- package/out/_next/static/chunks/36enkx1skkv2-.js +4 -0
- package/out/_next/static/chunks/{0e5dcxmkprebg.js → 3772oce1n3t_g.js} +1 -1
- package/out/_next/static/chunks/37cnbm5ft1mqf.js +1 -0
- package/out/_next/static/chunks/38xdo3cifphut.js +1 -0
- package/out/_next/static/chunks/{0o73w0cn5n_vl.js → 3_dgblylldcgb.js} +1 -1
- package/out/_next/static/chunks/3beawo-qwuk8k.js +1 -0
- package/out/_next/static/chunks/3cj_6sl9kr3e9.js +1 -0
- package/out/_next/static/chunks/3d-i_skta_wes.js +1 -0
- package/out/_next/static/chunks/3df_l2we755bb.js +1 -0
- package/out/_next/static/chunks/{0o1vph7x9shzu.js → 3eve5y7fpzx2h.js} +1 -1
- package/out/_next/static/chunks/3ewgyb4y19w-3.js +1 -0
- package/out/_next/static/chunks/3f3789eh18_oy.js +1 -0
- package/out/_next/static/chunks/{0gk5rnci1hznh.js → 3f8qelpscqfym.js} +2 -2
- package/out/_next/static/chunks/3g3-e9m1en45q.js +1 -0
- package/out/_next/static/chunks/{2kk_vvmr2xm3d.js → 3h6akt2uu05ku.js} +12 -12
- package/out/_next/static/chunks/{2_lw4d7t-xcqi.js → 3huu0tqmxwowu.js} +523 -522
- package/out/_next/static/chunks/3i239y-1hbkm-.js +1 -0
- package/out/_next/static/chunks/{2mjjo0yj-4ro4.js → 3ipx7xbxchsq9.js} +1 -1
- package/out/_next/static/chunks/{3txu-i5qn183a.js → 3j9xvdz55bi4p.js} +321 -321
- package/out/_next/static/chunks/3kp8qmhoi24oz.js +1 -0
- package/out/_next/static/chunks/3ksq69yq-40_r.js +1 -0
- package/out/_next/static/chunks/{3nwaovnpiyrt8.js → 3njwfothmmg7u.js} +3 -3
- package/out/_next/static/chunks/{2iu0_3cx-ny74.js → 3oqxl46ukaojj.js} +11 -11
- package/out/_next/static/chunks/{2oacwtbslo90t.js → 3qn6r8-0u6dij.js} +360 -360
- package/out/_next/static/chunks/3qye1lytea2i8.js +1 -0
- package/out/_next/static/chunks/{0gsh_d0m5xss1.js → 3rlp9yr75liz7.js} +1 -1
- package/out/_next/static/chunks/{3j3ol_d1vsdhx.js → 3sa_hlx3konc7.js} +1 -1
- package/out/_next/static/chunks/3tyo643l62h3m.js +1 -0
- package/out/_next/static/chunks/3tz2tpqa9uvwm.js +1 -0
- package/out/_next/static/chunks/{0_jrfk2u1u3fi.js → 3utpc-fc6_y0f.js} +1 -1
- package/out/_next/static/chunks/3v-0c2aj6c0on.js +1 -0
- package/out/_next/static/chunks/3v6nxa28rxngq.js +1 -0
- package/out/_next/static/chunks/{3twr9ds68-9us.js → 3vbamaoiuk9yj.js} +1 -1
- package/out/_next/static/chunks/3vv99btjc-mky.js +1 -0
- package/out/_next/static/chunks/{22yht3s7c-xih.js → 3w59kt5ztyvoq.js} +1 -1
- package/out/_next/static/chunks/3x02lxdo28u9i.js +1 -0
- package/out/_next/static/chunks/{1my968s78he8g.js → 3xl-op0hwxytg.js} +15 -15
- package/out/_next/static/chunks/3ydnxyc4rvad_.js +1 -0
- package/out/_next/static/chunks/3ylg4gfetwgxw.js +1 -0
- package/out/_next/static/chunks/{0a475u_q5i_dd.js → 3zdtteq-r2fs5.js} +2 -2
- package/out/_next/static/chunks/3zkwt0gybqtgm.js +1 -0
- package/out/_next/static/chunks/{3nr48h9zwum-3.js → 3zs7l4362msjd.js} +1 -1
- package/out/_next/static/chunks/40etabvml_71y.js +1 -0
- package/out/_next/static/chunks/{2xujlsx3stqig.js → 417jkzz0slv9m.js} +1 -1
- package/out/_next/static/chunks/{0ypejzd74ixbw.js → 41b5gpyqbj58m.js} +15 -15
- package/out/_next/static/chunks/41u2-5jayyajf.js +22 -0
- package/out/_next/static/chunks/42gcpy51w7lk1.js +1 -0
- package/out/_next/static/chunks/{2h07np207nlx7.js → 42ymanq326mo7.js} +1 -1
- package/out/_next/static/chunks/{36pz_ews7u0xb.js → 43fp64xnfy646.js} +1 -1
- package/out/_next/static/chunks/43v4y2gu5z9_h.js +1 -0
- package/out/_next/static/chunks/44cer242u-f8v.js +1 -0
- package/out/_next/static/chunks/{0d9pxx1w_zqr9.js → 44zi0gl0a6a8w.js} +1 -1
- package/out/_next/static/chunks/turbopack-0n2o5_bkskckx.js +1 -0
- package/out/_not-found/__next._full.txt +11 -11
- package/out/_not-found/__next._not-found.__PAGE__.txt +19 -2
- package/out/_not-found/__next._tree.txt +1 -1
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +11 -11
- package/out/index.html +1 -1
- package/out/index.txt +10 -10
- package/package.json +9 -9
- package/out/__next._head.txt +0 -6
- package/out/__next._index.txt +0 -5
- package/out/_next/static/chunks/0-k4hp87gwues.js +0 -1
- package/out/_next/static/chunks/0-laj-bivzp4x.js +0 -1
- package/out/_next/static/chunks/04zj0yf1qhk1o.js +0 -1
- package/out/_next/static/chunks/07hgbbqksqd1g.js +0 -1
- package/out/_next/static/chunks/08ou2nvy48e0u.js +0 -1
- package/out/_next/static/chunks/08y5-irjbsiy8.js +0 -1
- package/out/_next/static/chunks/0aad2r4s4wl1x.js +0 -5
- package/out/_next/static/chunks/0gnjtwq-474uc.js +0 -1
- package/out/_next/static/chunks/0ibzpjo0h731v.js +0 -1
- package/out/_next/static/chunks/0j_3k5qhv_mdx.js +0 -1
- package/out/_next/static/chunks/0jis2w2mfx062.js +0 -1
- package/out/_next/static/chunks/0jjvp2slpf7d6.js +0 -1
- package/out/_next/static/chunks/0ko10wo4rc9-b.js +0 -1
- package/out/_next/static/chunks/0lqmvz6k2h_of.js +0 -1
- package/out/_next/static/chunks/0noxyupihh8dk.js +0 -1
- package/out/_next/static/chunks/0p6phe9kjlxn8.js +0 -1
- package/out/_next/static/chunks/0ptxb9dcwsw3o.js +0 -1
- package/out/_next/static/chunks/0q0i4pdyq66gb.js +0 -1
- package/out/_next/static/chunks/0q8pt8fd0ma30.js +0 -1
- package/out/_next/static/chunks/0qqx9aoz8l5d2.js +0 -1
- package/out/_next/static/chunks/0tsk32q-88t_7.js +0 -1
- package/out/_next/static/chunks/0u7577db_ivyr.js +0 -1
- package/out/_next/static/chunks/0unnrt0un064x.js +0 -1
- package/out/_next/static/chunks/0uygtr4mo3h0v.js +0 -1
- package/out/_next/static/chunks/0vf3facit951s.js +0 -1
- package/out/_next/static/chunks/0vzo-8t8c26k9.js +0 -1
- package/out/_next/static/chunks/0xx7_7y5jdlh4.js +0 -1
- package/out/_next/static/chunks/0xyija62b6txc.js +0 -1
- package/out/_next/static/chunks/0zeb37703zcz3.js +0 -1
- package/out/_next/static/chunks/0zu5ato7-1-q9.js +0 -1
- package/out/_next/static/chunks/0zydv7y47dxgh.js +0 -1
- package/out/_next/static/chunks/103x4jwovb6d-.js +0 -1
- package/out/_next/static/chunks/107wfq84g9-kn.js +0 -1
- package/out/_next/static/chunks/10afagk8yn__n.js +0 -1
- package/out/_next/static/chunks/12ory_c78yl31.js +0 -1
- package/out/_next/static/chunks/1365lgwdd4vuo.js +0 -1
- package/out/_next/static/chunks/146ou-ohb_qhs.js +0 -1
- package/out/_next/static/chunks/14orr68xgdykd.js +0 -1
- package/out/_next/static/chunks/15qfoj-vl9thu.js +0 -1
- package/out/_next/static/chunks/166yqx3_qvbpy.js +0 -1
- package/out/_next/static/chunks/16gwjao676ieb.js +0 -1
- package/out/_next/static/chunks/16rmmzhy2p7bw.js +0 -1
- package/out/_next/static/chunks/18h9ugdz6igdb.js +0 -1
- package/out/_next/static/chunks/19d8n5t7ka2fb.js +0 -1
- package/out/_next/static/chunks/1_4hh3dfop93j.js +0 -1
- package/out/_next/static/chunks/1_rbzw3n4fk0g.js +0 -1
- package/out/_next/static/chunks/1bq0fcnt1wy86.js +0 -1
- package/out/_next/static/chunks/1c6mho7e0enta.js +0 -1
- package/out/_next/static/chunks/1dfaheve77dhi.js +0 -1
- package/out/_next/static/chunks/1dgf112ehnhm1.js +0 -1
- package/out/_next/static/chunks/1f07l3q77zat1.js +0 -1
- package/out/_next/static/chunks/1fervgvgv10r-.js +0 -1
- package/out/_next/static/chunks/1fsof7un7igrn.js +0 -1
- package/out/_next/static/chunks/1iel4pzhhh-c3.js +0 -1
- package/out/_next/static/chunks/1iojfx3-g4_n9.js +0 -1
- package/out/_next/static/chunks/1j4c0nvdo5q68.js +0 -3
- package/out/_next/static/chunks/1j4jt5q7px8sy.js +0 -1
- package/out/_next/static/chunks/1k_8olnprvi8r.js +0 -1
- package/out/_next/static/chunks/1l0rt7d4m-xdk.js +0 -5
- package/out/_next/static/chunks/1mt4cnd_d6jvf.js +0 -1
- package/out/_next/static/chunks/1tbes2sv-qzcx.js +0 -1
- package/out/_next/static/chunks/1upy8a5cb75kt.js +0 -1
- package/out/_next/static/chunks/1xed71f608m4b.js +0 -1
- package/out/_next/static/chunks/219n3q-_eengm.js +0 -1
- package/out/_next/static/chunks/21wo3vdr_uby8.js +0 -1
- package/out/_next/static/chunks/25gep78-izw79.js +0 -4
- package/out/_next/static/chunks/26i7dn31afdtm.js +0 -1
- package/out/_next/static/chunks/27hbplu797elx.js +0 -1
- package/out/_next/static/chunks/28i3wgvgn_at1.js +0 -1
- package/out/_next/static/chunks/2992eiy52nazj.js +0 -1
- package/out/_next/static/chunks/29bxq-67oazfg.js +0 -1
- package/out/_next/static/chunks/29ings58w7kp1.js +0 -1
- package/out/_next/static/chunks/2_n0cpkdsjzli.js +0 -1
- package/out/_next/static/chunks/2a3iy701j4r_y.js +0 -1
- package/out/_next/static/chunks/2awr1c_vfsutb.js +0 -1
- package/out/_next/static/chunks/2b5nt7yn-pq3a.js +0 -1
- package/out/_next/static/chunks/2bxe3kjr17tdp.js +0 -1
- package/out/_next/static/chunks/2dvbzar93ooc-.js +0 -1
- package/out/_next/static/chunks/2e-vp0e11g9ew.js +0 -1
- package/out/_next/static/chunks/2exj9-0p6n9x-.js +0 -1
- package/out/_next/static/chunks/2gf8l6hbmt7v3.js +0 -1
- package/out/_next/static/chunks/2jio3sio-_43z.js +0 -1
- package/out/_next/static/chunks/2laz1v9fg2a2z.js +0 -1
- package/out/_next/static/chunks/2pb_uosb-aa8x.js +0 -1
- package/out/_next/static/chunks/2qu-gpm3ux1l6.js +0 -1
- package/out/_next/static/chunks/2rsi6v7qmqx2b.js +0 -1
- package/out/_next/static/chunks/2s4fzgzkwjluu.js +0 -2
- package/out/_next/static/chunks/2tdvuc-27khif.js +0 -1
- package/out/_next/static/chunks/2trolrgd7neax.js +0 -1
- package/out/_next/static/chunks/2uyuafmoe5wi0.js +0 -3
- package/out/_next/static/chunks/2w2e0pxgs-n8f.js +0 -1
- package/out/_next/static/chunks/30y71dxdpv52d.js +0 -1
- package/out/_next/static/chunks/32c-e_v8_2xkf.js +0 -1
- package/out/_next/static/chunks/32oj0iudhp8bm.js +0 -1
- package/out/_next/static/chunks/33p9du6y9eegg.js +0 -1
- package/out/_next/static/chunks/38om-j0h0rryk.js +0 -1
- package/out/_next/static/chunks/38q0enmlg5q9o.js +0 -3
- package/out/_next/static/chunks/39pkya0_bvcaj.js +0 -1
- package/out/_next/static/chunks/3_1zzmx92j9c0.js +0 -1
- package/out/_next/static/chunks/3_earszshuz4n.js +0 -1
- package/out/_next/static/chunks/3ap_uxc8lx7ni.js +0 -1
- package/out/_next/static/chunks/3b6na8zrex8jo.js +0 -1
- package/out/_next/static/chunks/3c0cxt72vilyz.js +0 -1
- package/out/_next/static/chunks/3g78x0pdaoi_4.js +0 -1
- package/out/_next/static/chunks/3gjvl1p-tugfe.js +0 -4
- package/out/_next/static/chunks/3i8iro1gas1vx.js +0 -1
- package/out/_next/static/chunks/3kpqfqr99vo7z.js +0 -1
- package/out/_next/static/chunks/3lladf_wemm-2.js +0 -1
- package/out/_next/static/chunks/3n62hbywoknop.js +0 -1
- package/out/_next/static/chunks/3o_dmzpahx-5g.js +0 -1
- package/out/_next/static/chunks/3r7v7un976sn7.js +0 -1
- package/out/_next/static/chunks/3rl_nhqwew40w.js +0 -1
- package/out/_next/static/chunks/3s7hqij6xp_4e.js +0 -1
- package/out/_next/static/chunks/3t4ys6th6gf2w.js +0 -1
- package/out/_next/static/chunks/3uarw1i1ij1er.js +0 -1
- package/out/_next/static/chunks/3v8kgnjk27wbe.js +0 -1
- package/out/_next/static/chunks/3vu5y270muh-7.js +0 -1
- package/out/_next/static/chunks/3we1khqfexh3x.js +0 -1
- package/out/_next/static/chunks/3z35loj4i-id4.js +0 -1
- package/out/_next/static/chunks/415g3asdds1ac.js +0 -1
- package/out/_next/static/chunks/42lqt7ig40wk5.js +0 -1
- package/out/_next/static/chunks/42s6ghsurq5q7.js +0 -1
- package/out/_next/static/chunks/42yctcfi2rfwr.js +0 -1
- package/out/_next/static/chunks/43_fau1gg69eo.js +0 -1
- package/out/_next/static/chunks/43ywrdzg_7af8.js +0 -31
- package/out/_next/static/chunks/453_bg0lgesmp.js +0 -1
- package/out/_next/static/chunks/turbopack-1s36ieuku1ds3.js +0 -1
- package/out/_not-found/__next._head.txt +0 -6
- package/out/_not-found/__next._index.txt +0 -5
- package/out/_not-found/__next._not-found.txt +0 -5
- /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → A1hxMz783bIWo0Q9qqV3L}/_buildManifest.js +0 -0
- /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → A1hxMz783bIWo0Q9qqV3L}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → A1hxMz783bIWo0Q9qqV3L}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36117,t=>{"use strict";var e=t.i(20552),o=t.i(97009),s=t.i(99493);class i extends e.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.sound=this.registerDataInput("sound",o.RichTypeAny),this.volume=this.registerDataInput("volume",o.RichTypeNumber,1),this.startOffset=this.registerDataInput("startOffset",o.RichTypeNumber,0),this.loop=this.registerDataInput("loop",o.RichTypeBoolean,!1)}_execute(t,e){let o=this.sound.getValue(t);if(!o){this._reportError(t,"No sound provided"),this.out._activateSignal(t);return}let s=this.volume.getValue(t),i=this.startOffset.getValue(t),l=this.loop.getValue(t);o.play({volume:s,startOffset:i,loop:l}),this.out._activateSignal(t)}getClassName(){return"FlowGraphPlaySoundBlock"}}let l=!1;function a(){l||(l=!0,(0,s.RegisterClass)("FlowGraphPlaySoundBlock",i))}t.s(["FlowGraphPlaySoundBlock",0,i,"RegisterFlowGraphPlaySoundBlock",0,a],59062),a(),t.s([],12714),t.i(12714),t.i(59062),t.s(["FlowGraphPlaySoundBlock",0,i],36117)}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74232,e=>{"use strict";var o=e.i(2342);let i="proceduralVertexShader",t=`attribute vec2 position;varying vec2 vPosition;varying vec2 vUV;const vec2 madd=vec2(0.5,0.5);
|
|
2
2
|
#define CUSTOM_VERTEX_DEFINITIONS
|
|
3
3
|
void main(void) {
|
|
4
4
|
#define CUSTOM_VERTEX_MAIN_BEGIN
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89438,t=>{"use strict";var e=t.i(20552),i=t.i(97009),o=t.i(99493);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],10827),s(),t.s([],4577),t.i(4577),t.i(10827),t.s(["FlowGraphSetPropertyBlock",0,r],89438)}]);
|
|
@@ -1,137 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
2
|
-
const float LinearEncodePowerApprox=2.2;const float GammaEncodePowerApprox=1.0/LinearEncodePowerApprox;const vec3 LuminanceEncodeApprox=vec3(0.2126,0.7152,0.0722);const float Epsilon=0.0000001;
|
|
3
|
-
#define saturate(x) clamp(x,0.0,1.0)
|
|
4
|
-
#define absEps(x) abs(x)+Epsilon
|
|
5
|
-
#define maxEps(x) max(x,Epsilon)
|
|
6
|
-
#define saturateEps(x) clamp(x,Epsilon,1.0)
|
|
7
|
-
mat3 transposeMat3(mat3 inMatrix) {vec3 i0=inMatrix[0];vec3 i1=inMatrix[1];vec3 i2=inMatrix[2];mat3 outMatrix=mat3(
|
|
8
|
-
vec3(i0.x,i1.x,i2.x),
|
|
9
|
-
vec3(i0.y,i1.y,i2.y),
|
|
10
|
-
vec3(i0.z,i1.z,i2.z)
|
|
11
|
-
);return outMatrix;}
|
|
12
|
-
mat3 inverseMat3(mat3 inMatrix) {float a00=inMatrix[0][0],a01=inMatrix[0][1],a02=inMatrix[0][2];float a10=inMatrix[1][0],a11=inMatrix[1][1],a12=inMatrix[1][2];float a20=inMatrix[2][0],a21=inMatrix[2][1],a22=inMatrix[2][2];float b01=a22*a11-a12*a21;float b11=-a22*a10+a12*a20;float b21=a21*a10-a11*a20;float det=a00*b01+a01*b11+a02*b21;return mat3(b01,(-a22*a01+a02*a21),(a12*a01-a02*a11),
|
|
13
|
-
b11,(a22*a00-a02*a20),(-a12*a00+a02*a10),
|
|
14
|
-
b21,(-a21*a00+a01*a20),(a11*a00-a01*a10))/det;}
|
|
15
|
-
#if USE_EXACT_SRGB_CONVERSIONS
|
|
16
|
-
vec3 toLinearSpaceExact(vec3 color)
|
|
17
|
-
{vec3 nearZeroSection=0.0773993808*color;vec3 remainingSection=pow(0.947867299*(color+vec3(0.055)),vec3(2.4));
|
|
18
|
-
#if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
|
|
19
|
-
return mix(remainingSection,nearZeroSection,lessThanEqual(color,vec3(0.04045)));
|
|
20
|
-
#else
|
|
21
|
-
return
|
|
22
|
-
vec3(
|
|
23
|
-
color.r<=0.04045 ? nearZeroSection.r : remainingSection.r,
|
|
24
|
-
color.g<=0.04045 ? nearZeroSection.g : remainingSection.g,
|
|
25
|
-
color.b<=0.04045 ? nearZeroSection.b : remainingSection.b);
|
|
26
|
-
#endif
|
|
27
|
-
}
|
|
28
|
-
vec3 toGammaSpaceExact(vec3 color)
|
|
29
|
-
{vec3 nearZeroSection=12.92*color;vec3 remainingSection=1.055*pow(color,vec3(0.41666))-vec3(0.055);
|
|
30
|
-
#if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
|
|
31
|
-
return mix(remainingSection,nearZeroSection,lessThanEqual(color,vec3(0.0031308)));
|
|
32
|
-
#else
|
|
33
|
-
return
|
|
34
|
-
vec3(
|
|
35
|
-
color.r<=0.0031308 ? nearZeroSection.r : remainingSection.r,
|
|
36
|
-
color.g<=0.0031308 ? nearZeroSection.g : remainingSection.g,
|
|
37
|
-
color.b<=0.0031308 ? nearZeroSection.b : remainingSection.b);
|
|
38
|
-
#endif
|
|
39
|
-
}
|
|
40
|
-
#endif
|
|
41
|
-
float toLinearSpace(float color)
|
|
42
|
-
{
|
|
43
|
-
#if USE_EXACT_SRGB_CONVERSIONS
|
|
44
|
-
float nearZeroSection=0.0773993808*color;float remainingSection=pow(0.947867299*(color+0.055),2.4);return color<=0.04045 ? nearZeroSection : remainingSection;
|
|
45
|
-
#else
|
|
46
|
-
return pow(color,LinearEncodePowerApprox);
|
|
47
|
-
#endif
|
|
48
|
-
}
|
|
49
|
-
vec3 toLinearSpace(vec3 color)
|
|
50
|
-
{
|
|
51
|
-
#if USE_EXACT_SRGB_CONVERSIONS
|
|
52
|
-
return toLinearSpaceExact(color);
|
|
53
|
-
#else
|
|
54
|
-
return pow(color,vec3(LinearEncodePowerApprox));
|
|
55
|
-
#endif
|
|
56
|
-
}
|
|
57
|
-
vec4 toLinearSpace(vec4 color)
|
|
58
|
-
{
|
|
59
|
-
#if USE_EXACT_SRGB_CONVERSIONS
|
|
60
|
-
return vec4(toLinearSpaceExact(color.rgb),color.a);
|
|
61
|
-
#else
|
|
62
|
-
return vec4(pow(color.rgb,vec3(LinearEncodePowerApprox)),color.a);
|
|
63
|
-
#endif
|
|
64
|
-
}
|
|
65
|
-
float toGammaSpace(float color)
|
|
66
|
-
{
|
|
67
|
-
#if USE_EXACT_SRGB_CONVERSIONS
|
|
68
|
-
float nearZeroSection=12.92*color;float remainingSection=1.055*pow(color,0.41666)-0.055;return color<=0.0031308 ? nearZeroSection : remainingSection;
|
|
69
|
-
#else
|
|
70
|
-
return pow(color,GammaEncodePowerApprox);
|
|
71
|
-
#endif
|
|
72
|
-
}
|
|
73
|
-
vec3 toGammaSpace(vec3 color)
|
|
74
|
-
{
|
|
75
|
-
#if USE_EXACT_SRGB_CONVERSIONS
|
|
76
|
-
return toGammaSpaceExact(color);
|
|
77
|
-
#else
|
|
78
|
-
return pow(color,vec3(GammaEncodePowerApprox));
|
|
79
|
-
#endif
|
|
80
|
-
}
|
|
81
|
-
vec4 toGammaSpace(vec4 color)
|
|
82
|
-
{
|
|
83
|
-
#if USE_EXACT_SRGB_CONVERSIONS
|
|
84
|
-
return vec4(toGammaSpaceExact(color.rgb),color.a);
|
|
85
|
-
#else
|
|
86
|
-
return vec4(pow(color.rgb,vec3(GammaEncodePowerApprox)),color.a);
|
|
87
|
-
#endif
|
|
88
|
-
}
|
|
89
|
-
float square(float value)
|
|
90
|
-
{return value*value;}
|
|
91
|
-
vec3 square(vec3 value)
|
|
92
|
-
{return value*value;}
|
|
93
|
-
float pow5(float value) {float sq=value*value;return sq*sq*value;}
|
|
94
|
-
vec3 double_refract(vec3 I,vec3 N,float eta) {vec3 Tfront=refract(I,N,1.0/eta);vec3 Nback=normalize(reflect(N,Tfront));return refract(Tfront,-Nback,eta);}
|
|
95
|
-
float getLuminanceUnclamped(vec3 color)
|
|
96
|
-
{return dot(color,LuminanceEncodeApprox);}
|
|
97
|
-
float getLuminance(vec3 color)
|
|
98
|
-
{return saturate(getLuminanceUnclamped(color));}
|
|
99
|
-
float getRand(vec2 seed) {return fract(sin(dot(seed.xy ,vec2(12.9898,78.233)))*43758.5453);}
|
|
100
|
-
float dither(vec2 seed,float varianceAmount) {float rand=getRand(seed);float normVariance=varianceAmount/255.0;float dither=mix(-normVariance,normVariance,rand);return dither;}
|
|
101
|
-
const float rgbdMaxRange=255.;vec4 toRGBD(vec3 color) {float maxRGB=maxEps(max(color.r,max(color.g,color.b)));float D =max(rgbdMaxRange/maxRGB,1.);D =saturate(floor(D)/255.);vec3 rgb=color.rgb*D;rgb=toGammaSpace(rgb);return vec4(saturate(rgb),D);}
|
|
102
|
-
vec3 fromRGBD(vec4 rgbd) {rgbd.rgb=toLinearSpace(rgbd.rgb);return rgbd.rgb/rgbd.a;}
|
|
103
|
-
vec3 parallaxCorrectNormal( vec3 vertexPos,vec3 origVec,vec3 cubeSize,vec3 cubePos ) {vec3 invOrigVec=vec3(1.)/origVec;vec3 halfSize=cubeSize*0.5;vec3 intersecAtMaxPlane=(cubePos+halfSize-vertexPos)*invOrigVec;vec3 intersecAtMinPlane=(cubePos-halfSize-vertexPos)*invOrigVec;vec3 largestIntersec=max(intersecAtMaxPlane,intersecAtMinPlane);float distance=min(min(largestIntersec.x,largestIntersec.y),largestIntersec.z);vec3 intersectPositionWS=vertexPos+origVec*distance;return intersectPositionWS-cubePos;}
|
|
104
|
-
vec3 equirectangularToCubemapDirection(vec2 uv) {float longitude=uv.x*TWO_PI-PI;float latitude=HALF_PI-uv.y*PI;vec3 direction;direction.x=cos(latitude)*sin(longitude);direction.y=sin(latitude);direction.z=cos(latitude)*cos(longitude);return direction;}
|
|
105
|
-
float sqrtClamped(float value) {return sqrt(max(value,0.));}
|
|
106
|
-
float avg(vec3 value) {return dot(value,vec3(0.333333333));}
|
|
107
|
-
#if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
|
|
108
|
-
uint extractBits(uint value,int offset,int width) {return (value>>offset) & ((1u<<width)-1u);}
|
|
109
|
-
int onlyBitPosition(uint value) {return (floatBitsToInt(float(value))>>23)-0x7f;}
|
|
110
|
-
vec3 singleScatterToMultiScatterAlbedo(vec3 rho_ss) {vec3 s=sqrt(max(vec3(1.0)-rho_ss,vec3(0.0)));return (vec3(1.0)-s)*(vec3(1.0)-vec3(0.139)*s)/(vec3(1.0)+vec3(1.17)*s);}
|
|
111
|
-
vec3 multiScatterToSingleScatterAlbedo(vec3 rho_ms) {vec3 s=4.09712+4.20863*rho_ms-sqrt(9.59217+41.6808*rho_ms+17.7126*rho_ms*rho_ms);return 1.0-s*s;}
|
|
112
|
-
vec3 multiScatterToSingleScatterAlbedo(vec3 rho_ms,float aniso) {vec3 s=4.09712+4.20863*rho_ms-sqrt(9.59217+41.6808*rho_ms+17.7126*rho_ms*rho_ms);return (1.0-s*s)/maxEps(1.0-aniso*s*s);}
|
|
113
|
-
float min3(vec3 v) {return min(v.x,min(v.y,v.z));}
|
|
114
|
-
float max3(vec3 v) {return max(v.x,max(v.y,v.z));}
|
|
115
|
-
float uint2float(uint i) {return uintBitsToFloat(0x3F800000u | (i>>9u))-1.0;}
|
|
116
|
-
vec2 plasticSequence(const uint rstate) {return vec2(uint2float(rstate*3242174889u),
|
|
117
|
-
uint2float(rstate*2447445414u));}
|
|
118
|
-
#endif
|
|
119
|
-
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=o),e.s(["helperFunctions",0,{name:a,shader:o}])},68381,e=>{"use strict";var t=e.i(47150);let a="logDepthDeclaration",o=`#ifdef LOGARITHMICDEPTH
|
|
120
|
-
uniform float logarithmicDepthConstant;varying float vFragmentDepth;
|
|
121
|
-
#endif
|
|
122
|
-
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=o),e.s(["logDepthDeclaration",0,{name:a,shader:o}])},67827,e=>{"use strict";var t=e.i(47150);let a="sceneUboDeclaration",o=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
|
|
123
|
-
#ifdef MULTIVIEW
|
|
124
|
-
mat4 viewProjectionR;
|
|
125
|
-
#endif
|
|
126
|
-
mat4 view;mat4 projection;vec4 vEyePosition;mat4 inverseProjection;};
|
|
127
|
-
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=o),e.s(["sceneUboDeclaration",0,{name:a,shader:o}])},38605,e=>{"use strict";var t=e.i(47150);let a="meshUboDeclaration",o=`#ifdef WEBGL2
|
|
128
|
-
uniform mat4 world;uniform float visibility;
|
|
129
|
-
#else
|
|
130
|
-
layout(std140,column_major) uniform;uniform Mesh
|
|
131
|
-
{mat4 world;float visibility;};
|
|
132
|
-
#endif
|
|
133
|
-
#define WORLD_UBO
|
|
134
|
-
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=o),e.s(["meshUboDeclaration",0,{name:a,shader:o}])},49161,48661,e=>{"use strict";var t=e.i(47150);let a="clipPlaneVertexDeclaration",o=`#ifdef CLIPPLANE
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,40566,56659,e=>{"use strict";var t=e.i(2342);let a="clipPlaneVertexDeclaration",o=`#ifdef CLIPPLANE
|
|
135
2
|
uniform vec4 vClipPlane;varying float fClipDistance;
|
|
136
3
|
#endif
|
|
137
4
|
#ifdef CLIPPLANE2
|
|
@@ -149,7 +16,7 @@ uniform vec4 vClipPlane5;varying float fClipDistance5;
|
|
|
149
16
|
#ifdef CLIPPLANE6
|
|
150
17
|
uniform vec4 vClipPlane6;varying float fClipDistance6;
|
|
151
18
|
#endif
|
|
152
|
-
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=o),e.s(["clipPlaneVertexDeclaration",0,{name:a,shader:o}],
|
|
19
|
+
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=o),e.s(["clipPlaneVertexDeclaration",0,{name:a,shader:o}],40566);let i="clipPlaneVertex",r=`#ifdef CLIPPLANE
|
|
153
20
|
fClipDistance=dot(worldPos,vClipPlane);
|
|
154
21
|
#endif
|
|
155
22
|
#ifdef CLIPPLANE2
|
|
@@ -167,19 +34,16 @@ fClipDistance5=dot(worldPos,vClipPlane5);
|
|
|
167
34
|
#ifdef CLIPPLANE6
|
|
168
35
|
fClipDistance6=dot(worldPos,vClipPlane6);
|
|
169
36
|
#endif
|
|
170
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=r),e.s(["clipPlaneVertex",0,{name:i,shader:r}],
|
|
37
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=r),e.s(["clipPlaneVertex",0,{name:i,shader:r}],56659)},21659,33475,e=>{"use strict";var t=e.i(2342);let a="fogVertexDeclaration",o=`#ifdef FOG
|
|
171
38
|
varying vec3 vFogDistance;
|
|
172
39
|
#endif
|
|
173
|
-
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=o),e.s(["fogVertexDeclaration",0,{name:a,shader:o}],
|
|
40
|
+
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=o),e.s(["fogVertexDeclaration",0,{name:a,shader:o}],21659);let i="fogVertex",r=`#ifdef FOG
|
|
174
41
|
vFogDistance=(view*worldPos).xyz;
|
|
175
42
|
#endif
|
|
176
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=r),e.s(["fogVertex",0,{name:i,shader:r}],
|
|
177
|
-
vFragmentDepth=1.0+gl_Position.w;gl_Position.z=log2(max(0.000001,vFragmentDepth))*logarithmicDepthConstant;
|
|
178
|
-
#endif
|
|
179
|
-
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=o),e.s(["logDepthVertex",0,{name:a,shader:o}])},8571,63326,76305,e=>{"use strict";var t=e.i(47150);let a="gaussianSplattingVertexDeclaration",o="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]=o),e.s(["gaussianSplattingVertexDeclaration",0,{name:a,shader:o}],8571),e.i(67827),e.i(38605);let i="gaussianSplattingUboDeclaration",r=`#include<sceneUboDeclaration>
|
|
43
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=r),e.s(["fogVertex",0,{name:i,shader:r}],33475)},37208,96934,25511,e=>{"use strict";var t=e.i(2342);let a="gaussianSplattingVertexDeclaration",o="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]=o),e.s(["gaussianSplattingVertexDeclaration",0,{name:a,shader:o}],37208),e.i(19831),e.i(49676);let i="gaussianSplattingUboDeclaration",r=`#include<sceneUboDeclaration>
|
|
180
44
|
#include<meshUboDeclaration>
|
|
181
45
|
attribute vec3 position;attribute vec4 splatIndex0;attribute vec4 splatIndex1;attribute vec4 splatIndex2;attribute vec4 splatIndex3;
|
|
182
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=r),e.s(["gaussianSplattingUboDeclaration",0,{name:i,shader:r}],
|
|
46
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=r),e.s(["gaussianSplattingUboDeclaration",0,{name:i,shader:r}],96934);let s="gaussianSplatting",n=`#if !defined(WEBGL2) && !defined(WEBGPU) && !defined(NATIVE)
|
|
183
47
|
mat3 transpose(mat3 matrix) {return mat3(matrix[0][0],matrix[1][0],matrix[2][0],
|
|
184
48
|
matrix[0][1],matrix[1][1],matrix[2][1],
|
|
185
49
|
matrix[0][2],matrix[1][2],matrix[2][2]);}
|
|
@@ -417,7 +281,143 @@ vec3(rotationB.z,rotationB.w,rotationScale.x)
|
|
|
417
281
|
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;}
|
|
418
282
|
vec3 vertexObjectSpace=center+splatRotation*offsetSplatSpace;return splatWorld*vec4(vertexObjectSpace,1.0);}
|
|
419
283
|
#endif
|
|
420
|
-
`;t.ShaderStore.IncludesShadersStore[s]||(t.ShaderStore.IncludesShadersStore[s]=n),e.s(["gaussianSplatting",0,{name:s,shader:n}],
|
|
284
|
+
`;t.ShaderStore.IncludesShadersStore[s]||(t.ShaderStore.IncludesShadersStore[s]=n),e.s(["gaussianSplatting",0,{name:s,shader:n}],25511)},62308,e=>{"use strict";var t=e.i(2342);let a="helperFunctions",o=`const float PI=3.1415926535897932384626433832795;const float TWO_PI=6.283185307179586;const float HALF_PI=1.5707963267948966;const float RECIPROCAL_PI=0.3183098861837907;const float RECIPROCAL_PI2=0.15915494309189535;const float RECIPROCAL_PI4=0.07957747154594767;const float HALF_MIN=5.96046448e-08;
|
|
285
|
+
const float LinearEncodePowerApprox=2.2;const float GammaEncodePowerApprox=1.0/LinearEncodePowerApprox;const vec3 LuminanceEncodeApprox=vec3(0.2126,0.7152,0.0722);const float Epsilon=0.0000001;
|
|
286
|
+
#define saturate(x) clamp(x,0.0,1.0)
|
|
287
|
+
#define absEps(x) abs(x)+Epsilon
|
|
288
|
+
#define maxEps(x) max(x,Epsilon)
|
|
289
|
+
#define saturateEps(x) clamp(x,Epsilon,1.0)
|
|
290
|
+
mat3 transposeMat3(mat3 inMatrix) {vec3 i0=inMatrix[0];vec3 i1=inMatrix[1];vec3 i2=inMatrix[2];mat3 outMatrix=mat3(
|
|
291
|
+
vec3(i0.x,i1.x,i2.x),
|
|
292
|
+
vec3(i0.y,i1.y,i2.y),
|
|
293
|
+
vec3(i0.z,i1.z,i2.z)
|
|
294
|
+
);return outMatrix;}
|
|
295
|
+
mat3 inverseMat3(mat3 inMatrix) {float a00=inMatrix[0][0],a01=inMatrix[0][1],a02=inMatrix[0][2];float a10=inMatrix[1][0],a11=inMatrix[1][1],a12=inMatrix[1][2];float a20=inMatrix[2][0],a21=inMatrix[2][1],a22=inMatrix[2][2];float b01=a22*a11-a12*a21;float b11=-a22*a10+a12*a20;float b21=a21*a10-a11*a20;float det=a00*b01+a01*b11+a02*b21;return mat3(b01,(-a22*a01+a02*a21),(a12*a01-a02*a11),
|
|
296
|
+
b11,(a22*a00-a02*a20),(-a12*a00+a02*a10),
|
|
297
|
+
b21,(-a21*a00+a01*a20),(a11*a00-a01*a10))/det;}
|
|
298
|
+
#if USE_EXACT_SRGB_CONVERSIONS
|
|
299
|
+
vec3 toLinearSpaceExact(vec3 color)
|
|
300
|
+
{vec3 nearZeroSection=0.0773993808*color;vec3 remainingSection=pow(0.947867299*(color+vec3(0.055)),vec3(2.4));
|
|
301
|
+
#if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
|
|
302
|
+
return mix(remainingSection,nearZeroSection,lessThanEqual(color,vec3(0.04045)));
|
|
303
|
+
#else
|
|
304
|
+
return
|
|
305
|
+
vec3(
|
|
306
|
+
color.r<=0.04045 ? nearZeroSection.r : remainingSection.r,
|
|
307
|
+
color.g<=0.04045 ? nearZeroSection.g : remainingSection.g,
|
|
308
|
+
color.b<=0.04045 ? nearZeroSection.b : remainingSection.b);
|
|
309
|
+
#endif
|
|
310
|
+
}
|
|
311
|
+
vec3 toGammaSpaceExact(vec3 color)
|
|
312
|
+
{vec3 nearZeroSection=12.92*color;vec3 remainingSection=1.055*pow(color,vec3(0.41666))-vec3(0.055);
|
|
313
|
+
#if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
|
|
314
|
+
return mix(remainingSection,nearZeroSection,lessThanEqual(color,vec3(0.0031308)));
|
|
315
|
+
#else
|
|
316
|
+
return
|
|
317
|
+
vec3(
|
|
318
|
+
color.r<=0.0031308 ? nearZeroSection.r : remainingSection.r,
|
|
319
|
+
color.g<=0.0031308 ? nearZeroSection.g : remainingSection.g,
|
|
320
|
+
color.b<=0.0031308 ? nearZeroSection.b : remainingSection.b);
|
|
321
|
+
#endif
|
|
322
|
+
}
|
|
323
|
+
#endif
|
|
324
|
+
float toLinearSpace(float color)
|
|
325
|
+
{
|
|
326
|
+
#if USE_EXACT_SRGB_CONVERSIONS
|
|
327
|
+
float nearZeroSection=0.0773993808*color;float remainingSection=pow(0.947867299*(color+0.055),2.4);return color<=0.04045 ? nearZeroSection : remainingSection;
|
|
328
|
+
#else
|
|
329
|
+
return pow(color,LinearEncodePowerApprox);
|
|
330
|
+
#endif
|
|
331
|
+
}
|
|
332
|
+
vec3 toLinearSpace(vec3 color)
|
|
333
|
+
{
|
|
334
|
+
#if USE_EXACT_SRGB_CONVERSIONS
|
|
335
|
+
return toLinearSpaceExact(color);
|
|
336
|
+
#else
|
|
337
|
+
return pow(color,vec3(LinearEncodePowerApprox));
|
|
338
|
+
#endif
|
|
339
|
+
}
|
|
340
|
+
vec4 toLinearSpace(vec4 color)
|
|
341
|
+
{
|
|
342
|
+
#if USE_EXACT_SRGB_CONVERSIONS
|
|
343
|
+
return vec4(toLinearSpaceExact(color.rgb),color.a);
|
|
344
|
+
#else
|
|
345
|
+
return vec4(pow(color.rgb,vec3(LinearEncodePowerApprox)),color.a);
|
|
346
|
+
#endif
|
|
347
|
+
}
|
|
348
|
+
float toGammaSpace(float color)
|
|
349
|
+
{
|
|
350
|
+
#if USE_EXACT_SRGB_CONVERSIONS
|
|
351
|
+
float nearZeroSection=12.92*color;float remainingSection=1.055*pow(color,0.41666)-0.055;return color<=0.0031308 ? nearZeroSection : remainingSection;
|
|
352
|
+
#else
|
|
353
|
+
return pow(color,GammaEncodePowerApprox);
|
|
354
|
+
#endif
|
|
355
|
+
}
|
|
356
|
+
vec3 toGammaSpace(vec3 color)
|
|
357
|
+
{
|
|
358
|
+
#if USE_EXACT_SRGB_CONVERSIONS
|
|
359
|
+
return toGammaSpaceExact(color);
|
|
360
|
+
#else
|
|
361
|
+
return pow(color,vec3(GammaEncodePowerApprox));
|
|
362
|
+
#endif
|
|
363
|
+
}
|
|
364
|
+
vec4 toGammaSpace(vec4 color)
|
|
365
|
+
{
|
|
366
|
+
#if USE_EXACT_SRGB_CONVERSIONS
|
|
367
|
+
return vec4(toGammaSpaceExact(color.rgb),color.a);
|
|
368
|
+
#else
|
|
369
|
+
return vec4(pow(color.rgb,vec3(GammaEncodePowerApprox)),color.a);
|
|
370
|
+
#endif
|
|
371
|
+
}
|
|
372
|
+
float square(float value)
|
|
373
|
+
{return value*value;}
|
|
374
|
+
vec3 square(vec3 value)
|
|
375
|
+
{return value*value;}
|
|
376
|
+
float pow5(float value) {float sq=value*value;return sq*sq*value;}
|
|
377
|
+
vec3 double_refract(vec3 I,vec3 N,float eta) {vec3 Tfront=refract(I,N,1.0/eta);vec3 Nback=normalize(reflect(N,Tfront));return refract(Tfront,-Nback,eta);}
|
|
378
|
+
float getLuminanceUnclamped(vec3 color)
|
|
379
|
+
{return dot(color,LuminanceEncodeApprox);}
|
|
380
|
+
float getLuminance(vec3 color)
|
|
381
|
+
{return saturate(getLuminanceUnclamped(color));}
|
|
382
|
+
float getRand(vec2 seed) {return fract(sin(dot(seed.xy ,vec2(12.9898,78.233)))*43758.5453);}
|
|
383
|
+
float dither(vec2 seed,float varianceAmount) {float rand=getRand(seed);float normVariance=varianceAmount/255.0;float dither=mix(-normVariance,normVariance,rand);return dither;}
|
|
384
|
+
const float rgbdMaxRange=255.;vec4 toRGBD(vec3 color) {float maxRGB=maxEps(max(color.r,max(color.g,color.b)));float D =max(rgbdMaxRange/maxRGB,1.);D =saturate(floor(D)/255.);vec3 rgb=color.rgb*D;rgb=toGammaSpace(rgb);return vec4(saturate(rgb),D);}
|
|
385
|
+
vec3 fromRGBD(vec4 rgbd) {rgbd.rgb=toLinearSpace(rgbd.rgb);return rgbd.rgb/rgbd.a;}
|
|
386
|
+
vec3 parallaxCorrectNormal( vec3 vertexPos,vec3 origVec,vec3 cubeSize,vec3 cubePos ) {vec3 invOrigVec=vec3(1.)/origVec;vec3 halfSize=cubeSize*0.5;vec3 intersecAtMaxPlane=(cubePos+halfSize-vertexPos)*invOrigVec;vec3 intersecAtMinPlane=(cubePos-halfSize-vertexPos)*invOrigVec;vec3 largestIntersec=max(intersecAtMaxPlane,intersecAtMinPlane);float distance=min(min(largestIntersec.x,largestIntersec.y),largestIntersec.z);vec3 intersectPositionWS=vertexPos+origVec*distance;return intersectPositionWS-cubePos;}
|
|
387
|
+
vec3 equirectangularToCubemapDirection(vec2 uv) {float longitude=uv.x*TWO_PI-PI;float latitude=HALF_PI-uv.y*PI;vec3 direction;direction.x=cos(latitude)*sin(longitude);direction.y=sin(latitude);direction.z=cos(latitude)*cos(longitude);return direction;}
|
|
388
|
+
float sqrtClamped(float value) {return sqrt(max(value,0.));}
|
|
389
|
+
float avg(vec3 value) {return dot(value,vec3(0.333333333));}
|
|
390
|
+
#if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
|
|
391
|
+
uint extractBits(uint value,int offset,int width) {return (value>>offset) & ((1u<<width)-1u);}
|
|
392
|
+
int onlyBitPosition(uint value) {return (floatBitsToInt(float(value))>>23)-0x7f;}
|
|
393
|
+
vec3 singleScatterToMultiScatterAlbedo(vec3 rho_ss) {vec3 s=sqrt(max(vec3(1.0)-rho_ss,vec3(0.0)));return (vec3(1.0)-s)*(vec3(1.0)-vec3(0.139)*s)/(vec3(1.0)+vec3(1.17)*s);}
|
|
394
|
+
vec3 multiScatterToSingleScatterAlbedo(vec3 rho_ms) {vec3 s=4.09712+4.20863*rho_ms-sqrt(9.59217+41.6808*rho_ms+17.7126*rho_ms*rho_ms);return 1.0-s*s;}
|
|
395
|
+
vec3 multiScatterToSingleScatterAlbedo(vec3 rho_ms,float aniso) {vec3 s=4.09712+4.20863*rho_ms-sqrt(9.59217+41.6808*rho_ms+17.7126*rho_ms*rho_ms);return (1.0-s*s)/maxEps(1.0-aniso*s*s);}
|
|
396
|
+
float min3(vec3 v) {return min(v.x,min(v.y,v.z));}
|
|
397
|
+
float max3(vec3 v) {return max(v.x,max(v.y,v.z));}
|
|
398
|
+
float uint2float(uint i) {return uintBitsToFloat(0x3F800000u | (i>>9u))-1.0;}
|
|
399
|
+
vec2 plasticSequence(const uint rstate) {return vec2(uint2float(rstate*3242174889u),
|
|
400
|
+
uint2float(rstate*2447445414u));}
|
|
401
|
+
#endif
|
|
402
|
+
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=o),e.s(["helperFunctions",0,{name:a,shader:o}])},80790,e=>{"use strict";var t=e.i(2342);let a="logDepthDeclaration",o=`#ifdef LOGARITHMICDEPTH
|
|
403
|
+
uniform float logarithmicDepthConstant;varying float vFragmentDepth;
|
|
404
|
+
#endif
|
|
405
|
+
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=o),e.s(["logDepthDeclaration",0,{name:a,shader:o}])},16147,e=>{"use strict";var t=e.i(2342);let a="logDepthVertex",o=`#ifdef LOGARITHMICDEPTH
|
|
406
|
+
vFragmentDepth=1.0+gl_Position.w;gl_Position.z=log2(max(0.000001,vFragmentDepth))*logarithmicDepthConstant;
|
|
407
|
+
#endif
|
|
408
|
+
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=o),e.s(["logDepthVertex",0,{name:a,shader:o}])},49676,e=>{"use strict";var t=e.i(2342);let a="meshUboDeclaration",o=`#ifdef WEBGL2
|
|
409
|
+
uniform mat4 world;uniform float visibility;
|
|
410
|
+
#else
|
|
411
|
+
layout(std140,column_major) uniform;uniform Mesh
|
|
412
|
+
{mat4 world;float visibility;};
|
|
413
|
+
#endif
|
|
414
|
+
#define WORLD_UBO
|
|
415
|
+
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=o),e.s(["meshUboDeclaration",0,{name:a,shader:o}])},19831,e=>{"use strict";var t=e.i(2342);let a="sceneUboDeclaration",o=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
|
|
416
|
+
#ifdef MULTIVIEW
|
|
417
|
+
mat4 viewProjectionR;
|
|
418
|
+
#endif
|
|
419
|
+
mat4 view;mat4 projection;vec4 vEyePosition;mat4 inverseProjection;};
|
|
420
|
+
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=o),e.s(["sceneUboDeclaration",0,{name:a,shader:o}])},50886,e=>{"use strict";var t=e.i(2342),a=e.i(37208),o=e.i(19831),i=e.i(49676),r=e.i(96934),s=e.i(40566),n=e.i(21659),c=e.i(80790),l=e.i(62308),d=e.i(25511),f=e.i(56659),S=e.i(33475),x=e.i(16147);let v="gaussianSplattingVertexShader",p=`#include<__decl__gaussianSplattingVertex>
|
|
421
421
|
#ifdef LOGARITHMICDEPTH
|
|
422
422
|
#extension GL_EXT_frag_depth : enable
|
|
423
423
|
#endif
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11822,98651,22427,2262,t=>{"use strict";let e,i,a,r,o,s,n,h,c,l,u,d,m,p;var _,f=t.i(4112),g=t.i(91679),y=t.i(51509),R=t.i(72003),T=t.i(26747),M=t.i(92356);class P{constructor(t,e,i){this._cameraPosition=e,this._behavior=i,this.activeInput=!1,this.speed=1,this.zoomSpeed=1,this.panSpeed=1,this.rotationXSpeed=1,this.rotationYSpeed=1,this._zoomSpeedMultiplier=1,this._panSpeedMultiplier=1,this.zoomInertia=.9,this.panInertia=.9,this.rotationInertia=.9,this.zoomAccumulatedPixels=0,this.panAccumulatedPixels=new R.Vector3,this.rotationAccumulatedPixels=new R.Vector3,this.zoomDeltaCurrentFrame=0,this.panDeltaCurrentFrame=R.Vector3.Zero(),this.rotationDeltaCurrentFrame=R.Vector3.Zero(),this._zoomVelocity=0,this._panVelocity=new R.Vector3,this.referenceFrameRate=60,this._rotationVelocity=new R.Vector3,this._prevFrameTimeMs=0,this._scene=t}computeCurrentFrameDeltas(){let t=this._scene.getEngine().getDeltaTime(),e=this._getEffectiveDeltaMs(t);if(0===this._zoomVelocity&&0===this.zoomAccumulatedPixels&&0===this._panVelocity.x&&0===this._panVelocity.y&&0===this._panVelocity.z&&0===this.panAccumulatedPixels.x&&0===this.panAccumulatedPixels.y&&0===this.panAccumulatedPixels.z&&0===this._rotationVelocity.x&&0===this._rotationVelocity.y&&0===this._rotationVelocity.z&&0===this.rotationAccumulatedPixels.x&&0===this.rotationAccumulatedPixels.y&&0===this.rotationAccumulatedPixels.z&&!this.activeInput){this.panDeltaCurrentFrame.setAll(0),this.rotationDeltaCurrentFrame.setAll(0),this.zoomDeltaCurrentFrame=0,t>0&&(this._prevFrameTimeMs=t);return}this.panDeltaCurrentFrame.setAll(0),this.rotationDeltaCurrentFrame.setAll(0),this.zoomDeltaCurrentFrame=0,(this.panAccumulatedPixels.lengthSquared()>0||this.rotationAccumulatedPixels.lengthSquared()>0||0!==this.zoomAccumulatedPixels)&&this._behavior?.isInterpolating&&this._behavior.stopAllAnimations(),this._panVelocity.copyFromFloats(this._calculateCurrentVelocity(this._panVelocity.x,this.panAccumulatedPixels.x,this.panInertia),this._calculateCurrentVelocity(this._panVelocity.y,this.panAccumulatedPixels.y,this.panInertia),this._calculateCurrentVelocity(this._panVelocity.z,this.panAccumulatedPixels.z,this.panInertia)),this._panVelocity.scaleToRef(this.speed*this.panSpeed*this._panSpeedMultiplier*e,this.panDeltaCurrentFrame),this._rotationVelocity.copyFromFloats(this._calculateCurrentVelocity(this._rotationVelocity.x,this.rotationAccumulatedPixels.x,this.rotationInertia),this._calculateCurrentVelocity(this._rotationVelocity.y,this.rotationAccumulatedPixels.y,this.rotationInertia),this._calculateCurrentVelocity(this._rotationVelocity.z,this.rotationAccumulatedPixels.z,this.rotationInertia)),this.rotationDeltaCurrentFrame.copyFromFloats(this._rotationVelocity.x*this.speed*this.rotationXSpeed*e,this._rotationVelocity.y*this.speed*this.rotationYSpeed*e,0),this._zoomVelocity=this._calculateCurrentVelocity(this._zoomVelocity,this.zoomAccumulatedPixels,this.zoomInertia),this.zoomDeltaCurrentFrame=this._zoomVelocity*(this.speed*this.zoomSpeed*this._zoomSpeedMultiplier)*e,t>0&&(this._prevFrameTimeMs=t),this.zoomAccumulatedPixels=0,this.panAccumulatedPixels.setAll(0),this.rotationAccumulatedPixels.setAll(0),this.activeInput=!1}resetRotationVelocity(){this._rotationVelocity.setAll(0),this.rotationAccumulatedPixels.setAll(0)}resetPanVelocity(){this._panVelocity.setAll(0),this.panAccumulatedPixels.setAll(0)}resetZoomVelocity(){this._zoomVelocity=0,this.zoomAccumulatedPixels=0}get isInterpolating(){return!!this._behavior?.isInterpolating}getFrameIndependentDecay(t){let e=this._scene.getEngine().getDeltaTime();return Math.pow(t,this._getEffectiveDeltaMs(e)/(1e3/this.referenceFrameRate))}getFrameIndependentInputScale(t){let e=1-t;return e<=0?1:(1-this.getFrameIndependentDecay(t))/e}_getEffectiveDeltaMs(t){return t>0?t:this._prevFrameTimeMs>0?this._prevFrameTimeMs:1e3/this.referenceFrameRate}_calculateCurrentVelocity(t,e,i){let a=t,r=this._scene.getEngine().getDeltaTime(),o=this._getEffectiveDeltaMs(r);if(0===o)return a;let s=this.getFrameIndependentDecay(i);if(a*=s,0!==e||this.activeInput){let t=1-i;a+=e/o*(t>0?(1-s)/t:1)}else 1e-6>Math.abs(a)&&(a=0);return a}}t.s(["CameraMovement",0,P],98651);class x{constructor(t,e){this.inputMap=[],this.handlers=t,this._createDefaultEntries=e,this.resetInputMap()}resolveInteraction(t,e){for(let i of this.inputMap)if(i.source===t&&this._entryMatches(i,e))return i;return null}resetInputMap(){this.inputMap=this._createDefaultEntries?.()??[]}getEntry(t,e,i){let a=this.inputMap;for(let r=0;r<a.length;r++){let o=a[r];if(o.source===t&&o.interaction===e&&this._entryConditionsMatch(o,i))return o}}getEntries(t,e,i){let a=[],r=this.inputMap;for(let o=0;o<r.length;o++){let s=r[o];s.source===t&&s.interaction===e&&this._entryConditionsMatch(s,i)&&a.push(s)}return a}addEntry(t){let e=this._entrySpecificity(t),i=this.inputMap.length;for(let t=0;t<this.inputMap.length;t++)if(this._entrySpecificity(this.inputMap[t])<e){i=t;break}this.inputMap.splice(i,0,t)}setInteraction(t,e,i){let a=this.resolveInteraction(t,e);return a&&this._entryCoversAllConditionsOf(a,e)?a.interaction=i:this.addEntry({source:t,...e??{},interaction:i}),!0}_entryCoversAllConditionsOf(t,e){if(!e)return!0;for(let i of Object.keys(e)){let a=e[i];if(void 0!==a){if("modifiers"===i){let e=t.modifiers??{};for(let t of Object.keys(a))if(void 0!==a[t]&&void 0===e[t])return!1}else if(void 0===t[i])return!1}}return!0}setInteractions(t,e,i){let a=0,r=this.inputMap;for(let o=0;o<r.length;o++){let s=r[o];s.source===t&&this._entryMatches(s,e)&&(s.interaction=i,a++)}return a}_entryMatches(t,e){switch(t.source){case"pointer":if(void 0!==t.button&&t.button!==e?.button)return!1;return this._matchModifiers(t.modifiers,e?.modifiers);case"wheel":return this._matchModifiers(t.modifiers,e?.modifiers);case"touch":if(void 0!==t.touchCount&&t.touchCount!==e?.touchCount)return!1;return!0;case"keyboard":if(void 0!==t.key&&(Array.isArray(t.key)?-1===t.key.indexOf(e?.key??-1):t.key!==e?.key))return!1;return this._matchModifiers(t.modifiers,e?.modifiers)}}_entryConditionsMatch(t,e){if(!e)return!0;switch(t.source){case"pointer":if("button"in e&&t.button!==e.button)return!1;return!("modifiers"in e)||this._entryModifiersMatch(t.modifiers,e.modifiers);case"wheel":return!("modifiers"in e)||this._entryModifiersMatch(t.modifiers,e.modifiers);case"touch":return!("touchCount"in e)||t.touchCount===e.touchCount;case"keyboard":if("key"in e){if(void 0===t.key)return void 0===e.key;if(void 0===e.key||(Array.isArray(t.key)?-1===t.key.indexOf(e.key):t.key!==e.key))return!1}return!("modifiers"in e)||this._entryModifiersMatch(t.modifiers,e.modifiers)}}_entrySpecificity(t){let e=0;return"button"in t&&void 0!==t.button&&e++,"key"in t&&void 0!==t.key&&e++,"touchCount"in t&&void 0!==t.touchCount&&e++,"modifiers"in t&&t.modifiers&&e++,e}_matchModifiers(t,e){return!t||(void 0===t.ctrl||t.ctrl===(e?.ctrl??!1))&&(void 0===t.shift||t.shift===(e?.shift??!1))&&(void 0===t.alt||t.alt===(e?.alt??!1))}_entryModifiersMatch(t,e){return e?void 0===e.ctrl&&void 0===e.shift&&void 0===e.alt?!t||void 0===t.ctrl&&void 0===t.shift&&void 0===t.alt:(void 0===e.ctrl||t?.ctrl===e.ctrl)&&(void 0===e.shift||t?.shift===e.shift)&&(void 0===e.alt||t?.alt===e.alt):!t}}t.s(["InputMapper",0,x],22427);class I extends P{constructor(t,e,i){super(t,e,i),this.input=new x({translate:(t,e,i)=>{this.panAccumulatedPixels.x+=t,this.panAccumulatedPixels.y+=e,this.panAccumulatedPixels.z+=i},rotate:(t,e)=>{this.rotationAccumulatedPixels.x+=t,this.rotationAccumulatedPixels.y+=e}},()=>this._createDefaultInputMap())}_createDefaultInputMap(){return[{source:"pointer",interaction:"rotate"},{source:"keyboard",interaction:"translate"},{source:"keyboard",interaction:"rotate"},{source:"touch",interaction:"rotate"},{source:"touch",interaction:"translate"}]}}let C=R.Matrix.Zero(),A=R.Quaternion.Identity(),V=(o=y.Camera,s=[],n=[],h=[],c=[],l=[],u=[],d=[],m=[],_=class extends o{get inertia(){return this._targetInertia}set inertia(t){this._targetInertia=t,this.movement&&(this.movement.panInertia=t,this.movement.rotationInertia=t)}constructor(t,e,i,a=!0){super(t,e,i,a),this.cameraDirection=new R.Vector3(0,0,0),this.cameraRotation=new R.Vector2(0,0),this._targetInertia=.9,this.updateUpVectorFromRotation=(0,f.__runInitializers)(this,s,!1),this.rotation=((0,f.__runInitializers)(this,n),(0,f.__runInitializers)(this,h,void 0)),this.rotationQuaternion=(0,f.__runInitializers)(this,c),this.speed=(0,f.__runInitializers)(this,l,2),this.noRotationConstraint=((0,f.__runInitializers)(this,u),!1),this.invertRotation=!1,this.inverseRotationSpeed=.2,this._panningEpsilon=T.Epsilon,this._rotationEpsilon=T.Epsilon,this.lockedTarget=(0,f.__runInitializers)(this,d,null),this._currentTarget=((0,f.__runInitializers)(this,m),R.Vector3.Zero()),this._initialFocalDistance=1,this._viewMatrix=R.Matrix.Zero(),this._cameraTransformMatrix=R.Matrix.Zero(),this._cameraRotationMatrix=R.Matrix.Zero(),this._transformedReferencePoint=R.Vector3.Zero(),this._deferredPositionUpdate=new R.Vector3,this._deferredRotationQuaternionUpdate=new R.Quaternion,this._deferredRotationUpdate=new R.Vector3,this._deferredUpdated=!1,this._deferOnly=!1,this._cachedRotationZ=0,this._cachedQuaternionRotationZ=0,this._referencePoint=R.Vector3.Forward(this.getScene().useRightHandedSystem),this.rotation=new R.Vector3(0,this.getScene().useRightHandedSystem?Math.PI:0,0),this.movement=new I(this.getScene(),this.position),this.movement.panInertia=this.inertia,this.movement.rotationInertia=this.inertia}getFrontPosition(t){this.getWorldMatrix();let e=R.TmpVectors.Vector3[0],i=R.TmpVectors.Vector3[1];return i.set(0,0,this._scene.useRightHandedSystem?-1:1),this.getDirectionToRef(i,e),e.scaleInPlace(t),this.globalPosition.add(e)}_getLockedTargetPosition(){if(!this.lockedTarget)return null;if(this.lockedTarget.absolutePosition){let t=this.lockedTarget;t.computeWorldMatrix().getTranslationToRef(t.absolutePosition)}return this.lockedTarget.absolutePosition||this.lockedTarget}storeState(){return this._storedPosition=this.position.clone(),this._storedRotation=this.rotation.clone(),this.rotationQuaternion&&(this._storedRotationQuaternion=this.rotationQuaternion.clone()),super.storeState()}_restoreStateValues(){return!!super._restoreStateValues()&&(this.position=this._storedPosition.clone(),this.rotation=this._storedRotation.clone(),this.rotationQuaternion&&this._storedRotationQuaternion&&(this.rotationQuaternion=this._storedRotationQuaternion.clone()),this.cameraDirection.copyFromFloats(0,0,0),this.cameraRotation.copyFromFloats(0,0),!0)}_initCache(){super._initCache(),this._cache.lockedTarget=new R.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),this._cache.rotation=new R.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),this._cache.rotationQuaternion=new R.Quaternion(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE)}_updateCache(t){t||super._updateCache();let e=this._getLockedTargetPosition();e?this._cache.lockedTarget?this._cache.lockedTarget.copyFrom(e):this._cache.lockedTarget=e.clone():this._cache.lockedTarget=null,this._cache.rotation.copyFrom(this.rotation),this.rotationQuaternion&&this._cache.rotationQuaternion.copyFrom(this.rotationQuaternion)}_isSynchronizedViewMatrix(){if(!super._isSynchronizedViewMatrix())return!1;let t=this._getLockedTargetPosition();return(this._cache.lockedTarget?this._cache.lockedTarget.equals(t):!t)&&(this.rotationQuaternion?this.rotationQuaternion.equals(this._cache.rotationQuaternion):this._cache.rotation.equals(this.rotation))}_computeLocalCameraSpeed(){let t=this.getEngine();return this.speed*Math.sqrt(t.getDeltaTime()/(100*t.getFps()))}setTarget(t){this.upVector.normalize(),this._initialFocalDistance=t.subtract(this.position).length(),this.position.z===t.z&&(this.position.z+=T.Epsilon),this._referencePoint.normalize().scaleInPlace(this._initialFocalDistance),this.getScene().useRightHandedSystem?R.Matrix.LookAtRHToRef(this.position,t,R.Vector3.UpReadOnly,C):R.Matrix.LookAtLHToRef(this.position,t,R.Vector3.UpReadOnly,C),C.invert();let e=this.rotationQuaternion||A;R.Quaternion.FromRotationMatrixToRef(C,e),e.toEulerAnglesToRef(this.rotation),this.rotation.z=0}get target(){return this.getTarget()}set target(t){this.setTarget(t)}getTarget(){return this._currentTarget}_decideIfNeedsToMove(){return Math.abs(this.cameraDirection.x)>0||Math.abs(this.cameraDirection.y)>0||Math.abs(this.cameraDirection.z)>0}_updatePosition(){if(this.parent){this.parent.getWorldMatrix().invertToRef(R.TmpVectors.Matrix[0]),R.Vector3.TransformNormalToRef(this.cameraDirection,R.TmpVectors.Matrix[0],R.TmpVectors.Vector3[0]),this._deferredPositionUpdate.addInPlace(R.TmpVectors.Vector3[0]),this._deferOnly?this._deferredUpdated=!0:this.position.copyFrom(this._deferredPositionUpdate);return}this._deferredPositionUpdate.addInPlace(this.cameraDirection),this._deferOnly?this._deferredUpdated=!0:this.position.copyFrom(this._deferredPositionUpdate)}_checkInputs(){let t=this.movement,e=0!==this.cameraDirection.x||0!==this.cameraDirection.y||0!==this.cameraDirection.z;t.panAccumulatedPixels.addInPlace(this.cameraDirection),t.rotationAccumulatedPixels.x+=this.cameraRotation.x,t.rotationAccumulatedPixels.y+=this.cameraRotation.y,t.computeCurrentFrameDeltas(),this.cameraDirection.copyFrom(t.panDeltaCurrentFrame),this.cameraRotation.set(t.rotationDeltaCurrentFrame.x,t.rotationDeltaCurrentFrame.y);let i=this.speed*this._panningEpsilon;!e&&Math.abs(this.cameraDirection.x)<i&&Math.abs(this.cameraDirection.y)<i&&Math.abs(this.cameraDirection.z)<i&&(this.cameraDirection.setAll(0),t.resetPanVelocity());let a=this.invertRotation?-this.inverseRotationSpeed:1,r=this._decideIfNeedsToMove(),o=!!(this.cameraRotation.x||this.cameraRotation.y);this._deferredUpdated=!1,this._deferredRotationUpdate.copyFrom(this.rotation),this._deferredPositionUpdate.copyFrom(this.position),this.rotationQuaternion&&this._deferredRotationQuaternionUpdate.copyFrom(this.rotationQuaternion),r&&this._updatePosition(),o&&(this.rotationQuaternion&&this.rotationQuaternion.toEulerAnglesToRef(this._deferredRotationUpdate),this._deferredRotationUpdate.x+=this.cameraRotation.x*a,this._deferredRotationUpdate.y+=this.cameraRotation.y*a,!this.noRotationConstraint&&(this._deferredRotationUpdate.x>1.570796&&(this._deferredRotationUpdate.x=1.570796),this._deferredRotationUpdate.x<-1.570796&&(this._deferredRotationUpdate.x=-1.570796)),this._deferOnly?this._deferredUpdated=!0:this.rotation.copyFrom(this._deferredRotationUpdate),this.rotationQuaternion&&this._deferredRotationUpdate.lengthSquared()&&(R.Quaternion.RotationYawPitchRollToRef(this._deferredRotationUpdate.y,this._deferredRotationUpdate.x,this._deferredRotationUpdate.z,this._deferredRotationQuaternionUpdate),this._deferOnly?this._deferredUpdated=!0:this.rotationQuaternion.copyFrom(this._deferredRotationQuaternionUpdate))),this.cameraDirection.setAll(0),this.cameraRotation.set(0,0),super._checkInputs()}_updateCameraRotationMatrix(){this.rotationQuaternion?this.rotationQuaternion.toRotationMatrix(this._cameraRotationMatrix):R.Matrix.RotationYawPitchRollToRef(this.rotation.y,this.rotation.x,this.rotation.z,this._cameraRotationMatrix)}_rotateUpVectorWithCameraRotationMatrix(){return R.Vector3.TransformNormalToRef(R.Vector3.UpReadOnly,this._cameraRotationMatrix,this.upVector),this}_getViewMatrix(){return this.lockedTarget&&this.setTarget(this._getLockedTargetPosition()),this._updateCameraRotationMatrix(),this.rotationQuaternion&&this._cachedQuaternionRotationZ!=this.rotationQuaternion.z?(this._rotateUpVectorWithCameraRotationMatrix(),this._cachedQuaternionRotationZ=this.rotationQuaternion.z):this._cachedRotationZ!==this.rotation.z&&(this._rotateUpVectorWithCameraRotationMatrix(),this._cachedRotationZ=this.rotation.z),R.Vector3.TransformCoordinatesToRef(this._referencePoint,this._cameraRotationMatrix,this._transformedReferencePoint),this.position.addToRef(this._transformedReferencePoint,this._currentTarget),this.updateUpVectorFromRotation&&(this.rotationQuaternion?M.Axis.Y.rotateByQuaternionToRef(this.rotationQuaternion,this.upVector):(R.Quaternion.FromEulerVectorToRef(this.rotation,A),M.Axis.Y.rotateByQuaternionToRef(A,this.upVector))),this._computeViewMatrix(this.position,this._currentTarget,this.upVector),this._viewMatrix}_computeViewMatrix(t,e,i){if(this.getScene().useRightHandedSystem?R.Matrix.LookAtRHToRef(t,e,i,this._viewMatrix):R.Matrix.LookAtLHToRef(t,e,i,this._viewMatrix),this.parent){let t=this.parent.getWorldMatrix();this._viewMatrix.invert(),this._viewMatrix.multiplyToRef(t,this._viewMatrix),this._viewMatrix.invert(),this._markSyncedWithParent()}}createRigCamera(t,e){if(this.cameraRigMode!==y.Camera.RIG_MODE_NONE){let e=new _(t,this.position.clone(),this.getScene());return e.isRigCamera=!0,e.rigParent=this,this.cameraRigMode===y.Camera.RIG_MODE_VR&&(this.rotationQuaternion||(this.rotationQuaternion=new R.Quaternion),e._cameraRigParams={},e.rotationQuaternion=new R.Quaternion),e.mode=this.mode,e.orthoLeft=this.orthoLeft,e.orthoRight=this.orthoRight,e.orthoTop=this.orthoTop,e.orthoBottom=this.orthoBottom,e}return null}_updateRigCameras(){let t=this._rigCameras[0],e=this._rigCameras[1];switch(this.computeWorldMatrix(),this.cameraRigMode){case y.Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH:case y.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL:case y.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED:case y.Camera.RIG_MODE_STEREOSCOPIC_OVERUNDER:case y.Camera.RIG_MODE_STEREOSCOPIC_INTERLACED:{let i=this.cameraRigMode===y.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED?1:-1,a=this.cameraRigMode===y.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED?-1:1;this._getRigCamPositionAndTarget(this._cameraRigParams.stereoHalfAngle*i,t),this._getRigCamPositionAndTarget(this._cameraRigParams.stereoHalfAngle*a,e);break}case y.Camera.RIG_MODE_VR:t.rotationQuaternion&&e.rotationQuaternion&&this.rotationQuaternion?(t.rotationQuaternion.copyFrom(this.rotationQuaternion),e.rotationQuaternion.copyFrom(this.rotationQuaternion)):(t.rotation.copyFrom(this.rotation),e.rotation.copyFrom(this.rotation)),t.position.copyFrom(this.position),e.position.copyFrom(this.position)}super._updateRigCameras()}_getRigCamPositionAndTarget(t,e){this.getTarget().subtractToRef(this.position,_._TargetFocalPoint),_._TargetFocalPoint.normalize().scaleInPlace(this._initialFocalDistance);let i=_._TargetFocalPoint.addInPlace(this.position);R.Matrix.TranslationToRef(-i.x,-i.y,-i.z,_._TargetTransformMatrix),_._TargetTransformMatrix.multiplyToRef(R.Matrix.RotationAxis(e.upVector,t),_._RigCamTransformMatrix),R.Matrix.TranslationToRef(i.x,i.y,i.z,_._TargetTransformMatrix),_._RigCamTransformMatrix.multiplyToRef(_._TargetTransformMatrix,_._RigCamTransformMatrix),R.Vector3.TransformCoordinatesToRef(this.position,_._RigCamTransformMatrix,e.position),e.setTarget(i)}getClassName(){return"TargetCamera"}},p="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0,e=[(0,g.serialize)()],i=[(0,g.serializeAsVector3)()],a=[(0,g.serialize)()],r=[(0,g.serializeAsMeshReference)("lockedTargetId")],(0,f.__esDecorate)(null,null,e,{kind:"field",name:"updateUpVectorFromRotation",static:!1,private:!1,access:{has:t=>"updateUpVectorFromRotation"in t,get:t=>t.updateUpVectorFromRotation,set:(t,e)=>{t.updateUpVectorFromRotation=e}},metadata:p},s,n),(0,f.__esDecorate)(null,null,i,{kind:"field",name:"rotation",static:!1,private:!1,access:{has:t=>"rotation"in t,get:t=>t.rotation,set:(t,e)=>{t.rotation=e}},metadata:p},h,c),(0,f.__esDecorate)(null,null,a,{kind:"field",name:"speed",static:!1,private:!1,access:{has:t=>"speed"in t,get:t=>t.speed,set:(t,e)=>{t.speed=e}},metadata:p},l,u),(0,f.__esDecorate)(null,null,r,{kind:"field",name:"lockedTarget",static:!1,private:!1,access:{has:t=>"lockedTarget"in t,get:t=>t.lockedTarget,set:(t,e)=>{t.lockedTarget=e}},metadata:p},d,m),p&&Object.defineProperty(_,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:p}),_._RigCamTransformMatrix=new R.Matrix,_._TargetTransformMatrix=new R.Matrix,_._TargetFocalPoint=new R.Vector3,_);t.s(["TargetCamera",0,V],11822);var E=t.i(85789),v=t.i(22832),D={};t.s(["CameraInputTypes",0,D,"CameraInputsManager",0,class{constructor(t){this.attachedToElement=!1,this.attached={},this.camera=t,this.checkInputs=()=>{}}add(t){let e=t.getSimpleName();this.attached[e]?E.Logger.Warn("camera input of type "+e+" already exists on camera"):(this.attached[e]=t,t.camera=this.camera,t.checkInputs&&(this.checkInputs=this._addCheckInputs(t.checkInputs.bind(t))),this.attachedToElement&&t.attachControl(this.noPreventDefault))}remove(t){for(let e in this.attached){let i=this.attached[e];if(i===t){i.detachControl(),i.camera=null,delete this.attached[e],this.rebuildInputCheck();return}}}removeByType(t){for(let e in this.attached){let i=this.attached[e];i.getClassName()===t&&(i.detachControl(),i.camera=null,delete this.attached[e],this.rebuildInputCheck())}}_addCheckInputs(t){let e=this.checkInputs;return()=>{e(),t()}}attachInput(t){this.attachedToElement&&t.attachControl(this.noPreventDefault)}attachElement(t=!1){if(!this.attachedToElement)for(let e in t=!y.Camera.ForceAttachControlToAlwaysPreventDefault&&t,this.attachedToElement=!0,this.noPreventDefault=t,this.attached)this.attached[e].attachControl(t)}detachElement(t=!1){for(let e in this.attached)this.attached[e].detachControl(),t&&(this.attached[e].camera=null);this.attachedToElement=!1}rebuildInputCheck(){for(let t in this.checkInputs=()=>{},this.attached){let e=this.attached[t];e.checkInputs&&(this.checkInputs=this._addCheckInputs(e.checkInputs.bind(e)))}}clear(){this.attachedToElement&&this.detachElement(!0),this.attached={},this.attachedToElement=!1,this.checkInputs=()=>{}}serialize(t){let e={};for(let t in this.attached){let i=this.attached[t],a=v.SerializationHelper.Serialize(i);e[i.getClassName()]=a}t.inputsmgr=e}parse(t){let e=t.inputsmgr;if(e)for(let t in this.clear(),e){let i=D[t];if(i){let a=e[t],r=v.SerializationHelper.Parse(()=>new i,a,null);this.add(r)}}else for(let e in this.attached){let i=D[this.attached[e].getClassName()];if(i){let a=v.SerializationHelper.Parse(()=>new i,t,null);this.remove(this.attached[e]),this.add(a)}}}}],2262)},30958,t=>{"use strict";var e,i;(i=e||(e={}))[i.PointerMove=0]="PointerMove",i[i.PointerDown=1]="PointerDown",i[i.PointerUp=2]="PointerUp";class a{}a.DOM_DELTA_PIXEL=0,a.DOM_DELTA_LINE=1,a.DOM_DELTA_PAGE=2,t.s(["EventConstants",0,a])},43003,t=>{"use strict";class e{}e.KEYDOWN=1,e.KEYUP=2;class i{constructor(t,e){this.type=t,this.event=e}}t.s(["KeyboardEventTypes",0,e,"KeyboardInfo",0,i,"KeyboardInfoPre",0,class extends i{get skipOnPointerObservable(){return this.skipOnKeyboardObservable}set skipOnPointerObservable(t){this.skipOnKeyboardObservable=t}constructor(t,e){super(t,e),this.type=t,this.event=e,this.skipOnKeyboardObservable=!1}}])},37405,t=>{"use strict";var e=t.i(72003);class i{}i.POINTERDOWN=1,i.POINTERUP=2,i.POINTERMOVE=4,i.POINTERWHEEL=8,i.POINTERPICK=16,i.POINTERTAP=32,i.POINTERDOUBLETAP=64;class a{constructor(t,e){this.type=t,this.event=e}}t.s(["PointerEventTypes",0,i,"PointerInfo",0,class extends a{get pickInfo(){return this._pickInfo||this._generatePickInfo(),this._pickInfo}constructor(t,e,i,a=null){super(t,e),this._pickInfo=i,this._inputManager=a}_generatePickInfo(){this._inputManager&&(this._pickInfo=this._inputManager._pickMove(this.event),this._inputManager._setRayOnPointerInfo(this._pickInfo,this.event),this._inputManager=null)}},"PointerInfoPre",0,class extends a{constructor(t,i,a,r){super(t,i),this.ray=null,this.originalPickingInfo=null,this.skipOnPointerObservable=!1,this.localPosition=new e.Vector2(a,r)}}])},92356,t=>{"use strict";var e,i,a,r,o=t.i(72003);(e=a||(a={}))[e.LOCAL=0]="LOCAL",e[e.WORLD=1]="WORLD",e[e.BONE=2]="BONE";class s{}s.X=new o.Vector3(1,0,0),s.Y=new o.Vector3(0,1,0),s.Z=new o.Vector3(0,0,1),(i=r||(r={}))[i.X=0]="X",i[i.Y=1]="Y",i[i.Z=2]="Z",t.s(["Axis",0,s,"Coordinate",0,r,"Space",0,a])},63833,t=>{"use strict";var e=t.i(1306);class i{static GetPlanes(t){let a=[];for(let t=0;t<6;t++)a.push(new e.Plane(0,0,0,0));return i.GetPlanesToRef(t,a),a}static GetNearPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[2],e.normal.y=i[7]+i[6],e.normal.z=i[11]+i[10],e.d=i[15]+i[14],e.normalize()}static GetFarPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[2],e.normal.y=i[7]-i[6],e.normal.z=i[11]-i[10],e.d=i[15]-i[14],e.normalize()}static GetLeftPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[0],e.normal.y=i[7]+i[4],e.normal.z=i[11]+i[8],e.d=i[15]+i[12],e.normalize()}static GetRightPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[0],e.normal.y=i[7]-i[4],e.normal.z=i[11]-i[8],e.d=i[15]-i[12],e.normalize()}static GetTopPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[1],e.normal.y=i[7]-i[5],e.normal.z=i[11]-i[9],e.d=i[15]-i[13],e.normalize()}static GetBottomPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[1],e.normal.y=i[7]+i[5],e.normal.z=i[11]+i[9],e.d=i[15]+i[13],e.normalize()}static GetPlanesToRef(t,e){i.GetNearPlaneToRef(t,e[0]),i.GetFarPlaneToRef(t,e[1]),i.GetLeftPlaneToRef(t,e[2]),i.GetRightPlaneToRef(t,e[3]),i.GetTopPlaneToRef(t,e[4]),i.GetBottomPlaneToRef(t,e[5])}static IsPointInFrustum(t,e){for(let i=0;i<6;i++)if(0>e[i].dotCoordinate(t))return!1;return!0}}t.s(["Frustum",0,i])},36598,t=>{"use strict";class e{constructor(t){this.length=0,this.data=Array(t),this._id=e._GlobalId++}push(t){this.data[this.length++]=t,this.length>this.data.length&&(this.data.length*=2)}forEach(t){for(let e=0;e<this.length;e++)t(this.data[e])}sort(t){this.data.sort(t)}reset(){this.length=0}dispose(){this.reset(),this.data&&(this.data.length=0)}concat(t){if(0!==t.length){this.length+t.length>this.data.length&&(this.data.length=(this.length+t.length)*2);for(let e=0;e<t.length;e++)this.data[this.length++]=(t.data||t)[e]}}indexOf(t){let e=this.data.indexOf(t);return e>=this.length?-1:e}contains(t){return -1!==this.indexOf(t)}}e._GlobalId=0,t.s(["SmartArray",0,e,"SmartArrayNoDuplicate",0,class extends e{constructor(){super(...arguments),this._duplicateId=0}push(t){super.push(t),t.__smartArrayFlags||(t.__smartArrayFlags={}),t.__smartArrayFlags[this._id]=this._duplicateId}pushNoDuplicate(t){return(!t.__smartArrayFlags||t.__smartArrayFlags[this._id]!==this._duplicateId)&&(this.push(t),!0)}reset(){super.reset(),this._duplicateId++}concatWithNoDuplicate(t){if(0!==t.length){this.length+t.length>this.data.length&&(this.data.length=(this.length+t.length)*2);for(let e=0;e<t.length;e++){let i=(t.data||t)[e];this.pushNoDuplicate(i)}}}}])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,29251,t=>{"use strict";var e=t.i(97009),i=t.i(20552),o=t.i(99493);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],51515),r(),t.s([],13022),t.i(13022),t.i(51515),t.s(["FlowGraphCallCounterBlock",0,s],29251)}]);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91344,67168,e=>{"use strict";e.i(15392).MaterialDefines,e.s(["ImageProcessingDefinesMixin",0,function(e){return class extends e{constructor(){super(...arguments),this.IMAGEPROCESSING=!1,this.VIGNETTE=!1,this.VIGNETTEBLENDMODEMULTIPLY=!1,this.VIGNETTEBLENDMODEOPAQUE=!1,this.TONEMAPPING=0,this.CONTRAST=!1,this.COLORCURVES=!1,this.COLORGRADING=!1,this.COLORGRADING3D=!1,this.SAMPLER3DGREENDEPTH=!1,this.SAMPLER3DBGRMAP=!1,this.DITHER=!1,this.IMAGEPROCESSINGPOSTPROCESS=!1,this.SKIPFINALCOLORCLAMP=!1,this.EXPOSURE=!1}}}],91344);var t,i,s=e.i(72003);(t=i||(i={}))[t.Zero=0]="Zero",t[t.One=1]="One",t[t.MaxViewZ=2]="MaxViewZ",t[t.NoClear=3]="NoClear";class r{static CreateConfiguration(e){return r._Configurations[e]={defines:{},previousWorldMatrices:{},previousViewProjection:s.Matrix.Zero(),currentViewProjection:s.Matrix.Zero(),previousBones:{},lastUpdateFrameId:-1,excludedSkinnedMesh:[],reverseCulling:!1},r._Configurations[e]}static DeleteConfiguration(e){delete r._Configurations[e]}static GetConfiguration(e){return r._Configurations[e]}static AddUniformsAndSamplers(e,t){e.push("previousWorld","previousViewProjection","mPreviousBones")}static MarkAsDirty(e,t){for(let i of t)if(i.subMeshes)for(let t of i.subMeshes)t._removeDrawWrapper(e)}static PrepareDefines(e,t,i){if(!i._arePrePassDirty)return;let s=r._Configurations[e];if(!s)return;i.PREPASS=!0;let a=0;for(let e=0;e<r.GeometryTextureDescriptions.length;e++){let t=r.GeometryTextureDescriptions[e],n=t.define,o=t.defineIndex,l=s.defines[o];void 0!==l?(i[n]=!0,i[o]=l,a++):(i[n]=!1,delete i[o])}i.SCENE_MRT_COUNT=a,i.BONES_VELOCITY_ENABLED=t.useBones&&t.computeBonesUsingShaders&&t.skeleton&&!t.skeleton.isUsingTextureForMatrices&&-1===s.excludedSkinnedMesh.indexOf(t)}static Bind(e,t,i,s,a){let n=r._Configurations[e];if(!n)return;let o=i.getScene(),l=o.getEngine();if(n.reverseCulling&&l.setStateCullFaceType(o._mirroredCameraPosition?a.cullBackFaces:!a.cullBackFaces),(void 0!==n.defines.PREPASS_VELOCITY_INDEX||void 0!==n.defines.PREPASS_VELOCITY_LINEAR_INDEX)&&(n.previousWorldMatrices[i.uniqueId]||(n.previousWorldMatrices[i.uniqueId]=s.clone()),n.previousViewProjection||(n.previousViewProjection=o.getTransformMatrix().clone(),n.currentViewProjection=o.getTransformMatrix().clone()),n.currentViewProjection.updateFlag!==o.getTransformMatrix().updateFlag?(n.lastUpdateFrameId=l.frameId,n.previousViewProjection.copyFrom(n.currentViewProjection),n.currentViewProjection.copyFrom(o.getTransformMatrix())):n.lastUpdateFrameId!==l.frameId&&(n.lastUpdateFrameId=l.frameId,n.previousViewProjection.copyFrom(n.currentViewProjection)),t.setMatrix("previousWorld",n.previousWorldMatrices[i.uniqueId]),t.setMatrix("previousViewProjection",n.previousViewProjection),n.previousWorldMatrices[i.uniqueId]=s.clone(),i.useBones&&i.computeBonesUsingShaders&&i.skeleton)){let e=i.skeleton;if(!e.isUsingTextureForMatrices||-1===t.getUniformIndex("boneTextureInfo")){let s=e.getTransformMatrices(i);s&&(n.previousBones[i.uniqueId]||(n.previousBones[i.uniqueId]=s.slice()),t.setMatrices("mPreviousBones",n.previousBones[i.uniqueId]),n.previousBones[i.uniqueId].set(s))}}}}r.GeometryTextureDescriptions=[{type:0,name:"IrradianceLegacy",clearType:0,define:"PREPASS_IRRADIANCE_LEGACY",defineIndex:"PREPASS_IRRADIANCE_LEGACY_INDEX"},{type:1,name:"WorldPosition",clearType:0,define:"PREPASS_POSITION",defineIndex:"PREPASS_POSITION_INDEX"},{type:2,name:"Velocity",clearType:0,define:"PREPASS_VELOCITY",defineIndex:"PREPASS_VELOCITY_INDEX"},{type:3,name:"Reflectivity",clearType:0,define:"PREPASS_REFLECTIVITY",defineIndex:"PREPASS_REFLECTIVITY_INDEX"},{type:5,name:"ViewDepth",clearType:2,define:"PREPASS_DEPTH",defineIndex:"PREPASS_DEPTH_INDEX"},{type:6,name:"ViewNormal",clearType:0,define:"PREPASS_NORMAL",defineIndex:"PREPASS_NORMAL_INDEX"},{type:7,name:"AlbedoSqrt",clearType:0,define:"PREPASS_ALBEDO_SQRT",defineIndex:"PREPASS_ALBEDO_SQRT_INDEX"},{type:8,name:"WorldNormal",clearType:0,define:"PREPASS_WORLD_NORMAL",defineIndex:"PREPASS_WORLD_NORMAL_INDEX"},{type:9,name:"LocalPosition",clearType:0,define:"PREPASS_LOCAL_POSITION",defineIndex:"PREPASS_LOCAL_POSITION_INDEX"},{type:10,name:"ScreenDepth",clearType:1,define:"PREPASS_SCREENSPACE_DEPTH",defineIndex:"PREPASS_SCREENSPACE_DEPTH_INDEX"},{type:11,name:"LinearVelocity",clearType:0,define:"PREPASS_VELOCITY_LINEAR",defineIndex:"PREPASS_VELOCITY_LINEAR_INDEX"},{type:12,name:"Albedo",clearType:0,define:"PREPASS_ALBEDO",defineIndex:"PREPASS_ALBEDO_INDEX"},{type:13,name:"NormalizedViewDepth",clearType:1,define:"PREPASS_NORMALIZED_VIEW_DEPTH",defineIndex:"PREPASS_NORMALIZED_VIEW_DEPTH_INDEX"},{type:4,name:"Color",clearType:3,define:"PREPASS_COLOR",defineIndex:"PREPASS_COLOR_INDEX"},{type:14,name:"Irradiance",clearType:0,define:"PREPASS_IRRADIANCE",defineIndex:"PREPASS_IRRADIANCE_INDEX"}],r._Configurations={},e.s(["MaterialHelperGeometryRendering",0,r],67168)},71596,85059,e=>{"use strict";let t,i,s,r,a,n,o,l,u,h,_,c,d,g,P,f,m,E,p,D,S,I,A,b,v,T,y,R,x,M,C,L,N;var O,k,F,B,V,U=e.i(4112),w=e.i(7361),j=e.i(91679),z=e.i(53516),G=e.i(15392),X=e.i(94712),H=e.i(2342);let W=RegExp("^([gimus]+)!");class Y{constructor(e){this._plugins=[],this._activePlugins=[],this._activePluginsForExtraEvents=[],this._material=e,this._scene=e.getScene(),this._engine=this._scene.getEngine()}_addPlugin(e){for(let t=0;t<this._plugins.length;++t)if(this._plugins[t].name===e.name)return!1;if(this._material._uniformBufferLayoutBuilt&&(this._material.resetDrawCache(),this._material._createUniformBuffer()),!e.isCompatible(this._material.shaderLanguage))throw`The plugin "${e.name}" can't be added to the material "${this._material.name}" because the plugin is not compatible with the shader language of the material.`;let t=e.getClassName();Y._MaterialPluginClassToMainDefine[t]||(Y._MaterialPluginClassToMainDefine[t]="MATERIALPLUGIN_"+ ++Y._MaterialPluginCounter),this._material._callbackPluginEventGeneric=(e,t)=>this._handlePluginEvent(e,t),this._plugins.push(e),this._plugins.sort((e,t)=>e.priority-t.priority),this._codeInjectionPoints={};let i={};for(let e of(i[Y._MaterialPluginClassToMainDefine[t]]={type:"boolean",default:!0},this._plugins))e.collectDefines(i),this._collectPointNames("vertex",e.getCustomCode("vertex",this._material.shaderLanguage)),this._collectPointNames("fragment",e.getCustomCode("fragment",this._material.shaderLanguage));return this._defineNamesFromPlugins=i,!0}_activatePlugin(e){-1===this._activePlugins.indexOf(e)&&(this._activePlugins.push(e),this._activePlugins.sort((e,t)=>e.priority-t.priority),this._material._callbackPluginEventIsReadyForSubMesh=this._handlePluginEventIsReadyForSubMesh.bind(this),this._material._callbackPluginEventPrepareDefinesBeforeAttributes=this._handlePluginEventPrepareDefinesBeforeAttributes.bind(this),this._material._callbackPluginEventPrepareDefines=this._handlePluginEventPrepareDefines.bind(this),this._material._callbackPluginEventBindForSubMesh=this._handlePluginEventBindForSubMesh.bind(this),e.registerForExtraEvents&&(this._activePluginsForExtraEvents.push(e),this._activePluginsForExtraEvents.sort((e,t)=>e.priority-t.priority),this._material._callbackPluginEventHasRenderTargetTextures=this._handlePluginEventHasRenderTargetTextures.bind(this),this._material._callbackPluginEventFillRenderTargetTextures=this._handlePluginEventFillRenderTargetTextures.bind(this),this._material._callbackPluginEventHardBindForSubMesh=this._handlePluginEventHardBindForSubMesh.bind(this)))}getPlugin(e){for(let t=0;t<this._plugins.length;++t)if(this._plugins[t].name===e)return this._plugins[t];return null}_handlePluginEventIsReadyForSubMesh(e){let t=!0;for(let i of this._activePlugins)t=t&&i.isReadyForSubMesh(e.defines,this._scene,this._engine,e.subMesh);e.isReadyForSubMesh=t}_handlePluginEventPrepareDefinesBeforeAttributes(e){for(let t of this._activePlugins)t.prepareDefinesBeforeAttributes(e.defines,this._scene,e.mesh)}_handlePluginEventPrepareDefines(e){for(let t of this._activePlugins)t.prepareDefines(e.defines,this._scene,e.mesh)}_handlePluginEventHardBindForSubMesh(e){for(let t of this._activePluginsForExtraEvents)t.hardBindForSubMesh(this._material._uniformBuffer,this._scene,this._engine,e.subMesh)}_handlePluginEventBindForSubMesh(e){for(let t of this._activePlugins)t.bindForSubMesh(this._material._uniformBuffer,this._scene,this._engine,e.subMesh)}_handlePluginEventHasRenderTargetTextures(e){let t=!1;for(let e of this._activePluginsForExtraEvents)if(t=e.hasRenderTargetTextures())break;e.hasRenderTargetTextures=t}_handlePluginEventFillRenderTargetTextures(e){for(let t of this._activePluginsForExtraEvents)t.fillRenderTargetTextures(e.renderTargets)}_handlePluginEvent(e,t){switch(e){case 512:for(let e of this._activePlugins)e.getActiveTextures(t.activeTextures);break;case 256:for(let e of this._activePlugins)e.getAnimatables(t.animatables);break;case 1024:{let e=!1;for(let i of this._activePlugins)if(e=i.hasTexture(t.texture))break;t.hasTexture=e;break}case 2:for(let e of this._plugins)e.dispose(t.forceDisposeTextures);break;case 4:t.defineNames=this._defineNamesFromPlugins;break;case 128:for(let e of this._activePlugins)t.fallbackRank=e.addFallbacks(t.defines,t.fallbacks,t.fallbackRank),e.getAttributes(t.attributes,this._scene,t.mesh);this._uniformList.length>0&&t.uniforms.push(...this._uniformList),this._samplerList.length>0&&t.samplers.push(...this._samplerList),this._uboList.length>0&&t.uniformBuffersNames.push(...this._uboList),t.customCode=this._injectCustomCode(t,t.customCode);break;case 8:{this._uboDeclaration="",this._vertexDeclaration="",this._fragmentDeclaration="",this._uniformList=[],this._samplerList=[],this._uboList=[];let e=1===this._material.shaderLanguage;for(let i of this._plugins){let s=i.getUniforms(this._material.shaderLanguage);if(s){if(s.ubo)for(let i of s.ubo){if(i.size&&i.type){let s=i.arraySize??0;if(t.ubo.addUniform(i.name,i.size,s),e){let e;switch(i.type){case"mat4":e="mat4x4f";break;case"float":e="f32";break;default:e=`${i.type}f`}s>0?this._uboDeclaration+=`uniform ${i.name}: array<${e}, ${s}>;
|
|
2
|
+
`:this._uboDeclaration+=`uniform ${i.name}: ${e};
|
|
3
|
+
`}else this._uboDeclaration+=`${i.type} ${i.name}${s>0?`[${s}]`:""};
|
|
4
|
+
`}this._uniformList.push(i.name)}s.vertex&&(this._vertexDeclaration+=s.vertex+"\n"),s.fragment&&(this._fragmentDeclaration+=s.fragment+"\n"),s.externalUniforms&&this._uniformList.push(...s.externalUniforms)}i.getSamplers(this._samplerList),i.getUniformBuffersNames(this._uboList)}}}}_collectPointNames(e,t){if(t)for(let i in t)this._codeInjectionPoints[e]||(this._codeInjectionPoints[e]={}),this._codeInjectionPoints[e][i]=!0}_injectCustomCode(e,t){return(i,s)=>{t&&(s=t(i,s)),this._uboDeclaration&&(s=s.replace("#define ADDITIONAL_UBO_DECLARATION",this._uboDeclaration)),this._vertexDeclaration&&(s=s.replace("#define ADDITIONAL_VERTEX_DECLARATION",this._vertexDeclaration)),this._fragmentDeclaration&&(s=s.replace("#define ADDITIONAL_FRAGMENT_DECLARATION",this._fragmentDeclaration));let r=this._codeInjectionPoints?.[i];if(!r)return s;let a=null;for(let t in r){let r="";for(let s of this._activePlugins){let n=this._material.shaderLanguage,o=s.getCustomCode(i,n)?.[t];o&&(s.resolveIncludes&&(null===a&&(a={defines:[],indexParameters:e.indexParameters,isFragment:!1,shouldUseHighPrecisionShader:this._engine._shouldUseHighPrecisionShader,processor:void 0,supportsUniformBuffers:this._engine.supportsUniformBuffers,shadersRepository:H.ShaderStore.GetShadersRepository(n),includesShadersStore:H.ShaderStore.GetIncludesShadersStore(n),version:void 0,platformName:this._engine.shaderPlatformName,processingContext:void 0,isNDCHalfZRange:this._engine.isNDCHalfZRange,useReverseDepthBuffer:this._engine.useReverseDepthBuffer,processCodeAfterIncludes:void 0}),a.isFragment="fragment"===i,(0,X.ProcessIncludes)(o,a,e=>o=e)),r+=o+"\n")}if(r.length>0)if("!"===t.charAt(0)){t=t.substring(1);let e="g";if("!"===t.charAt(0))e="",t=t.substring(1);else{let i=W.exec(t);i&&i.length>=2&&(e=i[1],t=t.substring(e.length+1))}0>e.indexOf("g")&&(e+="g");let i=new RegExp(t,e),a=i.exec(s);for(;null!==a;){let{index:e}=a,t=function(e,t){return e.replace(/\$(\d+)/g,(e,i)=>{let s=Number(i);return s<t.length?t[s]:""})}(r,a);s=s.substring(0,e)+t+s.substring(e+a[0].length),i.lastIndex=e+t.length,a=i.exec(s)}}else{let e="#define "+t;s=s.replace(e,"\n"+r+"\n"+e)}}return s}}}Y._MaterialPluginClassToMainDefine={},Y._MaterialPluginCounter=0;var q=e.i(22832);let $=(a=[],n=[],o=[],l=[],u=[],h=[],_=[],c=[],O=class{isCompatible(e){return 0===e}_enable(e){e&&this._pluginManager._activatePlugin(this)}constructor(e,t,i,s,r=!0,d=!1,g=!1){this.name=(0,U.__runInitializers)(this,a,void 0),this.priority=((0,U.__runInitializers)(this,n),(0,U.__runInitializers)(this,o,500)),this.resolveIncludes=((0,U.__runInitializers)(this,l),(0,U.__runInitializers)(this,u,!1)),this.registerForExtraEvents=((0,U.__runInitializers)(this,h),(0,U.__runInitializers)(this,_,!1)),this.doNotSerialize=((0,U.__runInitializers)(this,c),!1),this._material=e,this.name=t,this.priority=i,this.resolveIncludes=g,e.pluginManager||(e.pluginManager=new Y(e),e.onDisposeObservable.add(()=>{e.pluginManager=void 0})),this._pluginDefineNames=s,this._pluginManager=e.pluginManager,r&&this._pluginManager._addPlugin(this),d&&this._enable(!0),this.markAllDefinesAsDirty=e._dirtyCallbacks[127]}getClassName(){return"MaterialPluginBase"}isReadyForSubMesh(e,t,i,s){return!0}hardBindForSubMesh(e,t,i,s){}bindForSubMesh(e,t,i,s){}dispose(e){}getCustomCode(e,t=0){return null}collectDefines(e){if(this._pluginDefineNames)for(let t of Object.keys(this._pluginDefineNames)){if("_"===t[0])continue;let i=typeof this._pluginDefineNames[t];e[t]={type:"number"===i?"number":"string"===i?"string":"boolean"===i?"boolean":"object",default:this._pluginDefineNames[t]}}}prepareDefinesBeforeAttributes(e,t,i){}prepareDefines(e,t,i){}hasTexture(e){return!1}hasRenderTargetTextures(){return!1}fillRenderTargetTextures(e){}getActiveTextures(e){}getAnimatables(e){}addFallbacks(e,t,i){return i}getSamplers(e){}getAttributes(e,t,i){}getUniformBuffersNames(e){}getUniforms(e=0){return{}}copyTo(e){q.SerializationHelper.Clone(()=>e,this)}serialize(){return q.SerializationHelper.Serialize(this)}parse(e,t,i){q.SerializationHelper.Parse(()=>this,e,t,i)}},d="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,t=[(0,j.serialize)()],i=[(0,j.serialize)()],s=[(0,j.serialize)()],r=[(0,j.serialize)()],(0,U.__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:d},a,n),(0,U.__esDecorate)(null,null,i,{kind:"field",name:"priority",static:!1,private:!1,access:{has:e=>"priority"in e,get:e=>e.priority,set:(e,t)=>{e.priority=t}},metadata:d},o,l),(0,U.__esDecorate)(null,null,s,{kind:"field",name:"resolveIncludes",static:!1,private:!1,access:{has:e=>"resolveIncludes"in e,get:e=>e.resolveIncludes,set:(e,t)=>{e.resolveIncludes=t}},metadata:d},u,h),(0,U.__esDecorate)(null,null,r,{kind:"field",name:"registerForExtraEvents",static:!1,private:!1,access:{has:e=>"registerForExtraEvents"in e,get:e=>e.registerForExtraEvents,set:(e,t)=>{e.registerForExtraEvents=t}},metadata:d},_,c),d&&Object.defineProperty(O,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),O);e.s(["MaterialPluginBase",0,$],85059);var Z=e.i(9131);class Q extends G.MaterialDefines{constructor(){super(...arguments),this.DETAIL=!1,this.DETAILDIRECTUV=0,this.DETAIL_NORMALBLENDMETHOD=0}}let K=(D=$,S=[],I=[],A=[],b=[],v=[],T=[],y=[],R=[],x=[],M=[],C=[],L=[],k=class extends D{get texture(){return(0,U.__classPrivateFieldGet)(this,F,"f")}set texture(e){(0,U.__classPrivateFieldSet)(this,F,e,"f")}get normalBlendMethod(){return(0,U.__classPrivateFieldGet)(this,B,"f")}set normalBlendMethod(e){(0,U.__classPrivateFieldSet)(this,B,e,"f")}get isEnabled(){return(0,U.__classPrivateFieldGet)(this,V,"f")}set isEnabled(e){(0,U.__classPrivateFieldSet)(this,V,e,"f")}_markAllSubMeshesAsTexturesDirty(){this._enable(this._isEnabled),this._internalMarkAllSubMeshesAsTexturesDirty()}isCompatible(){return!0}constructor(e,t=!0){super(e,"DetailMap",140,new Q,t),this._texture=null,F.set(this,(0,U.__runInitializers)(this,S,void 0)),this.diffuseBlendLevel=((0,U.__runInitializers)(this,I),(0,U.__runInitializers)(this,A,1)),this.roughnessBlendLevel=((0,U.__runInitializers)(this,b),(0,U.__runInitializers)(this,v,1)),this.bumpLevel=((0,U.__runInitializers)(this,T),(0,U.__runInitializers)(this,y,1)),this._normalBlendMethod=((0,U.__runInitializers)(this,R),w.Material.MATERIAL_NORMALBLENDMETHOD_WHITEOUT),B.set(this,(0,U.__runInitializers)(this,x,void 0)),this._isEnabled=((0,U.__runInitializers)(this,M),!1),V.set(this,(0,U.__runInitializers)(this,C,!1)),this._internalMarkAllSubMeshesAsTexturesDirty=(0,U.__runInitializers)(this,L),this._internalMarkAllSubMeshesAsTexturesDirty=e._dirtyCallbacks[1]}isReadyForSubMesh(e,t,i){return!this._isEnabled||!e._areTexturesDirty||!t.texturesEnabled||!i.getCaps().standardDerivatives||!this._texture||!z.MaterialFlags.DetailTextureEnabled||!!this._texture.isReady()}prepareDefines(e,t){if(this._isEnabled){e.DETAIL_NORMALBLENDMETHOD=this._normalBlendMethod;let i=t.getEngine();e._areTexturesDirty&&(i.getCaps().standardDerivatives&&this._texture&&z.MaterialFlags.DetailTextureEnabled&&this._isEnabled?((0,Z.PrepareDefinesForMergedUV)(this._texture,e,"DETAIL"),e.DETAIL_NORMALBLENDMETHOD=this._normalBlendMethod):e.DETAIL=!1)}else e.DETAIL=!1}bindForSubMesh(e,t){if(!this._isEnabled)return;let i=this._material.isFrozen;e.useUbo&&i&&e.isSync||!this._texture||!z.MaterialFlags.DetailTextureEnabled||(e.updateFloat4("vDetailInfos",this._texture.coordinatesIndex,this.diffuseBlendLevel,this.bumpLevel,this.roughnessBlendLevel),(0,Z.BindTextureMatrix)(this._texture,e,"detail")),t.texturesEnabled&&this._texture&&z.MaterialFlags.DetailTextureEnabled&&e.setTexture("detailSampler",this._texture)}hasTexture(e){return this._texture===e}getActiveTextures(e){this._texture&&e.push(this._texture)}getAnimatables(e){this._texture&&this._texture.animations&&this._texture.animations.length>0&&e.push(this._texture)}dispose(e){e&&this._texture?.dispose()}getClassName(){return"DetailMapConfiguration"}getSamplers(e){e.push("detailSampler")}getUniforms(){return{ubo:[{name:"vDetailInfos",size:4,type:"vec4"},{name:"detailMatrix",size:16,type:"mat4"}]}}},F=new WeakMap,B=new WeakMap,V=new WeakMap,N="function"==typeof Symbol&&Symbol.metadata?Object.create(D[Symbol.metadata]??null):void 0,g=[(0,j.serializeAsTexture)("detailTexture"),(0,j.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],P=[(0,j.serialize)()],f=[(0,j.serialize)()],m=[(0,j.serialize)()],E=[(0,j.serialize)(),(0,j.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],p=[(0,j.serialize)(),(0,j.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],(0,U.__esDecorate)(k,null,g,{kind:"accessor",name:"texture",static:!1,private:!1,access:{has:e=>"texture"in e,get:e=>e.texture,set:(e,t)=>{e.texture=t}},metadata:N},S,I),(0,U.__esDecorate)(k,null,E,{kind:"accessor",name:"normalBlendMethod",static:!1,private:!1,access:{has:e=>"normalBlendMethod"in e,get:e=>e.normalBlendMethod,set:(e,t)=>{e.normalBlendMethod=t}},metadata:N},x,M),(0,U.__esDecorate)(k,null,p,{kind:"accessor",name:"isEnabled",static:!1,private:!1,access:{has:e=>"isEnabled"in e,get:e=>e.isEnabled,set:(e,t)=>{e.isEnabled=t}},metadata:N},C,L),(0,U.__esDecorate)(null,null,P,{kind:"field",name:"diffuseBlendLevel",static:!1,private:!1,access:{has:e=>"diffuseBlendLevel"in e,get:e=>e.diffuseBlendLevel,set:(e,t)=>{e.diffuseBlendLevel=t}},metadata:N},A,b),(0,U.__esDecorate)(null,null,f,{kind:"field",name:"roughnessBlendLevel",static:!1,private:!1,access:{has:e=>"roughnessBlendLevel"in e,get:e=>e.roughnessBlendLevel,set:(e,t)=>{e.roughnessBlendLevel=t}},metadata:N},v,T),(0,U.__esDecorate)(null,null,m,{kind:"field",name:"bumpLevel",static:!1,private:!1,access:{has:e=>"bumpLevel"in e,get:e=>e.bumpLevel,set:(e,t)=>{e.bumpLevel=t}},metadata:N},y,R),N&&Object.defineProperty(k,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:N}),k);e.s(["DetailMapConfiguration",0,K],71596)},15392,e=>{"use strict";e.s(["MaterialDefines",0,class{constructor(e){if(this.VERTEXOUTPUT_INVARIANT=!1,this._keys=[],this._isDirty=!0,this._areLightsDirty=!0,this._areLightsDisposed=!1,this._areAttributesDirty=!0,this._areTexturesDirty=!0,this._areFresnelDirty=!0,this._areMiscDirty=!0,this._arePrePassDirty=!0,this._areImageProcessingDirty=!0,this._normals=!1,this._uvs=!1,this._needNormals=!1,this._needUVs=!1,this._externalProperties=e,e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&this._setDefaultValue(t)}get isDirty(){return this._isDirty}markAsProcessed(){this._isDirty=!1,this._areAttributesDirty=!1,this._areTexturesDirty=!1,this._areFresnelDirty=!1,this._areLightsDirty=!1,this._areLightsDisposed=!1,this._areMiscDirty=!1,this._arePrePassDirty=!1,this._areImageProcessingDirty=!1}markAsUnprocessed(){this._isDirty=!0}markAllAsDirty(){this._areTexturesDirty=!0,this._areAttributesDirty=!0,this._areLightsDirty=!0,this._areFresnelDirty=!0,this._areMiscDirty=!0,this._arePrePassDirty=!0,this._areImageProcessingDirty=!0,this._isDirty=!0}markAsImageProcessingDirty(){this._areImageProcessingDirty=!0,this._isDirty=!0}markAsLightDirty(e=!1){this._areLightsDirty=!0,this._areLightsDisposed=this._areLightsDisposed||e,this._isDirty=!0}markAsAttributesDirty(){this._areAttributesDirty=!0,this._isDirty=!0}markAsTexturesDirty(){this._areTexturesDirty=!0,this._isDirty=!0}markAsFresnelDirty(){this._areFresnelDirty=!0,this._isDirty=!0}markAsMiscDirty(){this._areMiscDirty=!0,this._isDirty=!0}markAsPrePassDirty(){this._arePrePassDirty=!0,this._isDirty=!0}rebuild(){for(let e of(this._keys.length=0,Object.keys(this)))"_"!==e[0]&&this._keys.push(e);if(this._externalProperties)for(let e in this._externalProperties)-1===this._keys.indexOf(e)&&this._keys.push(e)}isEqual(e){if(this._keys.length!==e._keys.length)return!1;for(let t=0;t<this._keys.length;t++){let i=this._keys[t];if(this[i]!==e[i])return!1}return!0}cloneTo(e){this._keys.length!==e._keys.length&&(e._keys=this._keys.slice(0));for(let t=0;t<this._keys.length;t++){let i=this._keys[t];e[i]=this[i]}}reset(){for(let e of this._keys)this._setDefaultValue(e)}_setDefaultValue(e){let t=this._externalProperties?.[e]?.type??typeof this[e],i=this._externalProperties?.[e]?.default;switch(t){case"number":this[e]=i??0;break;case"string":this[e]=i??"";break;default:this[e]=i??!1}}toString(){let e="";for(let t=0;t<this._keys.length;t++){let i=this._keys[t],s=this[i];switch(typeof s){case"number":case"string":e+="#define "+i+" "+s+"\n";break;default:s&&(e+="#define "+i+"\n")}}return e}}])},84276,e=>{"use strict";e.s(["PrePassConfiguration",0,class{constructor(){this.previousWorldMatrices={},this.previousBones={}}static AddUniforms(e){e.push("previousWorld","previousViewProjection","mPreviousBones")}static AddSamplers(e){}bindForSubMesh(e,t,i,s,r){if(t.prePassRenderer&&t.prePassRenderer.enabled&&t.prePassRenderer.currentRTisSceneRT&&(-1!==t.prePassRenderer.getIndex(2)||-1!==t.prePassRenderer.getIndex(11))){this.previousWorldMatrices[i.uniqueId]||(this.previousWorldMatrices[i.uniqueId]=s.clone()),this.previousViewProjection||(this.previousViewProjection=t.getTransformMatrix().clone(),this.currentViewProjection=t.getTransformMatrix().clone());let r=t.getEngine();this.currentViewProjection.updateFlag!==t.getTransformMatrix().updateFlag?(this._lastUpdateFrameId=r.frameId,this.previousViewProjection.copyFrom(this.currentViewProjection),this.currentViewProjection.copyFrom(t.getTransformMatrix())):this._lastUpdateFrameId!==r.frameId&&(this._lastUpdateFrameId=r.frameId,this.previousViewProjection.copyFrom(this.currentViewProjection)),e.setMatrix("previousWorld",this.previousWorldMatrices[i.uniqueId]),e.setMatrix("previousViewProjection",this.previousViewProjection),this.previousWorldMatrices[i.uniqueId]=s.clone()}}}])},72624,2963,70745,e=>{"use strict";e.s(["UVDefinesMixin",0,function(e){return class extends e{constructor(){super(...arguments),this.MAINUV1=!1,this.MAINUV2=!1,this.MAINUV3=!1,this.MAINUV4=!1,this.MAINUV5=!1,this.MAINUV6=!1,this.UV1=!1,this.UV2=!1,this.UV3=!1,this.UV4=!1,this.UV5=!1,this.UV6=!1}}}],72624),e.s(["PrepassDefinesMixin",0,function(e){return class extends e{constructor(){super(...arguments),this.PREPASS=!1,this.PREPASS_COLOR=!1,this.PREPASS_COLOR_INDEX=-1,this.PREPASS_IRRADIANCE_LEGACY=!1,this.PREPASS_IRRADIANCE_LEGACY_INDEX=-1,this.PREPASS_IRRADIANCE=!1,this.PREPASS_IRRADIANCE_INDEX=-1,this.PREPASS_ALBEDO=!1,this.PREPASS_ALBEDO_INDEX=-1,this.PREPASS_ALBEDO_SQRT=!1,this.PREPASS_ALBEDO_SQRT_INDEX=-1,this.PREPASS_DEPTH=!1,this.PREPASS_DEPTH_INDEX=-1,this.PREPASS_SCREENSPACE_DEPTH=!1,this.PREPASS_SCREENSPACE_DEPTH_INDEX=-1,this.PREPASS_NORMALIZED_VIEW_DEPTH=!1,this.PREPASS_NORMALIZED_VIEW_DEPTH_INDEX=-1,this.PREPASS_NORMAL=!1,this.PREPASS_NORMAL_INDEX=-1,this.PREPASS_NORMAL_WORLDSPACE=!1,this.PREPASS_WORLD_NORMAL=!1,this.PREPASS_WORLD_NORMAL_INDEX=-1,this.PREPASS_POSITION=!1,this.PREPASS_POSITION_INDEX=-1,this.PREPASS_LOCAL_POSITION=!1,this.PREPASS_LOCAL_POSITION_INDEX=-1,this.PREPASS_VELOCITY=!1,this.PREPASS_VELOCITY_INDEX=-1,this.PREPASS_VELOCITY_LINEAR=!1,this.PREPASS_VELOCITY_LINEAR_INDEX=-1,this.PREPASS_REFLECTIVITY=!1,this.PREPASS_REFLECTIVITY_INDEX=-1,this.SCENE_MRT_COUNT=0}}}],2963);var t=e.i(82427);e.s(["ImageProcessingMixin",0,function(e){return class extends e{constructor(...e){super(...e);const i=new.target;if(!i[Symbol.metadata]){const e=Object.getPrototypeOf(i)?.[Symbol.metadata];i[Symbol.metadata]=e?Object.create(e):{}}const s=(0,t.GetDirectStoreFromMetadata)(i[Symbol.metadata]);s._imageProcessingConfiguration||(s._imageProcessingConfiguration={type:9,sourceName:void 0})}get imageProcessingConfiguration(){return this._imageProcessingConfiguration}set imageProcessingConfiguration(e){this._attachImageProcessingConfiguration(e),this._markAllSubMeshesAsImageProcessingDirty&&this._markAllSubMeshesAsImageProcessingDirty()}_attachImageProcessingConfiguration(e){e!==this._imageProcessingConfiguration&&(this._imageProcessingConfiguration&&this._imageProcessingObserver&&this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver),!e&&this.getScene?this._imageProcessingConfiguration=this.getScene().imageProcessingConfiguration:e&&(this._imageProcessingConfiguration=e),this._imageProcessingConfiguration&&(this._imageProcessingObserver=this._imageProcessingConfiguration.onUpdateParameters.add(()=>{this._markAllSubMeshesAsImageProcessingDirty&&this._markAllSubMeshesAsImageProcessingDirty()})))}get cameraColorCurvesEnabled(){return this.imageProcessingConfiguration.colorCurvesEnabled}set cameraColorCurvesEnabled(e){this.imageProcessingConfiguration.colorCurvesEnabled=e}get cameraColorGradingEnabled(){return this.imageProcessingConfiguration.colorGradingEnabled}set cameraColorGradingEnabled(e){this.imageProcessingConfiguration.colorGradingEnabled=e}get cameraToneMappingEnabled(){return this._imageProcessingConfiguration.toneMappingEnabled}set cameraToneMappingEnabled(e){this._imageProcessingConfiguration.toneMappingEnabled=e}get cameraExposure(){return this._imageProcessingConfiguration.exposure}set cameraExposure(e){this._imageProcessingConfiguration.exposure=e}get cameraContrast(){return this._imageProcessingConfiguration.contrast}set cameraContrast(e){this._imageProcessingConfiguration.contrast=e}get cameraColorGradingTexture(){return this._imageProcessingConfiguration.colorGradingTexture}set cameraColorGradingTexture(e){this._imageProcessingConfiguration.colorGradingTexture=e}get cameraColorCurves(){return this._imageProcessingConfiguration.colorCurves}set cameraColorCurves(e){this._imageProcessingConfiguration.colorCurves=e}}}],70745)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,25346,e=>{e.v(t=>Promise.all(["static/chunks/43v4y2gu5z9_h.js","static/chunks/0q75860p8u_ii.js","static/chunks/1vrpzlif-z_p0.js","static/chunks/2701xfv_07wz_.js","static/chunks/0nhljhguceh66.js","static/chunks/2bettxaqt3d2p.js","static/chunks/0xa9dyg6ezzyd.js","static/chunks/2apnpj0-fs9ks.js","static/chunks/08lvtnv7b1cxp.js","static/chunks/3zkwt0gybqtgm.js","static/chunks/2ofwtw6p08sfz.js","static/chunks/36enkx1skkv2-.js","static/chunks/3rlp9yr75liz7.js"].map(t=>e.l(t))).then(()=>t(61238)))},8179,e=>{e.v(t=>Promise.all(["static/chunks/1vrpzlif-z_p0.js","static/chunks/3d-i_skta_wes.js","static/chunks/0q75860p8u_ii.js","static/chunks/2ofwtw6p08sfz.js","static/chunks/0nhljhguceh66.js","static/chunks/03bd5plut08tg.js","static/chunks/2701xfv_07wz_.js","static/chunks/36enkx1skkv2-.js","static/chunks/0xa9dyg6ezzyd.js","static/chunks/08lvtnv7b1cxp.js"].map(t=>e.l(t))).then(()=>t(86790)))},45852,e=>{e.v(t=>Promise.all(["static/chunks/0u85f0dhb4i8e.js","static/chunks/2ydub0t01728d.js","static/chunks/0q75860p8u_ii.js","static/chunks/0fxdyvb1w23d1.js","static/chunks/0xa9dyg6ezzyd.js","static/chunks/08lvtnv7b1cxp.js","static/chunks/0e7nlxmneb2j_.js","static/chunks/36enkx1skkv2-.js","static/chunks/0fxhc24djjcgq.js"].map(t=>e.l(t))).then(()=>t(69260)))},19257,e=>{e.v(t=>Promise.all(["static/chunks/15jlgfcaeaki9.js","static/chunks/1pgs-98tfkq9_.js","static/chunks/0q75860p8u_ii.js","static/chunks/36enkx1skkv2-.js","static/chunks/0lbs5xdyjuzuo.js","static/chunks/2701xfv_07wz_.js"].map(t=>e.l(t))).then(()=>t(33738)))},76269,e=>{e.v(t=>Promise.all(["static/chunks/1ncqwe81t_9_x.js","static/chunks/3ksq69yq-40_r.js","static/chunks/1vrpzlif-z_p0.js","static/chunks/2701xfv_07wz_.js","static/chunks/0q75860p8u_ii.js","static/chunks/2w_ptlw-ad8-9.js","static/chunks/1f2mna0k5efeq.js","static/chunks/36enkx1skkv2-.js","static/chunks/08lvtnv7b1cxp.js","static/chunks/03bd5plut08tg.js","static/chunks/0nhljhguceh66.js","static/chunks/2apnpj0-fs9ks.js","static/chunks/0xa9dyg6ezzyd.js"].map(t=>e.l(t))).then(()=>t(37719)))},69819,e=>{e.v(t=>Promise.all(["static/chunks/1gr35qeguuws0.js","static/chunks/36enkx1skkv2-.js","static/chunks/0q75860p8u_ii.js"].map(t=>e.l(t))).then(()=>t(81591)))},67116,e=>{e.v(t=>Promise.all(["static/chunks/0p6z73afb9dj2.js","static/chunks/1vrpzlif-z_p0.js","static/chunks/0lep3_bqwfuin.js","static/chunks/0xvrfvur0p534.js","static/chunks/0nhljhguceh66.js","static/chunks/2q6l-xdqzgmpf.js","static/chunks/1d9it6yocgt54.js","static/chunks/0q75860p8u_ii.js","static/chunks/08lvtnv7b1cxp.js","static/chunks/2apnpj0-fs9ks.js","static/chunks/2701xfv_07wz_.js","static/chunks/36enkx1skkv2-.js","static/chunks/21kfpd_bityxt.js","static/chunks/03bd5plut08tg.js","static/chunks/2ofwtw6p08sfz.js","static/chunks/3zkwt0gybqtgm.js","static/chunks/0xa9dyg6ezzyd.js"].map(t=>e.l(t))).then(()=>t(36995)))},32502,e=>{e.v(t=>Promise.all(["static/chunks/44cer242u-f8v.js","static/chunks/1vrpzlif-z_p0.js","static/chunks/0q75860p8u_ii.js","static/chunks/0nhljhguceh66.js","static/chunks/36enkx1skkv2-.js","static/chunks/08lvtnv7b1cxp.js","static/chunks/2701xfv_07wz_.js","static/chunks/03bd5plut08tg.js","static/chunks/0xa9dyg6ezzyd.js"].map(t=>e.l(t))).then(()=>t(13455)))},2348,2413,e=>{"use strict";let t=1/1.2;e.s(["ZOOM_IN_FACTOR",0,t,"ZOOM_OUT_FACTOR",0,1.2,"attachDoubleClickFocus",0,function(e,t,n){let s=()=>{let t=e.pick(e.pointerX,e.pointerY);t?.hit&&t.pickedPoint&&n.setTarget(t.pickedPoint)};return t.addEventListener("dblclick",s),()=>t.removeEventListener("dblclick",s)},"disableWheelZoom",0,function(e){e.inputs.removeByType("ArcRotateCameraMouseWheelInput")},"resetFocus",0,function(e,t){e.setTarget(t.target),e.alpha=t.alpha,e.beta=t.beta,e.radius=t.radius},"stepZoom",0,function(e,t){let n=e.lowerRadiusLimit??.01,s=e.upperRadiusLimit??1/0;e.radius=Math.min(s,Math.max(n,e.radius*t))}],2348);var n=e.i(61284);e.s(["ZoomButtons",0,function({onZoom:e,onReset:s}){let a="grid h-8 w-8 place-items-center rounded-md border border-edge bg-ink/80 text-lg leading-none text-fg backdrop-blur transition hover:bg-ink hover:text-white";return(0,n.jsxs)("div",{className:"absolute right-3 top-3 flex flex-col gap-1",children:[(0,n.jsx)("button",{type:"button","aria-label":"Zoom in",className:a,onClick:()=>e(t),children:"+"}),(0,n.jsx)("button",{type:"button","aria-label":"Zoom out",className:a,onClick:()=>e(1.2),children:"−"}),s?(0,n.jsx)("button",{type:"button","aria-label":"Reset camera focus to center",title:"Reset focus to center",className:a,onClick:s,children:(0,n.jsxs)("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"3"}),(0,n.jsx)("path",{d:"M8 1v2.5M8 12.5V15M1 8h2.5M12.5 8H15"})]})}):null]})}],2413)},87456,e=>{"use strict";e.s(["attachMeshHover",0,function(e,t,n){let s=0,a=null,i=t=>{let i=t.offsetX,l=t.offsetY;s||(s=requestAnimationFrame(()=>{var t,o;let r;s=0;let u=e.pick(i,l,e=>e.isPickable&&e.isEnabled()),c=u?.pickedMesh?(t=u.pickedMesh,o=u.thinInstanceIndex??-1,(r=t.metadata)?o>=0&&r.hoverLabels?r.hoverLabels[o]??null:r.hoverLabel??null:null):null;c?n({label:c,x:i,y:l}):null!==a&&n(null),a=c}))},l=()=>{s&&(cancelAnimationFrame(s),s=0),null!==a&&(a=null,n(null))};return t.addEventListener("pointermove",i),t.addEventListener("pointerleave",l),()=>{t.removeEventListener("pointermove",i),t.removeEventListener("pointerleave",l),s&&cancelAnimationFrame(s)}}])},19399,e=>{"use strict";var t=e.i(61284),n=e.i(60951);let s="__other_sp__",a="__other_mesh__";function i(e){return`${e[0]}|${e[1]}|${e[2]}`}function l(e,t){return t<=1?0:1.4-e/(t-1)*2.8}var o=e.i(56054),r=e.i(2348),u=e.i(87456),c=e.i(18637),h=e.i(2413);let d="__all__",m={maxStandpoints:6,maxMeshes:10,maxRibbons:70};function p(e,t){return`${e}|${t}`}function b(e){let t=e.aabb;return[(t[0]+t[3])/2,(t[1]+t[4])/2,(t[2]+t[5])/2]}function f(e){let t=0;for(let n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Math.abs(t)}function g({label:e,value:n,onChange:s,allLabel:a,options:i}){return(0,t.jsxs)("label",{className:"flex items-center gap-1.5 rounded-md border border-edge bg-ink/80 px-2 py-1 text-xs text-fg backdrop-blur",children:[(0,t.jsx)("span",{className:"font-medium text-fg-muted",children:e}),(0,t.jsxs)("select",{className:"max-w-[12rem] bg-transparent text-white outline-none",value:n,onChange:e=>s(e.target.value),children:[(0,t.jsx)("option",{value:d,children:a}),i.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]})]})}function k({active:e,onClick:n,children:s,disabled:a=!1,title:i}){return(0,t.jsx)("button",{type:"button",onClick:n,disabled:a,title:i,className:`rounded px-2 py-0.5 font-medium transition ${a?"cursor-not-allowed text-fg-muted/40":e?"bg-amber text-ink":"text-fg-muted hover:text-fg"}`,children:s})}function x({standpoints:e,proxyMeshes:s,selectedKey:a,onSelect:i}){let l=(0,n.useRef)(null),o=(0,n.useMemo)(()=>e.filter(e=>e.origin),[e]),r=(0,n.useMemo)(()=>{let e=1/0,t=-1/0,n=1/0,a=-1/0,i=(s,i)=>{e=Math.min(e,s),t=Math.max(t,s),n=Math.min(n,i),a=Math.max(a,i)};for(let e of s)i(e.aabb[0],e.aabb[2]),i(e.aabb[3],e.aabb[5]);for(let e of o)i(e.origin[0],e.origin[2]);return Number.isFinite(e)?(t-e<.001&&(e-=1,t+=1),a-n<.001&&(n-=1,a+=1),{minX:e,maxX:t,minZ:n,maxZ:a}):{minX:-1,maxX:1,minZ:-1,maxZ:1}},[s,o]),u=(0,n.useMemo)(()=>{let e=Math.min(134/(r.maxX-r.minX),94/(r.maxZ-r.minZ));return(t,n)=>[8+(t-r.minX)*e,8+(n-r.minZ)*e]},[r]),c=(0,n.useMemo)(()=>o.reduce((e,t)=>Math.max(e,t.count),1),[o]);return(0,n.useEffect)(()=>{let e=l.current,t=e?.getContext("2d");if(!t)return;let n=window.devicePixelRatio||1;for(let a of(e.width=150*n,e.height=110*n,t.setTransform(n,0,0,n,0,0),t.clearRect(0,0,150,110),t.fillStyle="rgba(8,10,14,0.85)",t.fillRect(0,0,150,110),t.strokeStyle="rgba(120,140,170,0.35)",t.lineWidth=1,s)){let[e,n]=u(a.aabb[0],a.aabb[2]),[s,i]=u(a.aabb[3],a.aabb[5]);t.strokeRect(Math.min(e,s),Math.min(n,i),Math.abs(s-e),Math.abs(i-n))}for(let e of o){let[n,s]=u(e.origin[0],e.origin[2]),i=2+e.count/c*4,l=e.key===a;t.beginPath(),t.arc(n,s,i,0,2*Math.PI),t.fillStyle=l?"rgba(242,115,242,1)":"rgba(242,115,242,0.55)",t.fill(),l&&(t.beginPath(),t.arc(n,s,i+2.5,0,2*Math.PI),t.strokeStyle="rgba(255,255,255,0.9)",t.lineWidth=1.5,t.stroke())}},[s,o,u,c,a]),(0,t.jsxs)("div",{className:"absolute right-3 top-3 rounded-md border border-edge bg-ink/80 p-1 backdrop-blur",children:[(0,t.jsx)("div",{className:"px-1 pb-0.5 text-[10px] font-medium text-fg-muted",children:"Standpoints (top view)"}),(0,t.jsx)("canvas",{ref:l,className:"h-27.5 w-37.5 cursor-pointer rounded",onClick:e=>{let t=l.current;if(!t||0===o.length)return;let n=t.getBoundingClientRect(),s=(e.clientX-n.left)/n.width*150,a=(e.clientY-n.top)/n.height*110,r=null,c=1/0;for(let e of o){let[t,n]=u(e.origin[0],e.origin[2]),i=(t-s)**2+(n-a)**2;i<c&&(c=i,r=e)}r&&c<=196&&i(r.key)}})]})}e.s(["FlowSankey3DView",0,function({links:v,gridSize:w,proxyMeshes:j=[],maxLinks:z=80,api:M,flowQuery:_,hasFirstPerson:y=!1}){let $=(0,n.useRef)(null),I=(0,n.useRef)(null),C=(0,n.useRef)(null),[P,B]=(0,n.useState)("loading"),[R,S]=(0,n.useState)(null),[L,N]=(0,n.useState)(d),[q,A]=(0,n.useState)(d),[E,O]=(0,n.useState)(d),[Z,T]=(0,n.useState)("aggregate"),[F,V]=(0,n.useState)(null),[W,X]=(0,n.useState)("all"),[H,D]=(0,n.useState)(v),U=!!(M&&_),K=(0,n.useMemo)(()=>_?JSON.stringify(_):"",[_]),Y=(0,n.useRef)(!1);(0,n.useEffect)(()=>{!Y.current&&y&&(X("first-person"),Y.current=!0)},[y]),(0,n.useEffect)(()=>{y&&"viewer"===W&&X("first-person")},[y,W]),(0,n.useEffect)(()=>{U||D(v)},[v,U]),(0,n.useEffect)(()=>{if(!M||!_)return;let e=!1,t="all"===W?void 0:W;return M.flowHeatmap({..._,bins:w,limit:400,groupByOrigin:!0,cameraMode:t}).then(t=>{e||D(t)}).catch(()=>{e||D([])}),()=>{e=!0}},[M,K,W,w]);let G=(0,n.useMemo)(()=>{let e=new Map;for(let t of H){if(!t.originVoxel)continue;let n=i(t.originVoxel),s=t.origin,a=e.get(n);a?(a.count+=t.count,s&&(a.ox+=s[0]*t.count,a.oy+=s[1]*t.count,a.oz+=s[2]*t.count,a.wsum+=t.count)):e.set(n,{key:n,voxel:t.originVoxel,count:t.count,ox:s?s[0]*t.count:0,oy:s?s[1]*t.count:0,oz:s?s[2]*t.count:0,wsum:s?t.count:0})}return[...e.values()].map(e=>({key:e.key,voxel:e.voxel,count:e.count,origin:e.wsum>0?[e.ox/e.wsum,e.oy/e.wsum,e.oz/e.wsum]:void 0})).sort((e,t)=>t.count-e.count)},[H]),J=G.length>0,Q=(0,n.useMemo)(()=>E===d?null:G.find(e=>e.key===E)??null,[G,E]),ee=(0,n.useMemo)(()=>(function(e,t,n,o){let r=e.filter(e=>e.originVoxel);if(0===r.length)return{standpoints:[],gazes:[],meshes:[],ribbons:[],maxCount:1};let u=t.slice(0,Math.max(1,o.maxStandpoints)),c=new Set(u.map(e=>e.key)),h=e=>{let t=e.originVoxel?i(e.originVoxel):s;return c.has(t)?t:s},d=new Map;for(let e of r)d.set(e.mesh,(d.get(e.mesh)??0)+e.count);let m=new Set([...d.entries()].sort((e,t)=>t[1]-e[1]).slice(0,Math.max(1,o.maxMeshes)).map(([e])=>e)),p=e=>m.has(e)?e:a,b=new Map;for(let e of r){let t=h(e),n=p(e.mesh),s=`${t}|${e.azimuth_bin}|${e.elevation_bin}|${n}`,a=b.get(s);a?a.count+=e.count:b.set(s,{standpointId:t,gazeId:`${t}|${e.azimuth_bin}|${e.elevation_bin}`,meshId:n,azimuthBin:e.azimuth_bin,elevationBin:e.elevation_bin,count:e.count})}let f=[...b.values()].sort((e,t)=>t.count-e.count),g=f.slice(0,Math.max(1,o.maxRibbons)),k=f.slice(Math.max(1,o.maxRibbons));if(k.length>0){let e=new Map(g.map(e=>[`${e.standpointId}|${e.azimuthBin}|${e.elevationBin}|${a}`,e]));for(let t of k){let n=`${t.standpointId}|${t.azimuthBin}|${t.elevationBin}|${a}`,s=e.get(n);if(s)s.count+=t.count;else{let s={standpointId:t.standpointId,gazeId:t.gazeId,meshId:a,azimuthBin:t.azimuthBin,elevationBin:t.elevationBin,count:t.count};e.set(n,s),g.push(s)}}}let x=new Set(g.map(e=>e.standpointId)),v=new Set(g.map(e=>e.meshId)),w=[...u.filter(e=>x.has(e.key)).map(e=>e.key),...x.has(s)?[s]:[]],j=w.map((e,t)=>{let n=u.find(t=>t.key===e),a=g.filter(t=>t.standpointId===e).reduce((e,t)=>e+t.count,0);return{id:e,kind:"standpoint",pos:[-2.6,l(t,w.length),0],count:a,label:n?`[${n.voxel[0]}, ${n.voxel[1]}, ${n.voxel[2]}]`:"Other standpoints",isOther:e===s}}),z=new Map(j.map(e=>[e.id,e.pos[1]])),M=new Map;for(let e of g)M.set(e.meshId,(M.get(e.meshId)??0)+e.count);let _=[...v].sort((e,t)=>(M.get(t)??0)-(M.get(e)??0));_.sort((e,t)=>(e===a)-(t===a));let y=_.map((e,t)=>({id:e,kind:"mesh",pos:[2.6,l(t,_.length),0],count:M.get(e)??0,label:e===a?"Other meshes":e,isOther:e===a})),$=new Map;for(let e of g){let t=$.get(e.gazeId);t?t.count+=e.count:$.set(e.gazeId,{az:e.azimuthBin,el:e.elevationBin,sp:e.standpointId,count:e.count})}let I=[...$.entries()].map(([e,t])=>{let s=z.get(t.sp)??0,a=(t.az+.5)/n-.5;return{id:e,kind:"gaze",pos:[0,s+((t.el+.5)/n-.5)*.85,1.6*a],count:t.count,label:`(${t.az}, ${t.el})`,isOther:!1}}),C=g.reduce((e,t)=>Math.max(e,t.count),1);return{standpoints:j,gazes:I,meshes:y,ribbons:g,maxCount:C}})(H,G,w,m),[H,G,w]),et="twostage"===Z&&J;(0,n.useEffect)(()=>{"twostage"!==Z||J||T("aggregate")},[Z,J]);let en=(0,n.useMemo)(()=>{if(E!==d&&J)return H.filter(e=>e.originVoxel&&i(e.originVoxel)===E);if(!J)return H;let e=new Map;for(let t of H){let n=`${t.azimuth_bin}|${t.elevation_bin}|${t.mesh}`,s=e.get(n);s?s.count+=t.count:e.set(n,{azimuth_bin:t.azimuth_bin,elevation_bin:t.elevation_bin,mesh:t.mesh,count:t.count})}return[...e.values()]},[H,E,J]),es=(0,n.useMemo)(()=>[...en].sort((e,t)=>t.count-e.count).slice(0,Math.max(1,z)),[en,z]),ea=(0,n.useMemo)(()=>{let e=new Map;for(let t of es)e.set(t.mesh,(e.get(t.mesh)??0)+t.count);return[...e.entries()].sort((e,t)=>t[1]-e[1])},[es]),ei=(0,n.useMemo)(()=>{let e=new Map;for(let t of es){let n=p(t.azimuth_bin,t.elevation_bin),s=e.get(n);s?s.count+=t.count:e.set(n,{azimuthBin:t.azimuth_bin,elevationBin:t.elevation_bin,count:t.count})}return[...e.values()].sort((e,t)=>t.count-e.count)},[es]);(0,n.useEffect)(()=>{!et&&L!==d&&(ea.some(([e])=>e===L)||N(d))},[et,L,ea]),(0,n.useEffect)(()=>{!et&&q!==d&&(ei.some(e=>p(e.azimuthBin,e.elevationBin)===q)||A(d))},[et,q,ei]),(0,n.useEffect)(()=>{!et&&E!==d&&(G.some(e=>e.key===E)||O(d))},[et,E,G]),(0,n.useEffect)(()=>{N(d),A(d),O(d)},[Z]);let el=(0,n.useMemo)(()=>et?ee.ribbons.filter(e=>{let t=E===d||e.standpointId===E,n=q===d||p(e.azimuthBin,e.elevationBin)===q,s=L===d||e.meshId===L;return t&&n&&s}).length:es.filter(e=>{let t=q===d||p(e.azimuth_bin,e.elevation_bin)===q,n=L===d||e.mesh===L;return t&&n}).length,[et,ee,es,L,q,E]),eo=et?ee.ribbons.length:es.length,er=(0,n.useMemo)(()=>et?ee.standpoints.map(e=>({value:e.id,label:`${e.label} \xb7 ${e.count}`})):G.slice(0,24).map(e=>({value:e.key,label:`[${e.voxel[0]}, ${e.voxel[1]}, ${e.voxel[2]}] \xb7 ${e.count}`})),[et,ee,G]),eu=(0,n.useMemo)(()=>{if(et){let e=new Map;for(let t of ee.ribbons){let n=p(t.azimuthBin,t.elevationBin),s=e.get(n);s?s.count+=t.count:e.set(n,{az:t.azimuthBin,el:t.elevationBin,count:t.count})}return[...e.values()].sort((e,t)=>t.count-e.count).map(e=>({value:p(e.az,e.el),label:`(${e.az}, ${e.el}) \xb7 ${e.count}`}))}return ei.map(e=>({value:p(e.azimuthBin,e.elevationBin),label:`(${e.azimuthBin}, ${e.elevationBin}) \xb7 ${e.count}`}))},[et,ee,ei]),ec=(0,n.useMemo)(()=>et?ee.meshes.map(e=>({value:e.id,label:`${e.label} \xb7 ${e.count}`})):ea.map(([e,t])=>({value:e,label:`${e} \xb7 ${t}`})),[et,ee,ea]),eh=(0,n.useRef)(es);eh.current=es;let ed=(0,n.useRef)(ee);ed.current=ee;let em=(0,n.useRef)(j);em.current=j;let ep=(0,n.useRef)(ea);ep.current=ea;let eb=(0,n.useRef)(L);eb.current=L;let ef=(0,n.useRef)(q);ef.current=q;let eg=(0,n.useRef)(E);eg.current=E;let ek=(0,n.useRef)(Q);ek.current=Q;let ex=(0,n.useRef)(null),ev=et?ee.ribbons.length>0:es.length>0;return(0,n.useEffect)(()=>{let t=$.current;if(!t)return;if(!ev)return void B("empty");let n=!1,s=null;return B("loading"),S(null),(async()=>{try{let a,[{Engine:i},{Scene:l},{ArcRotateCamera:c},{HemisphericLight:h},{Vector3:m,Color3:g,Color4:k},{MeshBuilder:x},{StandardMaterial:v}]=await Promise.all([e.A(45852),e.A(32502),e.A(25346),e.A(19257),e.A(69819),e.A(67116),e.A(76269),e.A(8179)]);if(n)return;let j=new i(t,!0,{preserveDrawingBuffer:!1}),z=new l(j);z.clearColor=new k(.04,.05,.07,1);let M=[],_=()=>{for(let e of M)e.dispose();M=[]};if(et){let e=m.Zero();(a=new c("ts-cam",Math.PI/2,Math.PI/2.4,8.5,e,z)).attachControl(t,!0),(0,r.disableWheelZoom)(a),I.current=a,C.current={target:e,alpha:a.alpha,beta:a.beta,radius:a.radius},new h("ts-light",new m(.3,1,.2),z);let n={standpoint:[.95,.45,.95],gaze:[.45,.75,1],mesh:[1,.82,.42]},s={standpoint:.26,gaze:.13,mesh:.22},i=(e,t,n)=>{let s=e[0],a=e[1],i=e[2],l=t[0],o=t[1],r=t[2],u=[(s+l)/2,(a+o)/2+n,(i+r)/2],c=[];for(let e=0;e<=12;e++){let t=e/12,n=1-t;c.push(new m(n*n*s+2*n*t*u[0]+t*t*l,n*n*a+2*n*t*u[1]+t*t*o,n*n*i+2*n*t*u[2]+t*t*r))}return c},l=()=>{_();let e=ed.current;if(0===e.ribbons.length)return;let t=eg.current,a=ef.current,l=eb.current,r=e=>{let n=t===d||e.standpointId===t,s=a===d||p(e.azimuthBin,e.elevationBin)===a,i=l===d||e.meshId===l;return n&&s&&i},u=t!==d||a!==d||l!==d,c=new Set;for(let t of e.ribbons)r(t)&&(c.add(t.standpointId),c.add(t.gazeId),c.add(t.meshId));let h=[...e.standpoints,...e.gazes,...e.meshes],b=new Map(h.map(e=>[e.id,e.pos])),f=new Map(h.map(e=>[e.id,e.label]));for(let e of h){let t=x.CreateSphere(`ts-node-${e.kind}-${e.id}`,{diameter:s[e.kind],segments:8},z);t.position=new m(e.pos[0],e.pos[1],e.pos[2]);let a=new v(`ts-node-mat-${e.kind}-${e.id}`,z);a.disableLighting=!0;let[i,l,o]=n[e.kind];a.emissiveColor=new g(i,l,o),a.alpha=!u||c.has(e.id)?1:.2,t.material=a,t.isPickable=!0,t.metadata={hoverLabel:e.label},M.push(t,a)}for(let t of e.ribbons){let n=b.get(t.standpointId),s=b.get(t.gazeId),a=b.get(t.meshId);if(!n||!s||!a)continue;let l=t.count/e.maxCount,c=.18+.5*l,h=[...i(n,s,c),...i(s,a,c).slice(1)],d=r(t),[m,p,k]=(0,o.heatRgb)(l),w=x.CreateTube(`ts-link-${t.standpointId}-${t.gazeId}-${t.meshId}`,{path:h,radius:(d?1:.4)*(.012+.04*l),tessellation:8,cap:0,sideOrientation:0},z),j=new v(`ts-link-mat-${t.standpointId}-${t.gazeId}-${t.meshId}`,z);j.disableLighting=!0,j.emissiveColor=new g(m,p,k),j.alpha=d?.35+.65*l:u?.06:.18,w.material=j,w.isPickable=!0,w.metadata={hoverLabel:f.get(t.meshId)??t.meshId},M.push(w,j)}};ex.current=l,l()}else{let e=new Map;for(let t of em.current)e.set(t.name,b(t));let n=new Map,s=ep.current.map(([e])=>e).filter(t=>!e.has(t));for(let e=0;e<s.length;e++){let t=s[e],a=f(t),i=e/Math.max(1,s.length)*Math.PI*2+a%100/100*.35;n.set(t,[2.2*Math.cos(i),-.35+(a%7-3)*.06,2.2*Math.sin(i)])}for(let[t,s]of e.entries())n.set(t,s);let i=0,l=0,u=0,k=0;for(let e of n.values())i+=e[0],l+=e[1],u+=e[2],k++;let j=new m(i/Math.max(1,k),l/Math.max(1,k),u/Math.max(1,k)),y=1.8;for(let e of n.values()){let t=e[0]-j.x,n=e[1]-j.y,s=e[2]-j.z;y=Math.max(y,Math.sqrt(t*t+n*n+s*s))}let $=.75*y+1,P=Math.max(1,y/1.8);(a=new c("flow-cam",Math.PI/4,Math.PI/3,3.4*y,j,z)).attachControl(t,!0),(0,r.disableWheelZoom)(a),I.current=a,C.current={target:j,alpha:a.alpha,beta:a.beta,radius:a.radius},new h("flow-light",new m(.3,1,.2),z);let B=x.CreateSphere("flow-source-dome",{diameter:2*$,segments:20},z);B.position=j;let R=new v("flow-source-dome-mat",z);R.wireframe=!0,R.disableLighting=!0,R.emissiveColor=new g(.16,.2,.28),R.alpha=.35,B.material=R,B.isPickable=!1;let S=()=>{_();let e=eh.current;if(0===e.length)return;let t=eb.current,n=ef.current,s=ek.current,a=new Map;for(let e of em.current)a.set(e.name,b(e));let i=new Map,l=ep.current.map(([e])=>e).filter(e=>!a.has(e));for(let e=0;e<l.length;e++){let t=l[e],n=f(t),s=e/Math.max(1,l.length)*Math.PI*2+n%100/100*.35;i.set(t,[2.2*Math.cos(s),-.35+(n%7-3)*.06,2.2*Math.sin(s)])}for(let[e,t]of a.entries())i.set(e,t);let r=e.reduce((e,t)=>Math.max(e,t.count),1),u=new v("flow-source-node",z);u.disableLighting=!0,u.emissiveColor=new g(.45,.75,1);let c=new v("flow-target-node",z);c.disableLighting=!0,c.emissiveColor=new g(1,.82,.42),M.push(u,c);let h=new Set,k=new Set,y=e=>{let s=n===d||p(e.azimuth_bin,e.elevation_bin)===n,a=t===d||e.mesh===t;return s&&a},I=new Set,C=new Set;for(let t of e)y(t)&&(I.add(p(t.azimuth_bin,t.elevation_bin)),C.add(t.mesh));for(let s of e){let e=`${s.azimuth_bin}|${s.elevation_bin}`,a=i.get(s.mesh);if(!a)continue;let l=y(s),p=(s.azimuth_bin+.5)/w*Math.PI*2-Math.PI,b=(s.elevation_bin+.5)/w*Math.PI-Math.PI/2,f=Math.cos(b),_=f*Math.cos(p),B=Math.sin(b),R=f*Math.sin(p),S=new m(j.x+_*$,j.y+B*$,j.z+R*$),L=new m(a[0],a[1],a[2]);if(!h.has(e)){let s=x.CreateSphere(`flow-src-${e}`,{diameter:.12*P,segments:6},z);s.position=S;let a=u.clone(`flow-src-mat-${e}`);a.alpha=I.has(e)||t===d&&n===d?1:.22,s.material=a,s.isPickable=!1,h.add(e),M.push(s,a)}if(!k.has(s.mesh)){let e=x.CreateSphere(`flow-target-${s.mesh}`,{diameter:.2*P,segments:7},z);e.position=L;let a=c.clone(`flow-target-mat-${s.mesh}`);a.alpha=C.has(s.mesh)||t===d&&n===d?1:.22,e.material=a,e.isPickable=!0,e.metadata={hoverLabel:s.mesh},k.add(s.mesh),M.push(e,a)}let N=S.add(L).scale(.5),q=N.subtract(j),A=Math.sqrt(q.x*q.x+q.y*q.y+q.z*q.z),E=A>1e-6?q.x/A:0,O=A>1e-6?q.y/A:1,Z=A>1e-6?q.z/A:0,T=(.35+s.count/r*.75)*P,F=new m(N.x+E*T,N.y+O*T+.12*P,N.z+Z*T),V=[];for(let e=0;e<=18;e++){let t=e/18,n=1-t;V.push(new m(n*n*S.x+2*n*t*F.x+t*t*L.x,n*n*S.y+2*n*t*F.y+t*t*L.y,n*n*S.z+2*n*t*F.z+t*t*L.z))}let W=s.count/r,[X,H,D]=(0,o.heatRgb)(W),U=x.CreateTube(`flow-link-${s.mesh}-${e}`,{path:V,radius:(l?1:.4)*(.012+.04*W)*P,tessellation:8,cap:0,sideOrientation:0},z),K=new v(`flow-link-mat-${s.mesh}-${e}`,z);K.disableLighting=!0,K.emissiveColor=new g(X,H,D),K.alpha=l?.35+.65*W:.08,U.material=K,U.isPickable=!0,U.metadata={hoverLabel:s.mesh},M.push(U,K)}let B=s?.origin;if(B){let e=new m(B[0],B[1],B[2]),t=x.CreateSphere("flow-standpoint",{diameter:.26*P,segments:10},z);t.position=e;let n=new v("flow-standpoint-mat",z);n.disableLighting=!0,n.emissiveColor=new g(.95,.45,.95),t.material=n,t.isPickable=!1;let s=x.CreateLines("flow-standpoint-stem",{points:[e,new m(e.x,j.y,e.z)]},z);s.color=new g(.95,.45,.95),s.isPickable=!1,M.push(t,n,s)}};ex.current=S,S()}j.runRenderLoop(()=>z.render());let y=()=>j.resize();window.addEventListener("resize",y);let $=(0,u.attachMeshHover)(z,t,V),P=(0,r.attachDoubleClickFocus)(z,t,a);B("ready"),s=()=>{window.removeEventListener("resize",y),$(),P(),V(null),ex.current=null,I.current=null,C.current=null,_(),z.dispose(),j.dispose()}}catch(e){if(n)return;B("error"),S(e instanceof Error?e.message:"Failed to render flow links.")}})(),()=>{n=!0,s?.()}},[et,w,ev]),(0,n.useEffect)(()=>{ex.current?.()},[es,ee,j,L,q,E,Q]),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("canvas",{ref:$,className:"aspect-video w-full rounded-lg border border-edge bg-ink"}),F?(0,t.jsx)("div",{className:"pointer-events-none absolute z-10 max-w-[16rem] truncate rounded border border-edge bg-ink/90 px-1.5 py-0.5 text-xs text-white shadow backdrop-blur",style:{left:F.x+12,top:F.y+12},children:F.label}):null,"ready"===P?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"absolute left-3 top-3 flex flex-wrap gap-2",children:[J?(0,t.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-edge bg-ink/80 p-0.5 text-xs backdrop-blur",children:[(0,t.jsx)(k,{active:!et,onClick:()=>T("aggregate"),children:"Aggregate"}),(0,t.jsx)(k,{active:et,onClick:()=>T("twostage"),children:"Two-stage"})]}):null,U?(0,t.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-edge bg-ink/80 p-0.5 text-xs backdrop-blur",children:[(0,t.jsx)(k,{active:"first-person"===W,onClick:()=>X("first-person"),children:"Walk"}),(0,t.jsx)(k,{active:"viewer"===W,onClick:()=>X("viewer"),disabled:y,title:y?"Orbit (viewer) flow isn't available for walkable scenes":void 0,children:"Orbit"}),(0,t.jsx)(k,{active:"all"===W,onClick:()=>X("all"),children:"All"})]}):null,J?(0,t.jsx)(g,{label:"Standpoint",value:E,onChange:O,allLabel:"All standpoints",options:er}):null,(0,t.jsx)(g,{label:et?"Gaze":"Source",value:q,onChange:A,allLabel:et?"All gaze sectors":"All sources",options:eu}),(0,t.jsx)(g,{label:"Mesh",value:L,onChange:N,allLabel:"All meshes",options:ec})]}),et?(0,t.jsx)(x,{standpoints:G,proxyMeshes:j,selectedKey:E,onSelect:e=>O(t=>t===e?d:e)}):null,(0,t.jsxs)("div",{className:"pointer-events-none absolute bottom-3 right-3 flex max-w-[20rem] flex-col items-end gap-2",children:[U&&!y?(0,t.jsxs)("div",{className:"rounded-md border border-edge bg-ink/80 px-2 py-1 text-xs text-fg-muted backdrop-blur",children:["Orbit-dominated scene — viewer ",(0,t.jsx)("em",{children:"position"})," adds little here. Use the"," ",(0,t.jsx)("strong",{children:"View dome"})," (§7.5) above for where viewers looked."]}):null,(0,t.jsxs)("div",{className:"rounded-md border border-edge bg-ink/80 px-2 py-1 text-xs text-fg backdrop-blur",children:["Active links: ",el,"/",eo]})]}),(0,t.jsx)(h.ZoomButtons,{onZoom:e=>I.current&&(0,r.stepZoom)(I.current,e),onReset:()=>I.current&&C.current&&(0,r.resetFocus)(I.current,C.current)}),(0,t.jsx)(c.HeatLegend,{title:"Flow volume",lowLabel:"fewer links",highLabel:"dominant links",note:et?"Three columns: standpoint → gaze sector → mesh. Top standpoints/meshes are kept; the tail folds into an “Other” node. Pick a standpoint (or click the minimap), gaze sector, or mesh to emphasize matching ribbons.":"Each arc aggregates clicks from one camera-direction bin to a mesh. Pick a source or mesh to emphasize matching links and dim the rest."})]}):(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 grid place-items-center text-sm text-fg-muted",children:"loading"===P?"Rendering…":"empty"===P?"No aggregate flow links in range.":"error"===P?R??"Flow view unavailable.":null})]})}],19399)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,25346,s=>{s.v(t=>Promise.all(["static/chunks/43v4y2gu5z9_h.js","static/chunks/0q75860p8u_ii.js","static/chunks/1vrpzlif-z_p0.js","static/chunks/2701xfv_07wz_.js","static/chunks/0nhljhguceh66.js","static/chunks/2bettxaqt3d2p.js","static/chunks/0xa9dyg6ezzyd.js","static/chunks/2apnpj0-fs9ks.js","static/chunks/08lvtnv7b1cxp.js","static/chunks/3zkwt0gybqtgm.js","static/chunks/2ofwtw6p08sfz.js","static/chunks/36enkx1skkv2-.js","static/chunks/3rlp9yr75liz7.js"].map(t=>s.l(t))).then(()=>t(61238)))},38033,s=>{s.v(t=>Promise.all(["static/chunks/1gfz3sxwkkg3d.js","static/chunks/2w2k1gveljyb7.js","static/chunks/2fsde0jwi5qtt.js","static/chunks/0q75860p8u_ii.js","static/chunks/2701xfv_07wz_.js","static/chunks/0xa9dyg6ezzyd.js","static/chunks/2ofwtw6p08sfz.js","static/chunks/36enkx1skkv2-.js","static/chunks/38xdo3cifphut.js"].map(t=>s.l(t))).then(()=>t(47392)))},8179,s=>{s.v(t=>Promise.all(["static/chunks/1vrpzlif-z_p0.js","static/chunks/3d-i_skta_wes.js","static/chunks/0q75860p8u_ii.js","static/chunks/2ofwtw6p08sfz.js","static/chunks/0nhljhguceh66.js","static/chunks/03bd5plut08tg.js","static/chunks/2701xfv_07wz_.js","static/chunks/36enkx1skkv2-.js","static/chunks/0xa9dyg6ezzyd.js","static/chunks/08lvtnv7b1cxp.js"].map(t=>s.l(t))).then(()=>t(86790)))},45852,s=>{s.v(t=>Promise.all(["static/chunks/0u85f0dhb4i8e.js","static/chunks/2ydub0t01728d.js","static/chunks/0q75860p8u_ii.js","static/chunks/0fxdyvb1w23d1.js","static/chunks/0xa9dyg6ezzyd.js","static/chunks/08lvtnv7b1cxp.js","static/chunks/0e7nlxmneb2j_.js","static/chunks/36enkx1skkv2-.js","static/chunks/0fxhc24djjcgq.js"].map(t=>s.l(t))).then(()=>t(69260)))},19257,s=>{s.v(t=>Promise.all(["static/chunks/15jlgfcaeaki9.js","static/chunks/1pgs-98tfkq9_.js","static/chunks/0q75860p8u_ii.js","static/chunks/36enkx1skkv2-.js","static/chunks/0lbs5xdyjuzuo.js","static/chunks/2701xfv_07wz_.js"].map(t=>s.l(t))).then(()=>t(33738)))},76269,s=>{s.v(t=>Promise.all(["static/chunks/1ncqwe81t_9_x.js","static/chunks/3ksq69yq-40_r.js","static/chunks/1vrpzlif-z_p0.js","static/chunks/2701xfv_07wz_.js","static/chunks/0q75860p8u_ii.js","static/chunks/2w_ptlw-ad8-9.js","static/chunks/1f2mna0k5efeq.js","static/chunks/36enkx1skkv2-.js","static/chunks/08lvtnv7b1cxp.js","static/chunks/03bd5plut08tg.js","static/chunks/0nhljhguceh66.js","static/chunks/2apnpj0-fs9ks.js","static/chunks/0xa9dyg6ezzyd.js"].map(t=>s.l(t))).then(()=>t(37719)))},69819,s=>{s.v(t=>Promise.all(["static/chunks/1gr35qeguuws0.js","static/chunks/36enkx1skkv2-.js","static/chunks/0q75860p8u_ii.js"].map(t=>s.l(t))).then(()=>t(81591)))},67116,s=>{s.v(t=>Promise.all(["static/chunks/0p6z73afb9dj2.js","static/chunks/1vrpzlif-z_p0.js","static/chunks/0lep3_bqwfuin.js","static/chunks/0xvrfvur0p534.js","static/chunks/0nhljhguceh66.js","static/chunks/2q6l-xdqzgmpf.js","static/chunks/1d9it6yocgt54.js","static/chunks/0q75860p8u_ii.js","static/chunks/08lvtnv7b1cxp.js","static/chunks/2apnpj0-fs9ks.js","static/chunks/2701xfv_07wz_.js","static/chunks/36enkx1skkv2-.js","static/chunks/21kfpd_bityxt.js","static/chunks/03bd5plut08tg.js","static/chunks/2ofwtw6p08sfz.js","static/chunks/3zkwt0gybqtgm.js","static/chunks/0xa9dyg6ezzyd.js"].map(t=>s.l(t))).then(()=>t(36995)))},32502,s=>{s.v(t=>Promise.all(["static/chunks/44cer242u-f8v.js","static/chunks/1vrpzlif-z_p0.js","static/chunks/0q75860p8u_ii.js","static/chunks/0nhljhguceh66.js","static/chunks/36enkx1skkv2-.js","static/chunks/08lvtnv7b1cxp.js","static/chunks/2701xfv_07wz_.js","static/chunks/03bd5plut08tg.js","static/chunks/0xa9dyg6ezzyd.js"].map(t=>s.l(t))).then(()=>t(13455)))},19397,s=>{s.v(t=>Promise.all(["static/chunks/2eqbsut829r5l.js","static/chunks/0lep3_bqwfuin.js","static/chunks/1vrpzlif-z_p0.js","static/chunks/1cyq7i39885sl.js","static/chunks/1d9it6yocgt54.js","static/chunks/1ntqovuz2c217.js","static/chunks/2w_ptlw-ad8-9.js","static/chunks/1a2ouhup611bz.js","static/chunks/01vov6inx1zzt.js","static/chunks/2ofwtw6p08sfz.js","static/chunks/0q75860p8u_ii.js","static/chunks/1f2mna0k5efeq.js","static/chunks/1-ogak5u00kwa.js","static/chunks/2apnpj0-fs9ks.js","static/chunks/3zkwt0gybqtgm.js","static/chunks/42gcpy51w7lk1.js","static/chunks/2f3_mzxjh3gso.js","static/chunks/3i239y-1hbkm-.js","static/chunks/0nhljhguceh66.js","static/chunks/0xa9dyg6ezzyd.js","static/chunks/2q6l-xdqzgmpf.js","static/chunks/08lvtnv7b1cxp.js","static/chunks/38xdo3cifphut.js","static/chunks/03bd5plut08tg.js","static/chunks/36enkx1skkv2-.js","static/chunks/3cj_6sl9kr3e9.js","static/chunks/118qlrzdwpfmo.js","static/chunks/03sn4419dam-h.js","static/chunks/0boov9mwycanf.js"].map(t=>s.l(t))).then(()=>t(16952)))},3633,s=>{s.v(t=>Promise.all(["static/chunks/017pn-pen381_.js","static/chunks/36enkx1skkv2-.js"].map(t=>s.l(t))).then(()=>t(97900)))}]);
|