@uptimizr/dashboard 0.4.7 → 0.4.8
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 +9 -9
- package/out/__next._full.txt +10 -10
- package/out/__next._tree.txt +1 -1
- package/out/_next/static/chunks/{209sxygecny37.js → 0-6mdj5wxsfid.js} +1 -1
- package/out/_next/static/chunks/{0ybs1u66q26su.js → 0-qthfqvm1jyj.js} +1 -1
- package/out/_next/static/chunks/01viyuclp2gm9.js +1 -0
- package/out/_next/static/chunks/02aym4t2hgo5c.js +1 -0
- package/out/_next/static/chunks/02ic9b5ejugow.js +1 -0
- package/out/_next/static/chunks/03p70i4c7qt0v.js +1 -0
- package/out/_next/static/chunks/{33i36o_l69sm5.js → 03pjr-ivdicng.js} +1 -1
- package/out/_next/static/chunks/041a06-lxipy5.js +1 -0
- package/out/_next/static/chunks/{1zm6eo861i3c8.js → 06dzkwetqis-5.js} +1 -1
- package/out/_next/static/chunks/{3ipx7xbxchsq9.js → 06kvanz5-fo52.js} +1 -1
- package/out/_next/static/chunks/07y8ke_iy59dn.js +1 -0
- package/out/_next/static/chunks/09jukc-4jl735.js +1 -0
- package/out/_next/static/chunks/{35sne1llxnc-m.js → 09khmdgez3t0a.js} +18 -18
- package/out/_next/static/chunks/{02qk_wmkf9at-.js → 0_dca4876jshu.js} +38 -38
- package/out/_next/static/chunks/0axcgnl5qzr6e.js +1 -0
- package/out/_next/static/chunks/0ay4fjomijs3n.js +1 -0
- package/out/_next/static/chunks/0c7fy79wlccat.js +1 -0
- package/out/_next/static/chunks/0cqe4-l3imct3.js +1 -0
- package/out/_next/static/chunks/0cssvelju788j.js +1 -0
- package/out/_next/static/chunks/{0-_j1khfoib6l.js → 0ctain5xq2wsd.js} +12 -12
- package/out/_next/static/chunks/{22yqh0zlo_vwr.js → 0df-dr3otg_4w.js} +1 -1
- package/out/_next/static/chunks/{26y9sv8_-ykxf.js → 0endw997j7ao9.js} +1 -1
- package/out/_next/static/chunks/0ev_pbit1v_qg.js +1 -0
- package/out/_next/static/chunks/0eyw9oiwipywb.js +1 -0
- package/out/_next/static/chunks/0fkzbuo1tex4u.js +1 -0
- package/out/_next/static/chunks/0govas0u0t4w3.js +1 -0
- package/out/_next/static/chunks/{0grasqqf5dw7r.js → 0guzhnususp3-.js} +2 -2
- package/out/_next/static/chunks/0h7bq_ysu17q7.js +3 -0
- package/out/_next/static/chunks/0hneh_3xzlo28.js +1 -0
- package/out/_next/static/chunks/0iaqwme19z_0s.js +1 -0
- package/out/_next/static/chunks/0ibmar10xndpn.js +1 -0
- package/out/_next/static/chunks/0ii8mqoteppgh.js +11 -0
- package/out/_next/static/chunks/{1uh9zgsy69g92.js → 0ip6v64di_l6x.js} +1 -1
- package/out/_next/static/chunks/{267prao6fyt22.js → 0ixymgjgz3grn.js} +10 -10
- package/out/_next/static/chunks/0kuah8g7lt5ox.js +1 -0
- package/out/_next/static/chunks/0l3k4j19vxm17.js +1 -0
- package/out/_next/static/chunks/0l6hg0ohwh9-m.js +1 -0
- package/out/_next/static/chunks/0m4um4ylhlfan.js +1 -0
- package/out/_next/static/chunks/0mj837d4h0ddq.js +1 -0
- package/out/_next/static/chunks/0nyn-f4905o91.js +1 -0
- package/out/_next/static/chunks/0og6i9rsgkuif.js +1 -0
- package/out/_next/static/chunks/0os1x-fxzgnxs.js +1 -0
- package/out/_next/static/chunks/0otnra7mp0hog.js +1 -0
- package/out/_next/static/chunks/{1gttu-n9am66k.js → 0oyf2xzv8ofkk.js} +21 -21
- package/out/_next/static/chunks/0qvsy3gcqjm12.js +1 -0
- package/out/_next/static/chunks/{1qg1l7t00nyib.js → 0rl4ddh2vgxyl.js} +14 -14
- package/out/_next/static/chunks/0rwpttmsmqvn_.js +1 -0
- package/out/_next/static/chunks/0so3wjp9ch93y.js +1 -0
- package/out/_next/static/chunks/{43fp64xnfy646.js → 0te4g160_rb5d.js} +1 -1
- package/out/_next/static/chunks/0uby-zvu799ef.js +1 -0
- package/out/_next/static/chunks/{3h6akt2uu05ku.js → 0uvn0op2mlr2u.js} +12 -12
- package/out/_next/static/chunks/0vwj4hxjm0igv.js +1 -0
- package/out/_next/static/chunks/{1m9zc5gm-327d.js → 0w7c30w07uct2.js} +10 -10
- package/out/_next/static/chunks/0wm38z3u2133a.js +1 -0
- package/out/_next/static/chunks/0y7yk5al7_p8q.js +4 -0
- package/out/_next/static/chunks/0ycr0gi6fn6bt.js +1 -0
- package/out/_next/static/chunks/0ywvahq9t0tki.js +1 -0
- package/out/_next/static/chunks/0zh6nslagkby-.js +1 -0
- package/out/_next/static/chunks/{3vbamaoiuk9yj.js → 0zo8xa0nej3ex.js} +1 -1
- package/out/_next/static/chunks/{2of8q0kaeqpf0.js → 0zsir95gpf3xw.js} +1 -1
- package/out/_next/static/chunks/0zu6ryyj0ig-j.js +3 -0
- package/out/_next/static/chunks/{2c721vfva711t.js → 1-jv8k10q_1uw.js} +1 -1
- package/out/_next/static/chunks/1-s5ioie9a94e.js +1 -0
- package/out/_next/static/chunks/{13zcn4lv0qj76.js → 1-yos1h0qws5e.js} +11 -11
- package/out/_next/static/chunks/10o7brc3x027r.js +1 -0
- package/out/_next/static/chunks/{060iult6f68_e.js → 10pae4gb9i929.js} +29 -29
- package/out/_next/static/chunks/13p93itm8a3ym.js +1 -0
- package/out/_next/static/chunks/{0btmk0wmekl02.js → 147s8i_lktp4_.js} +2 -2
- package/out/_next/static/chunks/{3njwfothmmg7u.js → 14tgo5xt_3j4w.js} +1 -1
- package/out/_next/static/chunks/1699hx-vlak0n.js +22 -0
- package/out/_next/static/chunks/16d6n9e77rqti.js +1 -0
- package/out/_next/static/chunks/{3zs7l4362msjd.js → 16f3d5dv83rsr.js} +1 -1
- package/out/_next/static/chunks/16i_tpwn_cmr-.js +1 -0
- package/out/_next/static/chunks/{1by60_b14x-3o.js → 16rfr165nbha0.js} +1 -1
- package/out/_next/static/chunks/{0zqgq0lwtz9tn.js → 16sl51pvzo4tf.js} +1 -1
- package/out/_next/static/chunks/{2n-pveub8b_5t.js → 1760s-32qpwgg.js} +1 -1
- package/out/_next/static/chunks/{1u8snlm6a7uhi.js → 18kq07c5xy_4g.js} +4 -4
- package/out/_next/static/chunks/{1rcdimhu0qhlu.js → 190tbzt861ao3.js} +39 -39
- package/out/_next/static/chunks/19bhv6cupnnyj.js +1 -0
- package/out/_next/static/chunks/1_14pn2wwebxy.js +1 -0
- package/out/_next/static/chunks/{3huu0tqmxwowu.js → 1_kikmeubh0wq.js} +30 -30
- package/out/_next/static/chunks/1ay3z6agelsvz.js +1 -0
- package/out/_next/static/chunks/1b-fi3bfmpe31.js +1 -0
- package/out/_next/static/chunks/1bae3tqv53x9_.js +1 -0
- package/out/_next/static/chunks/1bf421g4peccx.js +2 -0
- package/out/_next/static/chunks/1bfony5qsc5tp.js +1 -0
- package/out/_next/static/chunks/{1e8_jl2cxd3rp.js → 1ddt0ot7kl8vq.js} +40 -40
- package/out/_next/static/chunks/1emz2vjkgck4z.js +1 -0
- package/out/_next/static/chunks/1eogzzw8i1wsg.js +1 -0
- package/out/_next/static/chunks/{2apihn9ra2ufp.js → 1g9p2h1-31q8o.js} +1 -1
- package/out/_next/static/chunks/1gcz1k1v1woca.js +1 -0
- package/out/_next/static/chunks/{3v-0c2aj6c0on.js → 1h8lyicgqhpxa.js} +1 -1
- package/out/_next/static/chunks/{3772oce1n3t_g.js → 1hot663akaepl.js} +1 -1
- package/out/_next/static/chunks/1i7pgl3ks5ye0.js +1 -0
- package/out/_next/static/chunks/{2sys9nj8lo3uk.js → 1i8sk_qgpdjhs.js} +1 -1
- package/out/_next/static/chunks/{30bhz7czzs4mf.js → 1kk3ct7pkpf3b.js} +1 -1
- package/out/_next/static/chunks/{33hp-khdfohdq.js → 1kq9o8del67le.js} +1 -1
- package/out/_next/static/chunks/{3d-i_skta_wes.js → 1l7tzyx2mumlq.js} +1 -1
- package/out/_next/static/chunks/1n_uwed9o--go.js +1 -0
- package/out/_next/static/chunks/1o351eldttogn.js +1 -0
- package/out/_next/static/chunks/1ogs4_aj84bfn.js +1 -0
- package/out/_next/static/chunks/{0sw-8gxbg4x0l.js → 1p206txlluipi.js} +18 -18
- package/out/_next/static/chunks/1p2bt1w845v6c.js +1 -0
- package/out/_next/static/chunks/1p3rgz4aef1gk.js +1 -0
- package/out/_next/static/chunks/{41b5gpyqbj58m.js → 1qcgdx9yl0gfx.js} +4 -4
- package/out/_next/static/chunks/1ql3mm2w5r-m8.js +1 -0
- package/out/_next/static/chunks/1qvcyuyshi3ll.js +53 -0
- package/out/_next/static/chunks/1r0yyg5a_0knc.js +1 -0
- package/out/_next/static/chunks/{15o4_2t-l3rj5.js → 1sa6qiidtcyk2.js} +1 -1
- package/out/_next/static/chunks/1t-9vrdrsi8le.js +1 -0
- package/out/_next/static/chunks/{1rlfg62jxqj3z.js → 1t97zo0tlpbnz.js} +1 -1
- package/out/_next/static/chunks/1te2tinzqnwck.js +1 -0
- package/out/_next/static/chunks/{3sa_hlx3konc7.js → 1trt-m2nrck0v.js} +1 -1
- package/out/_next/static/chunks/1ty9jpwr3o_st.js +1 -0
- package/out/_next/static/chunks/1u6w6veke8rze.js +1 -0
- package/out/_next/static/chunks/1u900urmrbv73.js +1 -0
- package/out/_next/static/chunks/{3_dgblylldcgb.js → 1vz2gd8k74lpi.js} +1 -1
- package/out/_next/static/chunks/1wkpl9bfb0wn7.js +1 -0
- package/out/_next/static/chunks/1wrly9a9c3teq.js +1 -0
- package/out/_next/static/chunks/1x0m05155yy4e.js +1 -0
- package/out/_next/static/chunks/{3xl-op0hwxytg.js → 1xf1wfow43ekc.js} +5 -5
- package/out/_next/static/chunks/1y10o40v9odam.js +1 -0
- package/out/_next/static/chunks/{2s6kpclh6ie7o.js → 1y_zykt3fpen4.js} +29 -29
- package/out/_next/static/chunks/1ye6xtbm16pg4.js +1 -0
- package/out/_next/static/chunks/{1t5oynmttpfsw.js → 1z6_57k5h31u7.js} +1 -1
- package/out/_next/static/chunks/{0lep3_bqwfuin.js → 1zboqft0h6mop.js} +1 -1
- package/out/_next/static/chunks/{43v4y2gu5z9_h.js → 1zr3c351x0ri5.js} +1 -1
- package/out/_next/static/chunks/2-5p2lcedvrli.js +1 -0
- package/out/_next/static/chunks/206hxrq60f1_e.js +1 -0
- package/out/_next/static/chunks/20r05k3-studj.js +1 -0
- package/out/_next/static/chunks/22gs24kj2du56.js +1 -0
- package/out/_next/static/chunks/22x5pd1gyp7sf.js +1 -0
- package/out/_next/static/chunks/{2a07so920b6aa.js → 22z-2t_yp1jzs.js} +1 -1
- package/out/_next/static/chunks/{30n4y_uu8chbh.js → 23hmfdw6z5zfy.js} +30 -30
- package/out/_next/static/chunks/23y1krqnc-8sm.js +1 -0
- package/out/_next/static/chunks/{3f8qelpscqfym.js → 24tbkj1qkux88.js} +2 -2
- package/out/_next/static/chunks/{2ao-3jzz7yw3p.js → 26cmri51v7497.js} +11 -11
- package/out/_next/static/chunks/27jalbk9zu-2b.js +1 -0
- package/out/_next/static/chunks/285d2s9096ryc.js +1 -0
- package/out/_next/static/chunks/296ykep2nvppv.js +1 -0
- package/out/_next/static/chunks/29nehg5cal-ug.js +1 -0
- package/out/_next/static/chunks/2_a56_k3x7to6.js +1 -0
- package/out/_next/static/chunks/2a-0l6eb1blh3.js +4 -0
- package/out/_next/static/chunks/{3qn6r8-0u6dij.js → 2a31-txop1jzg.js} +38 -38
- package/out/_next/static/chunks/2bse5vll1o-x0.js +1 -0
- package/out/_next/static/chunks/2ct40spu9wfj7.js +1 -0
- package/out/_next/static/chunks/{2kok6zedeeltw.js → 2ept01b7t-e03.js} +1 -1
- package/out/_next/static/chunks/{3w59kt5ztyvoq.js → 2ey5dqelco_g5.js} +1 -1
- package/out/_next/static/chunks/2fd_009hw7y0m.js +1 -0
- package/out/_next/static/chunks/{0fd-0i1yt23kz.js → 2ftz9kaxrsgxh.js} +1 -1
- package/out/_next/static/chunks/2gefdnozflr7p.js +1 -0
- package/out/_next/static/chunks/{2izok2otbk8-2.js → 2gs-u1n5uv7iz.js} +37 -37
- package/out/_next/static/chunks/{2r96kyeehsji9.js → 2hizqql79u-54.js} +1 -1
- package/out/_next/static/chunks/2iqf2dpdg_vfl.js +1 -0
- package/out/_next/static/chunks/2j7z127s_ycjd.js +1 -0
- package/out/_next/static/chunks/2kax7uslfxdnx.js +31 -0
- package/out/_next/static/chunks/2lh_w9rzy3vek.js +1 -0
- package/out/_next/static/chunks/{0rracz73p38mo.js → 2ln1na26qwp-3.js} +9 -9
- package/out/_next/static/chunks/2n08l1q5o_27e.js +1 -0
- package/out/_next/static/chunks/2n7268gyd9z-6.js +1 -0
- package/out/_next/static/chunks/2nq9cgjmtqwvp.js +1 -0
- package/out/_next/static/chunks/{005bbq_px7lke.js → 2oj8qc_pv14nk.js} +2 -2
- package/out/_next/static/chunks/2q24e72-olbe8.js +1 -0
- package/out/_next/static/chunks/2qc4hscs26cro.js +1 -0
- package/out/_next/static/chunks/{0gf-ztg86zd80.js → 2qe46redkqhfg.js} +1 -1
- package/out/_next/static/chunks/2qmfe0mqw150h.js +1 -0
- package/out/_next/static/chunks/2qtc0nbl_521e.js +1 -0
- package/out/_next/static/chunks/{0e1jfrmioeuws.js → 2rofu6gu1xzuq.js} +1 -1
- package/out/_next/static/chunks/2tdi94rkq739i.js +1 -0
- package/out/_next/static/chunks/2u_2sacqa9xa7.js +1 -0
- package/out/_next/static/chunks/2ujqz6088shm5.js +1 -0
- package/out/_next/static/chunks/{1l_3oidssbhns.js → 2urh9qafp3fiw.js} +17 -17
- package/out/_next/static/chunks/{05v-nubi896jg.js → 2v06n4z8wsmn9.js} +1 -1
- package/out/_next/static/chunks/2vp-5skbk1nfu.js +1 -0
- package/out/_next/static/chunks/2vu973j_n6cpx.js +1 -0
- package/out/_next/static/chunks/{37cnbm5ft1mqf.js → 2wwra56rehfcj.js} +1 -1
- package/out/_next/static/chunks/2xpwr97h2asal.js +1 -0
- package/out/_next/static/chunks/3000-0b8n9t_2.js +1 -0
- package/out/_next/static/chunks/30t3203d7p2da.js +1 -0
- package/out/_next/static/chunks/31kto7-dxkt3z.js +1 -0
- package/out/_next/static/chunks/{2lsvk7xcfkarc.js → 32oflcl79d8mu.js} +1 -1
- package/out/_next/static/chunks/32ovg81ae0l03.js +1 -0
- package/out/_next/static/chunks/{0z9erbl3llr_b.js → 331kthnvoma7n.js} +16 -16
- package/out/_next/static/chunks/{0q75860p8u_ii.js → 337kn1mn34rc6.js} +1 -1
- package/out/_next/static/chunks/{2tc3e-iqv71y_.js → 33xug8kf0-a1o.js} +1 -1
- package/out/_next/static/chunks/{1-ogak5u00kwa.js → 34dcb7_flbrvo.js} +1 -1
- package/out/_next/static/chunks/34zotyeqrz_nq.js +1 -0
- package/out/_next/static/chunks/351wsmi75l8db.js +1 -0
- package/out/_next/static/chunks/{15jlgfcaeaki9.js → 36yv-ialtpx98.js} +1 -1
- package/out/_next/static/chunks/37hwasxtee5e0.js +1 -0
- package/out/_next/static/chunks/37t0iclgxes05.js +1 -0
- package/out/_next/static/chunks/{1q4lkgxfnqnew.js → 37xnvnx1jxfaf.js} +1 -1
- package/out/_next/static/chunks/{2z_iab7ozohhq.js → 38w74ixqt-9co.js} +16 -16
- package/out/_next/static/chunks/{2h249uvhh2sij.js → 39t2x_9zd2rst.js} +10 -10
- package/out/_next/static/chunks/{0thw099xk3_0p.js → 39v73timmzwny.js} +2 -2
- package/out/_next/static/chunks/{2n3xu_wbvtj7h.js → 3_xqc3658d8sw.js} +12 -12
- package/out/_next/static/chunks/3ba8eudvlczwe.js +1 -0
- package/out/_next/static/chunks/{2q6l-xdqzgmpf.js → 3buezhxqc8n6n.js} +1 -1
- package/out/_next/static/chunks/{1zt1xxovnjhkm.js → 3c5iwwj-fhbue.js} +1 -1
- package/out/_next/static/chunks/{2urx6fow8c8c9.js → 3d8ot2tw6yqfq.js} +12 -12
- package/out/_next/static/chunks/3dc057ffe7ij-.js +1 -0
- package/out/_next/static/chunks/3djnlzwj9869o.js +1 -0
- package/out/_next/static/chunks/{2y8i7_nxm4r05.js → 3fuqxjjf8o1v9.js} +5 -5
- package/out/_next/static/chunks/{0z004fn14pbcu.js → 3gt6rzg9qw-an.js} +1 -1
- package/out/_next/static/chunks/{1tgj55b305g4h.js → 3h_05w5j8x538.js} +1 -1
- package/out/_next/static/chunks/{3j9xvdz55bi4p.js → 3hkhd1_k8xohv.js} +33 -33
- package/out/_next/static/chunks/{42ymanq326mo7.js → 3ijcc5tfisfnj.js} +1 -1
- package/out/_next/static/chunks/3j0dbpd9zop3p.js +1 -0
- package/out/_next/static/chunks/{1zkd8v-qka--j.js → 3ju83xk-ca7ma.js} +21 -21
- package/out/_next/static/chunks/3jxhl4apmhbm1.js +13 -0
- package/out/_next/static/chunks/{302qk2fjdrthp.js → 3la99oz_0p0r6.js} +5 -5
- package/out/_next/static/chunks/3n1b34fd5fdrh.js +1 -0
- package/out/_next/static/chunks/{2j120dkh7q3uf.js → 3nq_hq4x3rn3r.js} +1 -1
- package/out/_next/static/chunks/3pgb1kkqrdl9t.js +1 -0
- package/out/_next/static/chunks/3pik_-jj-zkfl.js +1 -0
- package/out/_next/static/chunks/{2w99knknr5i8c.js → 3q38kdbzd2nbd.js} +1 -1
- package/out/_next/static/chunks/3q5zl4ks17au2.js +1 -0
- package/out/_next/static/chunks/{2uo6vm7mfgrbf.js → 3qr10445lte-n.js} +1 -1
- package/out/_next/static/chunks/3r-8bnguvxsyo.js +1 -0
- package/out/_next/static/chunks/3sg56j8boe-3o.js +1 -0
- package/out/_next/static/chunks/{2q8yg63br2jc9.js → 3u7zj1-jdg781.js} +1 -1
- package/out/_next/static/chunks/{32_c4mbb6j1l6.js → 3wj5dmf6cywz8.js} +22 -22
- package/out/_next/static/chunks/{3oqxl46ukaojj.js → 3wr_oijfsq8lr.js} +11 -11
- package/out/_next/static/chunks/3xu0dh1ikzwj2.js +1 -0
- package/out/_next/static/chunks/3y5tpixt23-fl.js +1 -0
- package/out/_next/static/chunks/40gjf-_jt8upu.js +5 -0
- package/out/_next/static/chunks/41f12o_5lf-i9.js +1 -0
- package/out/_next/static/chunks/42ma8lqduohlc.js +1 -0
- package/out/_next/static/chunks/{0ai0zgbgjqb92.js → 43usshq2nc125.js} +1 -1
- package/out/_next/static/chunks/{0hajwk2yd-rwr.js → 44bl4ufopbmyh.js} +1 -1
- package/out/_next/static/chunks/44iutzkw9r21x.js +1 -0
- package/out/_next/static/chunks/turbopack-1xrxa3noq196-.js +1 -0
- package/out/_not-found/__next._full.txt +8 -8
- package/out/_not-found/__next._not-found.__PAGE__.txt +7 -7
- package/out/_not-found/__next._tree.txt +1 -1
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +8 -8
- package/out/index.html +1 -1
- package/out/index.txt +10 -10
- package/package.json +9 -9
- package/out/_next/static/chunks/00fbhtmui-yxg.js +0 -1
- package/out/_next/static/chunks/017pn-pen381_.js +0 -1
- package/out/_next/static/chunks/01vov6inx1zzt.js +0 -1
- package/out/_next/static/chunks/03bd5plut08tg.js +0 -1
- package/out/_next/static/chunks/03dwfqmo73w_z.js +0 -1
- package/out/_next/static/chunks/03sn4419dam-h.js +0 -5
- package/out/_next/static/chunks/05ere0-228syf.js +0 -1
- package/out/_next/static/chunks/05h8u5lrypn5m.js +0 -1
- package/out/_next/static/chunks/05z79zh625ezu.js +0 -1
- package/out/_next/static/chunks/08lvtnv7b1cxp.js +0 -1
- package/out/_next/static/chunks/0_v2luu_qmeid.js +0 -1
- package/out/_next/static/chunks/0boov9mwycanf.js +0 -1
- package/out/_next/static/chunks/0d8x8m2x6ca_m.js +0 -1
- package/out/_next/static/chunks/0dmrdrwtd093b.js +0 -1
- package/out/_next/static/chunks/0e7nlxmneb2j_.js +0 -1
- package/out/_next/static/chunks/0es97pusfxupl.js +0 -1
- package/out/_next/static/chunks/0fxdyvb1w23d1.js +0 -1
- package/out/_next/static/chunks/0fxhc24djjcgq.js +0 -1
- package/out/_next/static/chunks/0hk1wg7h4araz.js +0 -1
- package/out/_next/static/chunks/0j74ipw4fps-n.js +0 -1
- package/out/_next/static/chunks/0kj-vckdn7t5p.js +0 -1
- package/out/_next/static/chunks/0lbs5xdyjuzuo.js +0 -1
- package/out/_next/static/chunks/0mp0jh1gj7290.js +0 -1
- package/out/_next/static/chunks/0ngpoj2g5i4kz.js +0 -1
- package/out/_next/static/chunks/0nhljhguceh66.js +0 -1
- package/out/_next/static/chunks/0p6z73afb9dj2.js +0 -1
- package/out/_next/static/chunks/0p9zfmidzqkps.js +0 -1
- package/out/_next/static/chunks/0sx-6rf3eteqn.js +0 -1
- package/out/_next/static/chunks/0u85f0dhb4i8e.js +0 -1
- package/out/_next/static/chunks/0uk7kigzm4vi2.js +0 -31
- package/out/_next/static/chunks/0ulufxnsrou61.js +0 -1
- package/out/_next/static/chunks/0xa9dyg6ezzyd.js +0 -2
- package/out/_next/static/chunks/0xvrfvur0p534.js +0 -1
- package/out/_next/static/chunks/0ydfhk-p6zvm0.js +0 -1
- package/out/_next/static/chunks/0zcsxvcvog9ue.js +0 -1
- package/out/_next/static/chunks/10_5p5-xf2aoo.js +0 -1
- package/out/_next/static/chunks/118qlrzdwpfmo.js +0 -1
- package/out/_next/static/chunks/11km5p4gd0ut4.js +0 -1
- package/out/_next/static/chunks/120rl4l29q9xs.js +0 -1
- package/out/_next/static/chunks/129m5i93ltoym.js +0 -1
- package/out/_next/static/chunks/12n73o884lyyl.js +0 -1
- package/out/_next/static/chunks/175st2ogkg_1o.js +0 -1
- package/out/_next/static/chunks/19rsodtu91ja_.js +0 -1
- package/out/_next/static/chunks/1a2ouhup611bz.js +0 -1
- package/out/_next/static/chunks/1cyq7i39885sl.js +0 -1
- package/out/_next/static/chunks/1d9it6yocgt54.js +0 -1
- package/out/_next/static/chunks/1dp1s1t-y7gal.js +0 -1
- package/out/_next/static/chunks/1dr7gh6xgypl8.js +0 -1
- package/out/_next/static/chunks/1dt30s_sp8415.js +0 -1
- package/out/_next/static/chunks/1f1rek_fxk3of.js +0 -1
- package/out/_next/static/chunks/1f2mna0k5efeq.js +0 -1
- package/out/_next/static/chunks/1gfz3sxwkkg3d.js +0 -1
- package/out/_next/static/chunks/1gr35qeguuws0.js +0 -1
- package/out/_next/static/chunks/1imi0xwi9hd99.js +0 -1
- package/out/_next/static/chunks/1ka5v5zu0cstt.js +0 -1
- package/out/_next/static/chunks/1n9nhz-6azcp3.js +0 -3
- package/out/_next/static/chunks/1ncqwe81t_9_x.js +0 -1
- package/out/_next/static/chunks/1nix_lulkpklo.js +0 -1
- package/out/_next/static/chunks/1ntqovuz2c217.js +0 -1
- package/out/_next/static/chunks/1pgs-98tfkq9_.js +0 -1
- package/out/_next/static/chunks/1q2z0aeopo8t8.js +0 -1
- package/out/_next/static/chunks/1ses023uud001.js +0 -1
- package/out/_next/static/chunks/1t9i20i5-f8ze.js +0 -1
- package/out/_next/static/chunks/1ug4k-1zhr63a.js +0 -1
- package/out/_next/static/chunks/1vrpzlif-z_p0.js +0 -1
- package/out/_next/static/chunks/1vurgl6oz2qey.js +0 -17
- package/out/_next/static/chunks/1w-qc09n9ijtq.js +0 -1
- package/out/_next/static/chunks/1ycqxcht6x54p.js +0 -1
- package/out/_next/static/chunks/1zj4307ugq0qz.js +0 -1
- package/out/_next/static/chunks/1zm52cjrfrq7c.js +0 -1
- package/out/_next/static/chunks/1zp9363yfhpom.js +0 -1
- package/out/_next/static/chunks/2-3hk_db5fpok.js +0 -1
- package/out/_next/static/chunks/2-bv9a_0zgw1f.js +0 -1
- package/out/_next/static/chunks/216uiih3_vdfd.js +0 -1
- package/out/_next/static/chunks/21kfpd_bityxt.js +0 -1
- package/out/_next/static/chunks/24ecas0m9tao7.js +0 -3
- package/out/_next/static/chunks/24pq9210rng3f.js +0 -1
- package/out/_next/static/chunks/26skkagvj1z96.js +0 -1
- package/out/_next/static/chunks/2701xfv_07wz_.js +0 -1
- package/out/_next/static/chunks/271333m8y3k0e.js +0 -1
- package/out/_next/static/chunks/29rkmguzky-bp.js +0 -1
- package/out/_next/static/chunks/2a2oy8ryz2tsk.js +0 -1
- package/out/_next/static/chunks/2apnpj0-fs9ks.js +0 -1
- package/out/_next/static/chunks/2b481pitl4k85.js +0 -1
- package/out/_next/static/chunks/2bettxaqt3d2p.js +0 -1
- package/out/_next/static/chunks/2d2kl_m64j9cb.js +0 -1
- package/out/_next/static/chunks/2droqjmvmgj13.js +0 -1
- package/out/_next/static/chunks/2dxbvwbbgpzoq.js +0 -1
- package/out/_next/static/chunks/2eqbsut829r5l.js +0 -1
- package/out/_next/static/chunks/2f3_mzxjh3gso.js +0 -1
- package/out/_next/static/chunks/2fsde0jwi5qtt.js +0 -1
- package/out/_next/static/chunks/2j2ynchpqh34-.js +0 -1
- package/out/_next/static/chunks/2kj6pzs_wap1v.js +0 -1
- package/out/_next/static/chunks/2lnj9jruy4nrv.js +0 -1
- package/out/_next/static/chunks/2ofwtw6p08sfz.js +0 -1
- package/out/_next/static/chunks/2phl5ta4iim7l.js +0 -12
- package/out/_next/static/chunks/2r5qgieqldcd9.js +0 -1
- package/out/_next/static/chunks/2r7y401cvjc1s.js +0 -1
- package/out/_next/static/chunks/2rmc6ru7mc-kg.js +0 -1
- package/out/_next/static/chunks/2w2k1gveljyb7.js +0 -1
- package/out/_next/static/chunks/2w_ptlw-ad8-9.js +0 -4
- package/out/_next/static/chunks/2ws1s9d52ayv8.js +0 -1
- package/out/_next/static/chunks/2x7enks3ydgai.js +0 -1
- package/out/_next/static/chunks/2ydub0t01728d.js +0 -1
- package/out/_next/static/chunks/3-m_vzabs1uez.js +0 -1
- package/out/_next/static/chunks/3527r3jo5fj3i.js +0 -1
- package/out/_next/static/chunks/355dg8yaa94hr.js +0 -1
- package/out/_next/static/chunks/35ntbr_c-yx44.js +0 -1
- package/out/_next/static/chunks/36enkx1skkv2-.js +0 -4
- package/out/_next/static/chunks/38xdo3cifphut.js +0 -1
- package/out/_next/static/chunks/3beawo-qwuk8k.js +0 -1
- package/out/_next/static/chunks/3cj_6sl9kr3e9.js +0 -1
- package/out/_next/static/chunks/3df_l2we755bb.js +0 -1
- package/out/_next/static/chunks/3eve5y7fpzx2h.js +0 -1
- package/out/_next/static/chunks/3ewgyb4y19w-3.js +0 -1
- package/out/_next/static/chunks/3f3789eh18_oy.js +0 -1
- package/out/_next/static/chunks/3g3-e9m1en45q.js +0 -1
- package/out/_next/static/chunks/3i239y-1hbkm-.js +0 -1
- package/out/_next/static/chunks/3kp8qmhoi24oz.js +0 -1
- package/out/_next/static/chunks/3ksq69yq-40_r.js +0 -1
- package/out/_next/static/chunks/3qye1lytea2i8.js +0 -1
- package/out/_next/static/chunks/3rlp9yr75liz7.js +0 -1
- package/out/_next/static/chunks/3tyo643l62h3m.js +0 -1
- package/out/_next/static/chunks/3tz2tpqa9uvwm.js +0 -1
- package/out/_next/static/chunks/3utpc-fc6_y0f.js +0 -1
- package/out/_next/static/chunks/3v6nxa28rxngq.js +0 -1
- package/out/_next/static/chunks/3vv99btjc-mky.js +0 -1
- package/out/_next/static/chunks/3x02lxdo28u9i.js +0 -1
- package/out/_next/static/chunks/3ydnxyc4rvad_.js +0 -1
- package/out/_next/static/chunks/3ylg4gfetwgxw.js +0 -1
- package/out/_next/static/chunks/3zdtteq-r2fs5.js +0 -62
- package/out/_next/static/chunks/3zkwt0gybqtgm.js +0 -1
- package/out/_next/static/chunks/40etabvml_71y.js +0 -1
- package/out/_next/static/chunks/417jkzz0slv9m.js +0 -1
- package/out/_next/static/chunks/41u2-5jayyajf.js +0 -22
- package/out/_next/static/chunks/42gcpy51w7lk1.js +0 -1
- package/out/_next/static/chunks/44cer242u-f8v.js +0 -1
- package/out/_next/static/chunks/44zi0gl0a6a8w.js +0 -1
- package/out/_next/static/chunks/turbopack-0n2o5_bkskckx.js +0 -1
- /package/out/_next/static/{A1hxMz783bIWo0Q9qqV3L → 4r0L0ZMJeBwOJCVDsvvZ4}/_buildManifest.js +0 -0
- /package/out/_next/static/{A1hxMz783bIWo0Q9qqV3L → 4r0L0ZMJeBwOJCVDsvvZ4}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{A1hxMz783bIWo0Q9qqV3L → 4r0L0ZMJeBwOJCVDsvvZ4}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,85303,e=>{"use strict";var t=e.i(99429);let i=!1;e.s(["RegisterAbstractEngineDom",0,function(){i||(i=!0,t.AbstractEngine.prototype.getInputElement=function(){return this._renderingCanvas},t.AbstractEngine.prototype.getRenderingCanvasClientRect=function(){return this._renderingCanvas?this._renderingCanvas.getBoundingClientRect():null},t.AbstractEngine.prototype.getInputElementClientRect=function(){return this._renderingCanvas?this.getInputElement().getBoundingClientRect():null},t.AbstractEngine.prototype.getAspectRatio=function(e,t=!1){let i=e.viewport;return this.getRenderWidth(t)*i.width/(this.getRenderHeight(t)*i.height)},t.AbstractEngine.prototype.getScreenAspectRatio=function(){return this.getRenderWidth(!0)/this.getRenderHeight(!0)},t.AbstractEngine.prototype._verifyPointerLock=function(){this._onPointerLockChange?.()})}])},60272,e=>{"use strict";var t=e.i(99429);let i=!1;e.s(["RegisterAbstractEngineRenderPass",0,function(){i||(i=!0,t.AbstractEngine.prototype.getRenderPassNames=function(){return this._renderPassNames},t.AbstractEngine.prototype.getCurrentRenderPassName=function(){return this._renderPassNames[this.currentRenderPassId]},t.AbstractEngine.prototype.createRenderPassId=function(e){let i=++t.AbstractEngine._RenderPassIdCounter;return this._renderPassNames[i]=e??"NONAME",i},t.AbstractEngine.prototype.releaseRenderPassId=function(e){this._renderPassNames[e]=void 0;for(let t=0;t<this.scenes.length;++t){let i=this.scenes[t];for(let t=0;t<i.meshes.length;++t){let r=i.meshes[t];if(r._releaseRenderPassId(e),r.subMeshes)for(let t=0;t<r.subMeshes.length;++t)r.subMeshes[t]._removeDrawWrapper(e)}}})}])},42192,e=>{"use strict";var t=e.i(99429);let i=!1;e.s(["RegisterAbstractEngineTexture",0,function(){i||(i=!0,t.AbstractEngine.prototype.createDepthStencilTexture=function(e,t,i){if(!t.isCube)return this._createDepthStencilTexture(e,t,i);{let i=e.width||e;return this._createDepthStencilCubeTexture(i,t)}})}])},5554,e=>{"use strict";var t=e.i(76256);let i=!1;e.s(["RegisterEngineDynamicBuffer",0,function(){i||(i=!0,t.ThinEngine.prototype.updateDynamicIndexBuffer=function(e,t,i=0){let r;this._currentBoundBuffer[this._gl.ELEMENT_ARRAY_BUFFER]=null,this.bindIndexBuffer(e),r=e.is32Bits?t instanceof Uint32Array?t:new Uint32Array(t):t instanceof Uint16Array?t:new Uint16Array(t),this._gl.bufferData(this._gl.ELEMENT_ARRAY_BUFFER,r,this._gl.DYNAMIC_DRAW),this._resetIndexBufferBinding()},t.ThinEngine.prototype.updateDynamicVertexBuffer=function(e,t,i,r){this.bindArrayBuffer(e),void 0===i&&(i=0);let s=t.byteLength||t.length;void 0===r||r>=s&&0===i?t instanceof Array?this._gl.bufferSubData(this._gl.ARRAY_BUFFER,i,new Float32Array(t)):this._gl.bufferSubData(this._gl.ARRAY_BUFFER,i,t):t instanceof Array?this._gl.bufferSubData(this._gl.ARRAY_BUFFER,i,new Float32Array(t).subarray(0,r/4)):(t=ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,r):new Uint8Array(t,0,r),this._gl.bufferSubData(this._gl.ARRAY_BUFFER,i,t)),this._resetVertexBufferBinding()})}])},88975,e=>{"use strict";var t=e.i(55080),i=e.i(72986),r=e.i(76256),s=e.i(25804),n=e.i(23733),a=e.i(85789),l=e.i(33016),o=e.i(99429),h=e.i(51671),_=e.i(39913),u=e.i(32945),c=e.i(85303),d=e.i(60272);class E extends r.ThinEngine{static get NpmPackage(){return o.AbstractEngine.NpmPackage}static get Version(){return o.AbstractEngine.Version}static get Instances(){return i.EngineStore.Instances}static get LastCreatedEngine(){return i.EngineStore.LastCreatedEngine}static get LastCreatedScene(){return i.EngineStore.LastCreatedScene}static DefaultLoadingScreenFactory(e){return o.AbstractEngine.DefaultLoadingScreenFactory(e)}get _supportsHardwareTextureRescaling(){return!!E._RescalePostProcessFactory}_measureFps(){this._performanceMonitor.sampleFrame(),this._fps=this._performanceMonitor.averageFPS,this._deltaTime=this._performanceMonitor.instantaneousFrameTime||0}get performanceMonitor(){return this._performanceMonitor}constructor(e,t,i,r=!1){if((0,c.RegisterAbstractEngineDom)(),(0,d.RegisterAbstractEngineRenderPass)(),super(e,t,i,r),this._performanceMonitor=new s.PerformanceMonitor,this._drawCalls=new _.PerfCounter,!e)return;this._features.supportRenderPasses=!0}_initGLContext(){super._initGLContext(),this._rescalePostProcess=null}_sharedInit(e){super._sharedInit(e),(0,h._CommonInit)(this,e,this._creationOptions)}resizeImageBitmap(e,t,i){return(0,h.ResizeImageBitmap)(this,e,t,i)}async _createImageBitmapFromSource(e,t){return await (0,h.CreateImageBitmapFromSource)(this,e,t)}switchFullscreen(e){this.isFullscreen?this.exitFullscreen():this.enterFullscreen(e)}enterFullscreen(e){!this.isFullscreen&&(this._pointerLockRequested=e,this._renderingCanvas&&(0,h.RequestFullscreen)(this._renderingCanvas))}exitFullscreen(){this.isFullscreen&&(0,h.ExitFullscreen)()}setDitheringState(e){e?this._gl.enable(this._gl.DITHER):this._gl.disable(this._gl.DITHER)}setRasterizerState(e){e?this._gl.disable(this._gl.RASTERIZER_DISCARD):this._gl.enable(this._gl.RASTERIZER_DISCARD)}setDirectViewport(e,t,i,r){let s=this._cachedViewport;return this._cachedViewport=null,this._viewport(e,t,i,r),s}scissorClear(e,t,i,r,s){this.enableScissor(e,t,i,r),this.clear(s,!0,!0,!0),this.disableScissor()}getVertexShaderSource(e){let t=this._gl.getAttachedShaders(e);return t?this._gl.getShaderSource(t[0]):null}getFragmentShaderSource(e){let t=this._gl.getAttachedShaders(e);return t?this._gl.getShaderSource(t[1]):null}set framebufferDimensionsObject(e){this._framebufferDimensionsObject=e,this._framebufferDimensionsObject&&this.onResizeObservable.notifyObservers(this)}_rebuildBuffers(){for(let e of this.scenes)e.resetCachedMaterial(),e._rebuildGeometries();for(let e of this._virtualScenes)e.resetCachedMaterial(),e._rebuildGeometries();super._rebuildBuffers()}getFontOffset(e){return(0,h.GetFontOffset)(e)}enterPointerlock(){this._renderingCanvas&&(0,h.RequestPointerlock)(this._renderingCanvas)}exitPointerlock(){(0,h.ExitPointerlock)()}beginFrame(){this._measureFps(),super.beginFrame()}_deletePipelineContext(e){e&&e.program&&e.transformFeedback&&(this.deleteTransformFeedback(e.transformFeedback),e.transformFeedback=null),super._deletePipelineContext(e)}createShaderProgram(e,t,i,r,s,n=null){s=s||this._gl,this.onBeforeShaderCompilationObservable.notifyObservers(this);let a=super.createShaderProgram(e,t,i,r,s,n);return this.onAfterShaderCompilationObservable.notifyObservers(this),a}_createShaderProgram(e,t,i,r,s=null){let n=r.createProgram();if(e.program=n,!n)throw Error("Unable to create program");if(r.attachShader(n,t),r.attachShader(n,i),this.webGLVersion>1&&s){let t=this.createTransformFeedback();this.bindTransformFeedback(t),this.setTranformFeedbackVaryings(n,s),e.transformFeedback=t}return r.linkProgram(n),this.webGLVersion>1&&s&&this.bindTransformFeedback(null),e.context=r,e.vertexShader=t,e.fragmentShader=i,e.isParallelCompiled||this._finalizePipelineContext(e),n}_releaseTexture(e){super._releaseTexture(e)}_releaseRenderTargetWrapper(e){for(let t of(super._releaseRenderTargetWrapper(e),this.scenes)){for(let i of t.postProcesses)i._outputTexture===e&&(i._outputTexture=null);for(let i of t.cameras)for(let t of i._postProcesses)t&&t._outputTexture===e&&(t._outputTexture=null)}}_rescaleTexture(e,t,i,r,s){this._gl.texParameteri(this._gl.TEXTURE_2D,this._gl.TEXTURE_MAG_FILTER,this._gl.LINEAR),this._gl.texParameteri(this._gl.TEXTURE_2D,this._gl.TEXTURE_MIN_FILTER,this._gl.LINEAR),this._gl.texParameteri(this._gl.TEXTURE_2D,this._gl.TEXTURE_WRAP_S,this._gl.CLAMP_TO_EDGE),this._gl.texParameteri(this._gl.TEXTURE_2D,this._gl.TEXTURE_WRAP_T,this._gl.CLAMP_TO_EDGE);let n=this.createRenderTargetTexture({width:t.width,height:t.height},{generateMipMaps:!1,type:0,samplingMode:2,generateDepthBuffer:!1,generateStencilBuffer:!1});if(!this._rescalePostProcess&&E._RescalePostProcessFactory&&(this._rescalePostProcess=E._RescalePostProcessFactory(this)),this._rescalePostProcess){this._rescalePostProcess.externalTextureSamplerBinding=!0;let a=()=>{this._rescalePostProcess.onApply=function(t){t._bindTexture("textureSampler",e)};let a=i;a||(a=this.scenes[this.scenes.length-1]),a.postProcessManager.directRender([this._rescalePostProcess],n,!0),this._bindTextureDirectly(this._gl.TEXTURE_2D,t,!0),this._gl.copyTexImage2D(this._gl.TEXTURE_2D,0,r,0,0,t.width,t.height,0),this.unBindFramebuffer(n),n.dispose(),s&&s()},l=this._rescalePostProcess.getEffect();l?l.executeWhenCompiled(a):this._rescalePostProcess.onEffectCreatedObservable.addOnce(e=>{e.executeWhenCompiled(a)})}}wrapWebGLTexture(e,i=!1,r=3,s=0,n=0){let a=new l.WebGLHardwareTexture(e,this._gl),o=new t.InternalTexture(this,15,!0);return o._hardwareTexture=a,o.baseWidth=s,o.baseHeight=n,o.width=s,o.height=n,o.isReady=!0,o.useMipMaps=i,this.updateTextureSamplingMode(r,o),o}updateWrappedWebGLTexture(e,t){if(15!==e.source)throw Error("updateWrappedWebGLTexture: target InternalTexture was not produced by wrapWebGLTexture.");for(let t of this._renderTargetWrapperCache)if(t.textures?.includes(e)){if(t.isMulti)throw Error("updateWrappedWebGLTexture: wrapped texture is part of a multi render-target; not supported. Dispose and re-wrap.");if(t._depthStencilTexture)throw Error("updateWrappedWebGLTexture: wrapped texture's render-target wrapper has a depth/stencil texture; not supported. Dispose and re-wrap.")}for(let i in e._hardwareTexture=new l.WebGLHardwareTexture(t,this._gl),e.isReady=!0,e._cachedCoordinatesMode=null,e._cachedWrapU=null,e._cachedWrapV=null,e._cachedWrapR=null,e._cachedAnisotropicFilteringLevel=null,this._boundTexturesCache)this._boundTexturesCache[i]===e&&(this._boundTexturesCache[i]=null);this.updateTextureSamplingMode(e.samplingMode,e);let i=this._gl;for(let r of this._renderTargetWrapperCache){if(r.texture!==e)continue;let s=r.samples,n=s>1;r._framebuffer&&i.deleteFramebuffer(r._framebuffer),!n&&r._depthStencilBuffer&&(i.deleteRenderbuffer(r._depthStencilBuffer),r._depthStencilBuffer=null);let a=this._currentFramebuffer,l=i.createFramebuffer();this._bindUnboundFramebuffer(l),i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,t,0),n||(r._depthStencilBuffer=this._setupFramebufferDepthAttachments(r._generateStencilBuffer,r._generateDepthBuffer,r.width,r.height)),this._bindUnboundFramebuffer(a),r._framebuffer=l,n&&(r._samples=1,this.updateRenderTargetTextureSampleCount(r,s))}}_uploadImageToTexture(e,t,i=0,r=0){let s=this._gl,n=this._getWebGLTextureType(e.type),a=this._getInternalFormat(e.format),l=this._getRGBABufferInternalSizedFormat(e.type,a),o=e.isCube?s.TEXTURE_CUBE_MAP:s.TEXTURE_2D;this._bindTextureDirectly(o,e,!0),this._unpackFlipY(e.invertY);let h=s.TEXTURE_2D;e.isCube&&(h=s.TEXTURE_CUBE_MAP_POSITIVE_X+i),s.texImage2D(h,r,l,a,n,t),this._bindTextureDirectly(o,null,!0)}updateTextureComparisonFunction(e,t){if(1===this.webGLVersion)return void a.Logger.Error("WebGL 1 does not support texture comparison.");let i=this._gl;e.isCube?(this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP,e,!0),0===t?(i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_COMPARE_FUNC,515),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_COMPARE_MODE,i.NONE)):(i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_COMPARE_FUNC,t),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_COMPARE_MODE,i.COMPARE_REF_TO_TEXTURE)),this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP,null)):(this._bindTextureDirectly(this._gl.TEXTURE_2D,e,!0),0===t?(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_COMPARE_FUNC,515),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_COMPARE_MODE,i.NONE)):(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_COMPARE_FUNC,t),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_COMPARE_MODE,i.COMPARE_REF_TO_TEXTURE)),this._bindTextureDirectly(this._gl.TEXTURE_2D,null)),e._comparisonFunction=t}createInstancesBuffer(e){let t=this._gl.createBuffer();if(!t)throw Error("Unable to create instance buffer");let i=new n.WebGLDataBuffer(t);return i.capacity=e,this.bindArrayBuffer(i),this._gl.bufferData(this._gl.ARRAY_BUFFER,e,this._gl.DYNAMIC_DRAW),i.references=1,i}deleteInstancesBuffer(e){this._gl.deleteBuffer(e)}async _clientWaitAsync(e,t=0,i=10){let r=this._gl;return await new Promise((s,n)=>{(0,u._RetryWithInterval)(()=>{let i=r.clientWaitSync(e,t,0);if(i==r.WAIT_FAILED)throw Error("clientWaitSync failed");return i!=r.TIMEOUT_EXPIRED},s,n,i)})}_readPixelsAsync(e,t,i,r,s,n,a){if(this._webGLVersion<2)throw Error("_readPixelsAsync only work on WebGL2+");let l=this._gl,o=l.createBuffer();l.bindBuffer(l.PIXEL_PACK_BUFFER,o),l.bufferData(l.PIXEL_PACK_BUFFER,a.byteLength,l.STREAM_READ),l.readPixels(e,t,i,r,s,n,0),l.bindBuffer(l.PIXEL_PACK_BUFFER,null);let h=l.fenceSync(l.SYNC_GPU_COMMANDS_COMPLETE,0);return h?(l.flush(),this._clientWaitAsync(h,0,10).then(()=>(l.deleteSync(h),l.bindBuffer(l.PIXEL_PACK_BUFFER,o),l.getBufferSubData(l.PIXEL_PACK_BUFFER,0,a),l.bindBuffer(l.PIXEL_PACK_BUFFER,null),l.deleteBuffer(o),a))):null}dispose(){this.hideLoadingUI?.(),this._rescalePostProcess&&this._rescalePostProcess.dispose(),(0,h._CommonDispose)(this,this._renderingCanvas),super.dispose()}}E.ALPHA_DISABLE=0,E.ALPHA_ADD=1,E.ALPHA_COMBINE=2,E.ALPHA_SUBTRACT=3,E.ALPHA_MULTIPLY=4,E.ALPHA_MAXIMIZED=5,E.ALPHA_ONEONE=6,E.ALPHA_PREMULTIPLIED=7,E.ALPHA_PREMULTIPLIED_PORTERDUFF=8,E.ALPHA_INTERPOLATE=9,E.ALPHA_SCREENMODE=10,E.DELAYLOADSTATE_NONE=0,E.DELAYLOADSTATE_LOADED=1,E.DELAYLOADSTATE_LOADING=2,E.DELAYLOADSTATE_NOTLOADED=4,E.NEVER=512,E.ALWAYS=519,E.LESS=513,E.EQUAL=514,E.LEQUAL=515,E.GREATER=516,E.GEQUAL=518,E.NOTEQUAL=517,E.KEEP=7680,E.REPLACE=7681,E.INCR=7682,E.DECR=7683,E.INVERT=5386,E.INCR_WRAP=34055,E.DECR_WRAP=34056,E.TEXTURE_CLAMP_ADDRESSMODE=0,E.TEXTURE_WRAP_ADDRESSMODE=1,E.TEXTURE_MIRROR_ADDRESSMODE=2,E.TEXTUREFORMAT_ALPHA=0,E.TEXTUREFORMAT_LUMINANCE=1,E.TEXTUREFORMAT_LUMINANCE_ALPHA=2,E.TEXTUREFORMAT_RGB=4,E.TEXTUREFORMAT_RGBA=5,E.TEXTUREFORMAT_RED=6,E.TEXTUREFORMAT_R=6,E.TEXTUREFORMAT_R16_UNORM=33322,E.TEXTUREFORMAT_RG16_UNORM=33324,E.TEXTUREFORMAT_RGB16_UNORM=32852,E.TEXTUREFORMAT_RGBA16_UNORM=32859,E.TEXTUREFORMAT_R16_SNORM=36760,E.TEXTUREFORMAT_RG16_SNORM=36761,E.TEXTUREFORMAT_RGB16_SNORM=36762,E.TEXTUREFORMAT_RGBA16_SNORM=36763,E.TEXTUREFORMAT_RG=7,E.TEXTUREFORMAT_RED_INTEGER=8,E.TEXTUREFORMAT_R_INTEGER=8,E.TEXTUREFORMAT_RG_INTEGER=9,E.TEXTUREFORMAT_RGB_INTEGER=10,E.TEXTUREFORMAT_RGBA_INTEGER=11,E.TEXTURETYPE_UNSIGNED_BYTE=0,E.TEXTURETYPE_UNSIGNED_INT=0,E.TEXTURETYPE_FLOAT=1,E.TEXTURETYPE_HALF_FLOAT=2,E.TEXTURETYPE_BYTE=3,E.TEXTURETYPE_SHORT=4,E.TEXTURETYPE_UNSIGNED_SHORT=5,E.TEXTURETYPE_INT=6,E.TEXTURETYPE_UNSIGNED_INTEGER=7,E.TEXTURETYPE_UNSIGNED_SHORT_4_4_4_4=8,E.TEXTURETYPE_UNSIGNED_SHORT_5_5_5_1=9,E.TEXTURETYPE_UNSIGNED_SHORT_5_6_5=10,E.TEXTURETYPE_UNSIGNED_INT_2_10_10_10_REV=11,E.TEXTURETYPE_UNSIGNED_INT_24_8=12,E.TEXTURETYPE_UNSIGNED_INT_10F_11F_11F_REV=13,E.TEXTURETYPE_UNSIGNED_INT_5_9_9_9_REV=14,E.TEXTURETYPE_FLOAT_32_UNSIGNED_INT_24_8_REV=15,E.TEXTURE_NEAREST_SAMPLINGMODE=1,E.TEXTURE_BILINEAR_SAMPLINGMODE=2,E.TEXTURE_TRILINEAR_SAMPLINGMODE=3,E.TEXTURE_NEAREST_NEAREST_MIPLINEAR=8,E.TEXTURE_LINEAR_LINEAR_MIPNEAREST=11,E.TEXTURE_LINEAR_LINEAR_MIPLINEAR=3,E.TEXTURE_NEAREST_NEAREST_MIPNEAREST=4,E.TEXTURE_NEAREST_LINEAR_MIPNEAREST=5,E.TEXTURE_NEAREST_LINEAR_MIPLINEAR=6,E.TEXTURE_NEAREST_LINEAR=7,E.TEXTURE_NEAREST_NEAREST=1,E.TEXTURE_LINEAR_NEAREST_MIPNEAREST=9,E.TEXTURE_LINEAR_NEAREST_MIPLINEAR=10,E.TEXTURE_LINEAR_LINEAR=2,E.TEXTURE_LINEAR_NEAREST=12,E.TEXTURE_EXPLICIT_MODE=0,E.TEXTURE_SPHERICAL_MODE=1,E.TEXTURE_PLANAR_MODE=2,E.TEXTURE_CUBIC_MODE=3,E.TEXTURE_PROJECTION_MODE=4,E.TEXTURE_SKYBOX_MODE=5,E.TEXTURE_INVCUBIC_MODE=6,E.TEXTURE_EQUIRECTANGULAR_MODE=7,E.TEXTURE_FIXED_EQUIRECTANGULAR_MODE=8,E.TEXTURE_FIXED_EQUIRECTANGULAR_MIRRORED_MODE=9,E.SCALEMODE_FLOOR=1,E.SCALEMODE_NEAREST=2,E.SCALEMODE_CEILING=3,e.s(["Engine",0,E])},79452,e=>{"use strict";let t,i,r,s,n,a,l,o,h,_,u,c,d,E,g,m,T,p,R,f,A,x,b,S,D,I,P,C,v,M,L,U,F,O,y,w,N,B,X,z,G,k,V,W,H,Y,q,Z,j,K,Q,$,J,ee,et,ei,er,es;var en,ea,el=e.i(4112),eo=e.i(91679),eh=e.i(42704),e_=e.i(72003),eu=e.i(72986),ec=e.i(6939),ed=e.i(19696),eE=e.i(22832),eg=e.i(43880);let em=(I=class e{get wrapU(){return this._wrapU}set wrapU(e){this._wrapU=e}get wrapV(){return this._wrapV}set wrapV(e){this._wrapV=e}get coordinatesMode(){return 0}get isCube(){return!!this._texture&&this._texture.isCube}set isCube(e){this._texture&&(this._texture.isCube=e)}get is3D(){return!!this._texture&&this._texture.is3D}set is3D(e){this._texture&&(this._texture.is3D=e)}get is2DArray(){return!!this._texture&&this._texture.is2DArray}set is2DArray(e){this._texture&&(this._texture.is2DArray=e)}getClassName(){return"ThinTexture"}static _IsRenderTargetWrapper(e){return e?.shareDepth!==void 0}constructor(t){this._wrapU=1,this._wrapV=1,this.wrapR=1,this.anisotropicFilteringLevel=4,this.delayLoadState=0,this._texture=null,this._engine=null,this._cachedSize=ed.Size.Zero(),this._cachedBaseSize=ed.Size.Zero(),this._initialSamplingMode=2,this._texture=e._IsRenderTargetWrapper(t)?t.texture:t,this._texture&&(this._engine=this._texture.getEngine(),this.wrapU=this._texture._cachedWrapU??this.wrapU,this.wrapV=this._texture._cachedWrapV??this.wrapV,this.wrapR=this._texture._cachedWrapR??this.wrapR)}isReady(){return 4===this.delayLoadState?(this.delayLoad(),!1):!!this._texture&&this._texture.isReady}delayLoad(){}getInternalTexture(){return this._texture}getSize(){if(this._texture){if(this._texture.width)return this._cachedSize.width=this._texture.width,this._cachedSize.height=this._texture.height,this._cachedSize;this._texture._size&&(this._cachedSize.width=this._texture._size,this._cachedSize.height=this._texture._size)}return this._cachedSize}getBaseSize(){return this.isReady()&&this._texture?this._texture._size?(this._cachedBaseSize.width=this._texture._size,this._cachedBaseSize.height=this._texture._size):(this._cachedBaseSize.width=this._texture.baseWidth,this._cachedBaseSize.height=this._texture.baseHeight):(this._cachedBaseSize.width=0,this._cachedBaseSize.height=0),this._cachedBaseSize}get samplingMode(){return this._texture?this._texture.samplingMode:this._initialSamplingMode}updateSamplingMode(e,t=!1){this._texture&&this._engine&&this._engine.updateTextureSamplingMode(e,this._texture,this._texture.generateMipMaps&&t)}releaseInternalTexture(){this._texture&&(this._texture.dispose(),this._texture=null)}dispose(){this._texture&&(this.releaseInternalTexture(),this._engine=null)}},P=[],C=[],v=[],M=[],L=[],U=[],F=[],O=[],y=[],w=[],N=[],B=[],X=[],z=[],G=[],k=[],V=[],W=[],H=[],Y=[],q=[],Z=[],j=[],K=[],Q=[],$=[],J=[],ee=[],et=[],ei=[],er=[],en=class extends I{set hasAlpha(e){this._hasAlpha!==e&&(this._hasAlpha=e,this._scene&&this._scene.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)))}get hasAlpha(){return this._hasAlpha}set getAlphaFromRGB(e){this._getAlphaFromRGB!==e&&(this._getAlphaFromRGB=e,this._scene&&this._scene.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)))}get getAlphaFromRGB(){return this._getAlphaFromRGB}set coordinatesIndex(e){this._coordinatesIndex!==e&&(this._coordinatesIndex=e,this._scene&&this._scene.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)))}get coordinatesIndex(){return this._coordinatesIndex}set coordinatesMode(e){this._coordinatesMode!==e&&(this._coordinatesMode=e,this._scene&&this._scene.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)))}get coordinatesMode(){return this._coordinatesMode}get wrapU(){return this._wrapU}set wrapU(e){this._wrapU=e}get wrapV(){return this._wrapV}set wrapV(e){this._wrapV=e}get isCube(){return this._texture?this._texture.isCube:this._isCube}set isCube(e){this._texture?this._texture.isCube=e:this._isCube=e}get is3D(){return!!this._texture&&this._texture.is3D}set is3D(e){this._texture&&(this._texture.is3D=e)}get is2DArray(){return!!this._texture&&this._texture.is2DArray}set is2DArray(e){this._texture&&(this._texture.is2DArray=e)}get gammaSpace(){return this._texture?(null===this._texture._gammaSpace&&(this._texture._gammaSpace=this._gammaSpace),this._texture._gammaSpace&&!this._texture._useSRGBBuffer):this._gammaSpace}set gammaSpace(e){if(this._texture){if(this._texture._gammaSpace===e)return;this._texture._gammaSpace=e}else{if(this._gammaSpace===e)return;this._gammaSpace=e}this.getScene()?.markAllMaterialsAsDirty(1,e=>e.hasTexture(this))}get isRGBD(){return null!=this._texture&&this._texture._isRGBD}set isRGBD(e){e!==this.isRGBD&&(this._texture&&(this._texture._isRGBD=e),this.getScene()?.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)))}get noMipmap(){return!1}get lodGenerationOffset(){return this._texture?this._texture._lodGenerationOffset:0}set lodGenerationOffset(e){this._texture&&(this._texture._lodGenerationOffset=e)}get lodGenerationScale(){return this._texture?this._texture._lodGenerationScale:0}set lodGenerationScale(e){this._texture&&(this._texture._lodGenerationScale=e)}get linearSpecularLOD(){return!!this._texture&&this._texture._linearSpecularLOD}set linearSpecularLOD(e){this._texture&&(this._texture._linearSpecularLOD=e)}get irradianceTexture(){return this._texture?this._texture._irradianceTexture:null}set irradianceTexture(e){this._texture&&(this._texture._irradianceTexture=e)}get uid(){return this._uid||(this._uid=(0,ec.RandomGUID)()),this._uid}toString(){return this.name}getClassName(){return"BaseTexture"}set onDispose(e){this._onDisposeObserver&&this.onDisposeObservable.remove(this._onDisposeObserver),this._onDisposeObserver=this.onDisposeObservable.add(e)}get isBlocking(){return!0}get loadingError(){return this._loadingError}get errorObject(){return this._errorObject}constructor(e,t=null){super(null),this.uniqueId=((0,el.__runInitializers)(this,P),(0,el.__runInitializers)(this,C,void 0)),this.name=((0,el.__runInitializers)(this,v),(0,el.__runInitializers)(this,M,void 0)),this.displayName=((0,el.__runInitializers)(this,L),(0,el.__runInitializers)(this,U,void 0)),this.metadata=((0,el.__runInitializers)(this,F),(0,el.__runInitializers)(this,O,null)),this._internalMetadata=(0,el.__runInitializers)(this,y),this.reservedDataStore=null,this._hasAlpha=(0,el.__runInitializers)(this,w,!1),this._getAlphaFromRGB=((0,el.__runInitializers)(this,N),(0,el.__runInitializers)(this,B,!1)),this.level=((0,el.__runInitializers)(this,X),(0,el.__runInitializers)(this,z,1)),this._coordinatesIndex=((0,el.__runInitializers)(this,G),(0,el.__runInitializers)(this,k,0)),this.optimizeUVAllocation=((0,el.__runInitializers)(this,V),(0,el.__runInitializers)(this,W,!0)),this._coordinatesMode=((0,el.__runInitializers)(this,H),(0,el.__runInitializers)(this,Y,0)),this.wrapR=((0,el.__runInitializers)(this,q),(0,el.__runInitializers)(this,Z,1)),this.anisotropicFilteringLevel=((0,el.__runInitializers)(this,j),(0,el.__runInitializers)(this,K,en.DEFAULT_ANISOTROPIC_FILTERING_LEVEL)),this._isCube=((0,el.__runInitializers)(this,Q),!1),this._gammaSpace=!0,this.invertZ=(0,el.__runInitializers)(this,$,!1),this.lodLevelInAlpha=((0,el.__runInitializers)(this,J),(0,el.__runInitializers)(this,ee,!1)),this._dominantDirection=((0,el.__runInitializers)(this,et),null),this.isRenderTarget=(0,el.__runInitializers)(this,ei,!1),this._prefiltered=((0,el.__runInitializers)(this,er),!1),this._forceSerialize=!1,this.animations=[],this.onDisposeObservable=new eh.Observable,this._onDisposeObserver=null,this._scene=null,this._uid=null,this._parentContainer=null,this._loadingError=!1,e?en._IsScene(e)?this._scene=e:this._engine=e:this._scene=eu.EngineStore.LastCreatedScene,this._scene&&(this.uniqueId=this._scene.getUniqueId(),this._scene.addTexture(this),this._engine=this._scene.getEngine()),this._texture=t,this._uid=null}getScene(){return this._scene}_getEngine(){return this._engine}getTextureMatrix(){return e_.Matrix.IdentityReadOnly}getReflectionTextureMatrix(){return e_.Matrix.IdentityReadOnly}getRefractionTextureMatrix(){return this.getReflectionTextureMatrix()}isReadyOrNotBlocking(){return!this.isBlocking||this.isReady()||this.loadingError}scale(e){}get canRescale(){return!1}_getFromCache(e,t,i,r,s,n){let a=this._getEngine();if(!a)return null;let l=a._getUseSRGBBuffer(!!s,t),o=a.getLoadedTexturesCache();for(let a=0;a<o.length;a++){let h=o[a];if((void 0===s||l===h._useSRGBBuffer)&&(void 0===r||r===h.invertY)&&h.url===e&&!t===h.generateMipMaps&&(!i||i===h.samplingMode)&&(void 0===n||n===h.isCube))return h.incrementReferences(),h}return null}_rebuild(e=!1){}clone(){return null}get textureType(){return this._texture&&void 0!==this._texture.type?this._texture.type:0}get textureFormat(){return this._texture&&void 0!==this._texture.format?this._texture.format:5}_markAllSubMeshesAsTexturesDirty(){let e=this.getScene();e&&e.markAllMaterialsAsDirty(1)}readPixels(e=0,t=0,i=null,r=!0,s=!1,n=0,a=0,l=Number.MAX_VALUE,o=Number.MAX_VALUE){if(!this._texture)return null;let h=this._getEngine();if(!h)return null;let _=this.getSize(),u=_.width,c=_.height;0!==t&&(u/=Math.pow(2,t),c/=Math.pow(2,t),u=Math.round(u),c=Math.round(c)),l=Math.min(u,l),o=Math.min(c,o);try{if(this._texture.isCube||this._texture.is2DArray)return h._readTexturePixels(this._texture,l,o,e,t,i,r,s,n,a);return h._readTexturePixels(this._texture,l,o,-1,t,i,r,s,n,a)}catch(e){return null}}_readPixelsSync(e=0,t=0,i=null,r=!0,s=!1){if(!this._texture)return null;let n=this.getSize(),a=n.width,l=n.height,o=this._getEngine();if(!o)return null;0!=t&&(a/=Math.pow(2,t),l/=Math.pow(2,t),a=Math.round(a),l=Math.round(l));try{if(this._texture.isCube)return o._readTexturePixelsSync(this._texture,a,l,e,t,i,r,s);return o._readTexturePixelsSync(this._texture,a,l,-1,t,i,r,s)}catch(e){return null}}get _lodTextureHigh(){return this._texture?this._texture._lodTextureHigh:null}get _lodTextureMid(){return this._texture?this._texture._lodTextureMid:null}get _lodTextureLow(){return this._texture?this._texture._lodTextureLow:null}dispose(){if(this._scene){this._scene.stopAnimation&&this._scene.stopAnimation(this),this._scene.removePendingData(this);let e=this._scene.textures.indexOf(this);if(e>=0&&this._scene.textures.splice(e,1),this._scene.onTextureRemovedObservable.notifyObservers(this),this._scene=null,this._parentContainer){let e=this._parentContainer.textures.indexOf(this);e>-1&&this._parentContainer.textures.splice(e,1),this._parentContainer=null}}this.onDisposeObservable.notifyObservers(this),this.onDisposeObservable.clear(),this.metadata=null,super.dispose()}serialize(e=!1){if(!this.name&&!e)return null;let t=eE.SerializationHelper.Serialize(this);return eE.SerializationHelper.AppendSerializedAnimations(this,t),t}static WhenAllReady(e,t){let i=e.length;if(0===i)return void t();for(let r=0;r<e.length;r++){let s=e[r];if(s.isReady())0==--i&&t();else{let e=s.onLoadObservable;e?e.addOnce(()=>{0==--i&&t()}):0==--i&&t()}}}static _IsScene(e){return"Scene"===e.getClassName()}},es="function"==typeof Symbol&&Symbol.metadata?Object.create(I[Symbol.metadata]??null):void 0,t=[(0,eo.serialize)()],i=[(0,eo.serialize)()],r=[(0,eo.serialize)()],s=[(0,eo.serialize)()],n=[(0,eo.serialize)("hasAlpha")],a=[(0,eo.serialize)("getAlphaFromRGB")],l=[(0,eo.serialize)()],o=[(0,eo.serialize)("coordinatesIndex")],h=[(0,eo.serialize)()],_=[(0,eo.serialize)("coordinatesMode")],u=[(0,eo.serialize)()],c=[(0,eo.serialize)()],d=[(0,eo.serialize)()],E=[(0,eo.serialize)()],g=[(0,eo.serialize)()],m=[(0,eo.serialize)()],T=[(0,eo.serialize)()],p=[(0,eo.serialize)()],R=[(0,eo.serialize)()],f=[(0,eo.serialize)()],A=[(0,eo.serialize)()],x=[(0,eo.serialize)()],b=[(0,eo.serialize)()],S=[(0,eo.serializeAsTexture)()],D=[(0,eo.serialize)()],(0,el.__esDecorate)(en,null,u,{kind:"getter",name:"wrapU",static:!1,private:!1,access:{has:e=>"wrapU"in e,get:e=>e.wrapU},metadata:es},null,P),(0,el.__esDecorate)(en,null,c,{kind:"getter",name:"wrapV",static:!1,private:!1,access:{has:e=>"wrapV"in e,get:e=>e.wrapV},metadata:es},null,P),(0,el.__esDecorate)(en,null,g,{kind:"getter",name:"isCube",static:!1,private:!1,access:{has:e=>"isCube"in e,get:e=>e.isCube},metadata:es},null,P),(0,el.__esDecorate)(en,null,m,{kind:"getter",name:"is3D",static:!1,private:!1,access:{has:e=>"is3D"in e,get:e=>e.is3D},metadata:es},null,P),(0,el.__esDecorate)(en,null,T,{kind:"getter",name:"is2DArray",static:!1,private:!1,access:{has:e=>"is2DArray"in e,get:e=>e.is2DArray},metadata:es},null,P),(0,el.__esDecorate)(en,null,p,{kind:"getter",name:"gammaSpace",static:!1,private:!1,access:{has:e=>"gammaSpace"in e,get:e=>e.gammaSpace},metadata:es},null,P),(0,el.__esDecorate)(en,null,A,{kind:"getter",name:"lodGenerationOffset",static:!1,private:!1,access:{has:e=>"lodGenerationOffset"in e,get:e=>e.lodGenerationOffset},metadata:es},null,P),(0,el.__esDecorate)(en,null,x,{kind:"getter",name:"lodGenerationScale",static:!1,private:!1,access:{has:e=>"lodGenerationScale"in e,get:e=>e.lodGenerationScale},metadata:es},null,P),(0,el.__esDecorate)(en,null,b,{kind:"getter",name:"linearSpecularLOD",static:!1,private:!1,access:{has:e=>"linearSpecularLOD"in e,get:e=>e.linearSpecularLOD},metadata:es},null,P),(0,el.__esDecorate)(en,null,S,{kind:"getter",name:"irradianceTexture",static:!1,private:!1,access:{has:e=>"irradianceTexture"in e,get:e=>e.irradianceTexture},metadata:es},null,P),(0,el.__esDecorate)(null,null,t,{kind:"field",name:"uniqueId",static:!1,private:!1,access:{has:e=>"uniqueId"in e,get:e=>e.uniqueId,set:(e,t)=>{e.uniqueId=t}},metadata:es},C,v),(0,el.__esDecorate)(null,null,i,{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:es},M,L),(0,el.__esDecorate)(null,null,r,{kind:"field",name:"displayName",static:!1,private:!1,access:{has:e=>"displayName"in e,get:e=>e.displayName,set:(e,t)=>{e.displayName=t}},metadata:es},U,F),(0,el.__esDecorate)(null,null,s,{kind:"field",name:"metadata",static:!1,private:!1,access:{has:e=>"metadata"in e,get:e=>e.metadata,set:(e,t)=>{e.metadata=t}},metadata:es},O,y),(0,el.__esDecorate)(null,null,n,{kind:"field",name:"_hasAlpha",static:!1,private:!1,access:{has:e=>"_hasAlpha"in e,get:e=>e._hasAlpha,set:(e,t)=>{e._hasAlpha=t}},metadata:es},w,N),(0,el.__esDecorate)(null,null,a,{kind:"field",name:"_getAlphaFromRGB",static:!1,private:!1,access:{has:e=>"_getAlphaFromRGB"in e,get:e=>e._getAlphaFromRGB,set:(e,t)=>{e._getAlphaFromRGB=t}},metadata:es},B,X),(0,el.__esDecorate)(null,null,l,{kind:"field",name:"level",static:!1,private:!1,access:{has:e=>"level"in e,get:e=>e.level,set:(e,t)=>{e.level=t}},metadata:es},z,G),(0,el.__esDecorate)(null,null,o,{kind:"field",name:"_coordinatesIndex",static:!1,private:!1,access:{has:e=>"_coordinatesIndex"in e,get:e=>e._coordinatesIndex,set:(e,t)=>{e._coordinatesIndex=t}},metadata:es},k,V),(0,el.__esDecorate)(null,null,h,{kind:"field",name:"optimizeUVAllocation",static:!1,private:!1,access:{has:e=>"optimizeUVAllocation"in e,get:e=>e.optimizeUVAllocation,set:(e,t)=>{e.optimizeUVAllocation=t}},metadata:es},W,H),(0,el.__esDecorate)(null,null,_,{kind:"field",name:"_coordinatesMode",static:!1,private:!1,access:{has:e=>"_coordinatesMode"in e,get:e=>e._coordinatesMode,set:(e,t)=>{e._coordinatesMode=t}},metadata:es},Y,q),(0,el.__esDecorate)(null,null,d,{kind:"field",name:"wrapR",static:!1,private:!1,access:{has:e=>"wrapR"in e,get:e=>e.wrapR,set:(e,t)=>{e.wrapR=t}},metadata:es},Z,j),(0,el.__esDecorate)(null,null,E,{kind:"field",name:"anisotropicFilteringLevel",static:!1,private:!1,access:{has:e=>"anisotropicFilteringLevel"in e,get:e=>e.anisotropicFilteringLevel,set:(e,t)=>{e.anisotropicFilteringLevel=t}},metadata:es},K,Q),(0,el.__esDecorate)(null,null,R,{kind:"field",name:"invertZ",static:!1,private:!1,access:{has:e=>"invertZ"in e,get:e=>e.invertZ,set:(e,t)=>{e.invertZ=t}},metadata:es},$,J),(0,el.__esDecorate)(null,null,f,{kind:"field",name:"lodLevelInAlpha",static:!1,private:!1,access:{has:e=>"lodLevelInAlpha"in e,get:e=>e.lodLevelInAlpha,set:(e,t)=>{e.lodLevelInAlpha=t}},metadata:es},ee,et),(0,el.__esDecorate)(null,null,D,{kind:"field",name:"isRenderTarget",static:!1,private:!1,access:{has:e=>"isRenderTarget"in e,get:e=>e.isRenderTarget,set:(e,t)=>{e.isRenderTarget=t}},metadata:es},ei,er),es&&Object.defineProperty(en,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:es}),en.DEFAULT_ANISOTROPIC_FILTERING_LEVEL=4,en);(ea=em.prototype).forceSphericalPolynomialsRecompute??(ea.forceSphericalPolynomialsRecompute=(0,eg._MissingSideEffect)("BaseTexture","forceSphericalPolynomialsRecompute")),Object.getOwnPropertyDescriptor(em.prototype,"sphericalPolynomial")||Object.defineProperty(em.prototype,"sphericalPolynomial",(0,eg._MissingSideEffectProperty)("BaseTexture","sphericalPolynomial")),e.s(["BaseTexture",0,em],79452)},19696,e=>{"use strict";e.s(["Size",0,class e{constructor(e,t){this.width=e,this.height=t}toString(){return`{W: ${this.width}, H: ${this.height}}`}getClassName(){return"Size"}getHashCode(){let e=0|this.width;return 397*e^this.height}copyFrom(e){this.width=e.width,this.height=e.height}copyFromFloats(e,t){return this.width=e,this.height=t,this}set(e,t){return this.copyFromFloats(e,t)}multiplyByFloats(t,i){return new e(this.width*t,this.height*i)}clone(){return new e(this.width,this.height)}equals(e){return!!e&&this.width===e.width&&this.height===e.height}get surface(){return this.width*this.height}static Zero(){return new e(0,0)}add(t){return new e(this.width+t.width,this.height+t.height)}subtract(t){return new e(this.width-t.width,this.height-t.height)}scale(t){return new e(this.width*t,this.height*t)}static Lerp(t,i,r){return new e(t.width+(i.width-t.width)*r,t.height+(i.height-t.height)*r)}}])},39913,e=>{"use strict";var t=e.i(63391);class i{get min(){return this._min}get max(){return this._max}get average(){return this._average}get lastSecAverage(){return this._lastSecAverage}get current(){return this._current}get total(){return this._totalAccumulated}get count(){return this._totalValueCount}constructor(){this._startMonitoringTime=0,this._min=0,this._max=0,this._hasResult=!1,this._hasCurrentValue=!1,this._average=0,this._lastSecAverage=0,this._current=0,this._totalValueCount=0,this._totalAccumulated=0,this._lastSecAccumulated=0,this._lastSecTime=0,this._lastSecValueCount=0}fetchNewFrame(){this._totalValueCount++,this._current=0,this._hasCurrentValue=i.Enabled,this._lastSecValueCount++}addCount(e,t){i.Enabled&&(this._current+=e,this._hasCurrentValue=!0,t&&this._fetchResult())}beginMonitoring(){i.Enabled&&(this._startMonitoringTime=t.PrecisionDate.Now)}endMonitoring(e=!0){if(!i.Enabled)return;e&&this.fetchNewFrame();let r=t.PrecisionDate.Now;this._current=r-this._startMonitoringTime,this._hasCurrentValue=!0,e&&this._fetchResult()}endFrame(){this._fetchResult()}_fetchResult(){if(!this._hasCurrentValue)return;this._totalAccumulated+=this._current,this._lastSecAccumulated+=this._current,this._hasResult?(this._min=Math.min(this._min,this._current),this._max=Math.max(this._max,this._current)):(this._min=this._current,this._max=this._current,this._hasResult=!0),this._average=this._totalAccumulated/this._totalValueCount;let e=t.PrecisionDate.Now;e-this._lastSecTime>1e3&&(this._lastSecAverage=this._lastSecAccumulated/this._lastSecValueCount,this._lastSecTime=e,this._lastSecAccumulated=0,this._lastSecValueCount=0)}}i.Enabled=!0,e.s(["PerfCounter",0,i])},25804,51671,e=>{"use strict";var t=e.i(63391);class i{constructor(e){this._samples=Array(e),this.reset()}add(e){let t;if(this.isSaturated()){let e=this._samples[this._pos];t=e-this.average,this.average-=t/(this._sampleCount-1),this._m2-=t*(e-this.average)}else this._sampleCount++;t=e-this.average,this.average+=t/this._sampleCount,this._m2+=t*(e-this.average),this.variance=this._m2/(this._sampleCount-1),this._samples[this._pos]=e,this._pos++,this._pos%=this._samples.length}history(e){if(e>=this._sampleCount||e>=this._samples.length)return 0;let t=this._wrapPosition(this._pos-1);return this._samples[this._wrapPosition(t-e)]}isSaturated(){return this._sampleCount>=this._samples.length}reset(){this.average=0,this.variance=0,this._sampleCount=0,this._pos=0,this._m2=0}_wrapPosition(e){let t=this._samples.length;return(e%t+t)%t}}e.s(["PerformanceMonitor",0,class{constructor(e=30){this._enabled=!0,this._rollingFrameTime=new i(e)}sampleFrame(e=t.PrecisionDate.Now){if(this._enabled){if(null!=this._lastFrameTimeMs){let t=e-this._lastFrameTimeMs;this._rollingFrameTime.add(t)}this._lastFrameTimeMs=e}}get averageFrameTime(){return this._rollingFrameTime.average}get averageFrameTimeVariance(){return this._rollingFrameTime.variance}get instantaneousFrameTime(){return this._rollingFrameTime.history(0)}get averageFPS(){return 1e3/this._rollingFrameTime.average}get instantaneousFPS(){let e=this._rollingFrameTime.history(0);return 0===e?0:1e3/e}get isSaturated(){return this._rollingFrameTime.isSaturated()}enable(){this._enabled=!0}disable(){this._enabled=!1,this._lastFrameTimeMs=null}get isEnabled(){return this._enabled}reset(){this._lastFrameTimeMs=null,this._rollingFrameTime.reset()}}],25804);var r=e.i(7484),s=e.i(99429),n=e.i(72986);function a(e){return Number.isFinite(e.ascent)&&Number.isFinite(e.height)&&Number.isFinite(e.descent)&&e.height>0}async function l(e,t,i){return await new Promise((r,s)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{e.createImageBitmap(n,i).then(e=>{r(e)})})},n.onerror=()=>{s(`Error loading image ${n.src}`)},n.src=t})}function o(e){if(e.requestPointerLock){let t=e.requestPointerLock();t instanceof Promise?t.then(()=>{e.focus()}).catch(()=>{}):e.focus()}}e.s(["CreateImageBitmapFromSource",0,l,"ExitFullscreen",0,function(){let e=document;document.exitFullscreen?document.exitFullscreen():e.webkitCancelFullScreen&&e.webkitCancelFullScreen()},"ExitPointerlock",0,function(){document.exitPointerLock&&document.exitPointerLock()},"GetFontOffset",0,function(e){var t;let i,s,n,l,o=function(e){let t,i;if(!(0,r.IsDocumentAvailable)()||!document.body)return null;let s=document.createElement("span");s.textContent="Hg",s.style.font=e;let n=document.createElement("div");n.style.display="inline-block",n.style.width="1px",n.style.height="0px",n.style.verticalAlign="bottom";let l=document.createElement("div");l.style.whiteSpace="nowrap",l.appendChild(s),l.appendChild(n),document.body.appendChild(l);try{i=n.getBoundingClientRect().top-s.getBoundingClientRect().top,n.style.verticalAlign="baseline",t=n.getBoundingClientRect().top-s.getBoundingClientRect().top}finally{document.body.removeChild(l)}let o={ascent:t,height:i,descent:i-t};return a(o)?o:null}(e);if(o)return o;let h=function(e){let t=null;try{"u">typeof OffscreenCanvas?t=new OffscreenCanvas(64,64):(0,r.IsDocumentAvailable)()&&"function"==typeof document.createElement&&((t=document.createElement("canvas")).width=64,t.height=64);let i=t?.getContext("2d");if(!i)return null;i.font=e;let s=i.measureText("Hg"),n=Number(s.actualBoundingBoxAscent??s.fontBoundingBoxAscent),l=Number(s.actualBoundingBoxDescent??s.fontBoundingBoxDescent),o={ascent:n,height:n+l,descent:l};return a(o)?o:null}catch{return null}finally{let e=t;"function"==typeof e?.dispose&&e.dispose()}}(e);return h||(n=.8*(s=Math.max(1,(t=e,(i=/(?:^|\s)([0-9]+(?:\.[0-9]+)?)px(?:\/|\s|$)/.exec(String(t||"")))?Number(i[1]):16))),{ascent:n,height:n+(l=.2*s),descent:l})},"RequestFullscreen",0,function(e){let t=e.requestFullscreen||e.webkitRequestFullscreen;t&&t.call(e)},"RequestPointerlock",0,o,"ResizeImageBitmap",0,function(e,t,i,r){let s=e.createCanvas(i,r).getContext("2d");if(!s)throw Error("Unable to get 2d context for resizeImageBitmap");return s.drawImage(t,0,0),s.getImageData(0,0,i,r).data},"_CommonDispose",0,function(e,t){1===n.EngineStore.Instances.length&&s.AbstractEngine.audioEngine&&(s.AbstractEngine.audioEngine.dispose(),s.AbstractEngine.audioEngine=null);let i=e.getHostWindow();i&&"function"==typeof i.removeEventListener&&(i.removeEventListener("blur",e._onBlur),i.removeEventListener("focus",e._onFocus)),t&&(t.removeEventListener("focus",e._onCanvasFocus),t.removeEventListener("blur",e._onCanvasBlur),t.removeEventListener("pointerout",e._onCanvasPointerOut),t.removeEventListener("contextmenu",e._onCanvasContextMenu)),(0,r.IsDocumentAvailable)()&&(document.removeEventListener("fullscreenchange",e._onFullscreenChange),document.removeEventListener("mozfullscreenchange",e._onFullscreenChange),document.removeEventListener("webkitfullscreenchange",e._onFullscreenChange),document.removeEventListener("msfullscreenchange",e._onFullscreenChange),document.removeEventListener("pointerlockchange",e._onPointerLockChange),document.removeEventListener("mspointerlockchange",e._onPointerLockChange),document.removeEventListener("mozpointerlockchange",e._onPointerLockChange),document.removeEventListener("webkitpointerlockchange",e._onPointerLockChange))},"_CommonInit",0,function(e,t,i){e._onCanvasFocus=()=>{e.onCanvasFocusObservable.notifyObservers(e)},e._onCanvasBlur=()=>{e.onCanvasBlurObservable.notifyObservers(e)},e._onCanvasContextMenu=t=>{e.disableContextMenu&&t.preventDefault()},t.addEventListener("focus",e._onCanvasFocus),t.addEventListener("blur",e._onCanvasBlur),t.addEventListener("contextmenu",e._onCanvasContextMenu),e._onBlur=()=>{e.disablePerformanceMonitorInBackground&&e.performanceMonitor.disable(),e._windowIsBackground=!0},e._onFocus=()=>{e.disablePerformanceMonitorInBackground&&e.performanceMonitor.enable(),e._windowIsBackground=!1},e._onCanvasPointerOut=i=>{document.elementFromPoint(i.clientX,i.clientY)!==t&&e.onCanvasPointerOutObservable.notifyObservers(i)};let n=e.getHostWindow();n&&"function"==typeof n.addEventListener&&(n.addEventListener("blur",e._onBlur),n.addEventListener("focus",e._onFocus)),t.addEventListener("pointerout",e._onCanvasPointerOut),!i.doNotHandleTouchAction&&t&&t.setAttribute&&(t.setAttribute("touch-action","none"),t.style.touchAction="none",t.style.webkitTapHighlightColor="transparent"),!s.AbstractEngine.audioEngine&&i.audioEngine&&s.AbstractEngine.AudioEngineFactory&&(s.AbstractEngine.audioEngine=s.AbstractEngine.AudioEngineFactory(e.getRenderingCanvas(),e.getAudioContext(),e.getAudioDestination())),(0,r.IsDocumentAvailable)()&&(e._onFullscreenChange=()=>{e.isFullscreen=!!document.fullscreenElement,e.isFullscreen&&e._pointerLockRequested&&t&&o(t)},document.addEventListener("fullscreenchange",e._onFullscreenChange,!1),document.addEventListener("webkitfullscreenchange",e._onFullscreenChange,!1),e._onPointerLockChange=()=>{e.isPointerLock=document.pointerLockElement===t},document.addEventListener("pointerlockchange",e._onPointerLockChange,!1),document.addEventListener("webkitpointerlockchange",e._onPointerLockChange,!1)),e.enableOfflineSupport=void 0!==s.AbstractEngine.OfflineProviderFactory,e._deterministicLockstep=!!i.deterministicLockstep,e._lockstepMaxSteps=i.lockstepMaxSteps||0,e._timeStep=i.timeStep||1/60}],51671)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,54380,t=>{"use strict";var e=t.i(57011),s=t.i(97009),i=t.i(5573),r=t.i(99493);class n extends e.FlowGraphEventBlock{constructor(t){super(t),this.type="PointerOut",this.pointerId=this.registerDataOutput("pointerId",s.RichTypeNumber),this.targetMesh=this.registerDataInput("targetMesh",s.RichTypeAny,t?.targetMesh),this.meshOutOfPointer=this.registerDataOutput("meshOutOfPointer",s.RichTypeAny)}_executeEvent(t,e){let s=this.targetMesh.getValue(t);return this.meshOutOfPointer.setValue(e.mesh,t),this.pointerId.setValue(e.pointerId,t),!(!(e.over&&(0,i._IsDescendantOf)(e.mesh,s))&&(e.mesh===s||(0,i._IsDescendantOf)(e.mesh,s)))||(this._execute(t),!this.config?.stopPropagation)}_preparePendingTasks(t){}_cancelPendingTasks(t){}getClassName(){return"FlowGraphPointerOutEventBlock"}}let o=!1;function h(){o||(o=!0,(0,r.RegisterClass)("FlowGraphPointerOutEventBlock",n))}t.s(["FlowGraphPointerOutEventBlock",0,n,"RegisterFlowGraphPointerOutEventBlock",0,h],18816),h(),t.s([],23066),t.i(23066),t.i(18816),t.s(["FlowGraphPointerOutEventBlock",0,n],54380)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86549,e=>{"use strict";var t=e.i(37096),i=e.i(97009),r=e.i(59012),s=e.i(99493);class a extends t.FlowGraphBlock{constructor(e){super(e),this.config=e,this.object=this.registerDataInput("object",i.RichTypeAny),this.array=this.registerDataInput("array",i.RichTypeAny),this.index=this.registerDataOutput("index",i.RichTypeFlowGraphInteger,new r.FlowGraphInteger(-1))}_updateOutputs(e){let t=this.object.getValue(e),i=this.array.getValue(e);i&&this.index.setValue(new r.FlowGraphInteger(i.indexOf(t)),e)}serialize(e){super.serialize(e)}getClassName(){return"FlowGraphIndexOfBlock"}}let l=!1;function o(){l||(l=!0,(0,s.RegisterClass)("FlowGraphIndexOfBlock",a))}e.s(["FlowGraphIndexOfBlock",0,a,"RegisterFlowGraphIndexOfBlock",0,o],34632),o(),e.s([],73589),e.i(73589),e.i(34632),e.s(["FlowGraphIndexOfBlock",0,a],86549)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74418,t=>{"use strict";var i=t.i(97009),e=t.i(85789),n=t.i(60219),o=t.i(99493);class a extends n.FlowGraphAsyncExecutionBlock{constructor(t){super(t),this.animationGroup=this.registerDataInput("animationGroup",i.RichTypeAny),this.stopAtFrame=this.registerDataInput("stopAtFrame",i.RichTypeNumber,-1)}_preparePendingTasks(t){let i=this.animationGroup.getValue(t),e=this.stopAtFrame.getValue(t)??-1,n=t._getGlobalContextVariable("pendingStopAnimations",[]);n.push({uniqueId:i.uniqueId,stopAtFrame:e}),t._setGlobalContextVariable("pendingStopAnimations",n)}_cancelPendingTasks(t){let i=this.animationGroup.getValue(t),e=t._getGlobalContextVariable("pendingStopAnimations",[]);for(let n=0;n<e.length;n++)if(e[n].uniqueId===i.uniqueId){e.splice(n,1),t._setGlobalContextVariable("pendingStopAnimations",e);break}}_execute(t){let i=this.animationGroup.getValue(t),n=this.stopAtFrame.getValue(t)??-1;return i?isNaN(n)?this._reportError(t,"Invalid stop time."):void(n>0?this._startPendingTasks(t):this._stopAnimation(i,t),this.out._activateSignal(t)):(e.Logger.Warn("No animation group provided to stop."),this._reportError(t,"No animation group provided to stop."))}_executeOnTick(t){let i=this.animationGroup.getValue(t),e=t._getGlobalContextVariable("pendingStopAnimations",[]);for(let n=0;n<e.length;n++)if(e[n].uniqueId===i.uniqueId&&i.getCurrentFrame()>=e[n].stopAtFrame){this._stopAnimation(i,t),e.splice(n,1),t._setGlobalContextVariable("pendingStopAnimations",e),this.done._activateSignal(t),t._removePendingBlock(this);break}}getClassName(){return"FlowGraphStopAnimationBlock"}_stopAnimation(t,i){let e=i._getGlobalContextVariable("currentlyRunningAnimationGroups",[]),n=e.indexOf(t.uniqueId);-1!==n&&(t.stop(!0),e.splice(n,1),i._setGlobalContextVariable("currentlyRunningAnimationGroups",e))}}let r=!1;function s(){r||(r=!0,(0,o.RegisterClass)("FlowGraphStopAnimationBlock",a))}t.s(["FlowGraphStopAnimationBlock",0,a,"RegisterFlowGraphStopAnimationBlock",0,s],444),s(),t.s([],49814),t.i(49814),t.i(444),t.s(["FlowGraphStopAnimationBlock",0,a],74418)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,81127,26801,e=>{"use strict";var t=e.i(85789),r=e.i(40379);class i{constructor(e,t,r=!1,i,a=!1,f){this._uniformNames=[],this._valueCache={},this._engine=e,this._noUBO=!e.supportsUniformBuffers||a,this._dynamic=r,this._name=i??"no-name",this._data=t||[],this._uniformLocations={},this._uniformSizes={},this._uniformArraySizes={},this._uniformLocationPointer=0,this._needSync=!1,this._trackUBOsInFrame=!1,(void 0===f&&this._engine._features.trackUbosInFrame||!0===f)&&(this._buffers=[],this._bufferIndex=-1,this._bufferUpdatedLastFrame=!1,this._createBufferOnWrite=!1,this._currentFrameId=0,this._trackUBOsInFrame=!0),this._noUBO?(this.updateMatrix3x3=this._updateMatrix3x3ForEffect,this.updateMatrix2x2=this._updateMatrix2x2ForEffect,this.updateFloat=this._updateFloatForEffect,this.updateFloat2=this._updateFloat2ForEffect,this.updateFloat3=this._updateFloat3ForEffect,this.updateFloat4=this._updateFloat4ForEffect,this.updateFloatArray=this._updateFloatArrayForEffect,this.updateArray=this._updateArrayForEffect,this.updateIntArray=this._updateIntArrayForEffect,this.updateUIntArray=this._updateUIntArrayForEffect,this.updateMatrix=this._updateMatrixForEffect,this.updateMatrices=this._updateMatricesForEffect,this.updateVector3=this._updateVector3ForEffect,this.updateVector4=this._updateVector4ForEffect,this.updateColor3=this._updateColor3ForEffect,this.updateColor4=this._updateColor4ForEffect,this.updateDirectColor4=this._updateDirectColor4ForEffect,this.updateInt=this._updateIntForEffect,this.updateInt2=this._updateInt2ForEffect,this.updateInt3=this._updateInt3ForEffect,this.updateInt4=this._updateInt4ForEffect,this.updateUInt=this._updateUIntForEffect,this.updateUInt2=this._updateUInt2ForEffect,this.updateUInt3=this._updateUInt3ForEffect,this.updateUInt4=this._updateUInt4ForEffect):(this._engine._uniformBuffers.push(this),this.updateMatrix3x3=this._updateMatrix3x3ForUniform,this.updateMatrix2x2=this._updateMatrix2x2ForUniform,this.updateFloat=this._updateFloatForUniform,this.updateFloat2=this._updateFloat2ForUniform,this.updateFloat3=this._updateFloat3ForUniform,this.updateFloat4=this._updateFloat4ForUniform,this.updateFloatArray=this._updateFloatArrayForUniform,this.updateArray=this._updateArrayForUniform,this.updateIntArray=this._updateIntArrayForUniform,this.updateUIntArray=this._updateUIntArrayForUniform,this.updateMatrix=this._updateMatrixForUniform,this.updateMatrices=this._updateMatricesForUniform,this.updateVector3=this._updateVector3ForUniform,this.updateVector4=this._updateVector4ForUniform,this.updateColor3=this._updateColor3ForUniform,this.updateColor4=this._updateColor4ForUniform,this.updateDirectColor4=this._updateDirectColor4ForUniform,this.updateInt=this._updateIntForUniform,this.updateInt2=this._updateInt2ForUniform,this.updateInt3=this._updateInt3ForUniform,this.updateInt4=this._updateInt4ForUniform,this.updateUInt=this._updateUIntForUniform,this.updateUInt2=this._updateUInt2ForUniform,this.updateUInt3=this._updateUInt3ForUniform,this.updateUInt4=this._updateUInt4ForUniform)}get useUbo(){return!this._noUBO}get isSync(){return!this._needSync}isDynamic(){return this._dynamic}getData(){return this._bufferData}getBuffer(){return this._buffer}getUniformNames(){return this._uniformNames}_fillAlignment(e){let t;if(t=e<=2?e:4,this._uniformLocationPointer%t!=0){let e=this._uniformLocationPointer;this._uniformLocationPointer+=t-this._uniformLocationPointer%t;let r=this._uniformLocationPointer-e;for(let e=0;e<r;e++)this._data.push(0)}}addUniform(e,t,r=0){let i;if((r>0&&"number"==typeof t&&(this._uniformArraySizes[e]={strideSize:t,arraySize:r}),void 0===this._uniformLocations[e])&&(this._uniformNames.push(e),!this._noUBO)){if(r>0){if(t instanceof Array)throw"addUniform should not be use with Array in UBO: "+e;if(this._fillAlignment(4),16==t)t*=r;else{let e=4-t;t=t*r+e*r}i=[];for(let e=0;e<t;e++)i.push(0)}else{if(t instanceof Array)t=(i=t).length;else{i=[];for(let e=0;e<t;e++)i.push(0)}this._fillAlignment(t)}this._uniformSizes[e]=t,this._uniformLocations[e]=this._uniformLocationPointer,this._uniformLocationPointer+=t;for(let e=0;e<t;e++)this._data.push(i[e]);this._needSync=!0}}addMatrix(e,t){this.addUniform(e,Array.prototype.slice.call(t.asArray()))}addFloat2(e,t,r){this.addUniform(e,[t,r])}addFloat3(e,t,r,i){this.addUniform(e,[t,r,i])}addColor3(e,t){let r=[t.r,t.g,t.b];this.addUniform(e,r)}addColor4(e,t,r){let i=[t.r,t.g,t.b,r];this.addUniform(e,i)}addVector3(e,t){let r=[t.x,t.y,t.z];this.addUniform(e,r)}addMatrix3x3(e){this.addUniform(e,12)}addMatrix2x2(e){this.addUniform(e,8)}create(){this._noUBO||this._buffer||(this._fillAlignment(4),this._bufferData=new Float32Array(this._data),this._rebuild(),this._needSync=!0)}_getNamesDebug(){let e=[],t=0;for(let r in this._uniformLocations)if(e.push(r),10==++t)break;return e.join(",")}_rebuild(){!this._noUBO&&this._bufferData&&(this._dynamic?this._buffer=this._engine.createDynamicUniformBuffer(this._bufferData,this._name+"_UniformList:"+this._getNamesDebug()):this._buffer=this._engine.createUniformBuffer(this._bufferData,this._name+"_UniformList:"+this._getNamesDebug()),this._trackUBOsInFrame&&(this._buffers.push([this._buffer,this._engine._features.checkUbosContentBeforeUpload?this._bufferData.slice():void 0]),this._bufferIndex=this._buffers.length-1,this._createBufferOnWrite=!1))}_rebuildAfterContextLost(){this._trackUBOsInFrame&&(this._buffers=[],this._currentFrameId=0),this._rebuild()}get _numBuffers(){return this._buffers.length}get _indexBuffer(){return this._bufferIndex}get name(){return this._name}set name(e){this._name=e}get currentEffect(){return this._currentEffect}_buffersEqual(e,t){for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}_copyBuffer(e,t){for(let r=0;r<e.length;++r)t[r]=e[r]}update(){if(!this._noUBO){if(this.bindUniformBuffer(),!this._buffer)return void this.create();if(!this._dynamic&&!this._needSync){this._createBufferOnWrite=this._trackUBOsInFrame;return}if(this._buffers&&this._buffers.length>1&&this._buffers[this._bufferIndex][1])if(this._buffersEqual(this._bufferData,this._buffers[this._bufferIndex][1])){this._needSync=!1,this._createBufferOnWrite=this._trackUBOsInFrame;return}else this._copyBuffer(this._bufferData,this._buffers[this._bufferIndex][1]);this._bufferUpdatedLastFrame=!0,this._engine.updateUniformBuffer(this._buffer,this._bufferData),this._needSync=!1,this._createBufferOnWrite=this._trackUBOsInFrame}}_createNewBuffer(){this._bufferIndex+1<this._buffers.length?(this._bufferIndex++,this._buffer=this._buffers[this._bufferIndex][0],this._createBufferOnWrite=!1,this._needSync=!0):this._rebuild()}_checkNewFrame(){this._trackUBOsInFrame&&this._currentFrameId!==this._engine.frameId&&(this._currentFrameId=this._engine.frameId,this._createBufferOnWrite=!1,this._buffers&&this._buffers.length>0?(1===this._buffers.length?this._needSync=!this._bufferUpdatedLastFrame:this._needSync=0!==this._bufferIndex,this._bufferIndex=0,this._buffer=this._buffers[this._bufferIndex][0]):this._bufferIndex=-1)}updateUniform(e,r,i){this._checkNewFrame();let a=this._uniformLocations[e];if(void 0===a){if(this._buffer)return void t.Logger.Error("Cannot add an uniform after UBO has been created. uniformName="+e);this.addUniform(e,i),a=this._uniformLocations[e]}if(this._buffer||this.create(),this._dynamic)for(let e=0;e<i;e++)this._bufferData[a+e]=r[e];else{let e=!1;for(let t=0;t<i;t++)(16!==i||this._engine._features.uniformBufferHardCheckMatrix)&&this._bufferData[a+t]===Math.fround(r[t])||(e=!0,this._createBufferOnWrite&&this._createNewBuffer(),this._bufferData[a+t]=r[t]);this._needSync=this._needSync||e}}updateUniformArray(e,i,a){this._checkNewFrame();let f=this._uniformLocations[e];if(void 0===f)return void t.Logger.Error("Cannot add an uniform Array dynamically. Please, add it using addUniform and make sure that uniform buffers are supported by the current engine.");this._buffer||this.create();let s=this._uniformArraySizes[e];if(this._dynamic)for(let e=0;e<a;e++)this._bufferData[f+e]=i[e];else{let e=!1,t=0,n=0;for(let o=0;o<a;o++)if(this._bufferData[f+4*n+t]!==r.Tools.FloatRound(i[o])&&(e=!0,this._createBufferOnWrite&&this._createNewBuffer(),this._bufferData[f+4*n+t]=i[o]),++t===s.strideSize){for(;t<4;t++)this._bufferData[f+4*n+t]=0;t=0,n++}this._needSync=this._needSync||e}}_cacheMatrix(e,t){this._checkNewFrame();let r=this._valueCache[e],i=t.updateFlag;return(void 0===r||r!==i)&&(this._valueCache[e]=i,!0)}_updateMatrix3x3ForUniform(e,t){for(let e=0;e<3;e++)i._TempBuffer[4*e]=t[3*e],i._TempBuffer[4*e+1]=t[3*e+1],i._TempBuffer[4*e+2]=t[3*e+2],i._TempBuffer[4*e+3]=0;this.updateUniform(e,i._TempBuffer,12)}_updateMatrix3x3ForEffect(e,t){this._currentEffect.setMatrix3x3(e,t)}_updateMatrix2x2ForEffect(e,t){this._currentEffect.setMatrix2x2(e,t)}_updateMatrix2x2ForUniform(e,t){for(let e=0;e<2;e++)i._TempBuffer[4*e]=t[2*e],i._TempBuffer[4*e+1]=t[2*e+1],i._TempBuffer[4*e+2]=0,i._TempBuffer[4*e+3]=0;this.updateUniform(e,i._TempBuffer,8)}_updateFloatForEffect(e,t,r=""){this._currentEffect.setFloat(e+r,t)}_updateFloatForUniform(e,t){i._TempBuffer[0]=t,this.updateUniform(e,i._TempBuffer,1)}_updateFloat2ForEffect(e,t,r,i=""){this._currentEffect.setFloat2(e+i,t,r)}_updateFloat2ForUniform(e,t,r){i._TempBuffer[0]=t,i._TempBuffer[1]=r,this.updateUniform(e,i._TempBuffer,2)}_updateFloat3ForEffect(e,t,r,i,a=""){this._currentEffect.setFloat3(e+a,t,r,i)}_updateFloat3ForUniform(e,t,r,a){i._TempBuffer[0]=t,i._TempBuffer[1]=r,i._TempBuffer[2]=a,this.updateUniform(e,i._TempBuffer,3)}_updateFloat4ForEffect(e,t,r,i,a,f=""){this._currentEffect.setFloat4(e+f,t,r,i,a)}_updateFloat4ForUniform(e,t,r,a,f){i._TempBuffer[0]=t,i._TempBuffer[1]=r,i._TempBuffer[2]=a,i._TempBuffer[3]=f,this.updateUniform(e,i._TempBuffer,4)}_updateFloatArrayForEffect(e,t,r=""){switch(this._uniformArraySizes[e]?.strideSize){case 2:this._currentEffect.setFloatArray2(e+r,t);break;case 3:this._currentEffect.setFloatArray3(e+r,t);break;case 4:this._currentEffect.setFloatArray4(e+r,t);break;default:this._currentEffect.setFloatArray(e+r,t)}}_updateFloatArrayForUniform(e,t){this.updateUniformArray(e,t,t.length)}_updateArrayForEffect(e,t){this._currentEffect.setArray(e,t)}_updateArrayForUniform(e,t){this.updateUniformArray(e,t,t.length)}_updateIntArrayForEffect(e,t){this._currentEffect.setIntArray(e,t)}_updateIntArrayForUniform(e,t){i._TempBufferInt32View.set(t),this.updateUniformArray(e,i._TempBuffer,t.length)}_updateUIntArrayForEffect(e,t){this._currentEffect.setUIntArray(e,t)}_updateUIntArrayForUniform(e,t){i._TempBufferUInt32View.set(t),this.updateUniformArray(e,i._TempBuffer,t.length)}_updateMatrixForEffect(e,t){this._currentEffect.setMatrix(e,t)}_updateMatrixForUniform(e,t){this._cacheMatrix(e,t)&&this.updateUniform(e,t.asArray(),16)}_updateMatricesForEffect(e,t){this._currentEffect.setMatrices(e,t)}_updateMatricesForUniform(e,t){this.updateUniform(e,t,t.length)}_updateVector3ForEffect(e,t){this._currentEffect.setVector3(e,t)}_updateVector3ForUniform(e,t){i._TempBuffer[0]=t.x,i._TempBuffer[1]=t.y,i._TempBuffer[2]=t.z,this.updateUniform(e,i._TempBuffer,3)}_updateVector4ForEffect(e,t){this._currentEffect.setVector4(e,t)}_updateVector4ForUniform(e,t){i._TempBuffer[0]=t.x,i._TempBuffer[1]=t.y,i._TempBuffer[2]=t.z,i._TempBuffer[3]=t.w,this.updateUniform(e,i._TempBuffer,4)}_updateColor3ForEffect(e,t,r=""){this._currentEffect.setColor3(e+r,t)}_updateColor3ForUniform(e,t){i._TempBuffer[0]=t.r,i._TempBuffer[1]=t.g,i._TempBuffer[2]=t.b,this.updateUniform(e,i._TempBuffer,3)}_updateColor4ForEffect(e,t,r,i=""){this._currentEffect.setColor4(e+i,t,r)}_updateDirectColor4ForEffect(e,t,r=""){this._currentEffect.setDirectColor4(e+r,t)}_updateColor4ForUniform(e,t,r){i._TempBuffer[0]=t.r,i._TempBuffer[1]=t.g,i._TempBuffer[2]=t.b,i._TempBuffer[3]=r,this.updateUniform(e,i._TempBuffer,4)}_updateDirectColor4ForUniform(e,t){i._TempBuffer[0]=t.r,i._TempBuffer[1]=t.g,i._TempBuffer[2]=t.b,i._TempBuffer[3]=t.a,this.updateUniform(e,i._TempBuffer,4)}_updateIntForEffect(e,t,r=""){this._currentEffect.setInt(e+r,t)}_updateIntForUniform(e,t){i._TempBufferInt32View[0]=t,this.updateUniform(e,i._TempBuffer,1)}_updateInt2ForEffect(e,t,r,i=""){this._currentEffect.setInt2(e+i,t,r)}_updateInt2ForUniform(e,t,r){i._TempBufferInt32View[0]=t,i._TempBufferInt32View[1]=r,this.updateUniform(e,i._TempBuffer,2)}_updateInt3ForEffect(e,t,r,i,a=""){this._currentEffect.setInt3(e+a,t,r,i)}_updateInt3ForUniform(e,t,r,a){i._TempBufferInt32View[0]=t,i._TempBufferInt32View[1]=r,i._TempBufferInt32View[2]=a,this.updateUniform(e,i._TempBuffer,3)}_updateInt4ForEffect(e,t,r,i,a,f=""){this._currentEffect.setInt4(e+f,t,r,i,a)}_updateInt4ForUniform(e,t,r,a,f){i._TempBufferInt32View[0]=t,i._TempBufferInt32View[1]=r,i._TempBufferInt32View[2]=a,i._TempBufferInt32View[3]=f,this.updateUniform(e,i._TempBuffer,4)}_updateUIntForEffect(e,t,r=""){this._currentEffect.setUInt(e+r,t)}_updateUIntForUniform(e,t){i._TempBufferUInt32View[0]=t,this.updateUniform(e,i._TempBuffer,1)}_updateUInt2ForEffect(e,t,r,i=""){this._currentEffect.setUInt2(e+i,t,r)}_updateUInt2ForUniform(e,t,r){i._TempBufferUInt32View[0]=t,i._TempBufferUInt32View[1]=r,this.updateUniform(e,i._TempBuffer,2)}_updateUInt3ForEffect(e,t,r,i,a=""){this._currentEffect.setUInt3(e+a,t,r,i)}_updateUInt3ForUniform(e,t,r,a){i._TempBufferUInt32View[0]=t,i._TempBufferUInt32View[1]=r,i._TempBufferUInt32View[2]=a,this.updateUniform(e,i._TempBuffer,3)}_updateUInt4ForEffect(e,t,r,i,a,f=""){this._currentEffect.setUInt4(e+f,t,r,i,a)}_updateUInt4ForUniform(e,t,r,a,f){i._TempBufferUInt32View[0]=t,i._TempBufferUInt32View[1]=r,i._TempBufferUInt32View[2]=a,i._TempBufferUInt32View[3]=f,this.updateUniform(e,i._TempBuffer,4)}setTexture(e,t){this._currentEffect.setTexture(e,t)}setTextureArray(e,t){this._currentEffect.setTextureArray(e,t)}bindTexture(e,t){this._currentEffect._bindTexture(e,t)}updateUniformDirectly(e,t){this.updateUniform(e,t,t.length),this.update()}bindToEffect(e,t){this._currentEffect=e,this._currentEffectName=t}bindUniformBuffer(){!this._noUBO&&this._buffer&&this._currentEffect&&this._currentEffect.bindUniformBuffer(this._buffer,this._currentEffectName)}unbindEffect(){this._currentEffect=void 0,this._currentEffectName=void 0}setDataBuffer(e){if(!this._buffers)return this._buffer===e;for(let t=0;t<this._buffers.length;++t)if(this._buffers[t][0]===e)return this._bufferIndex=t,this._buffer=e,this._createBufferOnWrite=!1,this._currentEffect=void 0,this._buffers.length>1&&this._buffers[t][1]&&this._bufferData.set(this._buffers[t][1]),this._valueCache={},this._currentFrameId=this._engine.frameId,!0;return!1}has(e){return void 0!==this._uniformLocations[e]}dispose(){if(this._noUBO)return;let e=this._engine._uniformBuffers,t=e.indexOf(this);if(-1!==t&&(e[t]=e[e.length-1],e.pop()),this._trackUBOsInFrame&&this._buffers)for(let e=0;e<this._buffers.length;++e){let t=this._buffers[e][0];this._engine._releaseBuffer(t)}else this._buffer&&this._engine._releaseBuffer(this._buffer)&&(this._buffer=null)}}i._MAX_UNIFORM_SIZE=256,i._TempBuffer=new Float32Array(i._MAX_UNIFORM_SIZE),i._TempBufferInt32View=new Int32Array(i._TempBuffer.buffer),i._TempBufferUInt32View=new Uint32Array(i._TempBuffer.buffer),e.s(["UniformBuffer",0,i],81127);class a{static CompareLightsPriority(e,t){return e.shadowEnabled!==t.shadowEnabled?!!t.shadowEnabled-!!e.shadowEnabled:t.renderPriority-e.renderPriority}}a.FALLOFF_DEFAULT=0,a.FALLOFF_PHYSICAL=1,a.FALLOFF_GLTF=2,a.FALLOFF_STANDARD=3,a.LIGHTMAP_DEFAULT=0,a.LIGHTMAP_SPECULAR=1,a.LIGHTMAP_SHADOWSONLY=2,a.INTENSITYMODE_AUTOMATIC=0,a.INTENSITYMODE_LUMINOUSPOWER=1,a.INTENSITYMODE_LUMINOUSINTENSITY=2,a.INTENSITYMODE_ILLUMINANCE=3,a.INTENSITYMODE_LUMINANCE=4,a.LIGHTTYPEID_POINTLIGHT=0,a.LIGHTTYPEID_DIRECTIONALLIGHT=1,a.LIGHTTYPEID_SPOTLIGHT=2,a.LIGHTTYPEID_HEMISPHERICLIGHT=3,a.LIGHTTYPEID_RECT_AREALIGHT=4,a.LIGHTTYPEID_CLUSTERED_CONTAINER=5,e.s(["LightConstants",0,a],26801)},22832,80145,e=>{"use strict";var t=e.i(43880);class r{static Eval(e,t){return"true"===(e=e.match(/\([^()]*\)/g)?e.replace(/\([^()]*\)/g,e=>(e=e.slice(1,e.length-1),r._HandleParenthesisContent(e,t))):r._HandleParenthesisContent(e,t))||"false"!==e&&r.Eval(e,t)}static _HandleParenthesisContent(e,t){let i;t=t||(e=>"true"===e);let a=e.split("||");for(let e in a)if(Object.prototype.hasOwnProperty.call(a,e)){let f=r._SimplifyNegation(a[e].trim()),s=f.split("&&");if(s.length>1)for(let e=0;e<s.length;++e){let a=r._SimplifyNegation(s[e].trim());if(!(i="true"!==a&&"false"!==a?"!"===a[0]?!t(a.substring(1)):t(a):"true"===a)){f="false";break}}if(i||"true"===f){i=!0;break}i="true"!==f&&"false"!==f?"!"===f[0]?!t(f.substring(1)):t(f):"true"===f}return i?"true":"false"}static _SimplifyNegation(e){return"!true"===(e=(e=e.replace(/^[\s!]+/,e=>(e=e.replace(/[\s]/g,()=>"")).length%2?"!":"")).trim())?e="false":"!false"===e&&(e="true"),e}}class i{static EnableFor(e){e._tags=e._tags||{},e.hasTags=()=>i.HasTags(e),e.addTags=t=>i.AddTagsTo(e,t),e.removeTags=t=>i.RemoveTagsFrom(e,t),e.matchesTagsQuery=t=>i.MatchesQuery(e,t)}static DisableFor(e){delete e._tags,delete e.hasTags,delete e.addTags,delete e.removeTags,delete e.matchesTagsQuery}static HasTags(e){if(!e._tags)return!1;let t=e._tags;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!0;return!1}static GetTags(e,t=!0){if(!e._tags)return null;if(!t)return e._tags;{let t=[];for(let r in e._tags)Object.prototype.hasOwnProperty.call(e._tags,r)&&!0===e._tags[r]&&t.push(r);return t.join(" ")}}static AddTagsTo(e,t){if(t&&"string"==typeof t)for(let r of t.split(" "))i._AddTagTo(e,r)}static _AddTagTo(e,t){""===(t=t.trim())||"true"===t||"false"===t||t.match(/[\s]/)||t.match(/^([!]|([|]|[&]){2})/)||(i.EnableFor(e),e._tags[t]=!0)}static RemoveTagsFrom(e,t){if(!i.HasTags(e))return;let r=t.split(" ");for(let t in r)i._RemoveTagFrom(e,r[t])}static _RemoveTagFrom(e,t){delete e._tags[t]}static MatchesQuery(e,t){return void 0===t||(""===t?i.HasTags(e):r.Eval(t,t=>i.HasTags(e)&&e._tags[t]))}}e.s(["Tags",0,i],80145);var a=e.i(64073),f=e.i(72003),s=e.i(82427);let n=function(e,t,r,a={}){let f=e();i&&i.HasTags(t)&&i.AddTagsTo(f,i.GetTags(t,!0));let n=(0,s.GetMergedStore)(f),u={};for(let e in n){let i=n[e],s=t[e],_=i.type;if(null!=s&&("uniqueId"!==e||o.AllowLoadingUniqueId))switch(_){case 0:case 6:case 9:case 11:"function"==typeof s.slice?f[e]=s.slice():f[e]=s;break;case 1:a.cloneTexturesOnlyOnce&&u[s.uniqueId]?f[e]=u[s.uniqueId]:(f[e]=r||s.isRenderTarget?s:s.clone(),u[s.uniqueId]=f[e]);break;case 2:case 3:case 4:case 5:case 7:case 8:case 10:case 12:case 13:f[e]=r?s:s.clone()}}return f};class o{static AppendSerializedAnimations(e,t){if(e.animations){t.animations=[];for(let r=0;r<e.animations.length;r++){let i=e.animations[r];t.animations.push(i.serialize())}}}static Serialize(e,t){t||(t={}),i&&(t.tags=i.GetTags(e));let r=(0,s.GetMergedStore)(e);for(let i in r){let a=r[i],f=a.sourceName||i,s=a.type,n=e[i];if(null!=n&&("uniqueId"!==i||o.AllowLoadingUniqueId))switch(s){case 0:Array.isArray(n)?t[f]=n.slice():t[f]=n;break;case 1:case 3:case 7:case 9:t[f]=n.serialize();break;case 2:case 4:case 5:case 8:case 10:case 12:case 13:t[f]=n.asArray();break;case 6:case 11:t[f]=n.id}}return t}static ParseProperties(e,t,r,i){i||(i="");let n=(0,s.GetMergedStore)(t);for(let s in n){let u=n[s],_=e[u.sourceName||s],h=u.type;if(null!=_&&("uniqueId"!==s||o.AllowLoadingUniqueId))switch(h){case 0:t[s]=_;break;case 1:r&&(t[s]=o._TextureParser(_,r,i));break;case 2:t[s]=a.Color3.FromArray(_);break;case 3:t[s]=o._FresnelParametersParser(_);break;case 4:t[s]=f.Vector2.FromArray(_);break;case 5:t[s]=f.Vector3.FromArray(_);break;case 6:r&&(t[s]=r.getLastMeshById(_));break;case 7:t[s]=o._ColorCurvesParser(_);break;case 8:t[s]=a.Color4.FromArray(_);break;case 9:t[s]=o._ImageProcessingConfigurationParser(_);break;case 10:t[s]=f.Quaternion.FromArray(_);break;case 11:r&&(t[s]=r.getCameraById(_));break;case 12:t[s]=f.Matrix.FromArray(_);break;case 13:t[s]=f.Vector4.FromArray(_)}}}static Parse(e,t,r,a=null){let f=e();return i&&i.AddTagsTo(f,t.tags),o.ParseProperties(t,f,r,a),f}static Clone(e,t,r={}){return n(e,t,!1,r)}static Instanciate(e,t){return n(e,t,!0)}}o.AllowLoadingUniqueId=!1,o._ImageProcessingConfigurationParser=e=>{throw(0,t._WarnImport)("ImageProcessingConfiguration")},o._FresnelParametersParser=e=>{throw(0,t._WarnImport)("FresnelParameters")},o._ColorCurvesParser=e=>{throw(0,t._WarnImport)("ColorCurves")},o._TextureParser=(e,r,i)=>{throw(0,t._WarnImport)("Texture")},e.s(["SerializationHelper",0,o],22832)},4112,82427,91679,e=>{"use strict";let t;"function"==typeof SuppressedError&&SuppressedError,e.s(["__classPrivateFieldGet",0,function(e,t,r,i){if("a"===r&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(e):i?i.value:t.get(e)},"__classPrivateFieldSet",0,function(e,t,r,i,a){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?a.call(e,r):a?a.value=r:t.set(e,r),r},"__esDecorate",0,function(e,t,r,i,a,f){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var n,o=i.kind,u="getter"===o?"get":"setter"===o?"set":"value",_=!t&&e?i.static?e:e.prototype:null,h=t||(_?Object.getOwnPropertyDescriptor(_,i.name):{}),c=!1,d=r.length-1;d>=0;d--){var l={};for(var p in i)l[p]="access"===p?{}:i[p];for(var p in i.access)l.access[p]=i.access[p];l.addInitializer=function(e){if(c)throw TypeError("Cannot add initializers after decoration has completed");f.push(s(e||null))};var m=(0,r[d])("accessor"===o?{get:h.get,set:h.set}:h[u],l);if("accessor"===o){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(n=s(m.get))&&(h.get=n),(n=s(m.set))&&(h.set=n),(n=s(m.init))&&a.unshift(n)}else(n=s(m))&&("field"===o?a.unshift(n):h[u]=n)}_&&Object.defineProperty(_,i.name,h),c=!0},"__runInitializers",0,function(e,t,r){for(var i=arguments.length>2,a=0;a<t.length;a++)r=i?t[a].call(e,r):t[a].call(e);return i?r:void 0}],4112);let r="__bjs_serializable__",i=new WeakMap;function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}let f=((t=Symbol.metadata)||Object.defineProperty(Symbol,"metadata",{configurable:!0,writable:!0,value:t=Symbol("Symbol.metadata")}),t);function s(e){if(!e)throw Error(`Decorator metadata is unavailable; the Symbol.metadata (${String(f)}) polyfill must run before decorated classes are evaluated.`);return a(e,r)||(e[r]={}),e[r]}function n(e,t){return(r,i)=>{if(!i.metadata)return;let a=String(i.name),f=s(i.metadata);f[a]||(f[a]={type:e,sourceName:t})}}function o(e,t,r){let i=String(t.name),a=null,f=function(...s){if(null===a){a=e,"u">typeof _native&&_native[i]&&(a=r(_native[i],e));let s=this&&(t.static?this:Object.getPrototypeOf(this));s?.[i]===f&&(s[i]=a)}return a.apply(this,s)};return f}function u(e,t){return o(e,t,e=>e)}e.s(["GetDirectStoreFromMetadata",0,s,"GetMergedStore",0,function(e){let t="function"==typeof e?e:e?.constructor,s=t?t[f]:void 0;if(!s)return{};let n=i.get(s);if(n)return n;let o={},u=[],_=s;for(;_;)u.push(_),_=Object.getPrototypeOf(_);for(let e of u)if(a(e,r)){let t=e[r];for(let e in t)o[e]=t[e]}return i.set(s,o),o}],82427),u.filter=function(e){return(t,r)=>o(t,r,(t,r)=>function(...i){return e(...i)?t(...i):r.apply(this,i)})},e.s(["addAccessorsForMaterialProperty",0,function(e,t=null){return(r,i)=>{let a=t||"_"+String(i.name);return{get(){return this[a]?.value},set(t){"function"==typeof this[a]?.value?.equals&&this[a].value.equals(t)||this[a].value!==t&&(this[a].value=t,this[e]())}}}},"expandToProperty",0,function(e,t=null){return function(e,t=null){return(r,i)=>{let a=t||"_"+String(i.name);return{init(e){return void 0===e&&a in this||(this[a]=e),e},get(){return this[a]},set(t){"function"==typeof this[a]?.equals&&this[a].equals(t)||this[a]!==t&&(this[a]=t,this[e]())}}}}(e,t)},"nativeOverride",0,u,"serialize",0,function(e){return n(0,e)},"serializeAsColor3",0,function(e){return n(2,e)},"serializeAsColor4",0,function(e){return n(8,e)},"serializeAsColorCurves",0,function(e){return n(7,e)},"serializeAsFresnelParameters",0,function(e){return n(3,e)},"serializeAsMatrix",0,function(e){return n(12,e)},"serializeAsMeshReference",0,function(e){return n(6,e)},"serializeAsQuaternion",0,function(e){return n(10,e)},"serializeAsTexture",0,function(e){return n(1,e)},"serializeAsVector2",0,function(e){return n(4,e)},"serializeAsVector3",0,function(e){return n(5,e)}],91679)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57494,e=>{"use strict";var t=e.i(55080),r=e.i(85789),a=e.i(33169),o=e.i(6939),l=e.i(2596),n=e.i(99429);let i=!1;e.s(["RegisterAbstractEngineCubeTexture",0,function(){i||(i=!0,n.AbstractEngine.prototype._partialLoadFile=function(e,t,r,a,o=null){this._loadFile(e,e=>{r[t]=e,r._internalCount++,6===r._internalCount&&a(r)},void 0,void 0,!0,(e,t)=>{o&&e&&o(e.status+" "+e.statusText,t)})},n.AbstractEngine.prototype._cascadeLoadFiles=function(e,t,r,a=null){let o=[];o._internalCount=0;for(let e=0;e<6;e++)this._partialLoadFile(r[e],e,o,t,a)},n.AbstractEngine.prototype._cascadeLoadImgs=function(e,t,r,a,o=null,l){let n=[];n._internalCount=0;for(let i=0;i<6;i++)this._partialLoadImg(a[i],i,n,e,t,r,o,l)},n.AbstractEngine.prototype._partialLoadImg=function(e,t,r,l,n,i,s=null,f){let u=(0,o.RandomGUID)();(0,a.LoadImage)(e,e=>{r[t]=e,r._internalCount++,l&&l.removePendingData(u),6===r._internalCount&&i&&i(n,r)},(e,t)=>{l&&l.removePendingData(u),s&&s(e,t)},l?l.offlineProvider:null,f),l&&l.addPendingData(u)},n.AbstractEngine.prototype.createCubeTextureBase=function(e,a,o,n,i=null,s=null,f,u=null,c=!1,p=0,d=0,A=null,h=null,m=null,F=!1,y=null){let _,w,C=A||new t.InternalTexture(this,7);C.isCube=!0,C.url=e,C.generateMipMaps=!n,C._lodGenerationScale=p,C._lodGenerationOffset=d,C._useSRGBBuffer=!!F&&this._caps.supportSRGBBuffers&&(this.version>1||this.isWebGPU||!!n),C!==A&&(C.label=e.substring(0,60)),this._doNotHandleContextLost||(C._extension=u,C._files=o,C._buffer=y);let b=e;this._transformTextureUrl&&!A&&(e=this._transformTextureUrl(e));let g=u??((w=(_=e.split("?")[0]).lastIndexOf("."))>-1?_.substring(w).toLowerCase():""),B=(0,l._GetCompatibleTextureLoader)(g),G=(e,t)=>{C.dispose(),s?s(e,t):e&&r.Logger.Warn(e)},x=(t,l)=>{e===b?t&&G(t.status+" "+t.statusText,l):(r.Logger.Warn(`Failed to load ${e}, falling back to the ${b}`),this.createCubeTextureBase(b,a,o,!!n,i,G,f,u,c,p,d,C,h,m,F,y))};if(B)B.then(t=>{let r=e=>{h&&h(C,e),t.loadCubeData(e,C,c,i,(e,t)=>{G(e,t)})};y?r(y):o&&6===o.length?t.supportCascades?this._cascadeLoadFiles(a,e=>r(e.map(e=>new Uint8Array(e))),o,G):G("Textures type does not support cascades."):this._loadFile(e,e=>r(new Uint8Array(e)),void 0,a?a.offlineProvider||null:void 0,!0,x)});else{if(!o||0===o.length)throw Error("Cannot load cubemap because files were not defined, or the correct loader was not found.");this._cascadeLoadImgs(a,C,(e,t)=>{m&&m(e,t)},o,G)}return this._internalTexturesCache.push(C),C})}],57494)},28341,e=>{"use strict";var t=e.i(72003),r=e.i(46202),a=e.i(27952),o=e.i(26747),l=e.i(64073);class n{constructor(e,t,r,a){this.name=e,this.worldAxisForNormal=t,this.worldAxisForFileX=r,this.worldAxisForFileY=a}}class i{static _NearestPow2Floor(e){return e<=1?1:1<<Math.floor(Math.log2(e))}static ConvertCubeMapTextureToSphericalPolynomial(e){let t,r;if(!e.isCube)return null;e.getScene()?.getEngine().flushFramebuffer();let a=e.getSize().width,o=e._sphericalPolynomialTargetSize,l=o>0?this._NearestPow2Floor(o):0,n=!e.noMipmap&&e._texture?.generateMipMaps===!0,i=l>0&&l<a&&n,s=i?Math.max(0,Math.round(Math.log2(a/l))):0,f=i?Math.max(1,Math.floor(a/Math.pow(2,s))):a,u=e.readPixels(0,s,void 0,!1),c=e.readPixels(1,s,void 0,!1);e.isRenderTarget?(t=e.readPixels(3,s,void 0,!1),r=e.readPixels(2,s,void 0,!1)):(t=e.readPixels(2,s,void 0,!1),r=e.readPixels(3,s,void 0,!1));let p=e.readPixels(4,s,void 0,!1),d=e.readPixels(5,s,void 0,!1),A=e.gammaSpace,h=l>0&&l<a&&!i;return new Promise(e=>{Promise.all([c,u,t,r,p,d]).then(([t,r,o,n,i,s])=>{let u=f;h&&(t=this._DownsampleFace(t,a,l,4),r=this._DownsampleFace(r,a,l,4),o=this._DownsampleFace(o,a,l,4),n=this._DownsampleFace(n,a,l,4),i=this._DownsampleFace(i,a,l,4),s=this._DownsampleFace(s,a,l,4),u=l);let c={size:u,right:r,left:t,up:o,down:n,front:i,back:s,format:5,type:+(t instanceof Float32Array),gammaSpace:A};e(this.ConvertCubeMapToSphericalPolynomial(c))})})}static _AreaElement(e,t){return Math.atan2(e*t,Math.sqrt(e*e+t*t+1))}static _DownsampleFace(e,t,r,a){let o=e instanceof Float32Array?e:Float32Array.from(e),l=r*r*a,n=new Float32Array(l),i=t/r,s=1/(i*i);for(let e=0;e<r;e++){let l=Math.floor(e*i),f=Math.floor((e+1)*i);for(let u=0;u<r;u++){let c=Math.floor(u*i),p=Math.floor((u+1)*i),d=(e*r+u)*a;for(let e=0;e<a;e++){let r=0;for(let n=l;n<f;n++)for(let l=c;l<p;l++)r+=o[(n*t+l)*a+e];n[d+e]=r*s}}}if(e instanceof Float32Array)return n;let f=new e.constructor(l);for(let e=0;e<l;e++)f[e]=n[e]+.5|0;return f}static ConvertCubeMapToSphericalPolynomial(e,t=0){let n=t>0?this._NearestPow2Floor(t):0;if(n>0&&e.size>n){let t=5===e.format?4:3,r={};for(let a of["right","left","up","down","front","back"])r[a]=this._DownsampleFace(e[a],e.size,n,t);e={...e,...r,size:n}}let i=new a.SphericalHarmonics,s=0,f=2/e.size,u=.5*f,c=u-1;for(let t=0;t<6;t++){let a=this._FileFaces[t],n=e[a.name],p=c,d=5===e.format?4:3;for(let t=0;t<e.size;t++){let A=c;for(let c=0;c<e.size;c++){let h=a.worldAxisForFileX.scale(A).add(a.worldAxisForFileY.scale(p)).add(a.worldAxisForNormal);h.normalize();let m=this._AreaElement(A-u,p-u)-this._AreaElement(A-u,p+u)-this._AreaElement(A+u,p-u)+this._AreaElement(A+u,p+u),F=n[t*e.size*d+c*d+0],y=n[t*e.size*d+c*d+1],_=n[t*e.size*d+c*d+2];isNaN(F)&&(F=0),isNaN(y)&&(y=0),isNaN(_)&&(_=0),0===e.type&&(F/=255,y/=255,_/=255),e.gammaSpace&&(F=Math.pow((0,r.Clamp)(F),o.ToLinearSpace),y=Math.pow((0,r.Clamp)(y),o.ToLinearSpace),_=Math.pow((0,r.Clamp)(_),o.ToLinearSpace));let w=this.MAX_HDRI_VALUE;if(this.PRESERVE_CLAMPED_COLORS){let e=Math.max(F,y,_);if(e>w){let t=w/e;F*=t,y*=t,_*=t}}else F=(0,r.Clamp)(F,0,w),y=(0,r.Clamp)(y,0,w),_=(0,r.Clamp)(_,0,w);let C=new l.Color3(F,y,_);i.addLight(h,C,m),s+=m,A+=f}p+=f}}let p=4*Math.PI*6/6/s;return i.scaleInPlace(p),i.convertIncidentRadianceToIrradiance(),i.convertIrradianceToLambertianRadiance(),a.SphericalPolynomial.FromHarmonics(i)}}i._FileFaces=[new n("right",new t.Vector3(1,0,0),new t.Vector3(0,0,-1),new t.Vector3(0,-1,0)),new n("left",new t.Vector3(-1,0,0),new t.Vector3(0,0,1),new t.Vector3(0,-1,0)),new n("up",new t.Vector3(0,1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,1)),new n("down",new t.Vector3(0,-1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,-1)),new n("front",new t.Vector3(0,0,1),new t.Vector3(1,0,0),new t.Vector3(0,-1,0)),new n("back",new t.Vector3(0,0,-1),new t.Vector3(-1,0,0),new t.Vector3(0,-1,0))],i.MAX_HDRI_VALUE=4096,i.PRESERVE_CLAMPED_COLORS=!1,e.s(["CubeMapToSphericalPolynomialTools",0,i])},6668,e=>{"use strict";(0,e.i(57494).RegisterAbstractEngineCubeTexture)(),e.s([],11552),e.i(11552);var t=e.i(24928);e.s(["DDSTools",()=>t.DDSTools],6668)},24928,e=>{"use strict";var t=e.i(46202),r=e.i(85789),a=e.i(28341),o=e.i(66464);function l(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}let n=l("DXT1"),i=l("DXT3"),s=l("DXT5"),f=l("DX10");class u{static GetDDSInfo(e){let t=new Int32Array(e.buffer,e.byteOffset,31),r=new Int32Array(e.buffer,e.byteOffset,35),a=1;131072&t[2]&&(a=Math.max(1,t[7]));let o=t[21],l=o===f?r[32]:0,u=0;switch(o){case 113:u=2;break;case 116:u=1;break;case f:if(10===l){u=2;break}2===l&&(u=1)}return{width:t[4],height:t[3],mipmapCount:a,isFourCC:(4&t[20])==4,isRGB:(64&t[20])==64,isLuminance:(131072&t[20])==131072,isCube:(512&t[28])==512,isCompressed:o===n||o===i||o===s,dxgiFormat:l,textureType:u}}static _GetHalfFloatAsFloatRGBAArrayBuffer(e,t,r,a,l,n){let i=new Float32Array(a),s=new Uint16Array(l,r),f=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;i[f]=(0,o.FromHalfFloat)(s[a]),i[f+1]=(0,o.FromHalfFloat)(s[a+1]),i[f+2]=(0,o.FromHalfFloat)(s[a+2]),u.StoreLODInAlphaChannel?i[f+3]=n:i[f+3]=(0,o.FromHalfFloat)(s[a+3]),f+=4}return i}static _GetHalfFloatRGBAArrayBuffer(e,t,r,a,l,n){if(u.StoreLODInAlphaChannel){let i=new Uint16Array(a),s=new Uint16Array(l,r),f=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;i[f]=s[a],i[f+1]=s[a+1],i[f+2]=s[a+2],i[f+3]=(0,o.ToHalfFloat)(n),f+=4}return i}return new Uint16Array(l,r,a)}static _GetFloatRGBAArrayBuffer(e,t,r,a,o,l){if(u.StoreLODInAlphaChannel){let n=new Float32Array(a),i=new Float32Array(o,r),s=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;n[s]=i[a],n[s+1]=i[a+1],n[s+2]=i[a+2],n[s+3]=l,s+=4}return n}return new Float32Array(o,r,a)}static _GetFloatAsHalfFloatRGBAArrayBuffer(e,t,r,a,l,n){let i=new Uint16Array(a),s=new Float32Array(l,r),f=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++)i[f]=(0,o.ToHalfFloat)(s[f]),i[f+1]=(0,o.ToHalfFloat)(s[f+1]),i[f+2]=(0,o.ToHalfFloat)(s[f+2]),u.StoreLODInAlphaChannel?i[f+3]=(0,o.ToHalfFloat)(n):i[f+3]=(0,o.ToHalfFloat)(s[f+3]),f+=4;return i}static _GetFloatAsUIntRGBAArrayBuffer(e,r,a,o,l,n){let i=new Uint8Array(o),s=new Float32Array(l,a),f=0;for(let a=0;a<r;a++)for(let r=0;r<e;r++){let o=(r+a*e)*4;i[f]=255*(0,t.Clamp)(s[o]),i[f+1]=255*(0,t.Clamp)(s[o+1]),i[f+2]=255*(0,t.Clamp)(s[o+2]),u.StoreLODInAlphaChannel?i[f+3]=n:i[f+3]=255*(0,t.Clamp)(s[o+3]),f+=4}return i}static _GetHalfFloatAsUIntRGBAArrayBuffer(e,r,a,l,n,i){let s=new Uint8Array(l),f=new Uint16Array(n,a),c=0;for(let a=0;a<r;a++)for(let r=0;r<e;r++){let l=(r+a*e)*4;s[c]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l])),s[c+1]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l+1])),s[c+2]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l+2])),u.StoreLODInAlphaChannel?s[c+3]=i:s[c+3]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l+3])),c+=4}return s}static _GetRGBAArrayBuffer(e,t,r,a,o,l,n,i,s){let f=new Uint8Array(a),u=new Uint8Array(o,r),c=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;f[c]=u[a+l],f[c+1]=u[a+n],f[c+2]=u[a+i],f[c+3]=u[a+s],c+=4}return f}static _ExtractLongWordOrder(e){return 0===e||255===e||-0x1000000===e?0:1+u._ExtractLongWordOrder(e>>8)}static _GetRGBArrayBuffer(e,t,r,a,o,l,n,i){let s=new Uint8Array(a),f=new Uint8Array(o,r),u=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*3;s[u]=f[a+l],s[u+1]=f[a+n],s[u+2]=f[a+i],u+=3}return s}static _GetLuminanceArrayBuffer(e,t,r,a,o){let l=new Uint8Array(a),n=new Uint8Array(o,r),i=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=t+r*e;l[i]=n[a],i++}return l}static UploadDDSLevels(e,t,o,l,c,p,d=-1,A,h=!0){let m,F,y,_=null;l.sphericalPolynomial&&(_=[]);let w=!!e.getCaps().s3tc;t.generateMipMaps=c;let C=new Int32Array(o.buffer,o.byteOffset,31),b,g,B,G=0,x,T=0,L=1;if(0x20534444!==C[0])return void r.Logger.Error("Invalid magic number in DDS header");if(!l.isFourCC&&!l.isRGB&&!l.isLuminance)return void r.Logger.Error("Unsupported format, must contain a FourCC, RGB or LUMINANCE code");if(l.isCompressed&&!w)return void r.Logger.Error("Compressed textures are not supported on this platform.");let D=C[22];x=C[1]+4;let R=!1;if(l.isFourCC)switch(b=C[21]){case n:L=8,T=33777;break;case i:L=16,T=33778;break;case s:L=16,T=33779;break;case 113:R=!0,D=64;break;case 116:R=!0,D=128;break;case f:{x+=20;let e=!1;switch(l.dxgiFormat){case 10:R=!0,D=64,e=!0;break;case 2:R=!0,D=128,e=!0;break;case 88:l.isRGB=!0,l.isFourCC=!1,D=32,e=!0}if(e)break}default:r.Logger.Error(["Unsupported FourCC code:",String.fromCharCode(255&b,b>>8&255,b>>16&255,b>>24&255)]);return}let M=u._ExtractLongWordOrder(C[23]),S=u._ExtractLongWordOrder(C[24]),P=u._ExtractLongWordOrder(C[25]),O=u._ExtractLongWordOrder(C[26]);R&&(T=e._getRGBABufferInternalSizedFormat(l.textureType)),F=1,131072&C[2]&&!1!==c&&(F=Math.max(1,C[7]));let U=A||0,v=e.getCaps();for(let r=U;r<p;r++){for(g=C[4],B=C[3],y=0;y<F;++y){if(-1===d||d===y){let a=-1===d?y:0;if(!l.isCompressed&&l.isFourCC){t.format=5,G=g*B*4;let l=null;if(e._badOS||e._badDesktopOS||!v.textureHalfFloat&&!v.textureFloat)128===D?(l=u._GetFloatAsUIntRGBAArrayBuffer(g,B,o.byteOffset+x,G,o.buffer,a),_&&0==a&&_.push(u._GetFloatRGBAArrayBuffer(g,B,o.byteOffset+x,G,o.buffer,a))):64===D&&(l=u._GetHalfFloatAsUIntRGBAArrayBuffer(g,B,o.byteOffset+x,G,o.buffer,a),_&&0==a&&_.push(u._GetHalfFloatAsFloatRGBAArrayBuffer(g,B,o.byteOffset+x,G,o.buffer,a))),t.type=0;else{let e,r=v.textureFloat&&(h&&v.textureFloatLinearFiltering||!h),n=v.textureHalfFloat&&(h&&v.textureHalfFloatLinearFiltering||!h),i=(128===D||64===D&&!n)&&r?1:(64===D||128===D&&!r)&&n?2:0,s=null;if(128===D)switch(i){case 1:e=u._GetFloatRGBAArrayBuffer,s=null;break;case 2:e=u._GetFloatAsHalfFloatRGBAArrayBuffer,s=u._GetFloatRGBAArrayBuffer;break;case 0:e=u._GetFloatAsUIntRGBAArrayBuffer,s=u._GetFloatRGBAArrayBuffer}else switch(i){case 1:e=u._GetHalfFloatAsFloatRGBAArrayBuffer,s=null;break;case 2:e=u._GetHalfFloatRGBAArrayBuffer,s=u._GetHalfFloatAsFloatRGBAArrayBuffer;break;case 0:e=u._GetHalfFloatAsUIntRGBAArrayBuffer,s=u._GetHalfFloatAsFloatRGBAArrayBuffer}t.type=i,l=e(g,B,o.byteOffset+x,G,o.buffer,a),_&&0==a&&_.push(s?s(g,B,o.byteOffset+x,G,o.buffer,a):l)}l&&e._uploadDataToTextureDirectly(t,l,r,a)}else if(l.isRGB)t.type=0,24===D?(t.format=4,G=g*B*3,m=u._GetRGBArrayBuffer(g,B,o.byteOffset+x,G,o.buffer,M,S,P)):(t.format=5,G=g*B*4,m=u._GetRGBAArrayBuffer(g,B,o.byteOffset+x,G,o.buffer,M,S,P,O)),e._uploadDataToTextureDirectly(t,m,r,a);else if(l.isLuminance){let l=e._getUnpackAlignement(),n=g;G=Math.floor((g+l-1)/l)*l*(B-1)+n,m=u._GetLuminanceArrayBuffer(g,B,o.byteOffset+x,G,o.buffer),t.format=1,t.type=0,e._uploadDataToTextureDirectly(t,m,r,a)}else G=Math.max(4,g)/4*Math.max(4,B)/4*L,m=new Uint8Array(o.buffer,o.byteOffset+x,G),t.type=0,e._uploadCompressedDataToTextureDirectly(t,T,g,B,m,r,a)}x+=D?g*B*(D/8):G,g*=.5,B*=.5,g=Math.max(1,g),B=Math.max(1,B)}if(void 0!==A)break}_&&_.length>0?l.sphericalPolynomial=a.CubeMapToSphericalPolynomialTools.ConvertCubeMapToSphericalPolynomial({size:C[4],right:_[0],left:_[1],up:_[2],down:_[3],front:_[4],back:_[5],format:5,type:1,gammaSpace:!1}):l.sphericalPolynomial=void 0}}u.StoreLODInAlphaChannel=!1,e.s(["DDSTools",0,u])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41876,e=>{"use strict";var t=e.i(95358),r=e.i(28341),i=e.i(79452);let s=!1;e.s(["_ENVTextureLoader",0,class{constructor(){this.supportCascades=!1}loadCubeData(e,a,n,o,l){if(Array.isArray(e))return;let h=(0,t.GetEnvInfo)(e);if(h){a.width=h.width,a.height=h.width;try{s||(s=!0,i.BaseTexture.prototype._sphericalPolynomialTargetSize=0,i.BaseTexture.prototype.forceSphericalPolynomialsRecompute=function(){this._texture&&(this._texture._sphericalPolynomial=null,this._texture._sphericalPolynomialPromise=null,this._texture._sphericalPolynomialComputed=!1)},Object.defineProperty(i.BaseTexture.prototype,"sphericalPolynomial",{get:function(){if(this._texture){if(this._texture._sphericalPolynomial||this._texture._sphericalPolynomialComputed)return this._texture._sphericalPolynomial;this._texture.isReady&&(this._texture._sphericalPolynomialPromise||(this._texture._sphericalPolynomialPromise=r.CubeMapToSphericalPolynomialTools.ConvertCubeMapTextureToSphericalPolynomial(this),null===this._texture._sphericalPolynomialPromise?this._texture._sphericalPolynomialComputed=!0:this._texture._sphericalPolynomialPromise.then(e=>{this._texture._sphericalPolynomial=e,this._texture._sphericalPolynomialComputed=!0})))}return null},set:function(e){this._texture&&(this._texture._sphericalPolynomial=e)},enumerable:!0,configurable:!0})),(0,t.UploadEnvSpherical)(a,h),(0,t.UploadEnvLevelsAsync)(a,e,h).then(()=>{a.isReady=!0,a.onLoadedObservable.notifyObservers(a),a.onLoadedObservable.clear(),o&&o()},e=>{l?.("Can not upload environment levels",e)})}catch(e){l?.("Can not upload environment file",e)}}else l&&l("Can not parse the environment file",null)}loadData(){throw".env not supported in 2d."}}],41876)},9977,e=>{"use strict";var t=e.i(32945);e.s(["DrawWrapper",0,class{static GetEffect(e){return void 0===e.getPipelineContext?e.effect:e}constructor(e,t=!0){this._wasPreviouslyReady=!1,this._forceRebindOnNextCall=!0,this._wasPreviouslyUsingInstances=null,this.effect=null,this.defines=null,this.drawContext=e.createDrawContext(),t&&(this.materialContext=e.createMaterialContext())}setEffect(e,t,r=!0){this.effect=e,void 0!==t&&(this.defines=t),r&&this.drawContext?.reset()}dispose(e=!1){if(this.effect){let r=this.effect;e?r.dispose():t.TimingTools.SetImmediate(()=>{r.getEngine().onEndFrameObservable.addOnce(()=>{r.dispose()})}),this.effect=null}this.drawContext?.dispose()}}])},94810,e=>{"use strict";var t=e.i(56145),r=e.i(11296),i=e.i(42704),s=e.i(80592),a=e.i(9977);let n={positions:[1,1,-1,1,-1,-1,1,-1],indices:[0,1,2,0,2,3]};class o{static RegisterShaderCodeProcessing(e,t){t?o._CustomShaderCodeProcessing[e??""]=t:delete o._CustomShaderCodeProcessing[e??""]}static _GetShaderCodeProcessing(e){return o._CustomShaderCodeProcessing[e]??o._CustomShaderCodeProcessing[""]}get name(){return this.options.name}set name(e){this.options.name=e}isReady(){return this._drawWrapper.effect?.isReady()??!1}get drawWrapper(){return this._drawWrapper}get effect(){return this._drawWrapper.effect}set effect(e){this._drawWrapper.effect=e}constructor(e){this.alphaMode=0,this.onEffectCreatedObservable=new i.Observable(void 0,!0),this.onApplyObservable=new i.Observable,this._shadersLoaded=!1,this._webGPUReady=!1,this._importPromises=[],this.options={...e,name:e.name||"effectWrapper",engine:e.engine,uniforms:e.uniforms||e.uniformNames||[],uniformNames:void 0,samplers:e.samplers||e.samplerNames||[],samplerNames:void 0,attributeNames:e.attributeNames||["position"],uniformBuffers:e.uniformBuffers||[],defines:e.defines||"",useShaderStore:e.useShaderStore||!1,vertexUrl:e.vertexUrl||e.vertexShader||"postprocess",vertexShader:void 0,fragmentShader:e.fragmentShader||"pass",indexParameters:e.indexParameters,blockCompilation:e.blockCompilation||!1,shaderLanguage:e.shaderLanguage||0,onCompiled:e.onCompiled||void 0,extraInitializations:e.extraInitializations||void 0,extraInitializationsAsync:e.extraInitializationsAsync||void 0,useAsPostProcess:e.useAsPostProcess??!1,allowEmptySourceTexture:e.allowEmptySourceTexture??!1},this.options.uniformNames=this.options.uniforms,this.options.samplerNames=this.options.samplers,this.options.vertexShader=this.options.vertexUrl,this.options.useAsPostProcess&&(this.options.allowEmptySourceTexture||-1!==this.options.samplers.indexOf("textureSampler")||this.options.samplers.push("textureSampler"),-1===this.options.uniforms.indexOf("scale")&&this.options.uniforms.push("scale")),e.vertexUrl||e.vertexShader?this._shaderPath={vertexSource:this.options.vertexShader}:(this.options.useAsPostProcess||(this.options.uniforms.push("scale"),this.onApplyObservable.add(()=>{this.effect.setFloat2("scale",1,1)})),this._shaderPath={vertex:this.options.vertexShader}),this._shaderPath.fragmentSource=this.options.fragmentShader,this._shaderPath.spectorName=this.options.name,this.options.useShaderStore&&(this._shaderPath.fragment=this._shaderPath.fragmentSource,this._shaderPath.vertex||(this._shaderPath.vertex=this._shaderPath.vertexSource),delete this._shaderPath.fragmentSource,delete this._shaderPath.vertexSource),this.onApplyObservable.add(()=>{this.bind()}),this.options.useShaderStore||(this._onContextRestoredObserver=this.options.engine.onContextRestoredObservable.add(()=>{this.effect._pipelineContext=null,this.effect._prepareEffect()})),this._drawWrapper=new a.DrawWrapper(this.options.engine),this._webGPUReady=1===this.options.shaderLanguage;const t=Array.isArray(this.options.defines)?this.options.defines.join("\n"):this.options.defines;this._postConstructor(this.options.blockCompilation,t,this.options.extraInitializations)}_gatherImports(e=!1,t){}_postConstructor(t,r=null,i,s){this._importPromises.length=0,s&&this._importPromises.push(...s);let a=this.options.engine.isWebGPU&&!o.ForceGLSL;this._gatherImports(a,this._importPromises),this.options.useShaderStore&&"postprocess"===this._shaderPath.vertex&&this._importPromises.push(a&&this._webGPUReady?e.A(83572):e.A(19011)),void 0!==i&&i(a,this._importPromises),a&&this._webGPUReady&&(this.options.shaderLanguage=1),t||this.updateEffect(r)}updateEffect(e=null,t=null,r=null,i,a,n,l,h){let d,p=o._GetShaderCodeProcessing(this.name);if(p?.defineCustomBindings){let i=t?.slice()??[];i.push(...this.options.uniforms);let s=r?.slice()??[];s.push(...this.options.samplers),e=p.defineCustomBindings(this.name,e,i,s),t=i,r=s}this.options.defines=e||"";let u=this._shadersLoaded||0===this._importPromises.length?void 0:async()=>{await Promise.all(this._importPromises),this._shadersLoaded=!0};d=this.options.extraInitializationsAsync?async()=>{await u?.(),await this.options.extraInitializationsAsync()}:u,this.options.useShaderStore?this._drawWrapper.effect=this.options.engine.createEffect({vertex:l??this._shaderPath.vertex,fragment:h??this._shaderPath.fragment},{attributes:this.options.attributeNames,uniformsNames:t||this.options.uniforms,uniformBuffersNames:this.options.uniformBuffers,samplers:r||this.options.samplers,defines:null!==e?e:"",fallbacks:null,onCompiled:a??this.options.onCompiled,onError:n??null,indexParameters:i||this.options.indexParameters,processCodeAfterIncludes:p?.processCodeAfterIncludes?(e,t)=>p.processCodeAfterIncludes(this.name,e,t):null,processFinalCode:p?.processFinalCode?(e,t)=>p.processFinalCode(this.name,e,t):null,shaderLanguage:this.options.shaderLanguage,extraInitializationsAsync:d},this.options.engine):this._drawWrapper.effect=new s.Effect(this._shaderPath,this.options.attributeNames,t||this.options.uniforms,r||this.options.samplerNames,this.options.engine,e,void 0,a||this.options.onCompiled,void 0,void 0,void 0,this.options.shaderLanguage,d),this.onEffectCreatedObservable.notifyObservers(this._drawWrapper.effect)}bind(e=!1){this.options.useAsPostProcess&&!e&&(this.options.engine.setAlphaMode(this.alphaMode),this.drawWrapper.effect.setFloat2("scale",1,1)),o._GetShaderCodeProcessing(this.name)?.bindCustomBindings?.(this.name,this._drawWrapper.effect)}dispose(e=!1){this._onContextRestoredObserver&&(this.effect.getEngine().onContextRestoredObservable.remove(this._onContextRestoredObserver),this._onContextRestoredObserver=null),this.onEffectCreatedObservable.clear(),this._drawWrapper.dispose(!0)}}o.ForceGLSL=!1,o._CustomShaderCodeProcessing={},e.s(["EffectRenderer",0,class{constructor(e,i=n){this._fullscreenViewport=new r.Viewport(0,0,1,1);const s=i.positions??n.positions,a=i.indices??n.indices;this.engine=e,this._vertexBuffers={[t.VertexBuffer.PositionKind]:new t.VertexBuffer(e,s,t.VertexBuffer.PositionKind,!1,!1,2)},this._indexBuffer=e.createIndexBuffer(a),this._indexBufferLength=a.length,this._onContextRestoredObserver=e.onContextRestoredObservable.add(()=>{for(let t in this._indexBuffer=e.createIndexBuffer(a),this._vertexBuffers)this._vertexBuffers[t]._rebuild()})}setViewport(e=this._fullscreenViewport){this.engine.setViewport(e)}bindBuffers(e){this.engine.bindBuffers(this._vertexBuffers,this._indexBuffer,e)}applyEffectWrapper(e,t=!1,r=!1){this.engine.setState(!0),this.engine.depthCullingState.depthTest=t,this.engine.stencilState.stencilTest=r,this.engine.enableEffect(e.drawWrapper),this.bindBuffers(e.effect),e.onApplyObservable.notifyObservers({})}saveStates(){this._savedStateDepthTest=this.engine.depthCullingState.depthTest,this._savedStateStencilTest=this.engine.stencilState.stencilTest}restoreStates(){this.engine.depthCullingState.depthTest=this._savedStateDepthTest,this.engine.stencilState.stencilTest=this._savedStateStencilTest}draw(){this.engine.drawElementsType(0,0,this._indexBufferLength)}_isRenderTargetTexture(e){return void 0!==e.renderTarget}render(e,t=null){if(!e.effect.isReady())return;this.saveStates(),this.setViewport();let r=null===t?null:this._isRenderTargetTexture(t)?t.renderTarget:t;r&&this.engine.bindFramebuffer(r),this.applyEffectWrapper(e),this.draw(),r&&this.engine.unBindFramebuffer(r),this.restoreStates()}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),delete this._vertexBuffers[t.VertexBuffer.PositionKind]),this._indexBuffer&&this.engine._releaseBuffer(this._indexBuffer),this._onContextRestoredObserver&&(this.engine.onContextRestoredObservable.remove(this._onContextRestoredObserver),this._onContextRestoredObserver=null)}},"EffectWrapper",0,o])},11296,e=>{"use strict";e.s(["Viewport",0,class e{constructor(e,t,r,i){this.x=e,this.y=t,this.width=r,this.height=i}toGlobal(t,r){return new e(this.x*t,this.y*r,this.width*t,this.height*r)}toGlobalToRef(e,t,r){return r.x=this.x*e,r.y=this.y*t,r.width=this.width*e,r.height=this.height*t,this}clone(){return new e(this.x,this.y,this.width,this.height)}}])},28341,e=>{"use strict";var t=e.i(72003),r=e.i(46202),i=e.i(27952),s=e.i(26747),a=e.i(64073);class n{constructor(e,t,r,i){this.name=e,this.worldAxisForNormal=t,this.worldAxisForFileX=r,this.worldAxisForFileY=i}}class o{static _NearestPow2Floor(e){return e<=1?1:1<<Math.floor(Math.log2(e))}static ConvertCubeMapTextureToSphericalPolynomial(e){let t,r;if(!e.isCube)return null;e.getScene()?.getEngine().flushFramebuffer();let i=e.getSize().width,s=e._sphericalPolynomialTargetSize,a=s>0?this._NearestPow2Floor(s):0,n=!e.noMipmap&&e._texture?.generateMipMaps===!0,o=a>0&&a<i&&n,l=o?Math.max(0,Math.round(Math.log2(i/a))):0,h=o?Math.max(1,Math.floor(i/Math.pow(2,l))):i,d=e.readPixels(0,l,void 0,!1),p=e.readPixels(1,l,void 0,!1);e.isRenderTarget?(t=e.readPixels(3,l,void 0,!1),r=e.readPixels(2,l,void 0,!1)):(t=e.readPixels(2,l,void 0,!1),r=e.readPixels(3,l,void 0,!1));let u=e.readPixels(4,l,void 0,!1),c=e.readPixels(5,l,void 0,!1),f=e.gammaSpace,m=a>0&&a<i&&!o;return new Promise(e=>{Promise.all([p,d,t,r,u,c]).then(([t,r,s,n,o,l])=>{let d=h;m&&(t=this._DownsampleFace(t,i,a,4),r=this._DownsampleFace(r,i,a,4),s=this._DownsampleFace(s,i,a,4),n=this._DownsampleFace(n,i,a,4),o=this._DownsampleFace(o,i,a,4),l=this._DownsampleFace(l,i,a,4),d=a);let p={size:d,right:r,left:t,up:s,down:n,front:o,back:l,format:5,type:+(t instanceof Float32Array),gammaSpace:f};e(this.ConvertCubeMapToSphericalPolynomial(p))})})}static _AreaElement(e,t){return Math.atan2(e*t,Math.sqrt(e*e+t*t+1))}static _DownsampleFace(e,t,r,i){let s=e instanceof Float32Array?e:Float32Array.from(e),a=r*r*i,n=new Float32Array(a),o=t/r,l=1/(o*o);for(let e=0;e<r;e++){let a=Math.floor(e*o),h=Math.floor((e+1)*o);for(let d=0;d<r;d++){let p=Math.floor(d*o),u=Math.floor((d+1)*o),c=(e*r+d)*i;for(let e=0;e<i;e++){let r=0;for(let n=a;n<h;n++)for(let a=p;a<u;a++)r+=s[(n*t+a)*i+e];n[c+e]=r*l}}}if(e instanceof Float32Array)return n;let h=new e.constructor(a);for(let e=0;e<a;e++)h[e]=n[e]+.5|0;return h}static ConvertCubeMapToSphericalPolynomial(e,t=0){let n=t>0?this._NearestPow2Floor(t):0;if(n>0&&e.size>n){let t=5===e.format?4:3,r={};for(let i of["right","left","up","down","front","back"])r[i]=this._DownsampleFace(e[i],e.size,n,t);e={...e,...r,size:n}}let o=new i.SphericalHarmonics,l=0,h=2/e.size,d=.5*h,p=d-1;for(let t=0;t<6;t++){let i=this._FileFaces[t],n=e[i.name],u=p,c=5===e.format?4:3;for(let t=0;t<e.size;t++){let f=p;for(let p=0;p<e.size;p++){let m=i.worldAxisForFileX.scale(f).add(i.worldAxisForFileY.scale(u)).add(i.worldAxisForNormal);m.normalize();let g=this._AreaElement(f-d,u-d)-this._AreaElement(f-d,u+d)-this._AreaElement(f+d,u-d)+this._AreaElement(f+d,u+d),_=n[t*e.size*c+p*c+0],x=n[t*e.size*c+p*c+1],y=n[t*e.size*c+p*c+2];isNaN(_)&&(_=0),isNaN(x)&&(x=0),isNaN(y)&&(y=0),0===e.type&&(_/=255,x/=255,y/=255),e.gammaSpace&&(_=Math.pow((0,r.Clamp)(_),s.ToLinearSpace),x=Math.pow((0,r.Clamp)(x),s.ToLinearSpace),y=Math.pow((0,r.Clamp)(y),s.ToLinearSpace));let w=this.MAX_HDRI_VALUE;if(this.PRESERVE_CLAMPED_COLORS){let e=Math.max(_,x,y);if(e>w){let t=w/e;_*=t,x*=t,y*=t}}else _=(0,r.Clamp)(_,0,w),x=(0,r.Clamp)(x,0,w),y=(0,r.Clamp)(y,0,w);let v=new a.Color3(_,x,y);o.addLight(m,v,g),l+=g,f+=h}u+=h}}let u=4*Math.PI*6/6/l;return o.scaleInPlace(u),o.convertIncidentRadianceToIrradiance(),o.convertIrradianceToLambertianRadiance(),i.SphericalPolynomial.FromHarmonics(o)}}o._FileFaces=[new n("right",new t.Vector3(1,0,0),new t.Vector3(0,0,-1),new t.Vector3(0,-1,0)),new n("left",new t.Vector3(-1,0,0),new t.Vector3(0,0,1),new t.Vector3(0,-1,0)),new n("up",new t.Vector3(0,1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,1)),new n("down",new t.Vector3(0,-1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,-1)),new n("front",new t.Vector3(0,0,1),new t.Vector3(1,0,0),new t.Vector3(0,-1,0)),new n("back",new t.Vector3(0,0,-1),new t.Vector3(-1,0,0),new t.Vector3(0,-1,0))],o.MAX_HDRI_VALUE=4096,o.PRESERVE_CLAMPED_COLORS=!1,e.s(["CubeMapToSphericalPolynomialTools",0,o])},3739,e=>{"use strict";let t,r,i;var s,a=e.i(4112),n=e.i(94810),o=e.i(40379),l=e.i(46202),h=e.i(72986),d=e.i(85789),p=e.i(95708),u=e.i(91679);let c=null;async function f(){let t=h.EngineStore.LastCreatedEngine?.createCanvas(100,100)??new OffscreenCanvas(100,100);t instanceof OffscreenCanvas&&d.Logger.Warn("DumpData: OffscreenCanvas will be used for dumping data. This may result in lossy alpha values.");let{ThinEngine:r}=await e.A(46040);if(!r.IsSupported)throw Error("DumpData: No WebGL context available. Cannot dump data.");let i=new r(t,!1,{preserveDrawingBuffer:!0,depth:!1,stencil:!1,alpha:!0,premultipliedAlpha:!1,antialias:!1,failIfMajorPerformanceCaveat:!1});h.EngineStore.Instances.pop(),h.EngineStore.OnEnginesDisposedObservable.add(e=>{i&&e!==i&&!i.isDisposed&&0===h.EngineStore.Instances.length&&v()}),i.getCaps().parallelShaderCompile=void 0;let s=new n.EffectRenderer(i),{passPixelShader:a}=await e.A(78757),o=new n.EffectWrapper({engine:i,name:a.name,fragmentShader:a.shader,samplerNames:["textureSampler"]});return{canvas:t,dumpEngine:{engine:i,renderer:s,wrapper:o}}}async function m(){return c||(c=f()),await c}let g=(r=[],s=class{static async EncodeImageAsync(e,t,r,i,s,a){let n=await m(),l=n.dumpEngine;l.engine.setSize(t,r,!0);let h=l.engine.createRawTexture(e,t,r,5,!1,!s,1);return l.renderer.setViewport(),l.renderer.applyEffectWrapper(l.wrapper),l.wrapper.effect._bindTexture("textureSampler",h),l.renderer.draw(),h.dispose(),await new Promise((e,t)=>{o.Tools.ToBlob(n.canvas,r=>{r?e(r):t(Error("EncodeImageAsync: Failed to convert canvas to blob."))},i,a)})}},i="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,t=[u.nativeOverride],(0,a.__esDecorate)(s,null,t,{kind:"method",name:"EncodeImageAsync",static:!0,private:!1,access:{has:e=>"EncodeImageAsync"in e,get:e=>e.EncodeImageAsync},metadata:i},null,r),i&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),(0,a.__runInitializers)(s,r),s),_=g.EncodeImageAsync;async function x(e,t,r,i,s="image/png",a,n){let o=new Uint8Array((await r.readPixels(0,0,e,t)).buffer);w(e,t,o,i,s,a,!0,void 0,n)}async function y(e,t,r,i="image/png",s,a=!1,n=!1,h){if(r instanceof Float32Array){let e=new Uint8Array(r.length),t=r.length;for(;t--;){let i=r[t];e[t]=Math.round(255*(0,l.Clamp)(i))}r=e}let u=await g.EncodeImageAsync(r,e,t,i,a,h);void 0!==s&&o.Tools.DownloadBlob(u,s),u.type!==i&&d.Logger.Warn(`DumpData: The requested mimeType '${i}' is not supported. The result has mimeType '${u.type}' instead.`);let c=await u.arrayBuffer();return n?c:`data:${i};base64,${(0,p.EncodeArrayBufferToBase64)(c)}`}function w(e,t,r,i,s="image/png",a,n=!1,o=!1,l){void 0!==a||i||(a=""),y(e,t,r,s,a,n,o,l).then(e=>{i&&i(e)})}function v(){c&&(c?.then(e=>{e.canvas instanceof HTMLCanvasElement&&e.canvas.remove(),e.dumpEngine&&(e.dumpEngine.engine.dispose(),e.dumpEngine.renderer.dispose(),e.dumpEngine.wrapper.dispose())}),c=null)}let b=!1;e.s(["Dispose",0,v,"DumpData",0,w,"DumpDataAsync",0,y,"DumpFramebuffer",0,x,"DumpTools",0,{DumpData:w,DumpDataAsync:y,DumpFramebuffer:x,Dispose:v},"EncodeImageAsync",0,_,"RegisterDumpTools",0,function(){b||(b=!0,o.Tools.DumpData=w,o.Tools.DumpDataAsync=y,o.Tools.DumpFramebuffer=x)}])},95358,e=>{"use strict";var t=e.i(92929),r=e.i(72003),i=e.i(46202),s=e.i(27952),a=e.i(55080),n=e.i(79452),o=(e.i(87710),e.i(33760)),l=e.i(85789),h=e.i(41339),d=e.i(3739),p=e.i(63615);let u="image/png",c=[134,22,135,150,246,214,150,54];function f(e){if(e.version>2)throw Error(`Unsupported babylon environment map version "${e.version}". Latest supported version is "2".`);return 2===e.version?e:e={...e,version:2,imageType:u}}async function m(e,t,r,i,s,a,n,o,l,h,d){return await new Promise((p,u)=>{if(r){let r=t.createTexture(null,!0,!0,null,1,null,e=>{u(e)},e);i?.onEffectCreatedObservable.addOnce(o=>{o.executeWhenCompiled(()=>{i.externalTextureSamplerBinding=!0,i.onApply=i=>{i._bindTexture("textureSampler",r),i.setFloat2("scale",1,t._features.needsInvertingBitmap&&e instanceof ImageBitmap?-1:1)},t.scenes.length&&(t.scenes[0].postProcessManager.directRender([i],h,!0,a,n),t.restoreDefaultFramebuffer(),r.dispose(),URL.revokeObjectURL(s),p())})})}else{if(t._uploadImageToTexture(d,e,a,n),o){let r=l[n];r&&t._uploadImageToTexture(r._texture,e,a,0)}p()}})}async function g(e,t,r=u){let i=e.getEngine();e.format=5,e.type=0,e.generateMipMaps=!0,e._cachedAnisotropicFilteringLevel=null,i.updateTextureSamplingMode(3,e),await x(e,t,!0,r),e.isReady=!0}async function _(e,t,r,i=u,s=null){let o=e.getEngine(),l=new a.InternalTexture(o,5),h=new n.BaseTexture(o,l);e._irradianceTexture=h,h._dominantDirection=s,l.isCube=!0,l.format=5,l.type=0,l.generateMipMaps=!0,l._cachedAnisotropicFilteringLevel=null,l.generateMipMaps=!0,l.width=r,l.height=r,o.updateTextureSamplingMode(3,l),await x(l,[t],!1,i),o.generateMipMapsForCubemap(l),l.isReady=!0}async function x(r,s,l,h=u){if(!(0,t.IsExponentOfTwo)(r.width))throw Error("Texture size must be a power of two");let d=(0,i.ILog2)(r.width)+1,c=r.getEngine(),f=!1,g=!1,_=null,y=null,w=null,v=c.getCaps();v.textureLOD?c._features.supportRenderAndCopyToLodForFloatTextures?v.textureHalfFloatRender&&v.textureHalfFloatLinearFiltering?(f=!0,r.type=2):v.textureFloatRender&&v.textureFloatLinearFiltering&&(f=!0,r.type=1):f=!1:(f=!1,g=l);let b=0;if(f)c.isWebGPU?(b=1,await e.A(1084)):await e.A(42032),_=new o.PostProcess("rgbdDecode","rgbdDecode",null,null,1,null,3,c,!1,void 0,r.type,void 0,null,!1,void 0,b),r._isRGBD=!1,r.invertY=!1,y=c.createRenderTargetCubeTexture(r.width,{generateDepthBuffer:!1,generateMipMaps:!0,generateStencilBuffer:!1,samplingMode:3,type:r.type,format:5});else if(r._isRGBD=!0,r.invertY=!0,g){w={};let e=r._lodGenerationScale,t=r._lodGenerationOffset;for(let i=0;i<3;i++){let s=(d-1)*e+t,o=Math.round(Math.min(Math.max(t+(s-t)*(1-i/2),0),s)),l=new a.InternalTexture(c,2);l.isCube=!0,l.invertY=!0,l.generateMipMaps=!1,c.updateTextureSamplingMode(2,l);let h=new n.BaseTexture(null);switch(h._isCube=!0,h._texture=l,w[o]=h,i){case 0:r._lodTextureLow=h;break;case 1:r._lodTextureMid=h;break;case 2:r._lodTextureHigh=h}}}let P=[];for(let e=0;e<s.length;e++)for(let t=0;t<6;t++){let i,a=s[e][t],n=new Blob([(0,p.GetBlobBufferSource)(a)],{type:h}),o=URL.createObjectURL(n);if(c._features.forceBitmapOverHTMLImageElement)i=c.createImageBitmap(n,{premultiplyAlpha:"none",colorSpaceConversion:"none"}).then(async i=>await m(i,c,f,_,o,t,e,g,w,y,r));else{let s=new Image;s.src=o,i=new Promise((i,a)=>{s.onload=()=>{m(s,c,f,_,o,t,e,g,w,y,r).then(()=>i()).catch(e=>{a(e)})},s.onerror=e=>{a(e)}})}P.push(i)}if(await Promise.all(P),s.length<d){let e,t=Math.pow(2,d-1-s.length),i=t*t*4;switch(r.type){case 0:e=new Uint8Array(i);break;case 2:e=new Uint16Array(i);break;case 1:e=new Float32Array(i)}for(let t=s.length;t<d;t++)for(let i=0;i<6;i++)c._uploadArrayBufferViewToTexture(y?.texture||r,e,i,t)}if(y){let e=r._irradianceTexture;r._irradianceTexture=null,c._releaseTexture(r),y._swapAndDie(r),r._irradianceTexture=e}_&&_.dispose(),g&&(r._lodTextureHigh&&r._lodTextureHigh._texture&&(r._lodTextureHigh._texture.isReady=!0),r._lodTextureMid&&r._lodTextureMid._texture&&(r._lodTextureMid._texture.isReady=!0),r._lodTextureLow&&r._lodTextureLow._texture&&(r._lodTextureLow._texture.isReady=!0))}e.s(["GetEnvInfo",0,function(e){let t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=0;for(let e=0;e<c.length;e++)if(r.getUint8(i++)!==c[e])return l.Logger.Error("Not a babylon environment map"),null;let s="";for(;t=r.getUint8(i++);)s+=String.fromCharCode(t);let a=JSON.parse(s);return(a=f(a)).binaryDataPosition=i,a.specular&&(a.specular.lodGenerationScale=a.specular.lodGenerationScale||.8),a},"UploadEnvLevelsAsync",0,function(e,t,i){let s=(i=f(i)).specular;if(!s)return Promise.resolve([]);e._lodGenerationScale=s.lodGenerationScale;let a=[],n=function(e,t){let r=(t=f(t)).specular,i=Math.log2(t.width);if(i=Math.round(i)+1,r.mipmaps.length!==6*i)throw Error(`Unsupported specular mipmaps number "${r.mipmaps.length}"`);let s=Array(i);for(let a=0;a<i;a++){s[a]=Array(6);for(let i=0;i<6;i++){let n=r.mipmaps[6*a+i];s[a][i]=new Uint8Array(e.buffer,e.byteOffset+t.binaryDataPosition+n.position,n.length)}}return s}(t,i);a.push(g(e,n,i.imageType));let o=i.irradiance?.irradianceTexture;if(o){let s=function(e,t){t=f(t);let r=Array(6),i=t.irradiance?.irradianceTexture;if(i){if(6!==i.faces.length)throw Error(`Incorrect irradiance texture faces number "${i.faces.length}"`);for(let s=0;s<6;s++){let a=i.faces[s];r[s]=new Uint8Array(e.buffer,e.byteOffset+t.binaryDataPosition+a.position,a.length)}}return r}(t,i),n=null;i.irradiance?.irradianceTexture?.dominantDirection&&(n=r.Vector3.FromArray(i.irradiance.irradianceTexture.dominantDirection)),a.push(_(e,s,o.size,i.imageType,n))}return Promise.all(a)},"UploadEnvSpherical",0,function(e,t){let i=(t=f(t)).irradiance;if(!i)return;let a=new s.SphericalPolynomial;r.Vector3.FromArrayToRef(i.x,0,a.x),r.Vector3.FromArrayToRef(i.y,0,a.y),r.Vector3.FromArrayToRef(i.z,0,a.z),r.Vector3.FromArrayToRef(i.xx,0,a.xx),r.Vector3.FromArrayToRef(i.yy,0,a.yy),r.Vector3.FromArrayToRef(i.zz,0,a.zz),r.Vector3.FromArrayToRef(i.yz,0,a.yz),r.Vector3.FromArrayToRef(i.zx,0,a.zx),r.Vector3.FromArrayToRef(i.xy,0,a.xy),e._sphericalPolynomial=a},"_UpdateRGBDAsync",0,function(e,t,r,i,s){let a=g(e.getEngine().createRawCubeTexture(null,e.width,e.format,e.type,e.generateMipMaps,e.invertY,e.samplingMode,e._compression),t).then(()=>e);return e.onRebuildCallback=e=>({proxy:a,isReady:!0,isAsync:!0}),e._source=13,e._bufferViewArrayArray=t,e._lodGenerationScale=i,e._lodGenerationOffset=s,e._sphericalPolynomial=r,g(e,t).then(()=>(e.isReady=!0,e))}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,56145,e=>{"use strict";var t=e.i(44744),i=e.i(85789),r=e.i(63615),s=e.i(5554);class a{get isDisposed(){return this._isDisposed}constructor(e,i,r,a=0,n=!1,f=!1,h=!1,u,_){this._isAlreadyOwned=!1,this._isDisposed=!1,(0,s.RegisterEngineDynamicBuffer)(),e&&e.getScene?this._engine=e.getScene().getEngine():this._engine=e,this._updatable=r,this._instanced=f,this._divisor=u||1,this._label=_,i instanceof t.DataBuffer?(this._data=null,this._buffer=i):(this._data=i,this._buffer=null),this.byteStride=h?a:a*Float32Array.BYTES_PER_ELEMENT,n||this.create()}createVertexBuffer(e,t,i,r,s,a=!1,f){let h=a?t:t*Float32Array.BYTES_PER_ELEMENT,u=r?a?r:r*Float32Array.BYTES_PER_ELEMENT:this.byteStride;return new n(this._engine,this,e,this._updatable,!0,u,void 0===s?this._instanced:s,h,i,void 0,void 0,!0,this._divisor||f)}isUpdatable(){return this._updatable}getData(){return this._data}getBuffer(){return this._buffer}getStrideSize(){return this.byteStride/Float32Array.BYTES_PER_ELEMENT}create(e=null){!e&&this._buffer||(e=e||this._data)&&(this._buffer?this._updatable&&(this._engine.updateDynamicVertexBuffer(this._buffer,e),this._data=e):this._updatable?(this._buffer=this._engine.createDynamicVertexBuffer(e,this._label),this._data=e):this._buffer=this._engine.createVertexBuffer(e,void 0,this._label))}_rebuild(){if(this._data)this._buffer=null,this.create(this._data);else if(this._buffer){if(this._buffer.capacity>0)return void(this._updatable?this._buffer=this._engine.createDynamicVertexBuffer(this._buffer.capacity,this._label):this._buffer=this._engine.createVertexBuffer(this._buffer.capacity,void 0,this._label));i.Logger.Warn(`Missing data for buffer "${this._label}" ${this._buffer?"(uniqueId: "+this._buffer.uniqueId+")":""}. Buffer reconstruction failed.`),this._buffer=null}}update(e){this.create(e)}updateDirectly(e,t,i,r=!1){this._buffer&&this._updatable&&(this._engine.updateDynamicVertexBuffer(this._buffer,e,r?t:t*Float32Array.BYTES_PER_ELEMENT,i?i*this.byteStride:void 0),0===t&&void 0===i?this._data=e:this._data=null)}_increaseReferences(){if(this._buffer){if(!this._isAlreadyOwned){this._isAlreadyOwned=!0;return}this._buffer.references++}}dispose(){this._buffer&&this._engine._releaseBuffer(this._buffer)&&(this._isDisposed=!0,this._data=null,this._buffer=null)}}class n{get isDisposed(){return this._isDisposed}get instanceDivisor(){return this._instanceDivisor}set instanceDivisor(e){let t=0!=e;this._instanceDivisor=e,t!==this._instanced&&(this._instanced=t,this._computeHashCode())}get _maxVerticesCount(){let e=this.getData();return e?Array.isArray(e)?e.length/(this.byteStride/4)-this.byteOffset/4:(e.byteLength-this.byteOffset)/this.byteStride:0}constructor(e,t,i,s,u,_,o,d,c,p,E=!1,l=!1,T=1,m=!1){let R;if(this._isDisposed=!1,this.engine=e,"object"==typeof s&&null!==s?(R=s.updatable??!1,u=s.postponeInternalCreation,_=s.stride,o=s.instanced,d=s.offset,c=s.size,p=s.type,E=s.normalized??!1,l=s.useBytes??!1,T=s.divisor??1,m=s.takeBufferOwnership??!1,this._label=s.label):R=!!s,t instanceof a?(this._buffer=t,this._ownsBuffer=m):(this._buffer=new a(e,t,R,_,u,o,l,T,this._label),this._ownsBuffer=!0),this.uniqueId=n._Counter++,this._kind=i,void 0===p){const e=this.getData();this.type=e?h(e):n.FLOAT}else this.type=p;const A=(0,r.GetTypeByteLength)(this.type);l?(this._size=c||(_?_/A:f(i)),this.byteStride=_||this._buffer.byteStride||this._size*A,this.byteOffset=d||0):(this._size=c||_||f(i),this.byteStride=_?_*A:this._buffer.byteStride||this._size*A,this.byteOffset=(d||0)*A),this.normalized=E,this._instanced=void 0!==o&&o,this._instanceDivisor=o?T:0,this._alignBuffer(),this._computeHashCode()}static _GetTypeHashIndex(e){switch(e){case n.BYTE:return 0;case n.UNSIGNED_BYTE:return 1;case n.SHORT:return 2;case n.UNSIGNED_SHORT:return 3;case n.INT:return 4;case n.UNSIGNED_INT:return 5;case n.FLOAT:return 6;case n.HALF_FLOAT:return 7;default:throw Error(`Invalid vertex buffer type '${e}'`)}}_computeHashCode(){this.hashCode=(0|n._GetTypeHashIndex(this.type))+(!!this.normalized<<3)+(this._size-1<<4)+(!!this._instanced<<6)+(this.byteStride<<12)}_rebuild(){this._buffer?._rebuild()}getKind(){return this._kind}isUpdatable(){return this._buffer.isUpdatable()}getData(){return this._buffer.getData()}getFloatData(e,t){let i=this.getData();return i?(0,r.GetFloatData)(i,this._size,this.type,this.byteOffset,this.byteStride,this.normalized,e,t):null}getBuffer(){return this._buffer.getBuffer()}getWrapperBuffer(){return this._buffer}getStrideSize(){return this.byteStride/(0,r.GetTypeByteLength)(this.type)}getOffset(){return this.byteOffset/(0,r.GetTypeByteLength)(this.type)}getSize(e=!1){return e?this._size*(0,r.GetTypeByteLength)(this.type):this._size}getIsInstanced(){return this._instanced}getInstanceDivisor(){return this._instanceDivisor}create(e){this._buffer.create(e),this._alignBuffer()}update(e){this._buffer.update(e),this._alignBuffer()}updateDirectly(e,t,i=!1){this._buffer.updateDirectly(e,t,void 0,i),this._alignBuffer()}dispose(){this._ownsBuffer&&this._buffer.dispose(),this._isDisposed=!0}forEach(e,t){(0,r.EnumerateFloatValues)(this._buffer.getData(),this.byteOffset,this.byteStride,this._size,this.type,e,this.normalized,(e,i)=>{for(let r=0;r<this._size;r++)t(e[r],i+r)})}_alignBuffer(){}}function f(e){switch(e){case n.UVKind:case n.UV2Kind:case n.UV3Kind:case n.UV4Kind:case n.UV5Kind:case n.UV6Kind:return 2;case n.NormalKind:case n.PositionKind:return 3;case n.ColorKind:case n.ColorInstanceKind:case n.MatricesIndicesKind:case n.MatricesIndicesExtraKind:case n.MatricesWeightsKind:case n.MatricesWeightsExtraKind:case n.TangentKind:return 4;default:throw Error("Invalid kind '"+e+"'")}}function h(e){if(e instanceof Int8Array)return n.BYTE;if(e instanceof Uint8Array)return n.UNSIGNED_BYTE;if(e instanceof Int16Array)return n.SHORT;if(e instanceof Uint16Array)return n.UNSIGNED_SHORT;if(e instanceof Int32Array)return n.INT;else if(e instanceof Uint32Array)return n.UNSIGNED_INT;else return n.FLOAT}function u(e){return(0,r.GetTypeByteLength)(e)}function _(e,t,i,s,a,n,f,h){(0,r.EnumerateFloatValues)(e,t,i,s,a,n,f,(e,t)=>{for(let i=0;i<s;i++)h(e[i],t+i)})}function o(e,t,i,s,a,n,f,h){return(0,r.GetFloatData)(e,t,i,s,a,n,f,h)}n._Counter=0,n.BYTE=5120,n.UNSIGNED_BYTE=5121,n.SHORT=5122,n.UNSIGNED_SHORT=5123,n.INT=5124,n.UNSIGNED_INT=5125,n.FLOAT=5126,n.HALF_FLOAT=5131,n.PositionKind="position",n.NormalKind="normal",n.TangentKind="tangent",n.UVKind="uv",n.UV2Kind="uv2",n.UV3Kind="uv3",n.UV4Kind="uv4",n.UV5Kind="uv5",n.UV6Kind="uv6",n.ColorKind="color",n.ColorInstanceKind="instanceColor",n.MatricesIndicesKind="matricesIndices",n.MatricesWeightsKind="matricesWeights",n.MatricesIndicesExtraKind="matricesIndicesExtra",n.MatricesWeightsExtraKind="matricesWeightsExtra";let d=!1;e.s(["Buffer",0,a,"RegisterVertexBuffer",0,function(){d||(d=!0,n.DeduceStride=f,n.GetDataType=h,n.GetTypeByteLength=u,n.ForEach=_,n.GetFloatData=o)},"VertexBuffer",0,n,"VertexBufferDeduceStride",0,f,"VertexBufferForEach",0,_,"VertexBufferGetTypeByteLength",0,u])},5554,e=>{"use strict";var t=e.i(76256);let i=!1;e.s(["RegisterEngineDynamicBuffer",0,function(){i||(i=!0,t.ThinEngine.prototype.updateDynamicIndexBuffer=function(e,t,i=0){let r;this._currentBoundBuffer[this._gl.ELEMENT_ARRAY_BUFFER]=null,this.bindIndexBuffer(e),r=e.is32Bits?t instanceof Uint32Array?t:new Uint32Array(t):t instanceof Uint16Array?t:new Uint16Array(t),this._gl.bufferData(this._gl.ELEMENT_ARRAY_BUFFER,r,this._gl.DYNAMIC_DRAW),this._resetIndexBufferBinding()},t.ThinEngine.prototype.updateDynamicVertexBuffer=function(e,t,i,r){this.bindArrayBuffer(e),void 0===i&&(i=0);let s=t.byteLength||t.length;void 0===r||r>=s&&0===i?t instanceof Array?this._gl.bufferSubData(this._gl.ARRAY_BUFFER,i,new Float32Array(t)):this._gl.bufferSubData(this._gl.ARRAY_BUFFER,i,t):t instanceof Array?this._gl.bufferSubData(this._gl.ARRAY_BUFFER,i,new Float32Array(t).subarray(0,r/4)):(t=ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,r):new Uint8Array(t,0,r),this._gl.bufferSubData(this._gl.ARRAY_BUFFER,i,t)),this._resetVertexBufferBinding()})}])},2342,e=>{"use strict";class t{static GetShadersRepository(e=0){return 0===e?t.ShadersRepository:t.ShadersRepositoryWGSL}static GetShadersStore(e=0){return 0===e?t.ShadersStore:t.ShadersStoreWGSL}static GetIncludesShadersStore(e=0){return 0===e?t.IncludesShadersStore:t.IncludesShadersStoreWGSL}}t.ShadersRepository="src/Shaders/",t.ShadersStore={},t.IncludesShadersStore={},t.ShadersRepositoryWGSL="src/ShadersWGSL/",t.ShadersStoreWGSL={},t.IncludesShadersStoreWGSL={},e.s(["ShaderStore",0,t])},55080,e=>{"use strict";var t,i,r=e.i(42704);class s{get wrapU(){return this._cachedWrapU}set wrapU(e){this._cachedWrapU=e}get wrapV(){return this._cachedWrapV}set wrapV(e){this._cachedWrapV=e}get wrapR(){return this._cachedWrapR}set wrapR(e){this._cachedWrapR=e}get anisotropicFilteringLevel(){return this._cachedAnisotropicFilteringLevel}set anisotropicFilteringLevel(e){this._cachedAnisotropicFilteringLevel=e}get comparisonFunction(){return this._comparisonFunction}set comparisonFunction(e){this._comparisonFunction=e}get useMipMaps(){return this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}constructor(){this.samplingMode=-1,this._useMipMaps=!0,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this._comparisonFunction=0}setParameters(e=1,t=1,i=1,r=1,s=2,a=0){return this._cachedWrapU=e,this._cachedWrapV=t,this._cachedWrapR=i,this._cachedAnisotropicFilteringLevel=r,this.samplingMode=s,this._comparisonFunction=a,this}compareSampler(e){return this._cachedWrapU===e._cachedWrapU&&this._cachedWrapV===e._cachedWrapV&&this._cachedWrapR===e._cachedWrapR&&this._cachedAnisotropicFilteringLevel===e._cachedAnisotropicFilteringLevel&&this.samplingMode===e.samplingMode&&this._comparisonFunction===e._comparisonFunction&&this._useMipMaps===e._useMipMaps}}(t=i||(i={}))[t.Unknown=0]="Unknown",t[t.Url=1]="Url",t[t.Temp=2]="Temp",t[t.Raw=3]="Raw",t[t.Dynamic=4]="Dynamic",t[t.RenderTarget=5]="RenderTarget",t[t.MultiRenderTarget=6]="MultiRenderTarget",t[t.Cube=7]="Cube",t[t.CubeRaw=8]="CubeRaw",t[t.CubePrefiltered=9]="CubePrefiltered",t[t.Raw3D=10]="Raw3D",t[t.Raw2DArray=11]="Raw2DArray",t[t.DepthStencil=12]="DepthStencil",t[t.CubeRawRGBD=13]="CubeRawRGBD",t[t.Depth=14]="Depth",t[t.External=15]="External";class a extends s{get useMipMaps(){return null===this._useMipMaps?this.generateMipMaps:this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}get uniqueId(){return this._uniqueId}_setUniqueId(e){this._uniqueId=e}getEngine(){return this._engine}get source(){return this._source}constructor(e,t,i=!1){super(),this.isReady=!1,this.isCube=!1,this.is3D=!1,this.is2DArray=!1,this.isMultiview=!1,this.url="",this.generateMipMaps=!1,this._useMipMaps=null,this.mipLevelCount=1,this.samples=0,this.type=-1,this.format=-1,this.onLoadedObservable=new r.Observable,this.onErrorObservable=new r.Observable,this.onRebuildCallback=null,this.width=0,this.height=0,this.depth=0,this.baseWidth=0,this.baseHeight=0,this.baseDepth=0,this.invertY=!1,this._invertVScale=!1,this._associatedChannel=-1,this._source=0,this._buffer=null,this._bufferView=null,this._bufferViewArray=null,this._bufferViewArrayArray=null,this._size=0,this._extension="",this._files=null,this._workingCanvas=null,this._workingContext=null,this._cachedCoordinatesMode=null,this._isDisabled=!1,this._compression=null,this._sphericalPolynomial=null,this._sphericalPolynomialPromise=null,this._sphericalPolynomialComputed=!1,this._lodGenerationScale=0,this._lodGenerationOffset=0,this._useSRGBBuffer=!1,this._creationFlags=0,this._lodTextureHigh=null,this._lodTextureMid=null,this._lodTextureLow=null,this._isRGBD=!1,this._linearSpecularLOD=!1,this._irradianceTexture=null,this._hardwareTexture=null,this._maxLodLevel=null,this._references=1,this._gammaSpace=null,this._premulAlpha=!1,this._dynamicTextureSource=null,this._autoMSAAManagement=!1,this._engine=e,this._source=t,this._uniqueId=a._Counter++,i||(this._hardwareTexture=e._createHardwareTexture())}incrementReferences(){this._references++}updateSize(e,t,i=1){this._engine.updateTextureDimensions(this,e,t,i),this.width=e,this.height=t,this.depth=i,this.baseWidth=e,this.baseHeight=t,this.baseDepth=i,this._size=e*t*i}_rebuild(){let e;if(this.isReady=!1,this._cachedCoordinatesMode=null,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this.onRebuildCallback){let e=this.onRebuildCallback(this),t=t=>{t._swapAndDie(this,!1),this.isReady=e.isReady};e.isAsync?e.proxy.then(t):t(e.proxy);return}switch(this.source){case 2:case 12:case 14:break;case 1:e=this._engine.createTexture(this._originalUrl??this.url,!this.generateMipMaps,this.invertY,null,this.samplingMode,e=>{e._swapAndDie(this,!1),this.isReady=!0},null,this._buffer,void 0,this.format,this._extension,void 0,void 0,void 0,this._useSRGBBuffer);return;case 3:if((e=this._engine.createRawTexture(this._bufferView,this.baseWidth,this.baseHeight,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this._useSRGBBuffer,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture(this,t,this.format,this.invertY,this._compression,this.type,this._useSRGBBuffer,e)}this.isReady=!0;break;case 10:(e=this._engine.createRawTexture3D(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type))._swapAndDie(this,!1),this.isReady=!0;break;case 11:if((e=this._engine.createRawTexture2DArray(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture2DArray(this,t,this.format,this.invertY,this._compression,this.type,e)}this.isReady=!0;break;case 4:(e=this._engine.createDynamicTexture(this.baseWidth,this.baseHeight,this.generateMipMaps,this.samplingMode))._swapAndDie(this,!1),this._dynamicTextureSource&&this._engine.updateDynamicTexture(this,this._dynamicTextureSource,this.invertY,this._premulAlpha,this.format,!0);break;case 7:e=this._engine.createCubeTexture(this.url,null,this._files,!this.generateMipMaps,()=>{e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension,!1,0,0,null,void 0,this._useSRGBBuffer,ArrayBuffer.isView(this._buffer)?this._buffer:null);return;case 8:(e=this._engine.createRawCubeTexture(this._bufferViewArray,this.width,this._originalFormat??this.format,this.type,this.generateMipMaps,this.invertY,this.samplingMode,this._compression))._swapAndDie(this,!1),this.isReady=!0;break;case 13:return;case 9:(e=this._engine.createPrefilteredCubeTexture(this.url,null,this._lodGenerationScale,this._lodGenerationOffset,e=>{e&&e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension))._sphericalPolynomial=this._sphericalPolynomial;return}}_swapAndDie(e,t=!0){this._hardwareTexture?.setUsage(e._source,this.generateMipMaps,this.is2DArray,this.isCube,this.is3D,this.width,this.height,this.depth),e._hardwareTexture=this._hardwareTexture,e._setUniqueId(a._Counter++),t&&(e._isRGBD=this._isRGBD),this._lodTextureHigh&&(e._lodTextureHigh&&e._lodTextureHigh.dispose(),e._lodTextureHigh=this._lodTextureHigh),this._lodTextureMid&&(e._lodTextureMid&&e._lodTextureMid.dispose(),e._lodTextureMid=this._lodTextureMid),this._lodTextureLow&&(e._lodTextureLow&&e._lodTextureLow.dispose(),e._lodTextureLow=this._lodTextureLow),this._irradianceTexture&&(e._irradianceTexture&&e._irradianceTexture.dispose(),e._irradianceTexture=this._irradianceTexture);let i=this._engine.getLoadedTexturesCache(),r=i.indexOf(this);-1!==r&&i.splice(r,1),-1===(r=i.indexOf(e))&&i.push(e)}dispose(){this._references--,0===this._references&&(this.onLoadedObservable.clear(),this.onErrorObservable.clear(),this._engine._releaseTexture(this),this._hardwareTexture=null,this._dynamicTextureSource=null)}}a._Counter=0,e.s(["InternalTexture",0,a],55080)},17972,e=>{"use strict";var t=e.i(80592),i=e.i(72003),r=e.i(49940),s=e.i(81127);let a=new i.Matrix,n=new i.Matrix,f=new i.Matrix,h={getScene:()=>void 0,eyeAtCamera:!0};function u(e,t,i){let r=i.asArray(),s=t.asArray();for(let e=0;e<16;e++)r[e]=s[e];return r[12]-=e.x,r[13]-=e.y,r[14]-=e.z,i.markAsUpdated(),i}function _(e,t,i){if(!h.eyeAtCamera)return(0,r.InvertMatrixToRef)(t,n),u(e,n,f),(0,r.InvertMatrixToRef)(f,i),i;let s=i.asArray(),a=t.asArray();for(let e=0;e<16;e++)s[e]=a[e];return s[12]=0,s[13]=0,s[14]=0,i.markAsUpdated(),i}function o(e,t,i,s){return(0,r.MultiplyMatricesToRef)(_(e,t,s),i,s),s}function d(e,t,i,s){return(0,r.InvertMatrixToRef)(i,n),(0,r.MultiplyMatricesToRef)(t,n,f),u(e,f,n),_(e,i,f),(0,r.MultiplyMatricesToRef)(n,f,s),s}function c(e,t,i,s,a,h){return(0,r.InvertMatrixToRef)(i,n),(0,r.MultiplyMatricesToRef)(t,n,f),u(e,f,n),o(e,s,a,f),(0,r.MultiplyMatricesToRef)(n,f,h),h}function p(e,t){let i=h.getScene();if(!i||a===t)return t;a.updateFlag=t.updateFlag;let r=i.floatingOriginOffset;switch(e){case"world":return u(r,t,a);case"view":return _(r,t,a);case"worldView":return d(r,t,i.getViewMatrix(),a);case"viewProjection":return o(r,i.getViewMatrix(),i.getProjectionMatrix(),a);case"worldViewProjection":return c(r,t,i.getTransformMatrix(),i.getViewMatrix(),i.getProjectionMatrix(),a);default:if(e.startsWith("u_")){let s=e.toLowerCase();if(s.startsWith("u_worldviewprojection"))return c(r,t,i.getTransformMatrix(),i.getViewMatrix(),i.getProjectionMatrix(),a);if(s.startsWith("u_viewprojection"))return o(r,i.getViewMatrix(),i.getProjectionMatrix(),a);if(s.startsWith("u_worldview"))return d(r,t,i.getViewMatrix(),a);if(s.startsWith("u_world"))return u(r,t,a);if(s.startsWith("u_view"))return _(r,t,a)}return t}}let E=s.UniformBuffer,l=t.Effect,T=E.prototype._updateMatrixForUniform,m=t.Effect.prototype.setMatrix;e.s(["FloatingOriginCurrentScene",0,h,"OverrideMatrixFunctions",0,function(){l.prototype._setMatrixOverride=m,l.prototype.setMatrix=function(e,t){return this._setMatrixOverride(e,p(e,t)),this},E.prototype._updateMatrixForUniformOverride=T,E.prototype._updateMatrixForUniform=function(e,t){this._updateMatrixForUniformOverride(e,p(e,t))}},"ResetMatrixFunctions",0,function(){t.Effect.prototype.setMatrix=m,l._setMatrixOverride=void 0,E.prototype._updateMatrixForUniform=T,E.prototype._updateMatrixForUniformOverride=void 0}])},81127,26801,e=>{"use strict";var t=e.i(85789),i=e.i(40379);class r{constructor(e,t,i=!1,r,s=!1,a){this._uniformNames=[],this._valueCache={},this._engine=e,this._noUBO=!e.supportsUniformBuffers||s,this._dynamic=i,this._name=r??"no-name",this._data=t||[],this._uniformLocations={},this._uniformSizes={},this._uniformArraySizes={},this._uniformLocationPointer=0,this._needSync=!1,this._trackUBOsInFrame=!1,(void 0===a&&this._engine._features.trackUbosInFrame||!0===a)&&(this._buffers=[],this._bufferIndex=-1,this._bufferUpdatedLastFrame=!1,this._createBufferOnWrite=!1,this._currentFrameId=0,this._trackUBOsInFrame=!0),this._noUBO?(this.updateMatrix3x3=this._updateMatrix3x3ForEffect,this.updateMatrix2x2=this._updateMatrix2x2ForEffect,this.updateFloat=this._updateFloatForEffect,this.updateFloat2=this._updateFloat2ForEffect,this.updateFloat3=this._updateFloat3ForEffect,this.updateFloat4=this._updateFloat4ForEffect,this.updateFloatArray=this._updateFloatArrayForEffect,this.updateArray=this._updateArrayForEffect,this.updateIntArray=this._updateIntArrayForEffect,this.updateUIntArray=this._updateUIntArrayForEffect,this.updateMatrix=this._updateMatrixForEffect,this.updateMatrices=this._updateMatricesForEffect,this.updateVector3=this._updateVector3ForEffect,this.updateVector4=this._updateVector4ForEffect,this.updateColor3=this._updateColor3ForEffect,this.updateColor4=this._updateColor4ForEffect,this.updateDirectColor4=this._updateDirectColor4ForEffect,this.updateInt=this._updateIntForEffect,this.updateInt2=this._updateInt2ForEffect,this.updateInt3=this._updateInt3ForEffect,this.updateInt4=this._updateInt4ForEffect,this.updateUInt=this._updateUIntForEffect,this.updateUInt2=this._updateUInt2ForEffect,this.updateUInt3=this._updateUInt3ForEffect,this.updateUInt4=this._updateUInt4ForEffect):(this._engine._uniformBuffers.push(this),this.updateMatrix3x3=this._updateMatrix3x3ForUniform,this.updateMatrix2x2=this._updateMatrix2x2ForUniform,this.updateFloat=this._updateFloatForUniform,this.updateFloat2=this._updateFloat2ForUniform,this.updateFloat3=this._updateFloat3ForUniform,this.updateFloat4=this._updateFloat4ForUniform,this.updateFloatArray=this._updateFloatArrayForUniform,this.updateArray=this._updateArrayForUniform,this.updateIntArray=this._updateIntArrayForUniform,this.updateUIntArray=this._updateUIntArrayForUniform,this.updateMatrix=this._updateMatrixForUniform,this.updateMatrices=this._updateMatricesForUniform,this.updateVector3=this._updateVector3ForUniform,this.updateVector4=this._updateVector4ForUniform,this.updateColor3=this._updateColor3ForUniform,this.updateColor4=this._updateColor4ForUniform,this.updateDirectColor4=this._updateDirectColor4ForUniform,this.updateInt=this._updateIntForUniform,this.updateInt2=this._updateInt2ForUniform,this.updateInt3=this._updateInt3ForUniform,this.updateInt4=this._updateInt4ForUniform,this.updateUInt=this._updateUIntForUniform,this.updateUInt2=this._updateUInt2ForUniform,this.updateUInt3=this._updateUInt3ForUniform,this.updateUInt4=this._updateUInt4ForUniform)}get useUbo(){return!this._noUBO}get isSync(){return!this._needSync}isDynamic(){return this._dynamic}getData(){return this._bufferData}getBuffer(){return this._buffer}getUniformNames(){return this._uniformNames}_fillAlignment(e){let t;if(t=e<=2?e:4,this._uniformLocationPointer%t!=0){let e=this._uniformLocationPointer;this._uniformLocationPointer+=t-this._uniformLocationPointer%t;let i=this._uniformLocationPointer-e;for(let e=0;e<i;e++)this._data.push(0)}}addUniform(e,t,i=0){let r;if((i>0&&"number"==typeof t&&(this._uniformArraySizes[e]={strideSize:t,arraySize:i}),void 0===this._uniformLocations[e])&&(this._uniformNames.push(e),!this._noUBO)){if(i>0){if(t instanceof Array)throw"addUniform should not be use with Array in UBO: "+e;if(this._fillAlignment(4),16==t)t*=i;else{let e=4-t;t=t*i+e*i}r=[];for(let e=0;e<t;e++)r.push(0)}else{if(t instanceof Array)t=(r=t).length;else{r=[];for(let e=0;e<t;e++)r.push(0)}this._fillAlignment(t)}this._uniformSizes[e]=t,this._uniformLocations[e]=this._uniformLocationPointer,this._uniformLocationPointer+=t;for(let e=0;e<t;e++)this._data.push(r[e]);this._needSync=!0}}addMatrix(e,t){this.addUniform(e,Array.prototype.slice.call(t.asArray()))}addFloat2(e,t,i){this.addUniform(e,[t,i])}addFloat3(e,t,i,r){this.addUniform(e,[t,i,r])}addColor3(e,t){let i=[t.r,t.g,t.b];this.addUniform(e,i)}addColor4(e,t,i){let r=[t.r,t.g,t.b,i];this.addUniform(e,r)}addVector3(e,t){let i=[t.x,t.y,t.z];this.addUniform(e,i)}addMatrix3x3(e){this.addUniform(e,12)}addMatrix2x2(e){this.addUniform(e,8)}create(){this._noUBO||this._buffer||(this._fillAlignment(4),this._bufferData=new Float32Array(this._data),this._rebuild(),this._needSync=!0)}_getNamesDebug(){let e=[],t=0;for(let i in this._uniformLocations)if(e.push(i),10==++t)break;return e.join(",")}_rebuild(){!this._noUBO&&this._bufferData&&(this._dynamic?this._buffer=this._engine.createDynamicUniformBuffer(this._bufferData,this._name+"_UniformList:"+this._getNamesDebug()):this._buffer=this._engine.createUniformBuffer(this._bufferData,this._name+"_UniformList:"+this._getNamesDebug()),this._trackUBOsInFrame&&(this._buffers.push([this._buffer,this._engine._features.checkUbosContentBeforeUpload?this._bufferData.slice():void 0]),this._bufferIndex=this._buffers.length-1,this._createBufferOnWrite=!1))}_rebuildAfterContextLost(){this._trackUBOsInFrame&&(this._buffers=[],this._currentFrameId=0),this._rebuild()}get _numBuffers(){return this._buffers.length}get _indexBuffer(){return this._bufferIndex}get name(){return this._name}set name(e){this._name=e}get currentEffect(){return this._currentEffect}_buffersEqual(e,t){for(let i=0;i<e.length;++i)if(e[i]!==t[i])return!1;return!0}_copyBuffer(e,t){for(let i=0;i<e.length;++i)t[i]=e[i]}update(){if(!this._noUBO){if(this.bindUniformBuffer(),!this._buffer)return void this.create();if(!this._dynamic&&!this._needSync){this._createBufferOnWrite=this._trackUBOsInFrame;return}if(this._buffers&&this._buffers.length>1&&this._buffers[this._bufferIndex][1])if(this._buffersEqual(this._bufferData,this._buffers[this._bufferIndex][1])){this._needSync=!1,this._createBufferOnWrite=this._trackUBOsInFrame;return}else this._copyBuffer(this._bufferData,this._buffers[this._bufferIndex][1]);this._bufferUpdatedLastFrame=!0,this._engine.updateUniformBuffer(this._buffer,this._bufferData),this._needSync=!1,this._createBufferOnWrite=this._trackUBOsInFrame}}_createNewBuffer(){this._bufferIndex+1<this._buffers.length?(this._bufferIndex++,this._buffer=this._buffers[this._bufferIndex][0],this._createBufferOnWrite=!1,this._needSync=!0):this._rebuild()}_checkNewFrame(){this._trackUBOsInFrame&&this._currentFrameId!==this._engine.frameId&&(this._currentFrameId=this._engine.frameId,this._createBufferOnWrite=!1,this._buffers&&this._buffers.length>0?(1===this._buffers.length?this._needSync=!this._bufferUpdatedLastFrame:this._needSync=0!==this._bufferIndex,this._bufferIndex=0,this._buffer=this._buffers[this._bufferIndex][0]):this._bufferIndex=-1)}updateUniform(e,i,r){this._checkNewFrame();let s=this._uniformLocations[e];if(void 0===s){if(this._buffer)return void t.Logger.Error("Cannot add an uniform after UBO has been created. uniformName="+e);this.addUniform(e,r),s=this._uniformLocations[e]}if(this._buffer||this.create(),this._dynamic)for(let e=0;e<r;e++)this._bufferData[s+e]=i[e];else{let e=!1;for(let t=0;t<r;t++)(16!==r||this._engine._features.uniformBufferHardCheckMatrix)&&this._bufferData[s+t]===Math.fround(i[t])||(e=!0,this._createBufferOnWrite&&this._createNewBuffer(),this._bufferData[s+t]=i[t]);this._needSync=this._needSync||e}}updateUniformArray(e,r,s){this._checkNewFrame();let a=this._uniformLocations[e];if(void 0===a)return void t.Logger.Error("Cannot add an uniform Array dynamically. Please, add it using addUniform and make sure that uniform buffers are supported by the current engine.");this._buffer||this.create();let n=this._uniformArraySizes[e];if(this._dynamic)for(let e=0;e<s;e++)this._bufferData[a+e]=r[e];else{let e=!1,t=0,f=0;for(let h=0;h<s;h++)if(this._bufferData[a+4*f+t]!==i.Tools.FloatRound(r[h])&&(e=!0,this._createBufferOnWrite&&this._createNewBuffer(),this._bufferData[a+4*f+t]=r[h]),++t===n.strideSize){for(;t<4;t++)this._bufferData[a+4*f+t]=0;t=0,f++}this._needSync=this._needSync||e}}_cacheMatrix(e,t){this._checkNewFrame();let i=this._valueCache[e],r=t.updateFlag;return(void 0===i||i!==r)&&(this._valueCache[e]=r,!0)}_updateMatrix3x3ForUniform(e,t){for(let e=0;e<3;e++)r._TempBuffer[4*e]=t[3*e],r._TempBuffer[4*e+1]=t[3*e+1],r._TempBuffer[4*e+2]=t[3*e+2],r._TempBuffer[4*e+3]=0;this.updateUniform(e,r._TempBuffer,12)}_updateMatrix3x3ForEffect(e,t){this._currentEffect.setMatrix3x3(e,t)}_updateMatrix2x2ForEffect(e,t){this._currentEffect.setMatrix2x2(e,t)}_updateMatrix2x2ForUniform(e,t){for(let e=0;e<2;e++)r._TempBuffer[4*e]=t[2*e],r._TempBuffer[4*e+1]=t[2*e+1],r._TempBuffer[4*e+2]=0,r._TempBuffer[4*e+3]=0;this.updateUniform(e,r._TempBuffer,8)}_updateFloatForEffect(e,t,i=""){this._currentEffect.setFloat(e+i,t)}_updateFloatForUniform(e,t){r._TempBuffer[0]=t,this.updateUniform(e,r._TempBuffer,1)}_updateFloat2ForEffect(e,t,i,r=""){this._currentEffect.setFloat2(e+r,t,i)}_updateFloat2ForUniform(e,t,i){r._TempBuffer[0]=t,r._TempBuffer[1]=i,this.updateUniform(e,r._TempBuffer,2)}_updateFloat3ForEffect(e,t,i,r,s=""){this._currentEffect.setFloat3(e+s,t,i,r)}_updateFloat3ForUniform(e,t,i,s){r._TempBuffer[0]=t,r._TempBuffer[1]=i,r._TempBuffer[2]=s,this.updateUniform(e,r._TempBuffer,3)}_updateFloat4ForEffect(e,t,i,r,s,a=""){this._currentEffect.setFloat4(e+a,t,i,r,s)}_updateFloat4ForUniform(e,t,i,s,a){r._TempBuffer[0]=t,r._TempBuffer[1]=i,r._TempBuffer[2]=s,r._TempBuffer[3]=a,this.updateUniform(e,r._TempBuffer,4)}_updateFloatArrayForEffect(e,t,i=""){switch(this._uniformArraySizes[e]?.strideSize){case 2:this._currentEffect.setFloatArray2(e+i,t);break;case 3:this._currentEffect.setFloatArray3(e+i,t);break;case 4:this._currentEffect.setFloatArray4(e+i,t);break;default:this._currentEffect.setFloatArray(e+i,t)}}_updateFloatArrayForUniform(e,t){this.updateUniformArray(e,t,t.length)}_updateArrayForEffect(e,t){this._currentEffect.setArray(e,t)}_updateArrayForUniform(e,t){this.updateUniformArray(e,t,t.length)}_updateIntArrayForEffect(e,t){this._currentEffect.setIntArray(e,t)}_updateIntArrayForUniform(e,t){r._TempBufferInt32View.set(t),this.updateUniformArray(e,r._TempBuffer,t.length)}_updateUIntArrayForEffect(e,t){this._currentEffect.setUIntArray(e,t)}_updateUIntArrayForUniform(e,t){r._TempBufferUInt32View.set(t),this.updateUniformArray(e,r._TempBuffer,t.length)}_updateMatrixForEffect(e,t){this._currentEffect.setMatrix(e,t)}_updateMatrixForUniform(e,t){this._cacheMatrix(e,t)&&this.updateUniform(e,t.asArray(),16)}_updateMatricesForEffect(e,t){this._currentEffect.setMatrices(e,t)}_updateMatricesForUniform(e,t){this.updateUniform(e,t,t.length)}_updateVector3ForEffect(e,t){this._currentEffect.setVector3(e,t)}_updateVector3ForUniform(e,t){r._TempBuffer[0]=t.x,r._TempBuffer[1]=t.y,r._TempBuffer[2]=t.z,this.updateUniform(e,r._TempBuffer,3)}_updateVector4ForEffect(e,t){this._currentEffect.setVector4(e,t)}_updateVector4ForUniform(e,t){r._TempBuffer[0]=t.x,r._TempBuffer[1]=t.y,r._TempBuffer[2]=t.z,r._TempBuffer[3]=t.w,this.updateUniform(e,r._TempBuffer,4)}_updateColor3ForEffect(e,t,i=""){this._currentEffect.setColor3(e+i,t)}_updateColor3ForUniform(e,t){r._TempBuffer[0]=t.r,r._TempBuffer[1]=t.g,r._TempBuffer[2]=t.b,this.updateUniform(e,r._TempBuffer,3)}_updateColor4ForEffect(e,t,i,r=""){this._currentEffect.setColor4(e+r,t,i)}_updateDirectColor4ForEffect(e,t,i=""){this._currentEffect.setDirectColor4(e+i,t)}_updateColor4ForUniform(e,t,i){r._TempBuffer[0]=t.r,r._TempBuffer[1]=t.g,r._TempBuffer[2]=t.b,r._TempBuffer[3]=i,this.updateUniform(e,r._TempBuffer,4)}_updateDirectColor4ForUniform(e,t){r._TempBuffer[0]=t.r,r._TempBuffer[1]=t.g,r._TempBuffer[2]=t.b,r._TempBuffer[3]=t.a,this.updateUniform(e,r._TempBuffer,4)}_updateIntForEffect(e,t,i=""){this._currentEffect.setInt(e+i,t)}_updateIntForUniform(e,t){r._TempBufferInt32View[0]=t,this.updateUniform(e,r._TempBuffer,1)}_updateInt2ForEffect(e,t,i,r=""){this._currentEffect.setInt2(e+r,t,i)}_updateInt2ForUniform(e,t,i){r._TempBufferInt32View[0]=t,r._TempBufferInt32View[1]=i,this.updateUniform(e,r._TempBuffer,2)}_updateInt3ForEffect(e,t,i,r,s=""){this._currentEffect.setInt3(e+s,t,i,r)}_updateInt3ForUniform(e,t,i,s){r._TempBufferInt32View[0]=t,r._TempBufferInt32View[1]=i,r._TempBufferInt32View[2]=s,this.updateUniform(e,r._TempBuffer,3)}_updateInt4ForEffect(e,t,i,r,s,a=""){this._currentEffect.setInt4(e+a,t,i,r,s)}_updateInt4ForUniform(e,t,i,s,a){r._TempBufferInt32View[0]=t,r._TempBufferInt32View[1]=i,r._TempBufferInt32View[2]=s,r._TempBufferInt32View[3]=a,this.updateUniform(e,r._TempBuffer,4)}_updateUIntForEffect(e,t,i=""){this._currentEffect.setUInt(e+i,t)}_updateUIntForUniform(e,t){r._TempBufferUInt32View[0]=t,this.updateUniform(e,r._TempBuffer,1)}_updateUInt2ForEffect(e,t,i,r=""){this._currentEffect.setUInt2(e+r,t,i)}_updateUInt2ForUniform(e,t,i){r._TempBufferUInt32View[0]=t,r._TempBufferUInt32View[1]=i,this.updateUniform(e,r._TempBuffer,2)}_updateUInt3ForEffect(e,t,i,r,s=""){this._currentEffect.setUInt3(e+s,t,i,r)}_updateUInt3ForUniform(e,t,i,s){r._TempBufferUInt32View[0]=t,r._TempBufferUInt32View[1]=i,r._TempBufferUInt32View[2]=s,this.updateUniform(e,r._TempBuffer,3)}_updateUInt4ForEffect(e,t,i,r,s,a=""){this._currentEffect.setUInt4(e+a,t,i,r,s)}_updateUInt4ForUniform(e,t,i,s,a){r._TempBufferUInt32View[0]=t,r._TempBufferUInt32View[1]=i,r._TempBufferUInt32View[2]=s,r._TempBufferUInt32View[3]=a,this.updateUniform(e,r._TempBuffer,4)}setTexture(e,t){this._currentEffect.setTexture(e,t)}setTextureArray(e,t){this._currentEffect.setTextureArray(e,t)}bindTexture(e,t){this._currentEffect._bindTexture(e,t)}updateUniformDirectly(e,t){this.updateUniform(e,t,t.length),this.update()}bindToEffect(e,t){this._currentEffect=e,this._currentEffectName=t}bindUniformBuffer(){!this._noUBO&&this._buffer&&this._currentEffect&&this._currentEffect.bindUniformBuffer(this._buffer,this._currentEffectName)}unbindEffect(){this._currentEffect=void 0,this._currentEffectName=void 0}setDataBuffer(e){if(!this._buffers)return this._buffer===e;for(let t=0;t<this._buffers.length;++t)if(this._buffers[t][0]===e)return this._bufferIndex=t,this._buffer=e,this._createBufferOnWrite=!1,this._currentEffect=void 0,this._buffers.length>1&&this._buffers[t][1]&&this._bufferData.set(this._buffers[t][1]),this._valueCache={},this._currentFrameId=this._engine.frameId,!0;return!1}has(e){return void 0!==this._uniformLocations[e]}dispose(){if(this._noUBO)return;let e=this._engine._uniformBuffers,t=e.indexOf(this);if(-1!==t&&(e[t]=e[e.length-1],e.pop()),this._trackUBOsInFrame&&this._buffers)for(let e=0;e<this._buffers.length;++e){let t=this._buffers[e][0];this._engine._releaseBuffer(t)}else this._buffer&&this._engine._releaseBuffer(this._buffer)&&(this._buffer=null)}}r._MAX_UNIFORM_SIZE=256,r._TempBuffer=new Float32Array(r._MAX_UNIFORM_SIZE),r._TempBufferInt32View=new Int32Array(r._TempBuffer.buffer),r._TempBufferUInt32View=new Uint32Array(r._TempBuffer.buffer),e.s(["UniformBuffer",0,r],81127);class s{static CompareLightsPriority(e,t){return e.shadowEnabled!==t.shadowEnabled?!!t.shadowEnabled-!!e.shadowEnabled:t.renderPriority-e.renderPriority}}s.FALLOFF_DEFAULT=0,s.FALLOFF_PHYSICAL=1,s.FALLOFF_GLTF=2,s.FALLOFF_STANDARD=3,s.LIGHTMAP_DEFAULT=0,s.LIGHTMAP_SPECULAR=1,s.LIGHTMAP_SHADOWSONLY=2,s.INTENSITYMODE_AUTOMATIC=0,s.INTENSITYMODE_LUMINOUSPOWER=1,s.INTENSITYMODE_LUMINOUSINTENSITY=2,s.INTENSITYMODE_ILLUMINANCE=3,s.INTENSITYMODE_LUMINANCE=4,s.LIGHTTYPEID_POINTLIGHT=0,s.LIGHTTYPEID_DIRECTIONALLIGHT=1,s.LIGHTTYPEID_SPOTLIGHT=2,s.LIGHTTYPEID_HEMISPHERICLIGHT=3,s.LIGHTTYPEID_RECT_AREALIGHT=4,s.LIGHTTYPEID_CLUSTERED_CONTAINER=5,e.s(["LightConstants",0,s],26801)},17828,e=>{"use strict";class t{}t.NAME_EFFECTLAYER="EffectLayer",t.NAME_LAYER="Layer",t.NAME_LENSFLARESYSTEM="LensFlareSystem",t.NAME_BOUNDINGBOXRENDERER="BoundingBoxRenderer",t.NAME_PARTICLESYSTEM="ParticleSystem",t.NAME_GAMEPAD="Gamepad",t.NAME_SIMPLIFICATIONQUEUE="SimplificationQueue",t.NAME_GEOMETRYBUFFERRENDERER="GeometryBufferRenderer",t.NAME_PREPASSRENDERER="PrePassRenderer",t.NAME_DEPTHRENDERER="DepthRenderer",t.NAME_DEPTHPEELINGRENDERER="DepthPeelingRenderer",t.NAME_POSTPROCESSRENDERPIPELINEMANAGER="PostProcessRenderPipelineManager",t.NAME_SPRITE="Sprite",t.NAME_SUBSURFACE="SubSurface",t.NAME_OUTLINERENDERER="Outline",t.NAME_PROCEDURALTEXTURE="ProceduralTexture",t.NAME_SHADOWGENERATOR="ShadowGenerator",t.NAME_OCTREE="Octree",t.NAME_PHYSICSENGINE="PhysicsEngine",t.NAME_AUDIO="Audio",t.NAME_FLUIDRENDERER="FluidRenderer",t.NAME_IBLCDFGENERATOR="iblCDFGenerator",t.NAME_CLUSTEREDLIGHTING="ClusteredLighting",t.STEP_ISREADYFORMESH_EFFECTLAYER=0,t.STEP_ISREADYFORMESH_DEPTHRENDERER=1,t.STEP_BEFOREEVALUATEACTIVEMESH_BOUNDINGBOXRENDERER=0,t.STEP_EVALUATESUBMESH_BOUNDINGBOXRENDERER=0,t.STEP_PREACTIVEMESH_BOUNDINGBOXRENDERER=0,t.STEP_CAMERADRAWRENDERTARGET_EFFECTLAYER=1,t.STEP_BEFORECAMERADRAW_PREPASS=0,t.STEP_BEFORECAMERADRAW_EFFECTLAYER=1,t.STEP_BEFORECAMERADRAW_LAYER=2,t.STEP_BEFORERENDERTARGETDRAW_PREPASS=0,t.STEP_BEFORERENDERTARGETDRAW_LAYER=1,t.STEP_BEFORERENDERINGMESH_PREPASS=0,t.STEP_BEFORERENDERINGMESH_OUTLINE=1,t.STEP_AFTERRENDERINGMESH_PREPASS=0,t.STEP_AFTERRENDERINGMESH_OUTLINE=1,t.STEP_AFTERRENDERINGGROUPDRAW_EFFECTLAYER_DRAW=0,t.STEP_AFTERRENDERINGGROUPDRAW_BOUNDINGBOXRENDERER=1,t.STEP_BEFORECAMERAUPDATE_SIMPLIFICATIONQUEUE=0,t.STEP_BEFORECLEAR_PROCEDURALTEXTURE=0,t.STEP_BEFORECLEAR_PREPASS=1,t.STEP_BEFORERENDERTARGETCLEAR_PREPASS=0,t.STEP_AFTERRENDERTARGETDRAW_PREPASS=0,t.STEP_AFTERRENDERTARGETDRAW_LAYER=1,t.STEP_AFTERCAMERADRAW_PREPASS=0,t.STEP_AFTERCAMERADRAW_EFFECTLAYER=1,t.STEP_AFTERCAMERADRAW_LENSFLARESYSTEM=2,t.STEP_AFTERCAMERADRAW_EFFECTLAYER_DRAW=3,t.STEP_AFTERCAMERADRAW_LAYER=4,t.STEP_AFTERCAMERADRAW_FLUIDRENDERER=5,t.STEP_AFTERCAMERAPOSTPROCESS_LAYER=0,t.STEP_AFTERRENDERTARGETPOSTPROCESS_LAYER=0,t.STEP_AFTERRENDER_AUDIO=0,t.STEP_GATHERRENDERTARGETS_DEPTHRENDERER=0,t.STEP_GATHERRENDERTARGETS_GEOMETRYBUFFERRENDERER=1,t.STEP_GATHERRENDERTARGETS_SHADOWGENERATOR=2,t.STEP_GATHERRENDERTARGETS_POSTPROCESSRENDERPIPELINEMANAGER=3,t.STEP_GATHERACTIVECAMERARENDERTARGETS_DEPTHRENDERER=0,t.STEP_GATHERACTIVECAMERARENDERTARGETS_FLUIDRENDERER=1,t.STEP_GATHERACTIVECAMERARENDERTARGETS_CLUSTEREDLIGHTING=2,t.STEP_POINTERMOVE_SPRITE=0,t.STEP_POINTERDOWN_SPRITE=0,t.STEP_POINTERUP_SPRITE=0;class i extends Array{constructor(e){super(...e)}static Create(){return Object.create(i.prototype)}registerStep(e,t,i){let r=0;for(;r<this.length&&!(e<this[r].index);r++);this.splice(r,0,{index:e,component:t,action:i.bind(t)})}clear(){this.length=0}}e.s(["SceneComponentConstants",0,t,"Stage",0,i])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46717,t=>{t.v(s=>Promise.all(["static/chunks/1tgj55b305g4h.js"].map(s=>t.l(s))).then(()=>s(21774)))},20954,t=>{t.v(s=>Promise.all(["static/chunks/302qk2fjdrthp.js"].map(s=>t.l(s))).then(()=>s(40735)))},10909,t=>{t.v(s=>Promise.all(["static/chunks/3h6akt2uu05ku.js"].map(s=>t.l(s))).then(()=>s(45840)))},76609,t=>{t.v(s=>Promise.all(["static/chunks/2y8i7_nxm4r05.js"].map(s=>t.l(s))).then(()=>s(7539)))},78526,t=>{t.v(s=>Promise.all(["static/chunks/2n3xu_wbvtj7h.js"].map(s=>t.l(s))).then(()=>s(3086)))}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,47006,e=>{"use strict";var t=e.i(37096),r=e.i(97009),o=e.i(42035),a=e.i(75648),l=e.i(37472),s=e.i(17484),i=e.i(72003),n=e.i(5573),c=e.i(46202);function h(e,t){return e.x*t.x+e.y*t.y+e.z*t.z}function p(e){let t,r=Math.abs(e.x),o=Math.abs(e.y),a=Math.abs(e.z);return t=r<=o&&r<=a?i.Vector3.RightReadOnly:o<=a?i.Vector3.UpReadOnly:i.Vector3.LeftHandedForwardReadOnly,i.Vector3.Cross(e,t).normalize()}let u=["xyz","xzy","yxz","yzx","zxy","zyx"];var y=e.i(99493);let w="cachedOperationAxis",F="cachedOperationAngle",m="cachedExecutionId";class B extends a.FlowGraphUnaryOperationBlock{constructor(e){super(r.RichTypeAny,r.RichTypeNumber,e=>this._polymorphicLength(e),"FlowGraphLengthBlock",e)}_polymorphicLength(e){switch((0,n._GetClassNameOf)(e)){case"Vector2":case"Vector3":case"Vector4":case"Quaternion":return e.length();default:throw Error(`Cannot compute length of value ${e}`)}}}class V extends s.FlowGraphCachedOperationBlock{constructor(e){super(r.RichTypeAny,e),this.a=this.registerDataInput("a",r.RichTypeAny)}_doOperation(e){return this._polymorphicNormalize(this.a.getValue(e))}_getInvalidOutputValue(e){let t=this.a.getValue(e);switch((0,n._GetClassNameOf)(t)){case"Vector2":return new i.Vector2(0,0);case"Vector4":return new i.Vector4(0,0,0,0);case"Quaternion":return new i.Quaternion(0,0,0,0);default:return new i.Vector3(0,0,0)}}_polymorphicNormalize(e){switch((0,n._GetClassNameOf)(e)){case"Vector2":case"Vector3":case"Vector4":case"Quaternion":{let t=e.length();if(0===t||!Number.isFinite(t)){if(this.config?.nanOnZeroLength){let t=e.normalizeToNew();return t.setAll(NaN),t}return}return e.normalizeToNew()}default:throw Error(`Cannot normalize value ${e}`)}}getClassName(){return"FlowGraphNormalizeBlock"}}class g extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeAny,r.RichTypeAny,r.RichTypeNumber,(e,t)=>this._polymorphicDot(e,t),"FlowGraphDotBlock",e)}_polymorphicDot(e,t){switch((0,n._GetClassNameOf)(e)){case"Vector2":case"Vector3":case"Vector4":case"Quaternion":return e.dot(t);default:throw Error(`Cannot get dot product of ${e} and ${t}`)}}}class x extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeVector3,r.RichTypeVector3,r.RichTypeVector3,(e,t)=>i.Vector3.Cross(e,t),"FlowGraphCrossBlock",e)}}class d extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeVector2,r.RichTypeNumber,r.RichTypeVector2,(e,t)=>e.rotate(t),"FlowGraphRotate2DBlock",e)}}class G extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeVector3,r.RichTypeQuaternion,r.RichTypeVector3,(e,t)=>e.applyRotationQuaternion(t),"FlowGraphRotate3DBlock",e)}}function R(e,t){switch((0,n._GetClassNameOf)(e)){case"Vector2":case"Vector3":return t.transformVector(e);case"Vector4":return new i.Vector4(e.x*t.m[0]+e.y*t.m[4]+e.z*t.m[8]+e.w*t.m[12],e.x*t.m[1]+e.y*t.m[5]+e.z*t.m[9]+e.w*t.m[13],e.x*t.m[2]+e.y*t.m[6]+e.z*t.m[10]+e.w*t.m[14],e.x*t.m[3]+e.y*t.m[7]+e.z*t.m[11]+e.w*t.m[15]);default:throw Error(`Cannot transform value ${e}`)}}class k extends o.FlowGraphBinaryOperationBlock{constructor(e){const t=e?.vectorType||"Vector3",o="Vector2"===t?"Matrix2D":"Vector3"===t?"Matrix3D":"Matrix";super((0,r.getRichTypeByFlowGraphType)(t),(0,r.getRichTypeByFlowGraphType)(o),(0,r.getRichTypeByFlowGraphType)(t),R,"FlowGraphTransformVectorBlock",e)}}class T extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeVector3,r.RichTypeMatrix,r.RichTypeVector3,(e,t)=>i.Vector3.TransformCoordinates(e,t),"FlowGraphTransformCoordinatesBlock",e)}}class C extends a.FlowGraphUnaryOperationBlock{constructor(e){super(r.RichTypeQuaternion,r.RichTypeQuaternion,e=>e.conjugate(),"FlowGraphConjugateBlock",e)}}class O extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeQuaternion,r.RichTypeQuaternion,r.RichTypeNumber,(e,t)=>2*Math.acos((0,c.Clamp)(e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w,-1,1)),"FlowGraphAngleBetweenBlock",e)}}class f extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeVector3,r.RichTypeNumber,r.RichTypeQuaternion,(e,t)=>i.Quaternion.RotationAxis(e,t),"FlowGraphQuaternionFromAxisAngleBlock",e)}}class _ extends t.FlowGraphBlock{constructor(e){super(e),this.a=this.registerDataInput("a",r.RichTypeQuaternion),this.axis=this.registerDataOutput("axis",r.RichTypeVector3),this.angle=this.registerDataOutput("angle",r.RichTypeNumber),this.isValid=this.registerDataOutput("isValid",r.RichTypeBoolean)}_updateOutputs(e){let t=e._getExecutionVariable(this,m,-1),r=e._getExecutionVariable(this,w,null),o=e._getExecutionVariable(this,F,null);if(null!=r&&null!=o&&t===e.executionId)this.axis.setValue(r,e),this.angle.setValue(o,e);else try{let{axis:t,angle:r}=this.a.getValue(e).toAxisAngle();e._setExecutionVariable(this,w,t),e._setExecutionVariable(this,F,r),e._setExecutionVariable(this,m,e.executionId),this.axis.setValue(t,e),this.angle.setValue(r,e),this.isValid.setValue(!0,e)}catch(t){this.isValid.setValue(!1,e)}}getClassName(){return"FlowGraphAxisAngleFromQuaternionBlock"}}class z extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeVector3,r.RichTypeVector3,r.RichTypeQuaternion,(e,t)=>{let r;return function(e,t,r){let o=h(e,t);if(Number.isFinite(o)&&o>.999999)return r.copyFromFloats(0,0,0,1);if(Number.isFinite(o)&&o<-.999999){let t=p(e);return r.copyFromFloats(t.x,t.y,t.z,0)}let a=i.Vector3.Cross(e,t).normalize(),l=Math.sqrt(.5-.5*o);r.copyFromFloats(a.x*l,a.y*l,a.z*l,Math.sqrt(.5+.5*o))}(e,t,r=new i.Quaternion),r},"FlowGraphQuaternionFromDirectionsBlock",e)}}class A extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeVector3,r.RichTypeVector3,r.RichTypeQuaternion,(e,t)=>{let r,o,a,l;return r=new i.Vector3(t.x,t.y,t.z),(o=i.Vector3.Cross(e,r)).lengthSquared()<1e-6*1e-6?o=p(r):o.normalize(),a=i.Vector3.Cross(r,o),l=i.Matrix.FromValues(o.x,o.y,o.z,0,a.x,a.y,a.z,0,r.x,r.y,r.z,0,0,0,0,1),i.Quaternion.FromRotationMatrix(l)},"FlowGraphQuaternionFromUpForwardBlock",e)}}class Q extends l.FlowGraphTernaryOperationBlock{constructor(e){super(r.RichTypeAny,r.RichTypeAny,r.RichTypeNumber,r.RichTypeAny,(e,t,r)=>this._polymorphicSlerp(e,t,r),"FlowGraphVectorSlerpBlock",e)}_polymorphicSlerp(e,t,r){switch((0,n._GetClassNameOf)(e)){case"Vector2":return function(e,t,r){let o=Math.sqrt(e.x*e.x+e.y*e.y),a=Math.sqrt(t.x*t.x+t.y*t.y);if(o<1e-6||a<1e-6)return new i.Vector2((1-r)*e.x+r*t.x,(1-r)*e.y+r*t.y);let l=e.x/o,s=e.y/o,n=t.x/a,h=t.y/a,p=Math.acos((0,c.Clamp)(l*n+s*h,-1,1));l*h-s*n<0&&(p=-p);let u=(1-r)*o+r*a,y=Math.cos(r*p),w=Math.sin(r*p);return new i.Vector2((l*y-s*w)*u,(l*w+s*y)*u)}(e,t,r);case"Vector3":return function(e,t,r){let o,a=e.length(),l=t.length(),s=()=>new i.Vector3((1-r)*e.x+r*t.x,(1-r)*e.y+r*t.y,(1-r)*e.z+r*t.z);if(a<1e-6||l<1e-6)return s();let n=new i.Vector3(e.x/a,e.y/a,e.z/a),u=new i.Vector3(t.x/l,t.y/l,t.z/l),y=h(n,u);if(y>.999999)return s();o=y<-.999999?p(n):i.Vector3.Cross(n,u).normalize();let w=r*Math.acos((0,c.Clamp)(y,-1,1)),F=i.Quaternion.RotationAxis(o,w);return n.applyRotationQuaternion(F).scaleInPlace((1-r)*a+r*l)}(e,t,r);default:throw Error(`Cannot slerp value ${e}`)}}}class N extends l.FlowGraphTernaryOperationBlock{constructor(e){super(r.RichTypeNumber,r.RichTypeNumber,r.RichTypeNumber,r.RichTypeQuaternion,(e,t,r)=>(function(e,t,r,o){let a=i.Quaternion.RotationAxis(i.Vector3.RightReadOnly,t),l=i.Quaternion.RotationAxis(i.Vector3.UpReadOnly,r),s=i.Quaternion.RotationAxis(i.Vector3.LeftHandedForwardReadOnly,o);switch(e){case"xyz":return a.multiplyInPlace(l).multiplyInPlace(s);case"xzy":return a.multiplyInPlace(s).multiplyInPlace(l);case"yzx":return l.multiplyInPlace(s).multiplyInPlace(a);case"zxy":return s.multiplyInPlace(a).multiplyInPlace(l);case"zyx":return s.multiplyInPlace(l).multiplyInPlace(a);default:return l.multiplyInPlace(a).multiplyInPlace(s)}})(this._order,e,t,r),"FlowGraphQuaternionFromAnglesBlock",e);const t=e?.order;this._order="string"==typeof t&&-1!==u.indexOf(t)?t:"yxz"}}let b=!1;function D(){b||(b=!0,(0,y.RegisterClass)("FlowGraphLengthBlock",B),(0,y.RegisterClass)("FlowGraphNormalizeBlock",V),(0,y.RegisterClass)("FlowGraphDotBlock",g),(0,y.RegisterClass)("FlowGraphCrossBlock",x),(0,y.RegisterClass)("FlowGraphRotate2DBlock",d),(0,y.RegisterClass)("FlowGraphRotate3DBlock",G),(0,y.RegisterClass)("FlowGraphTransformVectorBlock",k),(0,y.RegisterClass)("FlowGraphTransformCoordinatesBlock",T),(0,y.RegisterClass)("FlowGraphConjugateBlock",C),(0,y.RegisterClass)("FlowGraphAngleBetweenBlock",O),(0,y.RegisterClass)("FlowGraphQuaternionFromAxisAngleBlock",f),(0,y.RegisterClass)("FlowGraphAxisAngleFromQuaternionBlock",_),(0,y.RegisterClass)("FlowGraphQuaternionFromDirectionsBlock",z),(0,y.RegisterClass)("FlowGraphQuaternionFromUpForwardBlock",A),(0,y.RegisterClass)("FlowGraphQuaternionFromAnglesBlock",N),(0,y.RegisterClass)("FlowGraphVectorSlerpBlock",Q))}e.s(["FlowGraphAngleBetweenBlock",0,O,"FlowGraphAxisAngleFromQuaternionBlock",0,_,"FlowGraphConjugateBlock",0,C,"FlowGraphCrossBlock",0,x,"FlowGraphDotBlock",0,g,"FlowGraphLengthBlock",0,B,"FlowGraphNormalizeBlock",0,V,"FlowGraphQuaternionFromAnglesBlock",0,N,"FlowGraphQuaternionFromAxisAngleBlock",0,f,"FlowGraphQuaternionFromDirectionsBlock",0,z,"FlowGraphQuaternionFromUpForwardBlock",0,A,"FlowGraphRotate2DBlock",0,d,"FlowGraphRotate3DBlock",0,G,"FlowGraphTransformBlock",0,k,"FlowGraphTransformCoordinatesBlock",0,T,"FlowGraphVectorSlerpBlock",0,Q,"RegisterFlowGraphVectorMathBlocks",0,D],1247),D(),e.s([],26476),e.i(26476),e.i(1247),e.s(["FlowGraphAngleBetweenBlock",0,O,"FlowGraphAxisAngleFromQuaternionBlock",0,_,"FlowGraphConjugateBlock",0,C,"FlowGraphCrossBlock",0,x,"FlowGraphDotBlock",0,g,"FlowGraphLengthBlock",0,B,"FlowGraphNormalizeBlock",0,V,"FlowGraphQuaternionFromAnglesBlock",0,N,"FlowGraphQuaternionFromAxisAngleBlock",0,f,"FlowGraphQuaternionFromDirectionsBlock",0,z,"FlowGraphQuaternionFromUpForwardBlock",0,A,"FlowGraphRotate2DBlock",0,d,"FlowGraphRotate3DBlock",0,G,"FlowGraphTransformBlock",0,k,"FlowGraphTransformCoordinatesBlock",0,T,"FlowGraphVectorSlerpBlock",0,Q],47006)},42035,e=>{"use strict";var t=e.i(17484);class r extends t.FlowGraphCachedOperationBlock{constructor(e,t,r,o,a,l){super(r,l),this._operation=o,this._className=a,this.a=this.registerDataInput("a",e),this.b=this.registerDataInput("b",t)}_doOperation(e){let t=this.a.getValue(e),r=this.b.getValue(e);return this._operation(t,r)}getClassName(){return this._className}}e.s(["FlowGraphBinaryOperationBlock",0,r])},17484,e=>{"use strict";var t=e.i(37096),r=e.i(97009);let o="cachedOperationValue",a="cachedExecutionId";class l extends t.FlowGraphBlock{constructor(e,t){super(t),this._outputRichType=e,this.value=this.registerDataOutput("value",e),this.isValid=this.registerDataOutput("isValid",r.RichTypeBoolean)}_getInvalidOutputValue(e){let t=this._outputRichType.defaultValue,r=t?.clone;return"function"==typeof r?r.call(t):t}_updateOutputs(e){let t=e._getExecutionVariable(this,a,-1),r=e._getExecutionVariable(this,o,null);if(null!=r&&t===e.executionId)this.isValid.setValue(!0,e),this.value.setValue(r,e);else try{let t=this._doOperation(e);if(null==t)return void this._setInvalid(e);e._setExecutionVariable(this,o,t),e._setExecutionVariable(this,a,e.executionId),this.value.setValue(t,e),this.isValid.setValue(!0,e)}catch(t){this._setInvalid(e)}}_setInvalid(e){this.isValid.setValue(!1,e),this.value.setValue(this._getInvalidOutputValue(e),e)}}e.s(["FlowGraphCachedOperationBlock",0,l])},37472,e=>{"use strict";var t=e.i(17484);class r extends t.FlowGraphCachedOperationBlock{constructor(e,t,r,o,a,l,s){super(o,s),this._operation=a,this._className=l,this.a=this.registerDataInput("a",e),this.b=this.registerDataInput("b",t),this.c=this.registerDataInput("c",r)}_doOperation(e){return this._operation(this.a.getValue(e),this.b.getValue(e),this.c.getValue(e))}getClassName(){return this._className}}e.s(["FlowGraphTernaryOperationBlock",0,r])},75648,e=>{"use strict";var t=e.i(17484);class r extends t.FlowGraphCachedOperationBlock{constructor(e,t,r,o,a){super(t,a),this._operation=r,this._className=o,this.a=this.registerDataInput("a",e)}_doOperation(e){return this._operation(this.a.getValue(e))}getClassName(){return this._className}}e.s(["FlowGraphUnaryOperationBlock",0,r])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65229,e=>{"use strict";var t=e.i(57011),i=e.i(5573),s=e.i(97009),n=e.i(99493);class r extends t.FlowGraphEventBlock{constructor(e){super(e),this.type="PointerUp",this.targetMesh=this.registerDataInput("targetMesh",s.RichTypeAny,e?.targetMesh),this.pointerId=this.registerDataOutput("pointerId",s.RichTypeNumber),this.pickedMesh=this.registerDataOutput("pickedMesh",s.RichTypeAny),this.pickedPoint=this.registerDataOutput("pickedPoint",s.RichTypeAny)}_executeEvent(e,t){let s=this.targetMesh.getValue(e),n=t.pickInfo?.pickedMesh;return!(!s||n===s||n&&(0,i._IsDescendantOf)(n,s))||(this.pointerId.setValue(t.event.pointerId,e),this.pickedMesh.setValue(n??null,e),this.pickedPoint.setValue(t.pickInfo?.pickedPoint??null,e),this._execute(e),!this.config?.stopPropagation)}_preparePendingTasks(e){}_cancelPendingTasks(e){}getClassName(){return"FlowGraphPointerUpEventBlock"}}let p=!1;function o(){p||(p=!0,(0,n.RegisterClass)("FlowGraphPointerUpEventBlock",r))}e.s(["FlowGraphPointerUpEventBlock",0,r,"RegisterFlowGraphPointerUpEventBlock",0,o],79517),o(),e.s([],62167),e.i(62167),e.i(79517),e.s(["FlowGraphPointerUpEventBlock",0,r],65229)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3994,e=>{e.v(t=>Promise.all(["static/chunks/175st2ogkg_1o.js","static/chunks/3vv99btjc-mky.js","static/chunks/29rkmguzky-bp.js"].map(t=>e.l(t))).then(()=>t(27884)))},80539,e=>{e.v(t=>Promise.all(["static/chunks/2kj6pzs_wap1v.js"].map(t=>e.l(t))).then(()=>t(12530)))},40215,e=>{e.v(t=>Promise.all(["static/chunks/0zcsxvcvog9ue.js","static/chunks/29rkmguzky-bp.js","static/chunks/0ngpoj2g5i4kz.js","static/chunks/1a2ouhup611bz.js","static/chunks/40etabvml_71y.js","static/chunks/03bd5plut08tg.js","static/chunks/1w-qc09n9ijtq.js","static/chunks/3i239y-1hbkm-.js"].map(t=>e.l(t))).then(()=>t(41876)))},97437,e=>{e.v(t=>Promise.all(["static/chunks/3ewgyb4y19w-3.js","static/chunks/29rkmguzky-bp.js"].map(t=>e.l(t))).then(()=>t(60413)))},35808,e=>{e.v(t=>Promise.all(["static/chunks/26y9sv8_-ykxf.js"].map(t=>e.l(t))).then(()=>t(55834)))},17247,e=>{e.v(t=>Promise.all(["static/chunks/10_5p5-xf2aoo.js"].map(t=>e.l(t))).then(()=>t(31697)))},10289,e=>{e.v(t=>Promise.all(["static/chunks/1imi0xwi9hd99.js","static/chunks/29rkmguzky-bp.js"].map(t=>e.l(t))).then(()=>t(48329)))},2596,e=>{"use strict";var t=e.i(85789);let s=new Map;function a(e,a){var c;c=e,s.delete(c)&&t.Logger.Warn(`Extension with the name '${e}' already exists`),s.set(e,a)}e.s(["_GetCompatibleTextureLoader",0,function(t,c){("image/ktx"===c||"image/ktx2"===c)&&(t=".ktx"),!s.has(t)&&(t.endsWith(".ies")&&a(".ies",async()=>await e.A(17247).then(e=>new e._IESTextureLoader)),t.endsWith(".dds")&&a(".dds",async()=>await e.A(80539).then(e=>new e._DDSTextureLoader)),t.endsWith(".basis")&&a(".basis",async()=>await e.A(3994).then(e=>new e._BasisTextureLoader)),t.endsWith(".env")&&a(".env",async()=>await e.A(40215).then(e=>new e._ENVTextureLoader)),t.endsWith(".hdr")&&a(".hdr",async()=>await e.A(35808).then(e=>new e._HDRTextureLoader)),(t.endsWith(".ktx")||t.endsWith(".ktx2"))&&(a(".ktx",async()=>await e.A(10289).then(e=>new e._KTXTextureLoader)),a(".ktx2",async()=>await e.A(10289).then(e=>new e._KTXTextureLoader))),t.endsWith(".tga")&&a(".tga",async()=>await e.A(79329).then(e=>new e._TGATextureLoader)),t.endsWith(".exr")&&a(".exr",async()=>await e.A(97437).then(e=>new e._ExrTextureLoader)));let r=s.get(t);return r?Promise.resolve(r(c)):null}])},79329,e=>{e.v(t=>Promise.all(["static/chunks/2rmc6ru7mc-kg.js"].map(t=>e.l(t))).then(()=>t(80459)))},27952,e=>{"use strict";var t=e.i(72003);let s=[Math.sqrt(1/(4*Math.PI)),-Math.sqrt(3/(4*Math.PI)),Math.sqrt(3/(4*Math.PI)),-Math.sqrt(3/(4*Math.PI)),Math.sqrt(15/(4*Math.PI)),-Math.sqrt(15/(4*Math.PI)),Math.sqrt(5/(16*Math.PI)),-Math.sqrt(15/(4*Math.PI)),Math.sqrt(15/(16*Math.PI))],a=[()=>1,e=>e.y,e=>e.z,e=>e.x,e=>e.x*e.y,e=>e.y*e.z,e=>3*e.z*e.z-1,e=>e.x*e.z,e=>e.x*e.x-e.y*e.y],c=(e,t)=>s[e]*a[e](t),r=[Math.PI,2*Math.PI/3,2*Math.PI/3,2*Math.PI/3,Math.PI/4,Math.PI/4,Math.PI/4,Math.PI/4,Math.PI/4];class l{constructor(){this.preScaled=!1,this.l00=t.Vector3.Zero(),this.l1_1=t.Vector3.Zero(),this.l10=t.Vector3.Zero(),this.l11=t.Vector3.Zero(),this.l2_2=t.Vector3.Zero(),this.l2_1=t.Vector3.Zero(),this.l20=t.Vector3.Zero(),this.l21=t.Vector3.Zero(),this.l22=t.Vector3.Zero()}addLight(e,s,a){t.TmpVectors.Vector3[0].set(s.r,s.g,s.b);let r=t.TmpVectors.Vector3[0],l=t.TmpVectors.Vector3[1];r.scaleToRef(a,l),l.scaleToRef(c(0,e),t.TmpVectors.Vector3[2]),this.l00.addInPlace(t.TmpVectors.Vector3[2]),l.scaleToRef(c(1,e),t.TmpVectors.Vector3[2]),this.l1_1.addInPlace(t.TmpVectors.Vector3[2]),l.scaleToRef(c(2,e),t.TmpVectors.Vector3[2]),this.l10.addInPlace(t.TmpVectors.Vector3[2]),l.scaleToRef(c(3,e),t.TmpVectors.Vector3[2]),this.l11.addInPlace(t.TmpVectors.Vector3[2]),l.scaleToRef(c(4,e),t.TmpVectors.Vector3[2]),this.l2_2.addInPlace(t.TmpVectors.Vector3[2]),l.scaleToRef(c(5,e),t.TmpVectors.Vector3[2]),this.l2_1.addInPlace(t.TmpVectors.Vector3[2]),l.scaleToRef(c(6,e),t.TmpVectors.Vector3[2]),this.l20.addInPlace(t.TmpVectors.Vector3[2]),l.scaleToRef(c(7,e),t.TmpVectors.Vector3[2]),this.l21.addInPlace(t.TmpVectors.Vector3[2]),l.scaleToRef(c(8,e),t.TmpVectors.Vector3[2]),this.l22.addInPlace(t.TmpVectors.Vector3[2])}scaleInPlace(e){this.l00.scaleInPlace(e),this.l1_1.scaleInPlace(e),this.l10.scaleInPlace(e),this.l11.scaleInPlace(e),this.l2_2.scaleInPlace(e),this.l2_1.scaleInPlace(e),this.l20.scaleInPlace(e),this.l21.scaleInPlace(e),this.l22.scaleInPlace(e)}convertIncidentRadianceToIrradiance(){this.l00.scaleInPlace(r[0]),this.l1_1.scaleInPlace(r[1]),this.l10.scaleInPlace(r[2]),this.l11.scaleInPlace(r[3]),this.l2_2.scaleInPlace(r[4]),this.l2_1.scaleInPlace(r[5]),this.l20.scaleInPlace(r[6]),this.l21.scaleInPlace(r[7]),this.l22.scaleInPlace(r[8])}convertIrradianceToLambertianRadiance(){this.scaleInPlace(1/Math.PI)}preScaleForRendering(){this.preScaled=!0,this.l00.scaleInPlace(s[0]),this.l1_1.scaleInPlace(s[1]),this.l10.scaleInPlace(s[2]),this.l11.scaleInPlace(s[3]),this.l2_2.scaleInPlace(s[4]),this.l2_1.scaleInPlace(s[5]),this.l20.scaleInPlace(s[6]),this.l21.scaleInPlace(s[7]),this.l22.scaleInPlace(s[8])}updateFromArray(e){return t.Vector3.FromArrayToRef(e[0],0,this.l00),t.Vector3.FromArrayToRef(e[1],0,this.l1_1),t.Vector3.FromArrayToRef(e[2],0,this.l10),t.Vector3.FromArrayToRef(e[3],0,this.l11),t.Vector3.FromArrayToRef(e[4],0,this.l2_2),t.Vector3.FromArrayToRef(e[5],0,this.l2_1),t.Vector3.FromArrayToRef(e[6],0,this.l20),t.Vector3.FromArrayToRef(e[7],0,this.l21),t.Vector3.FromArrayToRef(e[8],0,this.l22),this}updateFromFloatsArray(e){return t.Vector3.FromFloatsToRef(e[0],e[1],e[2],this.l00),t.Vector3.FromFloatsToRef(e[3],e[4],e[5],this.l1_1),t.Vector3.FromFloatsToRef(e[6],e[7],e[8],this.l10),t.Vector3.FromFloatsToRef(e[9],e[10],e[11],this.l11),t.Vector3.FromFloatsToRef(e[12],e[13],e[14],this.l2_2),t.Vector3.FromFloatsToRef(e[15],e[16],e[17],this.l2_1),t.Vector3.FromFloatsToRef(e[18],e[19],e[20],this.l20),t.Vector3.FromFloatsToRef(e[21],e[22],e[23],this.l21),t.Vector3.FromFloatsToRef(e[24],e[25],e[26],this.l22),this}static FromArray(e){return new l().updateFromArray(e)}static FromPolynomial(e){let t=new l;return t.l00=e.xx.scale(.376127).add(e.yy.scale(.376127)).add(e.zz.scale(.376126)),t.l1_1=e.y.scale(.977204),t.l10=e.z.scale(.977204),t.l11=e.x.scale(.977204),t.l2_2=e.xy.scale(1.16538),t.l2_1=e.yz.scale(1.16538),t.l20=e.zz.scale(1.34567).subtract(e.xx.scale(.672834)).subtract(e.yy.scale(.672834)),t.l21=e.zx.scale(1.16538),t.l22=e.xx.scale(1.16538).subtract(e.yy.scale(1.16538)),t.l1_1.scaleInPlace(-1),t.l11.scaleInPlace(-1),t.l2_1.scaleInPlace(-1),t.l21.scaleInPlace(-1),t.scaleInPlace(Math.PI),t}}e.s(["SphericalHarmonics",0,l,"SphericalPolynomial",0,class e{constructor(){this.x=t.Vector3.Zero(),this.y=t.Vector3.Zero(),this.z=t.Vector3.Zero(),this.xx=t.Vector3.Zero(),this.yy=t.Vector3.Zero(),this.zz=t.Vector3.Zero(),this.xy=t.Vector3.Zero(),this.yz=t.Vector3.Zero(),this.zx=t.Vector3.Zero()}get preScaledHarmonics(){return this._harmonics||(this._harmonics=l.FromPolynomial(this)),this._harmonics.preScaled||this._harmonics.preScaleForRendering(),this._harmonics}addAmbient(e){t.TmpVectors.Vector3[0].copyFromFloats(e.r,e.g,e.b);let s=t.TmpVectors.Vector3[0];this.xx.addInPlace(s),this.yy.addInPlace(s),this.zz.addInPlace(s)}scaleInPlace(e){this.x.scaleInPlace(e),this.y.scaleInPlace(e),this.z.scaleInPlace(e),this.xx.scaleInPlace(e),this.yy.scaleInPlace(e),this.zz.scaleInPlace(e),this.yz.scaleInPlace(e),this.zx.scaleInPlace(e),this.xy.scaleInPlace(e)}updateFromHarmonics(e){return this._harmonics=e,this.x.copyFrom(e.l11),this.x.scaleInPlace(1.02333).scaleInPlace(-1),this.y.copyFrom(e.l1_1),this.y.scaleInPlace(1.02333).scaleInPlace(-1),this.z.copyFrom(e.l10),this.z.scaleInPlace(1.02333),this.xx.copyFrom(e.l00),t.TmpVectors.Vector3[0].copyFrom(e.l20).scaleInPlace(.247708),t.TmpVectors.Vector3[1].copyFrom(e.l22).scaleInPlace(.429043),this.xx.scaleInPlace(.886277).subtractInPlace(t.TmpVectors.Vector3[0]).addInPlace(t.TmpVectors.Vector3[1]),this.yy.copyFrom(e.l00),this.yy.scaleInPlace(.886277).subtractInPlace(t.TmpVectors.Vector3[0]).subtractInPlace(t.TmpVectors.Vector3[1]),this.zz.copyFrom(e.l00),t.TmpVectors.Vector3[0].copyFrom(e.l20).scaleInPlace(.495417),this.zz.scaleInPlace(.886277).addInPlace(t.TmpVectors.Vector3[0]),this.yz.copyFrom(e.l2_1),this.yz.scaleInPlace(.858086).scaleInPlace(-1),this.zx.copyFrom(e.l21),this.zx.scaleInPlace(.858086).scaleInPlace(-1),this.xy.copyFrom(e.l2_2),this.xy.scaleInPlace(.858086),this.scaleInPlace(1/Math.PI),this}static FromHarmonics(t){return new e().updateFromHarmonics(t)}static FromArray(s){let a=new e;return t.Vector3.FromArrayToRef(s[0],0,a.x),t.Vector3.FromArrayToRef(s[1],0,a.y),t.Vector3.FromArrayToRef(s[2],0,a.z),t.Vector3.FromArrayToRef(s[3],0,a.xx),t.Vector3.FromArrayToRef(s[4],0,a.yy),t.Vector3.FromArrayToRef(s[5],0,a.zz),t.Vector3.FromArrayToRef(s[6],0,a.yz),t.Vector3.FromArrayToRef(s[7],0,a.zx),t.Vector3.FromArrayToRef(s[8],0,a.xy),a}}])},72061,e=>{e.v(t=>Promise.all(["static/chunks/0mp0jh1gj7290.js"].map(t=>e.l(t))).then(()=>t(6668)))}]);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36437,(e,t,r)=>{"use strict";r._=function(e){return e&&e.__esModule?e:{default:e}}},28166,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={WarningIcon:function(){return a},errorStyles:function(){return u},errorThemeCss:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});e.r(36437);let i=e.r(61284);e.r(60951);let u={container:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},card:{marginTop:"-32px",maxWidth:"325px",padding:"32px 28px",textAlign:"left"},icon:{marginBottom:"24px"},title:{fontSize:"24px",fontWeight:500,letterSpacing:"-0.02em",lineHeight:"32px",margin:"0 0 12px 0",color:"var(--next-error-title)"},message:{fontSize:"14px",fontWeight:400,lineHeight:"21px",margin:"0 0 20px 0",color:"var(--next-error-message)"},form:{margin:0},buttonGroup:{display:"flex",gap:"8px",alignItems:"center"},button:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-text)",background:"var(--next-error-btn-bg)",border:"var(--next-error-btn-border)"},buttonSecondary:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-secondary-text)",background:"var(--next-error-btn-secondary-bg)",border:"var(--next-error-btn-secondary-border)"},digestFooter:{position:"fixed",bottom:"32px",left:"0",right:"0",textAlign:"center",fontFamily:'ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace',fontSize:"12px",lineHeight:"18px",fontWeight:400,margin:"0",color:"var(--next-error-digest)"}},s=`
|
|
2
|
-
:root {
|
|
3
|
-
--next-error-bg: #fff;
|
|
4
|
-
--next-error-text: #171717;
|
|
5
|
-
--next-error-title: #171717;
|
|
6
|
-
--next-error-message: #171717;
|
|
7
|
-
--next-error-digest: #666666;
|
|
8
|
-
--next-error-btn-text: #fff;
|
|
9
|
-
--next-error-btn-bg: #171717;
|
|
10
|
-
--next-error-btn-border: none;
|
|
11
|
-
--next-error-btn-secondary-text: #171717;
|
|
12
|
-
--next-error-btn-secondary-bg: transparent;
|
|
13
|
-
--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
|
|
14
|
-
}
|
|
15
|
-
@media (prefers-color-scheme: dark) {
|
|
16
|
-
:root {
|
|
17
|
-
--next-error-bg: #0a0a0a;
|
|
18
|
-
--next-error-text: #ededed;
|
|
19
|
-
--next-error-title: #ededed;
|
|
20
|
-
--next-error-message: #ededed;
|
|
21
|
-
--next-error-digest: #a0a0a0;
|
|
22
|
-
--next-error-btn-text: #0a0a0a;
|
|
23
|
-
--next-error-btn-bg: #ededed;
|
|
24
|
-
--next-error-btn-border: none;
|
|
25
|
-
--next-error-btn-secondary-text: #ededed;
|
|
26
|
-
--next-error-btn-secondary-bg: transparent;
|
|
27
|
-
--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
|
|
31
|
-
`.replace(/\n\s*/g,"");function a(){return(0,i.jsx)("svg",{width:"32",height:"32",viewBox:"-0.2 -1.5 32 32",fill:"none",style:u.icon,children:(0,i.jsx)("path",{d:"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",fill:"var(--next-error-title)"})})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},12623,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}}),e.r(36437);let n=e.r(61284);e.r(60951);let o=e.r(9330),i=e.r(28166),u=function({error:e}){let t=e?.digest,r=!!t;return(0,o.handleISRError)({error:e}),(0,n.jsxs)("html",{id:"__next_error__",children:[(0,n.jsx)("head",{children:(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:i.errorThemeCss}})}),(0,n.jsxs)("body",{children:[(0,n.jsx)("div",{style:i.errorStyles.container,children:(0,n.jsxs)("div",{style:i.errorStyles.card,children:[(0,n.jsx)(i.WarningIcon,{}),(0,n.jsx)("h1",{style:i.errorStyles.title,children:"This page couldn’t load"}),(0,n.jsx)("p",{style:i.errorStyles.message,children:r?"A server error occurred. Reload to try again.":"Reload to try again, or go back."}),(0,n.jsxs)("div",{style:i.errorStyles.buttonGroup,children:[(0,n.jsx)("form",{style:i.errorStyles.form,children:(0,n.jsx)("button",{type:"submit",style:i.errorStyles.button,children:"Reload"})}),!r&&(0,n.jsx)("button",{type:"button",style:i.errorStyles.buttonSecondary,onClick:()=>{window.history.length>1?window.history.back():window.location.href="/"},children:"Back"})]})]})}),t&&(0,n.jsxs)("p",{style:i.errorStyles.digestFooter,children:["ERROR ",t]})]})]})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},9330,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"handleISRError",{enumerable:!0,get:function(){return o}});let n=e.r(63297);function o({error:e}){if(n.workAsyncStorage){let t=n.workAsyncStorage.getStore();if(t?.isStaticGeneration)throw e&&console.error(e),e}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},63297,(e,t,r)=>{"use strict";let n,o,i;Object.defineProperty(r,"__esModule",{value:!0});var u={actionAsyncStorage:function(){return n},workAsyncStorage:function(){return o},workUnitAsyncStorage:function(){return i}};for(var s in u)Object.defineProperty(r,s,{enumerable:!0,get:u[s]});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},35980,(e,t,r)=>{var n={156:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var a=[],c=!1,l=-1;function f(){c&&n&&(c=!1,n.length?a=n.concat(a):l=-1,a.length&&d())}function d(){if(!c){var e=s(f);c=!0;for(var t=a.length;t;){for(n=a,a=[];++l<t;)n&&n[l].run();l=-1,t=a.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];a.push(new p(e,t)),1!==a.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}},u=!0;try{n[e](r,r.exports,i),u=!1}finally{u&&delete o[e]}return r.exports}i.ab="/ROOT/node_modules/.pnpm/next@16.3.1_@playwright+test@1.62.1_@types+node@26.2.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/compiled/process/",t.exports=i(156)},54353,(e,t,r)=>{"use strict";var n,o;t.exports=(null==(n=e.g.process)?void 0:n.env)&&"object"==typeof(null==(o=e.g.process)?void 0:o.env)?e.g.process:e.r(35980)},28097,(e,t,r)=>{"use strict";var n=e.r(60951);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={d:{f:i,r:function(){throw Error(o(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal"),a=Symbol.for("react.recoverable"),c=Symbol.for("react.optimistic_key"),l=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,r.browser=function(){var e=Error(o(603));return Object.defineProperty(e,"$$typeof",{value:a}),e},r.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:s,key:null==n?null:n===c?c:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},r.flushSync=function(e){var t=l.T,r=u.p;try{if(l.T=null,u.p=2,e)return e()}finally{l.T=t,u.p=r,u.d.f()}},r.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,u.d.C(e,t))},r.prefetchDNS=function(e){"string"==typeof e&&u.d.D(e)},r.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,n=f(r,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,i="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?u.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:n,integrity:o,fetchPriority:i}):"script"===r&&u.d.X(e,{crossOrigin:n,integrity:o,fetchPriority:i,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},r.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=f(t.as,t.crossOrigin);u.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0})}}else null==t&&u.d.M(e)},r.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,n=f(r,t.crossOrigin);u.d.L(e,r,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},r.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=f(t.as,t.crossOrigin);u.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0})}else u.d.m(e)},r.requestFormReset=function(e){u.d.r(e)},r.unstable_batchedUpdates=function(e,t){return e(t)},r.useFormState=function(e,t,r){return l.H.useFormState(e,t,r)},r.useFormStatus=function(){return l.H.useHostTransitionStatus()},r.version="19.3.0-canary-cbb046ab-20260731"},46663,(e,t,r)=>{"use strict";e.i(54353),!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t.exports=e.r(28097)},67735,(e,t,r)=>{"use strict";var n=Symbol.for("react.transitional.element");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return{$$typeof:n,type:e,key:o,ref:void 0!==(t=r.ref)?t:null,props:r}}r.Fragment=Symbol.for("react.fragment"),r.jsx=o,r.jsxs=o},61284,(e,t,r)=>{"use strict";e.i(54353),t.exports=e.r(67735)},66634,(e,t,r)=>{"use strict";var n=e.i(54353),o=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),h=Symbol.for("react.view_transition"),v=Symbol.iterator,b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,_={};function x(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||b}function S(){}function O(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||b}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=x.prototype;var j=O.prototype=new S;j.constructor=O,m(j,x.prototype),j.isPureReactComponent=!0;var E=Array.isArray;function T(){}var R={H:null,A:null,T:null,S:null},w=Object.prototype.hasOwnProperty;function C(e,t,r){var n=r.ref;return{$$typeof:o,type:e,key:t,ref:void 0!==n?n:null,props:r}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var k=/\/+/g;function H(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function A(e,t,r){if(null==e)return e;var n=[],u=0;return!function e(t,r,n,u,s){var a,c,l,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case o:case i:d=!0;break;case y:return e((d=t._init)(t._payload),r,n,u,s)}}if(d)return s=s(t),d=""===u?"."+H(t,0):u,E(s)?(n="",null!=d&&(n=d.replace(k,"$&/")+"/"),e(s,r,n,"",function(e){return e})):null!=s&&(P(s)&&(a=s,c=n+(null==s.key||t&&t.key===s.key?"":(""+s.key).replace(k,"$&/")+"/")+d,s=C(a.type,c,a.props)),r.push(s)),1;d=0;var p=""===u?".":u+":";if(E(t))for(var g=0;g<t.length;g++)f=p+H(u=t[g],g),d+=e(u,r,n,f,s);else if("function"==typeof(g=null===(l=t)||"object"!=typeof l?null:"function"==typeof(l=v&&l[v]||l["@@iterator"])?l:null))for(t=g.call(t),g=0;!(u=t.next()).done;)f=p+H(u=u.value,g++),d+=e(u,r,n,f,s);else if("object"===f){if("function"==typeof t.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(T,T):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),r,n,u,s);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(r=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return d}(e,n,"","",function(e){return t.call(r,e,u++)}),n}function M(e){if(-1===e._status){var t=(0,e._result)();t.then(function(r){(0===e._status||-1===e._status)&&(e._status=1,e._result=r,void 0===t.status&&(t.status="fulfilled",t.value=r))},function(r){(0===e._status||-1===e._status)&&(e._status=2,e._result=r,void 0===t.status&&(t.status="rejected",t.reason=r))}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof n.default&&"function"==typeof n.default.emit)return void n.default.emit("uncaughtException",e);console.error(e)};function L(e){var t=R.T,r={};r.types=null!==t?t.types:null,R.T=r;try{var n=e(),o=R.S;null!==o&&o(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then(T,I)}catch(e){I(e)}finally{null!==t&&null!==r.types&&(t.types=r.types),R.T=t}}function $(e){var t=R.T;if(null!==t){var r=t.types;null===r?t.types=[e]:-1===r.indexOf(e)&&r.push(e)}else L($.bind(null,e))}r.Activity=g,r.Children={map:A,forEach:function(e,t,r){A(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=x,r.Fragment=u,r.Profiler=a,r.PureComponent=O,r.StrictMode=s,r.Suspense=d,r.ViewTransition=h,r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,r.__COMPILER_RUNTIME={__proto__:null,c:function(e){return R.H.useMemoCache(e)}},r.addTransitionType=$,r.cache=function(e){return function(){return e.apply(null,arguments)}},r.cacheSignal=function(){return null},r.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=m({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)w.call(t,i)&&"key"!==i&&"__self"!==i&&"__source"!==i&&("ref"!==i||void 0!==t.ref)&&(n[i]=t[i]);var i=arguments.length-2;if(1===i)n.children=r;else if(1<i){for(var u=Array(i),s=0;s<i;s++)u[s]=arguments[s+2];n.children=u}return C(e.type,o,n)},r.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:c,_context:e},e},r.createElement=function(e,t,r){var n,o={},i=null;if(null!=t)for(n in void 0!==t.key&&(i=""+t.key),t)w.call(t,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&(o[n]=t[n]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var s=Array(u),a=0;a<u;a++)s[a]=arguments[a+2];o.children=s}if(e&&e.defaultProps)for(n in u=e.defaultProps)void 0===o[n]&&(o[n]=u[n]);return C(e,i,o)},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:f,render:e}},r.isValidElement=P,r.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:M}},r.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},r.startTransition=L,r.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},r.use=function(e){return R.H.use(e)},r.useActionState=function(e,t,r){return R.H.useActionState(e,t,r)},r.useCallback=function(e,t){return R.H.useCallback(e,t)},r.useContext=function(e){return R.H.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e,t){return R.H.useDeferredValue(e,t)},r.useEffect=function(e,t){return R.H.useEffect(e,t)},r.useEffectEvent=function(e){return R.H.useEffectEvent(e)},r.useId=function(){return R.H.useId()},r.useImperativeHandle=function(e,t,r){return R.H.useImperativeHandle(e,t,r)},r.useInsertionEffect=function(e,t){return R.H.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return R.H.useLayoutEffect(e,t)},r.useMemo=function(e,t){return R.H.useMemo(e,t)},r.useOptimistic=function(e,t){return R.H.useOptimistic(e,t)},r.useReducer=function(e,t,r){return R.H.useReducer(e,t,r)},r.useRef=function(e){return R.H.useRef(e)},r.useState=function(e){return R.H.useState(e)},r.useSyncExternalStore=function(e,t,r){return R.H.useSyncExternalStore(e,t,r)},r.useTransition=function(){return R.H.useTransition()},r.version="19.3.0-canary-cbb046ab-20260731"},60951,(e,t,r)=>{"use strict";e.i(54353),t.exports=e.r(66634)},3121,(e,t,r)=>{"use strict";let n;e.i(54353),Object.defineProperty(r,"__esModule",{value:!0});var o={getAssetToken:function(){return a},getAssetTokenQuery:function(){return c},getDeploymentId:function(){return u},getDeploymentIdQuery:function(){return s}};for(var i in o)Object.defineProperty(r,i,{enumerable:!0,get:o[i]});function u(){return n}function s(e=!1){let t=n;return t?`${e?"&":"?"}dpl=${t}`:""}function a(){return!1}function c(e=!1){return""}"u">typeof window?(n=document.documentElement.dataset.dplId,delete document.documentElement.dataset.dplId):n=void 0},22613,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={BailoutToCSRError:function(){return u},isBailoutToCSRError:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i="BAILOUT_TO_CLIENT_SIDE_RENDERING";class u extends Error{constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e,this.digest=i}}function s(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===i}}]);
|