@uptimizr/dashboard 0.4.6 → 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 +19 -5
- package/out/__next._full.txt +10 -10
- package/out/__next._tree.txt +1 -1
- package/out/_next/static/chunks/{3cp5nmtwxq4gr.js → 0-6mdj5wxsfid.js} +1 -1
- package/out/_next/static/chunks/{2clevl_9ayd0x.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/{1fervgvgv10r-.js → 02ic9b5ejugow.js} +1 -1
- package/out/_next/static/chunks/03p70i4c7qt0v.js +1 -0
- package/out/_next/static/chunks/{3zv5kyos9vtmm.js → 03pjr-ivdicng.js} +1 -1
- package/out/_next/static/chunks/041a06-lxipy5.js +1 -0
- package/out/_next/static/chunks/{3-yhe6rcsjh88.js → 06dzkwetqis-5.js} +1 -1
- package/out/_next/static/chunks/{2mjjo0yj-4ro4.js → 06kvanz5-fo52.js} +1 -1
- package/out/_next/static/chunks/{28i3wgvgn_at1.js → 07y8ke_iy59dn.js} +1 -1
- package/out/_next/static/chunks/09jukc-4jl735.js +1 -0
- package/out/_next/static/chunks/{0cmyc-uvk93kl.js → 09khmdgez3t0a.js} +74 -74
- package/out/_next/static/chunks/{2x-7kbwq8tl-o.js → 0_dca4876jshu.js} +196 -196
- 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/{2-_a-v1xeo5hb.js → 0ctain5xq2wsd.js} +116 -115
- package/out/_next/static/chunks/{3yk0hzfq5rcs6.js → 0df-dr3otg_4w.js} +1 -1
- package/out/_next/static/chunks/{0i9wa8hjd-5tc.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/{287hakn2ijupp.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/{3ioxfi3bvznhh.js → 0ip6v64di_l6x.js} +1 -1
- package/out/_next/static/chunks/{184pz6z3dflfm.js → 0ixymgjgz3grn.js} +20 -20
- 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/{3p03l0z65c8vc.js → 0oyf2xzv8ofkk.js} +253 -253
- package/out/_next/static/chunks/0qvsy3gcqjm12.js +1 -0
- package/out/_next/static/chunks/{0yd4_xh476fjn.js → 0rl4ddh2vgxyl.js} +97 -97
- package/out/_next/static/chunks/0rwpttmsmqvn_.js +1 -0
- package/out/_next/static/chunks/0so3wjp9ch93y.js +1 -0
- package/out/_next/static/chunks/{36pz_ews7u0xb.js → 0te4g160_rb5d.js} +1 -1
- package/out/_next/static/chunks/0uby-zvu799ef.js +1 -0
- package/out/_next/static/chunks/{2kk_vvmr2xm3d.js → 0uvn0op2mlr2u.js} +12 -12
- package/out/_next/static/chunks/0vwj4hxjm0igv.js +1 -0
- package/out/_next/static/chunks/{0r-x702_jvhud.js → 0w7c30w07uct2.js} +12 -12
- 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/{3twr9ds68-9us.js → 0zo8xa0nej3ex.js} +1 -1
- package/out/_next/static/chunks/{1lu7rjfvxj8yj.js → 0zsir95gpf3xw.js} +1 -1
- package/out/_next/static/chunks/{1j4c0nvdo5q68.js → 0zu6ryyj0ig-j.js} +1 -1
- package/out/_next/static/chunks/{1bv-jzy_2jiqs.js → 1-jv8k10q_1uw.js} +1 -1
- package/out/_next/static/chunks/{0xx7_7y5jdlh4.js → 1-s5ioie9a94e.js} +1 -1
- package/out/_next/static/chunks/{27z7j17kcrty_.js → 1-yos1h0qws5e.js} +11 -11
- package/out/_next/static/chunks/10o7brc3x027r.js +1 -0
- package/out/_next/static/chunks/{2xe4bgir5l-9b.js → 10pae4gb9i929.js} +504 -504
- package/out/_next/static/chunks/13p93itm8a3ym.js +1 -0
- package/out/_next/static/chunks/{2mrkv0z2i74pv.js → 147s8i_lktp4_.js} +2 -2
- package/out/_next/static/chunks/{3nwaovnpiyrt8.js → 14tgo5xt_3j4w.js} +3 -3
- package/out/_next/static/chunks/1699hx-vlak0n.js +22 -0
- package/out/_next/static/chunks/{2b5nt7yn-pq3a.js → 16d6n9e77rqti.js} +1 -1
- package/out/_next/static/chunks/{3nr48h9zwum-3.js → 16f3d5dv83rsr.js} +1 -1
- package/out/_next/static/chunks/16i_tpwn_cmr-.js +1 -0
- package/out/_next/static/chunks/{2117sv2qzo6yq.js → 16rfr165nbha0.js} +1 -1
- package/out/_next/static/chunks/16sl51pvzo4tf.js +1 -0
- package/out/_next/static/chunks/1760s-32qpwgg.js +1 -0
- package/out/_next/static/chunks/{3rj-5v0j_2-_2.js → 18kq07c5xy_4g.js} +4 -4
- package/out/_next/static/chunks/{2wgh5i70bzelt.js → 190tbzt861ao3.js} +392 -392
- package/out/_next/static/chunks/19bhv6cupnnyj.js +1 -0
- package/out/_next/static/chunks/1_14pn2wwebxy.js +1 -0
- package/out/_next/static/chunks/{2_lw4d7t-xcqi.js → 1_kikmeubh0wq.js} +523 -522
- 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/{2s4fzgzkwjluu.js → 1bf421g4peccx.js} +2 -2
- package/out/_next/static/chunks/1bfony5qsc5tp.js +1 -0
- package/out/_next/static/chunks/{3vtmucpx25o7q.js → 1ddt0ot7kl8vq.js} +584 -584
- package/out/_next/static/chunks/1emz2vjkgck4z.js +1 -0
- package/out/_next/static/chunks/1eogzzw8i1wsg.js +1 -0
- package/out/_next/static/chunks/1g9p2h1-31q8o.js +1 -0
- package/out/_next/static/chunks/1gcz1k1v1woca.js +1 -0
- package/out/_next/static/chunks/1h8lyicgqhpxa.js +1 -0
- package/out/_next/static/chunks/{0e5dcxmkprebg.js → 1hot663akaepl.js} +1 -1
- package/out/_next/static/chunks/1i7pgl3ks5ye0.js +1 -0
- package/out/_next/static/chunks/{0xzamrecplwzw.js → 1i8sk_qgpdjhs.js} +1 -1
- package/out/_next/static/chunks/1kk3ct7pkpf3b.js +1 -0
- package/out/_next/static/chunks/1kq9o8del67le.js +1 -0
- package/out/_next/static/chunks/1l7tzyx2mumlq.js +1 -0
- 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/{1f07l3q77zat1.js → 1ogs4_aj84bfn.js} +1 -1
- package/out/_next/static/chunks/{3_dm45k0vk1aa.js → 1p206txlluipi.js} +565 -565
- package/out/_next/static/chunks/1p2bt1w845v6c.js +1 -0
- package/out/_next/static/chunks/1p3rgz4aef1gk.js +1 -0
- package/out/_next/static/chunks/{0ypejzd74ixbw.js → 1qcgdx9yl0gfx.js} +15 -15
- 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/{374lzksboll-t.js → 1sa6qiidtcyk2.js} +1 -1
- package/out/_next/static/chunks/1t-9vrdrsi8le.js +1 -0
- package/out/_next/static/chunks/1t97zo0tlpbnz.js +1 -0
- package/out/_next/static/chunks/1te2tinzqnwck.js +1 -0
- package/out/_next/static/chunks/{3j3ol_d1vsdhx.js → 1trt-m2nrck0v.js} +1 -1
- package/out/_next/static/chunks/{3vu5y270muh-7.js → 1ty9jpwr3o_st.js} +1 -1
- package/out/_next/static/chunks/{415g3asdds1ac.js → 1u6w6veke8rze.js} +1 -1
- package/out/_next/static/chunks/{0-laj-bivzp4x.js → 1u900urmrbv73.js} +1 -1
- package/out/_next/static/chunks/{0o73w0cn5n_vl.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/{1my968s78he8g.js → 1xf1wfow43ekc.js} +15 -15
- package/out/_next/static/chunks/1y10o40v9odam.js +1 -0
- package/out/_next/static/chunks/{3_gfl66zf638s.js → 1y_zykt3fpen4.js} +901 -906
- package/out/_next/static/chunks/1ye6xtbm16pg4.js +1 -0
- package/out/_next/static/chunks/1z6_57k5h31u7.js +1 -0
- package/out/_next/static/chunks/1zboqft0h6mop.js +1 -0
- package/out/_next/static/chunks/1zr3c351x0ri5.js +1 -0
- package/out/_next/static/chunks/2-5p2lcedvrli.js +1 -0
- package/out/_next/static/chunks/{1_4hh3dfop93j.js → 206hxrq60f1_e.js} +1 -1
- 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/{3qo7e6b73mfxq.js → 22z-2t_yp1jzs.js} +1 -1
- package/out/_next/static/chunks/{3d43gd91r06y6.js → 23hmfdw6z5zfy.js} +507 -505
- package/out/_next/static/chunks/23y1krqnc-8sm.js +1 -0
- package/out/_next/static/chunks/{0gk5rnci1hznh.js → 24tbkj1qkux88.js} +2 -2
- package/out/_next/static/chunks/{2-i29-jdbwww6.js → 26cmri51v7497.js} +111 -111
- 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/{2oacwtbslo90t.js → 2a31-txop1jzg.js} +360 -360
- package/out/_next/static/chunks/2bse5vll1o-x0.js +1 -0
- package/out/_next/static/chunks/2ct40spu9wfj7.js +1 -0
- package/out/_next/static/chunks/{2epukrz6paj9n.js → 2ept01b7t-e03.js} +1 -1
- package/out/_next/static/chunks/{22yht3s7c-xih.js → 2ey5dqelco_g5.js} +1 -1
- package/out/_next/static/chunks/2fd_009hw7y0m.js +1 -0
- package/out/_next/static/chunks/{2fspbfbxbswzd.js → 2ftz9kaxrsgxh.js} +1 -1
- package/out/_next/static/chunks/2gefdnozflr7p.js +1 -0
- package/out/_next/static/chunks/{2as_br1awqk6k.js → 2gs-u1n5uv7iz.js} +496 -496
- package/out/_next/static/chunks/{1a94whad0y57f.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/{2laz1v9fg2a2z.js → 2lh_w9rzy3vek.js} +1 -1
- package/out/_next/static/chunks/{3mmy9zsb7zo-m.js → 2ln1na26qwp-3.js} +23 -23
- 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/{25brs445bjbik.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/2qe46redkqhfg.js +1 -0
- package/out/_next/static/chunks/2qmfe0mqw150h.js +1 -0
- package/out/_next/static/chunks/2qtc0nbl_521e.js +1 -0
- package/out/_next/static/chunks/2rofu6gu1xzuq.js +1 -0
- 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/{3my05px5mv_s5.js → 2urh9qafp3fiw.js} +235 -235
- package/out/_next/static/chunks/{23-y1f_zw56vo.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/2wwra56rehfcj.js +1 -0
- 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/{0q0i4pdyq66gb.js → 30t3203d7p2da.js} +1 -1
- package/out/_next/static/chunks/{3t4ys6th6gf2w.js → 31kto7-dxkt3z.js} +1 -1
- package/out/_next/static/chunks/{0j0a0wvmmghxj.js → 32oflcl79d8mu.js} +1 -1
- package/out/_next/static/chunks/32ovg81ae0l03.js +1 -0
- package/out/_next/static/chunks/{2c8rmxz151fxa.js → 331kthnvoma7n.js} +224 -224
- package/out/_next/static/chunks/337kn1mn34rc6.js +1 -0
- package/out/_next/static/chunks/{336ckqpboqmbn.js → 33xug8kf0-a1o.js} +1 -1
- package/out/_next/static/chunks/34dcb7_flbrvo.js +1 -0
- package/out/_next/static/chunks/34zotyeqrz_nq.js +1 -0
- package/out/_next/static/chunks/351wsmi75l8db.js +1 -0
- package/out/_next/static/chunks/36yv-ialtpx98.js +1 -0
- package/out/_next/static/chunks/37hwasxtee5e0.js +1 -0
- package/out/_next/static/chunks/37t0iclgxes05.js +1 -0
- package/out/_next/static/chunks/{1x0j78ohufpul.js → 37xnvnx1jxfaf.js} +1 -1
- package/out/_next/static/chunks/{29hkkj9raxte9.js → 38w74ixqt-9co.js} +77 -77
- package/out/_next/static/chunks/{0jap7l5-bskj4.js → 39t2x_9zd2rst.js} +12 -12
- package/out/_next/static/chunks/{38q0enmlg5q9o.js → 39v73timmzwny.js} +2 -2
- package/out/_next/static/chunks/{3puu2_-t0lln9.js → 3_xqc3658d8sw.js} +12 -12
- package/out/_next/static/chunks/3ba8eudvlczwe.js +1 -0
- package/out/_next/static/chunks/3buezhxqc8n6n.js +1 -0
- package/out/_next/static/chunks/3c5iwwj-fhbue.js +1 -0
- package/out/_next/static/chunks/{2kmmk9coo9_b0.js → 3d8ot2tw6yqfq.js} +143 -143
- package/out/_next/static/chunks/3dc057ffe7ij-.js +1 -0
- package/out/_next/static/chunks/3djnlzwj9869o.js +1 -0
- package/out/_next/static/chunks/{2_6b9lraq-exh.js → 3fuqxjjf8o1v9.js} +5 -5
- package/out/_next/static/chunks/{0j2ygtc_-bo3m.js → 3gt6rzg9qw-an.js} +1 -1
- package/out/_next/static/chunks/{0rykrf_vofbad.js → 3h_05w5j8x538.js} +1 -1
- package/out/_next/static/chunks/{3txu-i5qn183a.js → 3hkhd1_k8xohv.js} +321 -321
- package/out/_next/static/chunks/{2h07np207nlx7.js → 3ijcc5tfisfnj.js} +1 -1
- package/out/_next/static/chunks/3j0dbpd9zop3p.js +1 -0
- package/out/_next/static/chunks/{14e4k-718qadd.js → 3ju83xk-ca7ma.js} +163 -168
- package/out/_next/static/chunks/3jxhl4apmhbm1.js +13 -0
- package/out/_next/static/chunks/{1h1gixjbjkbsl.js → 3la99oz_0p0r6.js} +5 -5
- package/out/_next/static/chunks/{1mt4cnd_d6jvf.js → 3n1b34fd5fdrh.js} +1 -1
- package/out/_next/static/chunks/3nq_hq4x3rn3r.js +1 -0
- 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/{1zmx71cvc6ksk.js → 3q38kdbzd2nbd.js} +1 -1
- package/out/_next/static/chunks/3q5zl4ks17au2.js +1 -0
- package/out/_next/static/chunks/{1t2g1v0ubcsam.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/3u7zj1-jdg781.js +1 -0
- package/out/_next/static/chunks/{0o0qtv35dqv3i.js → 3wj5dmf6cywz8.js} +239 -239
- package/out/_next/static/chunks/{2iu0_3cx-ny74.js → 3wr_oijfsq8lr.js} +11 -11
- package/out/_next/static/chunks/3xu0dh1ikzwj2.js +1 -0
- package/out/_next/static/chunks/{0vzo-8t8c26k9.js → 3y5tpixt23-fl.js} +1 -1
- 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/43usshq2nc125.js +1 -0
- package/out/_next/static/chunks/{161yjxmdz9obc.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 +11 -11
- package/out/_not-found/__next._not-found.__PAGE__.txt +19 -2
- package/out/_not-found/__next._tree.txt +1 -1
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +11 -11
- package/out/index.html +1 -1
- package/out/index.txt +10 -10
- package/package.json +11 -11
- package/out/__next._head.txt +0 -6
- package/out/__next._index.txt +0 -5
- package/out/_next/static/chunks/0-k4hp87gwues.js +0 -1
- package/out/_next/static/chunks/04zj0yf1qhk1o.js +0 -1
- package/out/_next/static/chunks/06fbalmyyfpsy.js +0 -1
- package/out/_next/static/chunks/07hgbbqksqd1g.js +0 -1
- package/out/_next/static/chunks/08ou2nvy48e0u.js +0 -1
- package/out/_next/static/chunks/08y5-irjbsiy8.js +0 -1
- package/out/_next/static/chunks/0_jrfk2u1u3fi.js +0 -1
- package/out/_next/static/chunks/0a475u_q5i_dd.js +0 -62
- package/out/_next/static/chunks/0aad2r4s4wl1x.js +0 -5
- package/out/_next/static/chunks/0d9pxx1w_zqr9.js +0 -1
- package/out/_next/static/chunks/0gnjtwq-474uc.js +0 -1
- package/out/_next/static/chunks/0gsh_d0m5xss1.js +0 -1
- package/out/_next/static/chunks/0ibzpjo0h731v.js +0 -1
- package/out/_next/static/chunks/0j_3k5qhv_mdx.js +0 -1
- package/out/_next/static/chunks/0jis2w2mfx062.js +0 -1
- package/out/_next/static/chunks/0jjvp2slpf7d6.js +0 -1
- package/out/_next/static/chunks/0ko10wo4rc9-b.js +0 -1
- package/out/_next/static/chunks/0lqmvz6k2h_of.js +0 -1
- package/out/_next/static/chunks/0lwjmr8efrlbt.js +0 -17
- package/out/_next/static/chunks/0noxyupihh8dk.js +0 -1
- package/out/_next/static/chunks/0o1vph7x9shzu.js +0 -1
- package/out/_next/static/chunks/0p6phe9kjlxn8.js +0 -1
- package/out/_next/static/chunks/0ptxb9dcwsw3o.js +0 -1
- package/out/_next/static/chunks/0q8pt8fd0ma30.js +0 -1
- package/out/_next/static/chunks/0qqx9aoz8l5d2.js +0 -1
- package/out/_next/static/chunks/0tsk32q-88t_7.js +0 -1
- package/out/_next/static/chunks/0u7577db_ivyr.js +0 -1
- package/out/_next/static/chunks/0unnrt0un064x.js +0 -1
- package/out/_next/static/chunks/0uygtr4mo3h0v.js +0 -1
- package/out/_next/static/chunks/0vf3facit951s.js +0 -1
- package/out/_next/static/chunks/0xyija62b6txc.js +0 -1
- package/out/_next/static/chunks/0zeb37703zcz3.js +0 -1
- package/out/_next/static/chunks/0zu5ato7-1-q9.js +0 -1
- package/out/_next/static/chunks/0zydv7y47dxgh.js +0 -1
- package/out/_next/static/chunks/103x4jwovb6d-.js +0 -1
- package/out/_next/static/chunks/107wfq84g9-kn.js +0 -1
- package/out/_next/static/chunks/10afagk8yn__n.js +0 -1
- package/out/_next/static/chunks/12ory_c78yl31.js +0 -1
- package/out/_next/static/chunks/133dqp8_7_yo6.js +0 -1
- package/out/_next/static/chunks/1365lgwdd4vuo.js +0 -1
- package/out/_next/static/chunks/146ou-ohb_qhs.js +0 -1
- package/out/_next/static/chunks/14orr68xgdykd.js +0 -1
- package/out/_next/static/chunks/15qfoj-vl9thu.js +0 -1
- package/out/_next/static/chunks/166yqx3_qvbpy.js +0 -1
- package/out/_next/static/chunks/16gwjao676ieb.js +0 -1
- package/out/_next/static/chunks/16rmmzhy2p7bw.js +0 -1
- package/out/_next/static/chunks/17_jjyx4jz9dd.js +0 -1
- package/out/_next/static/chunks/18h9ugdz6igdb.js +0 -1
- package/out/_next/static/chunks/19d8n5t7ka2fb.js +0 -1
- package/out/_next/static/chunks/1_rbzw3n4fk0g.js +0 -1
- package/out/_next/static/chunks/1aa9g197l4twm.js +0 -1
- package/out/_next/static/chunks/1bq0fcnt1wy86.js +0 -1
- package/out/_next/static/chunks/1c6mho7e0enta.js +0 -1
- package/out/_next/static/chunks/1dfaheve77dhi.js +0 -1
- package/out/_next/static/chunks/1dgf112ehnhm1.js +0 -1
- package/out/_next/static/chunks/1eirucr9s6-h5.js +0 -1
- package/out/_next/static/chunks/1fsof7un7igrn.js +0 -1
- package/out/_next/static/chunks/1gvu5a6ffbs7l.js +0 -1
- package/out/_next/static/chunks/1iel4pzhhh-c3.js +0 -1
- package/out/_next/static/chunks/1iojfx3-g4_n9.js +0 -1
- package/out/_next/static/chunks/1j4jt5q7px8sy.js +0 -1
- package/out/_next/static/chunks/1jjw9hxgi2vzi.js +0 -1
- package/out/_next/static/chunks/1k_8olnprvi8r.js +0 -1
- package/out/_next/static/chunks/1l0rt7d4m-xdk.js +0 -5
- package/out/_next/static/chunks/1s0dpdqy480hg.js +0 -1
- package/out/_next/static/chunks/1t-yolk97lmot.js +0 -12
- package/out/_next/static/chunks/1tbes2sv-qzcx.js +0 -1
- package/out/_next/static/chunks/1upy8a5cb75kt.js +0 -1
- package/out/_next/static/chunks/1xed71f608m4b.js +0 -1
- package/out/_next/static/chunks/1z790xxb46gxy.js +0 -1
- package/out/_next/static/chunks/219n3q-_eengm.js +0 -1
- package/out/_next/static/chunks/21wo3vdr_uby8.js +0 -1
- package/out/_next/static/chunks/25gep78-izw79.js +0 -4
- package/out/_next/static/chunks/26i7dn31afdtm.js +0 -1
- package/out/_next/static/chunks/27hbplu797elx.js +0 -1
- package/out/_next/static/chunks/2992eiy52nazj.js +0 -1
- package/out/_next/static/chunks/29_n5j-hg_gsa.js +0 -1
- package/out/_next/static/chunks/29bxq-67oazfg.js +0 -1
- package/out/_next/static/chunks/29ings58w7kp1.js +0 -1
- package/out/_next/static/chunks/2_n0cpkdsjzli.js +0 -1
- package/out/_next/static/chunks/2a3iy701j4r_y.js +0 -1
- package/out/_next/static/chunks/2al9dh3_1ixhv.js +0 -1
- package/out/_next/static/chunks/2awr1c_vfsutb.js +0 -1
- package/out/_next/static/chunks/2bxe3kjr17tdp.js +0 -1
- package/out/_next/static/chunks/2dvbzar93ooc-.js +0 -1
- package/out/_next/static/chunks/2e-vp0e11g9ew.js +0 -1
- package/out/_next/static/chunks/2exj9-0p6n9x-.js +0 -1
- package/out/_next/static/chunks/2gf8l6hbmt7v3.js +0 -1
- package/out/_next/static/chunks/2h9i_adbqaxs4.js +0 -1
- package/out/_next/static/chunks/2jio3sio-_43z.js +0 -1
- package/out/_next/static/chunks/2neieeo9g2u56.js +0 -1
- package/out/_next/static/chunks/2pb_uosb-aa8x.js +0 -1
- package/out/_next/static/chunks/2qu-gpm3ux1l6.js +0 -1
- package/out/_next/static/chunks/2rsi6v7qmqx2b.js +0 -1
- package/out/_next/static/chunks/2tdvuc-27khif.js +0 -1
- package/out/_next/static/chunks/2trolrgd7neax.js +0 -1
- package/out/_next/static/chunks/2uyuafmoe5wi0.js +0 -3
- package/out/_next/static/chunks/2w2e0pxgs-n8f.js +0 -1
- package/out/_next/static/chunks/2xujlsx3stqig.js +0 -1
- package/out/_next/static/chunks/30y71dxdpv52d.js +0 -1
- package/out/_next/static/chunks/32c-e_v8_2xkf.js +0 -1
- package/out/_next/static/chunks/32oj0iudhp8bm.js +0 -1
- package/out/_next/static/chunks/33p9du6y9eegg.js +0 -1
- package/out/_next/static/chunks/38om-j0h0rryk.js +0 -1
- package/out/_next/static/chunks/39cou9lia_g7l.js +0 -1
- package/out/_next/static/chunks/39pkya0_bvcaj.js +0 -1
- package/out/_next/static/chunks/39rhmj_32ujyj.js +0 -1
- package/out/_next/static/chunks/3_1zzmx92j9c0.js +0 -1
- package/out/_next/static/chunks/3_earszshuz4n.js +0 -1
- package/out/_next/static/chunks/3ap_uxc8lx7ni.js +0 -1
- package/out/_next/static/chunks/3b6na8zrex8jo.js +0 -1
- package/out/_next/static/chunks/3c0cxt72vilyz.js +0 -1
- package/out/_next/static/chunks/3g78x0pdaoi_4.js +0 -1
- package/out/_next/static/chunks/3gjvl1p-tugfe.js +0 -4
- package/out/_next/static/chunks/3i8iro1gas1vx.js +0 -1
- package/out/_next/static/chunks/3kpqfqr99vo7z.js +0 -1
- package/out/_next/static/chunks/3lladf_wemm-2.js +0 -1
- package/out/_next/static/chunks/3n62hbywoknop.js +0 -1
- package/out/_next/static/chunks/3o_dmzpahx-5g.js +0 -1
- package/out/_next/static/chunks/3r7v7un976sn7.js +0 -1
- package/out/_next/static/chunks/3rl_nhqwew40w.js +0 -1
- package/out/_next/static/chunks/3s7hqij6xp_4e.js +0 -1
- package/out/_next/static/chunks/3si3migsmvz9o.js +0 -1
- package/out/_next/static/chunks/3uarw1i1ij1er.js +0 -1
- package/out/_next/static/chunks/3un-w6wutw1qn.js +0 -1
- package/out/_next/static/chunks/3v8kgnjk27wbe.js +0 -1
- package/out/_next/static/chunks/3we1khqfexh3x.js +0 -1
- package/out/_next/static/chunks/3z35loj4i-id4.js +0 -1
- package/out/_next/static/chunks/42lqt7ig40wk5.js +0 -1
- package/out/_next/static/chunks/42s6ghsurq5q7.js +0 -1
- package/out/_next/static/chunks/42yctcfi2rfwr.js +0 -1
- package/out/_next/static/chunks/43_fau1gg69eo.js +0 -1
- package/out/_next/static/chunks/43ywrdzg_7af8.js +0 -31
- package/out/_next/static/chunks/44m1ijc5cv80x.js +0 -1
- package/out/_next/static/chunks/453_bg0lgesmp.js +0 -1
- package/out/_next/static/chunks/turbopack-1s36ieuku1ds3.js +0 -1
- package/out/_not-found/__next._head.txt +0 -6
- package/out/_not-found/__next._index.txt +0 -5
- package/out/_not-found/__next._not-found.txt +0 -5
- /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → 4r0L0ZMJeBwOJCVDsvvZ4}/_buildManifest.js +0 -0
- /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → 4r0L0ZMJeBwOJCVDsvvZ4}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → 4r0L0ZMJeBwOJCVDsvvZ4}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,48747,62575,e=>{"use strict";let t,s,r,i,a,n,l,h,o,u,c,p,d,_,f,g,m,b,x,P,T,O,v,C,S,y,w,A,I,z,R,E,W,F,M,D,B,k,U,G,V,L,N,H,j,q,Y,X,Z,K;var $,J,Q=e.i(57575),ee=e.i(32451),et=e.i(3864),es=e.i(69400),er=e.i(59052),ei=e.i(9855),ea=e.i(2060),en=e.i(44520),el=e.i(51843),eh=e.i(44265),eo=e.i(11829);let eu=(m=[],b=[],x=[],P=[],T=[],O=[],v=[],C=[],S=[],y=[],w=[],A=[],I=[],z=[],R=[],E=[],W=[],F=[],M=[],D=[],B=[],k=[],U=[],G=[],V=[],L=[],N=[],H=[],j=[],$=class{static get ForceGLSL(){return eo.EffectWrapper.ForceGLSL}static set ForceGLSL(e){eo.EffectWrapper.ForceGLSL=e}static RegisterShaderCodeProcessing(e,t){eo.EffectWrapper.RegisterShaderCodeProcessing(e,t)}get name(){return this._effectWrapper.name}set name(e){this._effectWrapper.name=e}get alphaMode(){return this._effectWrapper.alphaMode}set alphaMode(e){this._effectWrapper.alphaMode=e}get samples(){return this._samples}set samples(e){this._samples=Math.min(e,this._engine.getCaps().maxMSAASamples),this._textures.forEach(e=>{e.setSamples(this._samples)})}get shaderLanguage(){return this._shaderLanguage}getEffectName(){return this._fragmentUrl}set onActivate(e){this._onActivateObserver&&this.onActivateObservable.remove(this._onActivateObserver),e&&(this._onActivateObserver=this.onActivateObservable.add(e))}set onSizeChanged(e){this._onSizeChangedObserver&&this.onSizeChangedObservable.remove(this._onSizeChangedObserver),this._onSizeChangedObserver=this.onSizeChangedObservable.add(e)}set onApply(e){this._onApplyObserver&&this.onApplyObservable.remove(this._onApplyObserver),this._onApplyObserver=this.onApplyObservable.add(e)}set onBeforeRender(e){this._onBeforeRenderObserver&&this.onBeforeRenderObservable.remove(this._onBeforeRenderObserver),this._onBeforeRenderObserver=this.onBeforeRenderObservable.add(e)}set onAfterRender(e){this._onAfterRenderObserver&&this.onAfterRenderObservable.remove(this._onAfterRenderObserver),this._onAfterRenderObserver=this.onAfterRenderObservable.add(e)}get inputTexture(){return this._textures.data[this._currentRenderTextureInd]}set inputTexture(e){this._forcedOutputTexture=e}restoreDefaultInputTexture(){this._forcedOutputTexture&&(this._forcedOutputTexture=null,this.markTextureDirty())}getCamera(){return this._camera}get texelSize(){return this._shareOutputWithPostProcess?this._shareOutputWithPostProcess.texelSize:(this._forcedOutputTexture&&this._texelSize.copyFromFloats(1/this._forcedOutputTexture.width,1/this._forcedOutputTexture.height),this._texelSize)}constructor(e,t,s,r,i,a,n=1,l,h,o=null,u=0,c="postprocess",p,d=!1,_=5,f,g){let q;this._parentContainer=((0,Q.__runInitializers)(this,m),null),this.uniqueId=(0,Q.__runInitializers)(this,b,void 0),this.width=((0,Q.__runInitializers)(this,x),(0,Q.__runInitializers)(this,P,-1)),this.height=((0,Q.__runInitializers)(this,T),(0,Q.__runInitializers)(this,O,-1)),this.nodeMaterialSource=((0,Q.__runInitializers)(this,v),null),this._outputTexture=null,this.renderTargetSamplingMode=(0,Q.__runInitializers)(this,C,void 0),this.clearColor=((0,Q.__runInitializers)(this,S),(0,Q.__runInitializers)(this,y,void 0)),this.autoClear=((0,Q.__runInitializers)(this,w),(0,Q.__runInitializers)(this,A,!0)),this.forceAutoClearInAlphaMode=((0,Q.__runInitializers)(this,I),(0,Q.__runInitializers)(this,z,!1)),this.alphaConstants=((0,Q.__runInitializers)(this,R),(0,Q.__runInitializers)(this,E,void 0)),this.animations=((0,Q.__runInitializers)(this,W),[]),this.enablePixelPerfectMode=(0,Q.__runInitializers)(this,F,!1),this.forceFullscreenViewport=((0,Q.__runInitializers)(this,M),(0,Q.__runInitializers)(this,D,!0)),this.inspectableCustomProperties=(0,Q.__runInitializers)(this,B),this.scaleMode=(0,Q.__runInitializers)(this,k,1),this.alwaysForcePOT=((0,Q.__runInitializers)(this,U),(0,Q.__runInitializers)(this,G,!1)),this._samples=((0,Q.__runInitializers)(this,V),(0,Q.__runInitializers)(this,L,1)),this.adaptScaleToCurrentViewport=((0,Q.__runInitializers)(this,N),(0,Q.__runInitializers)(this,H,!1)),this.doNotSerialize=((0,Q.__runInitializers)(this,j),!1),this._webGPUReady=!1,this._reusable=!1,this._renderId=0,this.externalTextureSamplerBinding=!1,this._textures=new ee.SmartArray(2),this._textureCache=[],this._currentRenderTextureInd=0,this._scaleRatio=new es.Vector2(1,1),this._texelSize=es.Vector2.Zero(),this.onActivateObservable=new et.Observable,this.onSizeChangedObservable=new et.Observable,this.onApplyObservable=new et.Observable,this.onBeforeRenderObservable=new et.Observable,this.onAfterRenderObservable=new et.Observable,this.onDisposeObservable=new et.Observable,ec||(ec=!0,el.AbstractEngine.prototype.setTextureFromPostProcess=function(e,t,s){let r=null;t&&(t._forcedOutputTexture?r=t._forcedOutputTexture:t._textures.data[t._currentRenderTextureInd]&&(r=t._textures.data[t._currentRenderTextureInd])),this._bindTexture(e,r?.texture??null,s)},el.AbstractEngine.prototype.setTextureFromPostProcessOutput=function(e,t,s){this._bindTexture(e,t?._outputTexture?.texture??null,s)},er.Effect.prototype.setTextureFromPostProcess=function(e,t){this._engine.setTextureFromPostProcess(this._samplers[e],t,e)},er.Effect.prototype.setTextureFromPostProcessOutput=function(e,t){this._engine.setTextureFromPostProcessOutput(this._samplers[e],t,e)},(0,en.RegisterClass)("BABYLON.PostProcess",eu));let Y=1,X=null;if(s&&!Array.isArray(s)){const e=s;s=e.uniforms??null,r=e.samplers??null,Y=e.size??1,a=e.camera??null,n=e.samplingMode??1,l=e.engine,h=e.reusable,o=Array.isArray(e.defines)?e.defines.join("\n"):e.defines??null,u=e.textureType??0,c=e.vertexUrl??"postprocess",p=e.indexParameters,d=e.blockCompilation??!1,_=e.textureFormat??5,f=e.shaderLanguage??0,X=e.uniformBuffers??null,g=e.extraInitializations,q=e.effectWrapper}else i&&(Y="number"==typeof i?i:{width:i.width,height:i.height});if(this._useExistingThinPostProcess=!!q,this._effectWrapper=q??new eo.EffectWrapper({name:e,useShaderStore:!0,useAsPostProcess:!0,fragmentShader:t,engine:l||a?.getScene().getEngine(),uniforms:s,samplers:r,uniformBuffers:X,defines:o,vertexUrl:c,indexParameters:p,blockCompilation:!0,shaderLanguage:f,extraInitializations:void 0}),this.name=e,this.onEffectCreatedObservable=this._effectWrapper.onEffectCreatedObservable,null!=a?(this._camera=a,this._scene=a.getScene(),a.attachPostProcess(this),this._engine=this._scene.getEngine(),this._scene.addPostProcess(this),this.uniqueId=this._scene.getUniqueId()):l&&(this._engine=l,this._engine.postProcesses.push(this)),this._options=Y,this.renderTargetSamplingMode=n||1,this._reusable=h||!1,this._textureType=u,this._textureFormat=_,this._shaderLanguage=f||0,this._samplers=r||[],-1===this._samplers.indexOf("textureSampler")&&this._samplers.push("textureSampler"),this._fragmentUrl=t,this._vertexUrl=c,this._parameters=s||[],-1===this._parameters.indexOf("scale")&&this._parameters.push("scale"),this._uniformBuffers=X||[],this._indexParameters=p,!this._useExistingThinPostProcess){this._webGPUReady=1===this._shaderLanguage;const e=[];this._gatherImports(this._engine.isWebGPU&&!$.ForceGLSL,e),this._effectWrapper._webGPUReady=this._webGPUReady,this._effectWrapper._postConstructor(d,o,g,e)}}_gatherImports(t=!1,s){t&&this._webGPUReady?s.push(Promise.all([e.A(99691)])):s.push(Promise.all([e.A(75856)]))}getClassName(){return"PostProcess"}getEngine(){return this._engine}getEffect(){return this._effectWrapper.drawWrapper.effect}shareOutputWith(e){return this._disposeTextures(),this._shareOutputWithPostProcess=e,this}useOwnOutput(){0==this._textures.length&&(this._textures=new ee.SmartArray(2)),this._shareOutputWithPostProcess=null}updateEffect(e=null,t=null,s=null,r,i,a,n,l){this._effectWrapper.updateEffect(e,t,s,r,i,a,n,l),this._postProcessDefines=Array.isArray(this._effectWrapper.options.defines)?this._effectWrapper.options.defines.join("\n"):this._effectWrapper.options.defines}isReusable(){return this._reusable}markTextureDirty(){this.width=-1}_createRenderTargetTexture(e,t,s=0){for(let r=0;r<this._textureCache.length;r++)if(this._textureCache[r].texture.width===e.width&&this._textureCache[r].texture.height===e.height&&this._textureCache[r].postProcessChannel===s&&this._textureCache[r].texture._generateDepthBuffer===t.generateDepthBuffer&&this._textureCache[r].texture.samples===t.samples)return this._textureCache[r].texture;let r=this._engine.createRenderTargetTexture(e,t);return this._textureCache.push({texture:r,postProcessChannel:s,lastUsedRenderId:-1}),r}_flushTextureCache(){let e=this._renderId;for(let t=this._textureCache.length-1;t>=0;t--)if(e-this._textureCache[t].lastUsedRenderId>100){let e=!1;for(let s=0;s<this._textures.length;s++)if(this._textures.data[s]===this._textureCache[t].texture){e=!0;break}e||(this._textureCache[t].texture.dispose(),this._textureCache.splice(t,1))}}resize(e,t,s=null,r=!1,i=!1){this._textures.length>0&&this._textures.reset(),this.width=e,this.height=t;let a=null;if(s){for(let e=0;e<s._postProcesses.length;e++)if(null!==s._postProcesses[e]){a=s._postProcesses[e];break}}let n={width:this.width,height:this.height},l={generateMipMaps:r,generateDepthBuffer:i||a===this,generateStencilBuffer:(i||a===this)&&this._engine.isStencilEnable,samplingMode:this.renderTargetSamplingMode,type:this._textureType,format:this._textureFormat,samples:this._samples,label:"PostProcessRTT-"+this.name};this._textures.push(this._createRenderTargetTexture(n,l,0)),this._reusable&&this._textures.push(this._createRenderTargetTexture(n,l,1)),this._texelSize.copyFromFloats(1/this.width,1/this.height),this.onSizeChangedObservable.notifyObservers(this)}_getTarget(){let e;if(this._shareOutputWithPostProcess)e=this._shareOutputWithPostProcess.inputTexture;else if(this._forcedOutputTexture)e=this._forcedOutputTexture,this.width=this._forcedOutputTexture.width,this.height=this._forcedOutputTexture.height;else{let t;e=this.inputTexture;for(let s=0;s<this._textureCache.length;s++)if(this._textureCache[s].texture===e){t=this._textureCache[s];break}t&&(t.lastUsedRenderId=this._renderId)}return e}activate(e,t=null,s){let r=null===e||void 0!==e.cameraRigMode?e||this._camera:null,i=r?.getScene()??e,a=i.getEngine(),n=a.getCaps().maxTextureSize,l=(t?t.width:this._engine.getRenderWidth(!0))*this._options|0,h=(t?t.height:this._engine.getRenderHeight(!0))*this._options|0,o=this._options.width||l,u=this._options.height||h,c=7!==this.renderTargetSamplingMode&&1!==this.renderTargetSamplingMode&&2!==this.renderTargetSamplingMode,p=null;if(!this._shareOutputWithPostProcess&&!this._forcedOutputTexture){if(this.adaptScaleToCurrentViewport){let e=a.currentViewport;e&&(o*=e.width,u*=e.height)}(c||this.alwaysForcePOT)&&(this._options.width||(o=a.needPOTTextures?(0,eh.GetExponentOfTwo)(o,n,this.scaleMode):o),this._options.height||(u=a.needPOTTextures?(0,eh.GetExponentOfTwo)(u,n,this.scaleMode):u)),this.width===o&&this.height===u&&(p=this._getTarget())||this.resize(o,u,r,c,s),this._textures.forEach(e=>{e.samples!==this.samples&&this._engine.updateRenderTargetTextureSampleCount(e,this.samples)}),this._flushTextureCache(),this._renderId++}return p||(p=this._getTarget()),this.enablePixelPerfectMode?(this._scaleRatio.copyFromFloats(l/o,h/u),this._engine.bindFramebuffer(p,0,l,h,this.forceFullscreenViewport)):(this._scaleRatio.copyFromFloats(1,1),this._engine.bindFramebuffer(p,0,void 0,void 0,this.forceFullscreenViewport)),this._engine._debugInsertMarker?.(`post process ${this.name} input`),this.onActivateObservable.notifyObservers(r),this.autoClear&&(0===this.alphaMode||this.forceAutoClearInAlphaMode)&&this._engine.clear(this.clearColor?this.clearColor:i.clearColor,i._allowPostProcessClearColor,!0,!0),this._reusable&&(this._currentRenderTextureInd=(this._currentRenderTextureInd+1)%2),p}get isSupported(){return this._effectWrapper.drawWrapper.effect.isSupported}get aspectRatio(){return this._shareOutputWithPostProcess?this._shareOutputWithPostProcess.aspectRatio:this._forcedOutputTexture?this._forcedOutputTexture.width/this._forcedOutputTexture.height:this.width/this.height}isReady(){return this._effectWrapper.isReady()}apply(){let e;return this._effectWrapper.isReady()?(this._engine.enableEffect(this._effectWrapper.drawWrapper),this._engine.setState(!1),this._engine.setDepthBuffer(!1),this._engine.setDepthWrite(!1),this.alphaConstants&&this.getEngine().setAlphaConstants(this.alphaConstants.r,this.alphaConstants.g,this.alphaConstants.b,this.alphaConstants.a),this._engine.setAlphaMode(this.alphaMode),e=this._shareOutputWithPostProcess?this._shareOutputWithPostProcess.inputTexture:this._forcedOutputTexture?this._forcedOutputTexture:this.inputTexture,this.externalTextureSamplerBinding||this._effectWrapper.drawWrapper.effect._bindTexture("textureSampler",e?.texture),this._effectWrapper.drawWrapper.effect.setVector2("scale",this._scaleRatio),this.onApplyObservable.notifyObservers(this._effectWrapper.drawWrapper.effect),this._effectWrapper.bind(!0),this._effectWrapper.drawWrapper.effect):null}_disposeTextures(){this._shareOutputWithPostProcess||this._forcedOutputTexture?this._disposeTextureCache():(this._disposeTextureCache(),this._textures.dispose())}_disposeTextureCache(){for(let e=this._textureCache.length-1;e>=0;e--)this._textureCache[e].texture.dispose();this._textureCache.length=0}setPrePassRenderer(e){return!!this._prePassEffectConfiguration&&(this._prePassEffectConfiguration=e.addEffectConfiguration(this._prePassEffectConfiguration),this._prePassEffectConfiguration.enabled=!0,!0)}dispose(e){let t;if(e=e||this._camera,this._useExistingThinPostProcess||this._effectWrapper.dispose(),this._disposeTextures(),this._scene&&this._scene.removePostProcess(this),this._parentContainer&&((t=this._parentContainer.postProcesses.indexOf(this))>-1&&this._parentContainer.postProcesses.splice(t,1),this._parentContainer=null),-1!==(t=this._engine.postProcesses.indexOf(this))&&this._engine.postProcesses.splice(t,1),this.onDisposeObservable.notifyObservers(),e){if(e.detachPostProcess(this),0===(t=e._postProcesses.indexOf(this))&&e._postProcesses.length>0){let e=this._camera._getFirstPostProcess();e&&e.markTextureDirty()}this.onActivateObservable.clear(),this.onAfterRenderObservable.clear(),this.onApplyObservable.clear(),this.onBeforeRenderObservable.clear(),this.onSizeChangedObservable.clear(),this.onEffectCreatedObservable.clear()}}serialize(){let e=ea.SerializationHelper.Serialize(this),t=this.getCamera()||this._scene&&this._scene.activeCamera;return e.customType="BABYLON."+this.getClassName(),e.cameraId=t?t.id:null,e.reusable=this._reusable,e.textureType=this._textureType,e.fragmentUrl=this._fragmentUrl,e.parameters=this._parameters,e.samplers=this._samplers,e.uniformBuffers=this._uniformBuffers,e.options=this._options,e.defines=this._postProcessDefines,e.textureFormat=this._textureFormat,e.vertexUrl=this._vertexUrl,e.indexParameters=this._indexParameters,e}clone(){let e=this.serialize();e._engine=this._engine,e.cameraId=null;let t=$.Parse(e,this._scene,"");return t?(t.onActivateObservable=this.onActivateObservable.clone(),t.onSizeChangedObservable=this.onSizeChangedObservable.clone(),t.onApplyObservable=this.onApplyObservable.clone(),t.onBeforeRenderObservable=this.onBeforeRenderObservable.clone(),t.onAfterRenderObservable=this.onAfterRenderObservable.clone(),t._prePassEffectConfiguration=this._prePassEffectConfiguration,t):null}static Parse(e,t,s){let r=(0,en.GetClass)(e.customType);if(!r||!r._Parse)return null;let i=t?t.getCameraById(e.cameraId):null;return r._Parse(e,i,t,s)}static _Parse(e,t,s,r){return ea.SerializationHelper.Parse(()=>new $(e.name,e.fragmentUrl,e.parameters,e.samplers,e.options,t,e.renderTargetSamplingMode,e._engine,e.reusable,e.defines,e.textureType,e.vertexUrl,e.indexParameters,!1,e.textureFormat),e,s,r)}},q="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,t=[(0,ei.serialize)()],s=[(0,ei.serialize)()],r=[(0,ei.serialize)()],i=[(0,ei.serialize)()],a=[(0,ei.serialize)()],n=[(0,ei.serializeAsColor4)()],l=[(0,ei.serialize)()],h=[(0,ei.serialize)()],o=[(0,ei.serialize)()],u=[(0,ei.serialize)()],c=[(0,ei.serialize)()],p=[(0,ei.serialize)()],d=[(0,ei.serialize)()],_=[(0,ei.serialize)()],f=[(0,ei.serialize)("samples")],g=[(0,ei.serialize)()],(0,Q.__esDecorate)($,null,s,{kind:"getter",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name},metadata:q},null,m),(0,Q.__esDecorate)($,null,o,{kind:"getter",name:"alphaMode",static:!1,private:!1,access:{has:e=>"alphaMode"in e,get:e=>e.alphaMode},metadata:q},null,m),(0,Q.__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:q},b,x),(0,Q.__esDecorate)(null,null,r,{kind:"field",name:"width",static:!1,private:!1,access:{has:e=>"width"in e,get:e=>e.width,set:(e,t)=>{e.width=t}},metadata:q},P,T),(0,Q.__esDecorate)(null,null,i,{kind:"field",name:"height",static:!1,private:!1,access:{has:e=>"height"in e,get:e=>e.height,set:(e,t)=>{e.height=t}},metadata:q},O,v),(0,Q.__esDecorate)(null,null,a,{kind:"field",name:"renderTargetSamplingMode",static:!1,private:!1,access:{has:e=>"renderTargetSamplingMode"in e,get:e=>e.renderTargetSamplingMode,set:(e,t)=>{e.renderTargetSamplingMode=t}},metadata:q},C,S),(0,Q.__esDecorate)(null,null,n,{kind:"field",name:"clearColor",static:!1,private:!1,access:{has:e=>"clearColor"in e,get:e=>e.clearColor,set:(e,t)=>{e.clearColor=t}},metadata:q},y,w),(0,Q.__esDecorate)(null,null,l,{kind:"field",name:"autoClear",static:!1,private:!1,access:{has:e=>"autoClear"in e,get:e=>e.autoClear,set:(e,t)=>{e.autoClear=t}},metadata:q},A,I),(0,Q.__esDecorate)(null,null,h,{kind:"field",name:"forceAutoClearInAlphaMode",static:!1,private:!1,access:{has:e=>"forceAutoClearInAlphaMode"in e,get:e=>e.forceAutoClearInAlphaMode,set:(e,t)=>{e.forceAutoClearInAlphaMode=t}},metadata:q},z,R),(0,Q.__esDecorate)(null,null,u,{kind:"field",name:"alphaConstants",static:!1,private:!1,access:{has:e=>"alphaConstants"in e,get:e=>e.alphaConstants,set:(e,t)=>{e.alphaConstants=t}},metadata:q},E,W),(0,Q.__esDecorate)(null,null,c,{kind:"field",name:"enablePixelPerfectMode",static:!1,private:!1,access:{has:e=>"enablePixelPerfectMode"in e,get:e=>e.enablePixelPerfectMode,set:(e,t)=>{e.enablePixelPerfectMode=t}},metadata:q},F,M),(0,Q.__esDecorate)(null,null,p,{kind:"field",name:"forceFullscreenViewport",static:!1,private:!1,access:{has:e=>"forceFullscreenViewport"in e,get:e=>e.forceFullscreenViewport,set:(e,t)=>{e.forceFullscreenViewport=t}},metadata:q},D,B),(0,Q.__esDecorate)(null,null,d,{kind:"field",name:"scaleMode",static:!1,private:!1,access:{has:e=>"scaleMode"in e,get:e=>e.scaleMode,set:(e,t)=>{e.scaleMode=t}},metadata:q},k,U),(0,Q.__esDecorate)(null,null,_,{kind:"field",name:"alwaysForcePOT",static:!1,private:!1,access:{has:e=>"alwaysForcePOT"in e,get:e=>e.alwaysForcePOT,set:(e,t)=>{e.alwaysForcePOT=t}},metadata:q},G,V),(0,Q.__esDecorate)(null,null,f,{kind:"field",name:"_samples",static:!1,private:!1,access:{has:e=>"_samples"in e,get:e=>e._samples,set:(e,t)=>{e._samples=t}},metadata:q},L,N),(0,Q.__esDecorate)(null,null,g,{kind:"field",name:"adaptScaleToCurrentViewport",static:!1,private:!1,access:{has:e=>"adaptScaleToCurrentViewport"in e,get:e=>e.adaptScaleToCurrentViewport,set:(e,t)=>{e.adaptScaleToCurrentViewport=t}},metadata:q},H,j),q&&Object.defineProperty($,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:q}),$),ec=!1;e.s(["PostProcess",0,eu],62575);var ep=e.i(20363),ed=e.i(69133),e_=eo,ef=e.i(23003);class eg extends e_.EffectWrapper{_gatherImports(t,s){t?(this._webGPUReady=!0,s.push(Promise.all([e.A(77151)]))):s.push(Promise.all([e.A(34796)])),super._gatherImports(t,s)}constructor(e,t=null,s){const r={name:e,engine:t||ef.EngineStore.LastCreatedEngine,useShaderStore:!0,useAsPostProcess:!0,fragmentShader:eg.FragmentUrl,...s};r.engine||(r.engine=ef.EngineStore.LastCreatedEngine),super(r)}}eg.FragmentUrl="pass";class em extends e_.EffectWrapper{_gatherImports(t,s){t?(this._webGPUReady=!0,s.push(Promise.all([e.A(58869)]))):s.push(Promise.all([e.A(62237)])),super._gatherImports(t,s)}constructor(e,t=null,s){super({...s,name:e,engine:t||ef.EngineStore.LastCreatedEngine,useShaderStore:!0,useAsPostProcess:!0,fragmentShader:em.FragmentUrl,defines:"#define POSITIVEX"}),this._face=0}get face(){return this._face}set face(e){if(!(e<0)&&!(e>5))switch(this._face=e,this._face){case 0:this.updateEffect("#define POSITIVEX");break;case 1:this.updateEffect("#define NEGATIVEX");break;case 2:this.updateEffect("#define POSITIVEY");break;case 3:this.updateEffect("#define NEGATIVEY");break;case 4:this.updateEffect("#define POSITIVEZ");break;case 5:this.updateEffect("#define NEGATIVEZ")}}}em.FragmentUrl="passCube";X=eu,Z=[],J=class extends X{get face(){return this._effectWrapper.face}set face(e){this._effectWrapper.face=e}getClassName(){return"PassCubePostProcess"}constructor(e,t,s=null,r,i,a,n=0,l=!1){const h={size:"number"==typeof t?t:void 0,camera:s,samplingMode:r,engine:i,reusable:a,textureType:n,blockCompilation:l,...t};super(e,eg.FragmentUrl,{effectWrapper:"number"!=typeof t&&t.effectWrapper?void 0:new em(e,i,h),...h}),(0,Q.__runInitializers)(this,Z)}static _Parse(e,t,s,r){return ea.SerializationHelper.Parse(()=>new J(e.name,e.options,t,e.renderTargetSamplingMode,e._engine,e.reusable),e,s,r)}},K="function"==typeof Symbol&&Symbol.metadata?Object.create(X[Symbol.metadata]??null):void 0,Y=[(0,ei.serialize)()],(0,Q.__esDecorate)(J,null,Y,{kind:"getter",name:"face",static:!1,private:!1,access:{has:e=>"face"in e,get:e=>e.face},metadata:K},null,Z),K&&Object.defineProperty(J,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:K}),e.i(63235);var eb=e.i(6563);eb.ToHalfFloat,eb.FromHalfFloat,e.s(["RGBDTextureTools",0,class{static ExpandRGBDTexture(t){let s=t._texture;if(!s||!t.isRGBD)return;let r=s.getEngine(),i=r.getCaps(),a=s.isReady,n=!1;i.textureHalfFloatRender&&i.textureHalfFloatLinearFiltering?(n=!0,s.type=2):i.textureFloatRender&&i.textureFloatLinearFiltering&&(n=!0,s.type=1),n&&(s.isReady=!1,s._isRGBD=!1,s.invertY=!1);let l=async()=>{let i=r.isWebGPU;s.isReady=!1,i?await e.A(18585):await e.A(94589);let a=new eu("rgbdDecode","rgbdDecode",null,null,1,null,3,r,!1,void 0,s.type,void 0,null,!1,void 0,+!!i);a.externalTextureSamplerBinding=!0;let n=r.createRenderTargetTexture(s.width,{generateDepthBuffer:!1,generateMipMaps:!1,generateStencilBuffer:!1,samplingMode:s.samplingMode,type:s.type,format:5});a.onEffectCreatedObservable.addOnce(e=>{e.executeWhenCompiled(()=>{a.onApply=e=>{e._bindTexture("textureSampler",s),e.setFloat2("scale",1,1)},t.getScene()?.postProcessManager.directRender([a],n,!0),r.restoreDefaultFramebuffer(),r._releaseTexture(s),a&&a.dispose(),n._swapAndDie(s),s.isReady=!0})})};n&&(a?l():t.onLoadObservable.addOnce(l))}static async EncodeTextureToRGBD(t,s,r=0){var i,a,n,l,h;let o;return s.getEngine().isWebGPU?await e.A(96401):await e.A(85357),await (i=r,a=1,n=5,o=t.getEngine(),t.isReady=!1,a=a??t.samplingMode,i=i??t.type,n=n??t.format,l=l??t.width,h=h??t.height,-1===i&&(i=0),new Promise(e=>{let r=new eu("postprocess","rgbdEncode",null,null,1,null,a,o,!1,void 0,i,void 0,null,!1,n);r.externalTextureSamplerBinding=!0;let u=o.createRenderTargetTexture({width:l,height:h},{generateDepthBuffer:!1,generateMipMaps:!1,generateStencilBuffer:!1,samplingMode:a,type:i,format:n});r.onEffectCreatedObservable.addOnce(a=>{a.executeWhenCompiled(()=>{r.onApply=e=>{e._bindTexture("textureSampler",t),e.setFloat2("scale",1,1)},s.postProcessManager.directRender([r],u,!0),o.restoreDefaultFramebuffer(),o._releaseTexture(t),r&&r.dispose(),u._swapAndDie(t),t.type=i,t.format=5,t.isReady=!0,e(t)})})}))}}],48747)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,16276,72238,e=>{"use strict";let t,s,r,i,a,n,l,h,o,u,c,p,d,_,f,g,m,b,x,P,T,O,v,C,S,y,w,A,I,z,R,E,W,F,M,D,B,k,U,G,V,L,N,H,j,q,Y,X,Z,K;var $,J,Q=e.i(73403),ee=e.i(6895),et=e.i(97991),es=e.i(56173),er=e.i(30820),ei=e.i(5207),ea=e.i(69552),en=e.i(68282),el=e.i(18405),eh=e.i(4696),eo=e.i(21401);let eu=(m=[],b=[],x=[],P=[],T=[],O=[],v=[],C=[],S=[],y=[],w=[],A=[],I=[],z=[],R=[],E=[],W=[],F=[],M=[],D=[],B=[],k=[],U=[],G=[],V=[],L=[],N=[],H=[],j=[],$=class{static get ForceGLSL(){return eo.EffectWrapper.ForceGLSL}static set ForceGLSL(e){eo.EffectWrapper.ForceGLSL=e}static RegisterShaderCodeProcessing(e,t){eo.EffectWrapper.RegisterShaderCodeProcessing(e,t)}get name(){return this._effectWrapper.name}set name(e){this._effectWrapper.name=e}get alphaMode(){return this._effectWrapper.alphaMode}set alphaMode(e){this._effectWrapper.alphaMode=e}get samples(){return this._samples}set samples(e){this._samples=Math.min(e,this._engine.getCaps().maxMSAASamples),this._textures.forEach(e=>{e.setSamples(this._samples)})}get shaderLanguage(){return this._shaderLanguage}getEffectName(){return this._fragmentUrl}set onActivate(e){this._onActivateObserver&&this.onActivateObservable.remove(this._onActivateObserver),e&&(this._onActivateObserver=this.onActivateObservable.add(e))}set onSizeChanged(e){this._onSizeChangedObserver&&this.onSizeChangedObservable.remove(this._onSizeChangedObserver),this._onSizeChangedObserver=this.onSizeChangedObservable.add(e)}set onApply(e){this._onApplyObserver&&this.onApplyObservable.remove(this._onApplyObserver),this._onApplyObserver=this.onApplyObservable.add(e)}set onBeforeRender(e){this._onBeforeRenderObserver&&this.onBeforeRenderObservable.remove(this._onBeforeRenderObserver),this._onBeforeRenderObserver=this.onBeforeRenderObservable.add(e)}set onAfterRender(e){this._onAfterRenderObserver&&this.onAfterRenderObservable.remove(this._onAfterRenderObserver),this._onAfterRenderObserver=this.onAfterRenderObservable.add(e)}get inputTexture(){return this._textures.data[this._currentRenderTextureInd]}set inputTexture(e){this._forcedOutputTexture=e}restoreDefaultInputTexture(){this._forcedOutputTexture&&(this._forcedOutputTexture=null,this.markTextureDirty())}getCamera(){return this._camera}get texelSize(){return this._shareOutputWithPostProcess?this._shareOutputWithPostProcess.texelSize:(this._forcedOutputTexture&&this._texelSize.copyFromFloats(1/this._forcedOutputTexture.width,1/this._forcedOutputTexture.height),this._texelSize)}constructor(e,t,s,r,i,a,n=1,l,h,o=null,u=0,c="postprocess",p,d=!1,_=5,f,g){let q;this._parentContainer=((0,Q.__runInitializers)(this,m),null),this.uniqueId=(0,Q.__runInitializers)(this,b,void 0),this.width=((0,Q.__runInitializers)(this,x),(0,Q.__runInitializers)(this,P,-1)),this.height=((0,Q.__runInitializers)(this,T),(0,Q.__runInitializers)(this,O,-1)),this.nodeMaterialSource=((0,Q.__runInitializers)(this,v),null),this._outputTexture=null,this.renderTargetSamplingMode=(0,Q.__runInitializers)(this,C,void 0),this.clearColor=((0,Q.__runInitializers)(this,S),(0,Q.__runInitializers)(this,y,void 0)),this.autoClear=((0,Q.__runInitializers)(this,w),(0,Q.__runInitializers)(this,A,!0)),this.forceAutoClearInAlphaMode=((0,Q.__runInitializers)(this,I),(0,Q.__runInitializers)(this,z,!1)),this.alphaConstants=((0,Q.__runInitializers)(this,R),(0,Q.__runInitializers)(this,E,void 0)),this.animations=((0,Q.__runInitializers)(this,W),[]),this.enablePixelPerfectMode=(0,Q.__runInitializers)(this,F,!1),this.forceFullscreenViewport=((0,Q.__runInitializers)(this,M),(0,Q.__runInitializers)(this,D,!0)),this.inspectableCustomProperties=(0,Q.__runInitializers)(this,B),this.scaleMode=(0,Q.__runInitializers)(this,k,1),this.alwaysForcePOT=((0,Q.__runInitializers)(this,U),(0,Q.__runInitializers)(this,G,!1)),this._samples=((0,Q.__runInitializers)(this,V),(0,Q.__runInitializers)(this,L,1)),this.adaptScaleToCurrentViewport=((0,Q.__runInitializers)(this,N),(0,Q.__runInitializers)(this,H,!1)),this.doNotSerialize=((0,Q.__runInitializers)(this,j),!1),this._webGPUReady=!1,this._reusable=!1,this._renderId=0,this.externalTextureSamplerBinding=!1,this._textures=new ee.SmartArray(2),this._textureCache=[],this._currentRenderTextureInd=0,this._scaleRatio=new es.Vector2(1,1),this._texelSize=es.Vector2.Zero(),this.onActivateObservable=new et.Observable,this.onSizeChangedObservable=new et.Observable,this.onApplyObservable=new et.Observable,this.onBeforeRenderObservable=new et.Observable,this.onAfterRenderObservable=new et.Observable,this.onDisposeObservable=new et.Observable,ec||(ec=!0,el.AbstractEngine.prototype.setTextureFromPostProcess=function(e,t,s){let r=null;t&&(t._forcedOutputTexture?r=t._forcedOutputTexture:t._textures.data[t._currentRenderTextureInd]&&(r=t._textures.data[t._currentRenderTextureInd])),this._bindTexture(e,r?.texture??null,s)},el.AbstractEngine.prototype.setTextureFromPostProcessOutput=function(e,t,s){this._bindTexture(e,t?._outputTexture?.texture??null,s)},er.Effect.prototype.setTextureFromPostProcess=function(e,t){this._engine.setTextureFromPostProcess(this._samplers[e],t,e)},er.Effect.prototype.setTextureFromPostProcessOutput=function(e,t){this._engine.setTextureFromPostProcessOutput(this._samplers[e],t,e)},(0,en.RegisterClass)("BABYLON.PostProcess",eu));let Y=1,X=null;if(s&&!Array.isArray(s)){const e=s;s=e.uniforms??null,r=e.samplers??null,Y=e.size??1,a=e.camera??null,n=e.samplingMode??1,l=e.engine,h=e.reusable,o=Array.isArray(e.defines)?e.defines.join("\n"):e.defines??null,u=e.textureType??0,c=e.vertexUrl??"postprocess",p=e.indexParameters,d=e.blockCompilation??!1,_=e.textureFormat??5,f=e.shaderLanguage??0,X=e.uniformBuffers??null,g=e.extraInitializations,q=e.effectWrapper}else i&&(Y="number"==typeof i?i:{width:i.width,height:i.height});if(this._useExistingThinPostProcess=!!q,this._effectWrapper=q??new eo.EffectWrapper({name:e,useShaderStore:!0,useAsPostProcess:!0,fragmentShader:t,engine:l||a?.getScene().getEngine(),uniforms:s,samplers:r,uniformBuffers:X,defines:o,vertexUrl:c,indexParameters:p,blockCompilation:!0,shaderLanguage:f,extraInitializations:void 0}),this.name=e,this.onEffectCreatedObservable=this._effectWrapper.onEffectCreatedObservable,null!=a?(this._camera=a,this._scene=a.getScene(),a.attachPostProcess(this),this._engine=this._scene.getEngine(),this._scene.addPostProcess(this),this.uniqueId=this._scene.getUniqueId()):l&&(this._engine=l,this._engine.postProcesses.push(this)),this._options=Y,this.renderTargetSamplingMode=n||1,this._reusable=h||!1,this._textureType=u,this._textureFormat=_,this._shaderLanguage=f||0,this._samplers=r||[],-1===this._samplers.indexOf("textureSampler")&&this._samplers.push("textureSampler"),this._fragmentUrl=t,this._vertexUrl=c,this._parameters=s||[],-1===this._parameters.indexOf("scale")&&this._parameters.push("scale"),this._uniformBuffers=X||[],this._indexParameters=p,!this._useExistingThinPostProcess){this._webGPUReady=1===this._shaderLanguage;const e=[];this._gatherImports(this._engine.isWebGPU&&!$.ForceGLSL,e),this._effectWrapper._webGPUReady=this._webGPUReady,this._effectWrapper._postConstructor(d,o,g,e)}}_gatherImports(t=!1,s){t&&this._webGPUReady?s.push(Promise.all([e.A(88288)])):s.push(Promise.all([e.A(11106)]))}getClassName(){return"PostProcess"}getEngine(){return this._engine}getEffect(){return this._effectWrapper.drawWrapper.effect}shareOutputWith(e){return this._disposeTextures(),this._shareOutputWithPostProcess=e,this}useOwnOutput(){0==this._textures.length&&(this._textures=new ee.SmartArray(2)),this._shareOutputWithPostProcess=null}updateEffect(e=null,t=null,s=null,r,i,a,n,l){this._effectWrapper.updateEffect(e,t,s,r,i,a,n,l),this._postProcessDefines=Array.isArray(this._effectWrapper.options.defines)?this._effectWrapper.options.defines.join("\n"):this._effectWrapper.options.defines}isReusable(){return this._reusable}markTextureDirty(){this.width=-1}_createRenderTargetTexture(e,t,s=0){for(let r=0;r<this._textureCache.length;r++)if(this._textureCache[r].texture.width===e.width&&this._textureCache[r].texture.height===e.height&&this._textureCache[r].postProcessChannel===s&&this._textureCache[r].texture._generateDepthBuffer===t.generateDepthBuffer&&this._textureCache[r].texture.samples===t.samples)return this._textureCache[r].texture;let r=this._engine.createRenderTargetTexture(e,t);return this._textureCache.push({texture:r,postProcessChannel:s,lastUsedRenderId:-1}),r}_flushTextureCache(){let e=this._renderId;for(let t=this._textureCache.length-1;t>=0;t--)if(e-this._textureCache[t].lastUsedRenderId>100){let e=!1;for(let s=0;s<this._textures.length;s++)if(this._textures.data[s]===this._textureCache[t].texture){e=!0;break}e||(this._textureCache[t].texture.dispose(),this._textureCache.splice(t,1))}}resize(e,t,s=null,r=!1,i=!1){this._textures.length>0&&this._textures.reset(),this.width=e,this.height=t;let a=null;if(s){for(let e=0;e<s._postProcesses.length;e++)if(null!==s._postProcesses[e]){a=s._postProcesses[e];break}}let n={width:this.width,height:this.height},l={generateMipMaps:r,generateDepthBuffer:i||a===this,generateStencilBuffer:(i||a===this)&&this._engine.isStencilEnable,samplingMode:this.renderTargetSamplingMode,type:this._textureType,format:this._textureFormat,samples:this._samples,label:"PostProcessRTT-"+this.name};this._textures.push(this._createRenderTargetTexture(n,l,0)),this._reusable&&this._textures.push(this._createRenderTargetTexture(n,l,1)),this._texelSize.copyFromFloats(1/this.width,1/this.height),this.onSizeChangedObservable.notifyObservers(this)}_getTarget(){let e;if(this._shareOutputWithPostProcess)e=this._shareOutputWithPostProcess.inputTexture;else if(this._forcedOutputTexture)e=this._forcedOutputTexture,this.width=this._forcedOutputTexture.width,this.height=this._forcedOutputTexture.height;else{let t;e=this.inputTexture;for(let s=0;s<this._textureCache.length;s++)if(this._textureCache[s].texture===e){t=this._textureCache[s];break}t&&(t.lastUsedRenderId=this._renderId)}return e}activate(e,t=null,s){let r=null===e||void 0!==e.cameraRigMode?e||this._camera:null,i=r?.getScene()??e,a=i.getEngine(),n=a.getCaps().maxTextureSize,l=(t?t.width:this._engine.getRenderWidth(!0))*this._options|0,h=(t?t.height:this._engine.getRenderHeight(!0))*this._options|0,o=this._options.width||l,u=this._options.height||h,c=7!==this.renderTargetSamplingMode&&1!==this.renderTargetSamplingMode&&2!==this.renderTargetSamplingMode,p=null;if(!this._shareOutputWithPostProcess&&!this._forcedOutputTexture){if(this.adaptScaleToCurrentViewport){let e=a.currentViewport;e&&(o*=e.width,u*=e.height)}(c||this.alwaysForcePOT)&&(this._options.width||(o=a.needPOTTextures?(0,eh.GetExponentOfTwo)(o,n,this.scaleMode):o),this._options.height||(u=a.needPOTTextures?(0,eh.GetExponentOfTwo)(u,n,this.scaleMode):u)),this.width===o&&this.height===u&&(p=this._getTarget())||this.resize(o,u,r,c,s),this._textures.forEach(e=>{e.samples!==this.samples&&this._engine.updateRenderTargetTextureSampleCount(e,this.samples)}),this._flushTextureCache(),this._renderId++}return p||(p=this._getTarget()),this.enablePixelPerfectMode?(this._scaleRatio.copyFromFloats(l/o,h/u),this._engine.bindFramebuffer(p,0,l,h,this.forceFullscreenViewport)):(this._scaleRatio.copyFromFloats(1,1),this._engine.bindFramebuffer(p,0,void 0,void 0,this.forceFullscreenViewport)),this._engine._debugInsertMarker?.(`post process ${this.name} input`),this.onActivateObservable.notifyObservers(r),this.autoClear&&(0===this.alphaMode||this.forceAutoClearInAlphaMode)&&this._engine.clear(this.clearColor?this.clearColor:i.clearColor,i._allowPostProcessClearColor,!0,!0),this._reusable&&(this._currentRenderTextureInd=(this._currentRenderTextureInd+1)%2),p}get isSupported(){return this._effectWrapper.drawWrapper.effect.isSupported}get aspectRatio(){return this._shareOutputWithPostProcess?this._shareOutputWithPostProcess.aspectRatio:this._forcedOutputTexture?this._forcedOutputTexture.width/this._forcedOutputTexture.height:this.width/this.height}isReady(){return this._effectWrapper.isReady()}apply(){let e;return this._effectWrapper.isReady()?(this._engine.enableEffect(this._effectWrapper.drawWrapper),this._engine.setState(!1),this._engine.setDepthBuffer(!1),this._engine.setDepthWrite(!1),this.alphaConstants&&this.getEngine().setAlphaConstants(this.alphaConstants.r,this.alphaConstants.g,this.alphaConstants.b,this.alphaConstants.a),this._engine.setAlphaMode(this.alphaMode),e=this._shareOutputWithPostProcess?this._shareOutputWithPostProcess.inputTexture:this._forcedOutputTexture?this._forcedOutputTexture:this.inputTexture,this.externalTextureSamplerBinding||this._effectWrapper.drawWrapper.effect._bindTexture("textureSampler",e?.texture),this._effectWrapper.drawWrapper.effect.setVector2("scale",this._scaleRatio),this.onApplyObservable.notifyObservers(this._effectWrapper.drawWrapper.effect),this._effectWrapper.bind(!0),this._effectWrapper.drawWrapper.effect):null}_disposeTextures(){this._shareOutputWithPostProcess||this._forcedOutputTexture?this._disposeTextureCache():(this._disposeTextureCache(),this._textures.dispose())}_disposeTextureCache(){for(let e=this._textureCache.length-1;e>=0;e--)this._textureCache[e].texture.dispose();this._textureCache.length=0}setPrePassRenderer(e){return!!this._prePassEffectConfiguration&&(this._prePassEffectConfiguration=e.addEffectConfiguration(this._prePassEffectConfiguration),this._prePassEffectConfiguration.enabled=!0,!0)}dispose(e){let t;if(e=e||this._camera,this._useExistingThinPostProcess||this._effectWrapper.dispose(),this._disposeTextures(),this._scene&&this._scene.removePostProcess(this),this._parentContainer&&((t=this._parentContainer.postProcesses.indexOf(this))>-1&&this._parentContainer.postProcesses.splice(t,1),this._parentContainer=null),-1!==(t=this._engine.postProcesses.indexOf(this))&&this._engine.postProcesses.splice(t,1),this.onDisposeObservable.notifyObservers(),e){if(e.detachPostProcess(this),0===(t=e._postProcesses.indexOf(this))&&e._postProcesses.length>0){let e=this._camera._getFirstPostProcess();e&&e.markTextureDirty()}this.onActivateObservable.clear(),this.onAfterRenderObservable.clear(),this.onApplyObservable.clear(),this.onBeforeRenderObservable.clear(),this.onSizeChangedObservable.clear(),this.onEffectCreatedObservable.clear()}}serialize(){let e=ea.SerializationHelper.Serialize(this),t=this.getCamera()||this._scene&&this._scene.activeCamera;return e.customType="BABYLON."+this.getClassName(),e.cameraId=t?t.id:null,e.reusable=this._reusable,e.textureType=this._textureType,e.fragmentUrl=this._fragmentUrl,e.parameters=this._parameters,e.samplers=this._samplers,e.uniformBuffers=this._uniformBuffers,e.options=this._options,e.defines=this._postProcessDefines,e.textureFormat=this._textureFormat,e.vertexUrl=this._vertexUrl,e.indexParameters=this._indexParameters,e}clone(){let e=this.serialize();e._engine=this._engine,e.cameraId=null;let t=$.Parse(e,this._scene,"");return t?(t.onActivateObservable=this.onActivateObservable.clone(),t.onSizeChangedObservable=this.onSizeChangedObservable.clone(),t.onApplyObservable=this.onApplyObservable.clone(),t.onBeforeRenderObservable=this.onBeforeRenderObservable.clone(),t.onAfterRenderObservable=this.onAfterRenderObservable.clone(),t._prePassEffectConfiguration=this._prePassEffectConfiguration,t):null}static Parse(e,t,s){let r=(0,en.GetClass)(e.customType);if(!r||!r._Parse)return null;let i=t?t.getCameraById(e.cameraId):null;return r._Parse(e,i,t,s)}static _Parse(e,t,s,r){return ea.SerializationHelper.Parse(()=>new $(e.name,e.fragmentUrl,e.parameters,e.samplers,e.options,t,e.renderTargetSamplingMode,e._engine,e.reusable,e.defines,e.textureType,e.vertexUrl,e.indexParameters,!1,e.textureFormat),e,s,r)}},q="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,t=[(0,ei.serialize)()],s=[(0,ei.serialize)()],r=[(0,ei.serialize)()],i=[(0,ei.serialize)()],a=[(0,ei.serialize)()],n=[(0,ei.serializeAsColor4)()],l=[(0,ei.serialize)()],h=[(0,ei.serialize)()],o=[(0,ei.serialize)()],u=[(0,ei.serialize)()],c=[(0,ei.serialize)()],p=[(0,ei.serialize)()],d=[(0,ei.serialize)()],_=[(0,ei.serialize)()],f=[(0,ei.serialize)("samples")],g=[(0,ei.serialize)()],(0,Q.__esDecorate)($,null,s,{kind:"getter",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name},metadata:q},null,m),(0,Q.__esDecorate)($,null,o,{kind:"getter",name:"alphaMode",static:!1,private:!1,access:{has:e=>"alphaMode"in e,get:e=>e.alphaMode},metadata:q},null,m),(0,Q.__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:q},b,x),(0,Q.__esDecorate)(null,null,r,{kind:"field",name:"width",static:!1,private:!1,access:{has:e=>"width"in e,get:e=>e.width,set:(e,t)=>{e.width=t}},metadata:q},P,T),(0,Q.__esDecorate)(null,null,i,{kind:"field",name:"height",static:!1,private:!1,access:{has:e=>"height"in e,get:e=>e.height,set:(e,t)=>{e.height=t}},metadata:q},O,v),(0,Q.__esDecorate)(null,null,a,{kind:"field",name:"renderTargetSamplingMode",static:!1,private:!1,access:{has:e=>"renderTargetSamplingMode"in e,get:e=>e.renderTargetSamplingMode,set:(e,t)=>{e.renderTargetSamplingMode=t}},metadata:q},C,S),(0,Q.__esDecorate)(null,null,n,{kind:"field",name:"clearColor",static:!1,private:!1,access:{has:e=>"clearColor"in e,get:e=>e.clearColor,set:(e,t)=>{e.clearColor=t}},metadata:q},y,w),(0,Q.__esDecorate)(null,null,l,{kind:"field",name:"autoClear",static:!1,private:!1,access:{has:e=>"autoClear"in e,get:e=>e.autoClear,set:(e,t)=>{e.autoClear=t}},metadata:q},A,I),(0,Q.__esDecorate)(null,null,h,{kind:"field",name:"forceAutoClearInAlphaMode",static:!1,private:!1,access:{has:e=>"forceAutoClearInAlphaMode"in e,get:e=>e.forceAutoClearInAlphaMode,set:(e,t)=>{e.forceAutoClearInAlphaMode=t}},metadata:q},z,R),(0,Q.__esDecorate)(null,null,u,{kind:"field",name:"alphaConstants",static:!1,private:!1,access:{has:e=>"alphaConstants"in e,get:e=>e.alphaConstants,set:(e,t)=>{e.alphaConstants=t}},metadata:q},E,W),(0,Q.__esDecorate)(null,null,c,{kind:"field",name:"enablePixelPerfectMode",static:!1,private:!1,access:{has:e=>"enablePixelPerfectMode"in e,get:e=>e.enablePixelPerfectMode,set:(e,t)=>{e.enablePixelPerfectMode=t}},metadata:q},F,M),(0,Q.__esDecorate)(null,null,p,{kind:"field",name:"forceFullscreenViewport",static:!1,private:!1,access:{has:e=>"forceFullscreenViewport"in e,get:e=>e.forceFullscreenViewport,set:(e,t)=>{e.forceFullscreenViewport=t}},metadata:q},D,B),(0,Q.__esDecorate)(null,null,d,{kind:"field",name:"scaleMode",static:!1,private:!1,access:{has:e=>"scaleMode"in e,get:e=>e.scaleMode,set:(e,t)=>{e.scaleMode=t}},metadata:q},k,U),(0,Q.__esDecorate)(null,null,_,{kind:"field",name:"alwaysForcePOT",static:!1,private:!1,access:{has:e=>"alwaysForcePOT"in e,get:e=>e.alwaysForcePOT,set:(e,t)=>{e.alwaysForcePOT=t}},metadata:q},G,V),(0,Q.__esDecorate)(null,null,f,{kind:"field",name:"_samples",static:!1,private:!1,access:{has:e=>"_samples"in e,get:e=>e._samples,set:(e,t)=>{e._samples=t}},metadata:q},L,N),(0,Q.__esDecorate)(null,null,g,{kind:"field",name:"adaptScaleToCurrentViewport",static:!1,private:!1,access:{has:e=>"adaptScaleToCurrentViewport"in e,get:e=>e.adaptScaleToCurrentViewport,set:(e,t)=>{e.adaptScaleToCurrentViewport=t}},metadata:q},H,j),q&&Object.defineProperty($,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:q}),$),ec=!1;e.s(["PostProcess",0,eu],72238);var ep=e.i(80603),ed=e.i(93414),e_=eo,ef=e.i(71829);class eg extends e_.EffectWrapper{_gatherImports(t,s){t?(this._webGPUReady=!0,s.push(Promise.all([e.A(4185)]))):s.push(Promise.all([e.A(89083)])),super._gatherImports(t,s)}constructor(e,t=null,s){const r={name:e,engine:t||ef.EngineStore.LastCreatedEngine,useShaderStore:!0,useAsPostProcess:!0,fragmentShader:eg.FragmentUrl,...s};r.engine||(r.engine=ef.EngineStore.LastCreatedEngine),super(r)}}eg.FragmentUrl="pass";class em extends e_.EffectWrapper{_gatherImports(t,s){t?(this._webGPUReady=!0,s.push(Promise.all([e.A(9844)]))):s.push(Promise.all([e.A(10863)])),super._gatherImports(t,s)}constructor(e,t=null,s){super({...s,name:e,engine:t||ef.EngineStore.LastCreatedEngine,useShaderStore:!0,useAsPostProcess:!0,fragmentShader:em.FragmentUrl,defines:"#define POSITIVEX"}),this._face=0}get face(){return this._face}set face(e){if(!(e<0)&&!(e>5))switch(this._face=e,this._face){case 0:this.updateEffect("#define POSITIVEX");break;case 1:this.updateEffect("#define NEGATIVEX");break;case 2:this.updateEffect("#define POSITIVEY");break;case 3:this.updateEffect("#define NEGATIVEY");break;case 4:this.updateEffect("#define POSITIVEZ");break;case 5:this.updateEffect("#define NEGATIVEZ")}}}em.FragmentUrl="passCube";X=eu,Z=[],J=class extends X{get face(){return this._effectWrapper.face}set face(e){this._effectWrapper.face=e}getClassName(){return"PassCubePostProcess"}constructor(e,t,s=null,r,i,a,n=0,l=!1){const h={size:"number"==typeof t?t:void 0,camera:s,samplingMode:r,engine:i,reusable:a,textureType:n,blockCompilation:l,...t};super(e,eg.FragmentUrl,{effectWrapper:"number"!=typeof t&&t.effectWrapper?void 0:new em(e,i,h),...h}),(0,Q.__runInitializers)(this,Z)}static _Parse(e,t,s,r){return ea.SerializationHelper.Parse(()=>new J(e.name,e.options,t,e.renderTargetSamplingMode,e._engine,e.reusable),e,s,r)}},K="function"==typeof Symbol&&Symbol.metadata?Object.create(X[Symbol.metadata]??null):void 0,Y=[(0,ei.serialize)()],(0,Q.__esDecorate)(J,null,Y,{kind:"getter",name:"face",static:!1,private:!1,access:{has:e=>"face"in e,get:e=>e.face},metadata:K},null,Z),K&&Object.defineProperty(J,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:K}),e.i(76197);var eb=e.i(61654);eb.ToHalfFloat,eb.FromHalfFloat,e.s(["RGBDTextureTools",0,class{static ExpandRGBDTexture(t){let s=t._texture;if(!s||!t.isRGBD)return;let r=s.getEngine(),i=r.getCaps(),a=s.isReady,n=!1;i.textureHalfFloatRender&&i.textureHalfFloatLinearFiltering?(n=!0,s.type=2):i.textureFloatRender&&i.textureFloatLinearFiltering&&(n=!0,s.type=1),n&&(s.isReady=!1,s._isRGBD=!1,s.invertY=!1);let l=async()=>{let i=r.isWebGPU;s.isReady=!1,i?await e.A(35837):await e.A(53613);let a=new eu("rgbdDecode","rgbdDecode",null,null,1,null,3,r,!1,void 0,s.type,void 0,null,!1,void 0,+!!i);a.externalTextureSamplerBinding=!0;let n=r.createRenderTargetTexture(s.width,{generateDepthBuffer:!1,generateMipMaps:!1,generateStencilBuffer:!1,samplingMode:s.samplingMode,type:s.type,format:5});a.onEffectCreatedObservable.addOnce(e=>{e.executeWhenCompiled(()=>{a.onApply=e=>{e._bindTexture("textureSampler",s),e.setFloat2("scale",1,1)},t.getScene()?.postProcessManager.directRender([a],n,!0),r.restoreDefaultFramebuffer(),r._releaseTexture(s),a&&a.dispose(),n._swapAndDie(s),s.isReady=!0})})};n&&(a?l():t.onLoadObservable.addOnce(l))}static async EncodeTextureToRGBD(t,s,r=0){var i,a,n,l,h;let o;return s.getEngine().isWebGPU?await e.A(22523):await e.A(64478),await (i=r,a=1,n=5,o=t.getEngine(),t.isReady=!1,a=a??t.samplingMode,i=i??t.type,n=n??t.format,l=l??t.width,h=h??t.height,-1===i&&(i=0),new Promise(e=>{let r=new eu("postprocess","rgbdEncode",null,null,1,null,a,o,!1,void 0,i,void 0,null,!1,n);r.externalTextureSamplerBinding=!0;let u=o.createRenderTargetTexture({width:l,height:h},{generateDepthBuffer:!1,generateMipMaps:!1,generateStencilBuffer:!1,samplingMode:a,type:i,format:n});r.onEffectCreatedObservable.addOnce(a=>{a.executeWhenCompiled(()=>{r.onApply=e=>{e._bindTexture("textureSampler",t),e.setFloat2("scale",1,1)},s.postProcessManager.directRender([r],u,!0),o.restoreDefaultFramebuffer(),o._releaseTexture(t),r&&r.dispose(),u._swapAndDie(t),t.type=i,t.format=5,t.isReady=!0,e(t)})})}))}}],16276)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74171,e=>{"use strict";var t=e.i(8697),r=e.i(61654);function o(e){switch(e){case 5120:case 5121:return 1;case 5122:case 5123:case 5131:return 2;case 5124:case 5125:case 5126:return 4;default:throw Error(`Invalid type '${e}'`)}}function i(e){switch(e){case 5120:return Int8Array;case 5121:return Uint8Array;case 5122:return Int16Array;case 5123:case 5131:return Uint16Array;case 5124:return Int32Array;case 5125:return Uint32Array;case 5126:return Float32Array;default:throw Error(`Invalid component type '${e}'`)}}function n(e,t,i,n,s,a,l,c){let u=Array(n),f=Array(n);if(e instanceof Array){let r=t/4,o=i/4;for(let t=0;t<a;t+=n){for(let t=0;t<n;t++)u[t]=f[t]=e[r+t];c(f,t);for(let t=0;t<n;t++)u[t]!==f[t]&&(e[r+t]=f[t]);r+=o}}else{let d=ArrayBuffer.isView(e)?new DataView(e.buffer,e.byteOffset,e.byteLength):new DataView(e),g=o(s);for(let e=0;e<a;e+=n){for(let e=0,o=t;e<n;e++,o+=g)u[e]=f[e]=function(e,t,o,i){switch(t){case 5120:{let t=e.getInt8(o);return i&&(t=Math.max(t/127,-1)),t}case 5121:{let t=e.getUint8(o);return i&&(t/=255),t}case 5122:{let t=e.getInt16(o,!0);return i&&(t=Math.max(t/32767,-1)),t}case 5123:{let t=e.getUint16(o,!0);return i&&(t/=65535),t}case 5131:return(0,r.FromHalfFloat)(e.getUint16(o,!0));case 5124:return e.getInt32(o,!0);case 5125:return e.getUint32(o,!0);case 5126:return e.getFloat32(o,!0);default:throw Error(`Invalid component type ${t}`)}}(d,s,o,l);c(f,e);for(let e=0,o=t;e<n;e++,o+=g)u[e]!==f[e]&&function(e,t,o,i,n){switch(t){case 5120:i&&(n=Math.round(127*n)),e.setInt8(o,n);break;case 5121:i&&(n=Math.round(255*n)),e.setUint8(o,n);break;case 5122:i&&(n=Math.round(32767*n)),e.setInt16(o,n,!0);break;case 5123:i&&(n=Math.round(65535*n)),e.setUint16(o,n,!0);break;case 5131:e.setUint16(o,(0,r.ToHalfFloat)(n),!0);break;case 5124:e.setInt32(o,n,!0);break;case 5125:e.setUint32(o,n,!0);break;case 5126:e.setFloat32(o,n,!0);break;default:throw Error(`Invalid component type ${t}`)}}(d,s,o,l,f[e]);t+=i}}}e.s(["CopyFloatData",0,function(e,r,i,s,a,l,c,u){let f=r*o(i),d=c*r;if(u.length!==d)throw Error("Output length is not valid");if(5126!==i||a!==f)return void n(e,s,a,r,i,d,l,(e,t)=>{for(let o=0;o<r;o++)u[t+o]=e[o]});if(e instanceof Array){let t=s/4;u.set(e,t)}else if(ArrayBuffer.isView(e)){let r=e.byteOffset+s;if((3&r)!=0){t.Logger.Warn("Float array must be aligned to 4-bytes border"),u.set(new Float32Array(e.buffer.slice(r,r+d*Float32Array.BYTES_PER_ELEMENT)));return}let o=new Float32Array(e.buffer,r,d);u.set(o)}else{let t=new Float32Array(e,s,d);u.set(t)}},"EnumerateFloatValues",0,n,"GetBlobBufferSource",0,function(e){let t=e.buffer;if(t instanceof ArrayBuffer)return e;let r=new ArrayBuffer(e.byteLength);return new Uint8Array(r).set(new Uint8Array(t,e.byteOffset,e.byteLength)),r},"GetFloatData",0,function(e,r,i,s,a,l,c,u){let f=r*o(i),d=c*r;if(5126!==i||a!==f){let t=new Float32Array(d);return n(e,s,a,r,i,d,l,(e,o)=>{for(let i=0;i<r;i++)t[o+i]=e[i]}),t}if(!(e instanceof Array||e instanceof Float32Array)||0!==s||e.length!==d)if(e instanceof Array){let t=s/4;return e.slice(t,t+d)}else{if(!ArrayBuffer.isView(e))return new Float32Array(e,s,d);let r=e.byteOffset+s;return((3&r)!=0&&(t.Logger.Warn("Float array must be aligned to 4-bytes border"),u=!0),u)?new Float32Array(e.buffer.slice(r,r+d*Float32Array.BYTES_PER_ELEMENT)):new Float32Array(e.buffer,r,d)}return u?e.slice():e},"GetTypeByteLength",0,o,"GetTypedArrayConstructor",0,i,"GetTypedArrayData",0,function(e,r,s,a,l,c,u){let f,d=o(s),g=i(s),p=c*r;if(Array.isArray(e)){if((3&a)!=0||(3&l)!=0)throw Error("byteOffset and byteStride must be a multiple of 4 for number[] data.");let t=a/4,o=l/4;if(t+(c-1)*o+r>e.length)throw Error("Last accessed index is out of bounds.");if(o<r)throw Error("Data stride cannot be smaller than the component size.");if(o!==r){let t=new g(p);return n(e,a,l,r,s,p,!1,(e,o)=>{for(let i=0;i<r;i++)t[o+i]=e[i]}),t}return new g(e.slice(t,t+p))}let h=a;if(ArrayBuffer.isView(e)?(f=e.buffer,h+=e.byteOffset):f=e,h+(c-1)*l+r*d>f.byteLength)throw Error("Last accessed byte is out of bounds.");let m=r*d;if(l<m)throw Error("Byte stride cannot be smaller than the component's byte size.");if(l!==m){let e=new g(p),t=new Uint8Array(f,h),o=new Uint8Array(e.buffer),i=r*d;for(let e=0,r=0,n=0;e<c;e++,r+=l,n+=i)o.set(t.subarray(r,r+i),n);return e}return(1!==d&&(h&d-1)!=0&&(t.Logger.Warn("Array must be aligned to border of element size. Data will be copied."),u=!0),u)?new g(f.slice(h,h+p*d)):new g(f,h,p)}])},20969,48685,e=>{"use strict";var t=e.i(49399);let r={};function o(e,t,r,o){if(e){t?e.IS_NDC_HALF_ZRANGE="":delete e.IS_NDC_HALF_ZRANGE,r?e.USE_REVERSE_DEPTHBUFFER="":delete e.USE_REVERSE_DEPTHBUFFER,o?e.USE_EXACT_SRGB_CONVERSIONS="":delete e.USE_EXACT_SRGB_CONVERSIONS;return}{let e="";return t&&(e+="#define IS_NDC_HALF_ZRANGE"),r&&(e&&(e+="\n"),e+="#define USE_REVERSE_DEPTHBUFFER"),o&&(e&&(e+="\n"),e+="#define USE_EXACT_SRGB_CONVERSIONS"),e}}e.s(["EngineFunctionContext",0,r,"_ConcatenateShader",0,function(e,t,r=""){return r+(t?t+"\n":"")+e},"_GetGlobalDefines",0,o,"_LoadFile",0,function(e,o,i,n,s,a,l){let c=l||r.loadFile;if(!c)throw(0,t._WarnImport)("FileTools");return c(e,o,i,n,s,a)},"allocateAndCopyTypedBuffer",0,function(e,t,r=!1,o){switch(e){case 3:{let e=new Int8Array(t);return o&&e.set(new Int8Array(o)),e}case 0:{let e=new Uint8Array(t);return o&&e.set(new Uint8Array(o)),e}case 4:{let e=new Int16Array("number"!=typeof t?t:r?t/2:t);return o&&e.set(new Int16Array(o)),e}case 5:case 8:case 9:case 10:case 2:{let e=new Uint16Array("number"!=typeof t?t:r?t/2:t);return o&&e.set(new Uint16Array(o)),e}case 6:{let e=new Int32Array("number"!=typeof t?t:r?t/4:t);return o&&e.set(new Int32Array(o)),e}case 7:case 11:case 12:case 13:case 14:case 15:{let e=new Uint32Array("number"!=typeof t?t:r?t/4:t);return o&&e.set(new Uint32Array(o)),e}case 1:{let e=new Float32Array("number"!=typeof t?t:r?t/4:t);return o&&e.set(new Float32Array(o)),e}}let i=new Uint8Array(t);return o&&i.set(new Uint8Array(o)),i}],20969);class i{constructor(){this.children=[]}isValid(e){return!0}process(e,t,r){let o="";if(this.line){let r=this.line,i=t.processor;if(i){i.lineProcessor&&(r=i.lineProcessor(r,t.isFragment,t.processingContext));let o=t.processor?.attributeKeywordName??"attribute",n=t.isFragment&&t.processor?.varyingFragmentKeywordName?t.processor?.varyingFragmentKeywordName:!t.isFragment&&t.processor?.varyingVertexKeywordName?t.processor?.varyingVertexKeywordName:"varying";!t.isFragment&&i.attributeProcessor&&this.line.startsWith(o)?r=i.attributeProcessor(this.line,e,t.processingContext):i.varyingProcessor&&(i.varyingCheck?.(this.line,t.isFragment)||!i.varyingCheck&&this.line.startsWith(n))?r=i.varyingProcessor(this.line,t.isFragment,e,t.processingContext):i.uniformProcessor&&i.uniformRegexp&&i.uniformRegexp.test(this.line)?t.lookForClosingBracketForUniformBuffer||(r=i.uniformProcessor(this.line,t.isFragment,e,t.processingContext)):i.uniformBufferProcessor&&i.uniformBufferRegexp&&i.uniformBufferRegexp.test(this.line)?t.lookForClosingBracketForUniformBuffer||(r=i.uniformBufferProcessor(this.line,t.isFragment,t.processingContext),t.lookForClosingBracketForUniformBuffer=!0):i.textureProcessor&&i.textureRegexp&&i.textureRegexp.test(this.line)?r=i.textureProcessor(this.line,t.isFragment,e,t.processingContext):(i.uniformProcessor||i.uniformBufferProcessor)&&this.line.startsWith("uniform")&&!t.lookForClosingBracketForUniformBuffer&&(/uniform\s+(?:(?:highp)?|(?:lowp)?)\s*(\S+)\s+(\S+)\s*;/.test(this.line)?i.uniformProcessor&&(r=i.uniformProcessor(this.line,t.isFragment,e,t.processingContext)):i.uniformBufferProcessor&&(r=i.uniformBufferProcessor(this.line,t.isFragment,t.processingContext),t.lookForClosingBracketForUniformBuffer=!0)),t.lookForClosingBracketForUniformBuffer&&-1!==this.line.indexOf("}")&&(t.lookForClosingBracketForUniformBuffer=!1,i.endOfUniformBufferProcessor&&(r=i.endOfUniformBufferProcessor(this.line,t.isFragment,t.processingContext)))}o+=r+"\n"}for(let i of this.children)o+=i.process(e,t,r);return this.additionalDefineKey&&(e[this.additionalDefineKey]=this.additionalDefineValue||"true",r[this.additionalDefineKey]=e[this.additionalDefineKey]),o}}class n{constructor(){this._lines=[]}get currentLine(){return this._lines[this.lineIndex]}get canRead(){return this.lineIndex<this._lines.length-1}set lines(e){for(let t of(this._lines.length=0,e)){if(!t||"\r"===t)continue;if("#"===t[0]){this._lines.push(t);continue}let e=t.trim();if(!e)continue;if(e.startsWith("//")){this._lines.push(t);continue}let r=e.indexOf(";");if(-1===r)this._lines.push(e);else if(r===e.length-1)e.length>1&&this._lines.push(e);else{let e=t.split(";");for(let t=0;t<e.length;t++){let r=e[t];r&&(r=r.trim())&&this._lines.push(r+(t!==e.length-1?";":""))}}}}}class s extends i{process(e,t,r){for(let o=0;o<this.children.length;o++){let i=this.children[o];if(i.isValid(e))return i.process(e,t,r)}return""}}class a extends i{isValid(e){return this.testExpression.isTrue(e)}}class l{isTrue(e){return!0}static postfixToInfix(e){let t=[];for(let r of e)if(void 0===l._OperatorPriority[r])t.push(r);else{let e=t[t.length-1],o=t[t.length-2];t.length-=2,t.push(`(${o}${r}${e})`)}return t[t.length-1]}static infixToPostfix(e){let t=l._InfixToPostfixCache.get(e);if(t)return t.accessTime=Date.now(),t.result;if(!e.includes("&&")&&!e.includes("||")&&!e.includes(")")&&!e.includes("("))return[e];let r=[],o=-1,i=()=>{""!==(u=u.trim())&&(r.push(u),u="")},n=e=>{o<l._Stack.length-1&&(l._Stack[++o]=e)},s=()=>l._Stack[o],a=()=>-1===o?"!!INVALID EXPRESSION!!":l._Stack[o--],c=0,u="";for(;c<e.length;){let t=e.charAt(c),f=c<e.length-1?e.substring(c,2+c):"";if("("===t)u="",n(t);else if(")"===t){for(i();-1!==o&&"("!==s();)r.push(a());a()}else if(l._OperatorPriority[f]>1){for(i();-1!==o&&l._OperatorPriority[s()]>=l._OperatorPriority[f];)r.push(a());n(f),c++}else u+=t;c++}for(i();-1!==o;)"("===s()?a():r.push(a());return l._InfixToPostfixCache.size>=l.InfixToPostfixCacheLimitSize&&l.ClearCache(),l._InfixToPostfixCache.set(e,{result:r,accessTime:Date.now()}),r}static ClearCache(){let e=Array.from(l._InfixToPostfixCache.entries()).sort((e,t)=>e[1].accessTime-t[1].accessTime);for(let t=0;t<l.InfixToPostfixCacheCleanupSize;t++)l._InfixToPostfixCache.delete(e[t][0])}}l.InfixToPostfixCacheLimitSize=5e4,l.InfixToPostfixCacheCleanupSize=25e3,l._InfixToPostfixCache=new Map,l._OperatorPriority={")":0,"(":1,"||":2,"&&":3},l._Stack=["","","","","","","","","","","","","","","","","","","",""];class c extends l{constructor(e,t=!1){super(),this.define=e,this.not=t}isTrue(e){let t=void 0!==e[this.define];return this.not&&(t=!t),t}}class u extends l{isTrue(e){return this.leftOperand.isTrue(e)||this.rightOperand.isTrue(e)}}class f extends l{isTrue(e){return this.leftOperand.isTrue(e)&&this.rightOperand.isTrue(e)}}class d extends l{constructor(e,t,r){super(),this.define=e,this.operand=t,this.testValue=r}toString(){return`${this.define} ${this.operand} ${this.testValue}`}isTrue(e){let t=!1,r=parseInt(void 0!=e[this.define]?e[this.define]:this.define),o=parseInt(void 0!=e[this.testValue]?e[this.testValue]:this.testValue);if(isNaN(r)||isNaN(o))return!1;switch(this.operand){case">":t=r>o;break;case"<":t=r<o;break;case"<=":t=r<=o;break;case">=":t=r>=o;break;case"==":t=r===o;break;case"!=":t=r!==o}return t}}let g=/defined\s*?\((.+?)\)/g,p=/defined\s*?\[(.+?)\]/g,h=/#include\s?<(.+)>(\((.*)\))*(\[(.*)\])*/g,m=/__decl__/,y=/light\{X\}.(\w*)/g,v=/\{X\}/g,b=[],P=/(#ifdef)|(#else)|(#elif)|(#endif)|(#ifndef)|(#if)/;function A(e){let t=/defined\((.+)\)/.exec(e);if(t&&t.length)return new c(t[1].trim(),"!"===e[0]);let r="",o=0;for(r of["==","!=",">=","<=","<",">"])if((o=e.indexOf(r))>-1)break;if(-1===o)return new c(e);let i=e.substring(0,o).trim(),n=e.substring(o+r.length).trim();return new d(i,r,n)}function U(e,t){let r=new a,o=e.substring(0,t),i=e.substring(t);return i=i.substring(0,(i.indexOf("//")+1||i.length+1)-1).trim(),"#ifdef"===o?r.testExpression=new c(i):"#ifndef"===o?r.testExpression=new c(i,!0):r.testExpression=function(e){e=e.replace(g,"defined[$1]");let t=l.infixToPostfix(e),r=[];for(let e of t)if("||"!==e&&"&&"!==e)r.push(e);else if(r.length>=2){let t=r[r.length-1],o=r[r.length-2];r.length-=2;let i="&&"==e?new f:new u;"string"==typeof t&&(t=t.replace(p,"defined($1)")),"string"==typeof o&&(o=o.replace(p,"defined($1)")),i.leftOperand="string"==typeof o?A(o):o,i.rightOperand="string"==typeof t?A(t):t,r.push(i)}let o=r[r.length-1];return"string"==typeof o&&(o=o.replace(p,"defined($1)")),"string"==typeof o?A(o):o}(i),r}function K(e,t,r,o){let n;for(;C(e,r,o);){let s=(n=e.currentLine).substring(0,5).toLowerCase();if("#else"===s){let r=new i;t.children.push(r),C(e,r,o);return}if("#elif"===s){let e=U(n,5);t.children.push(e),r=e}}}function C(e,t,r){for(;e.canRead;){e.lineIndex++;let o=e.currentLine;if(o.indexOf("#")>=0){let i=P.exec(o);if(i&&i.length){switch(i[0]){case"#ifdef":{let i=new s;t.children.push(i);let n=U(o,6);i.children.push(n),K(e,i,n,r);break}case"#else":case"#elif":return!0;case"#endif":return!1;case"#ifndef":{let i=new s;t.children.push(i);let n=U(o,7);i.children.push(n),K(e,i,n,r);break}case"#if":{let i=new s,n=U(o,3);t.children.push(i),i.children.push(n),K(e,i,n,r)}}continue}}let n=new i;if(n.line=o,t.children.push(n),"#"===o[0]&&"d"===o[1]){let e=o.replace(";","").split(" ");n.additionalDefineKey=e[1],3===e.length&&(n.additionalDefineValue=e[2])}}return!1}function F(e,t,r){let o;for(b.length=0;null!==(o=h.exec(e));)b.push(o);let i=[e],n=!1;for(let e of b){let o=e[1];if(-1!==o.indexOf("__decl__")&&(o=o.replace(m,""),t.supportsUniformBuffers&&(o=o.replace("Vertex","Ubo").replace("Fragment","Ubo")),o+="Declaration"),t.includesShadersStore[o]){let r=t.includesShadersStore[o];if(e[2]){let t=e[3].split(",");for(let e=0;e<t.length;e+=2){let o=RegExp(t[e],"g"),i=t[e+1];r=r.replace(o,i)}}if(e[4]){let o=e[5];if(-1!==o.indexOf("..")){let e=o.split(".."),i=parseInt(e[0]),n=parseInt(e[1]),s=r.slice(0);r="",isNaN(n)&&(n=t.indexParameters[e[1]]);for(let e=i;e<n;e++)t.supportsUniformBuffers||(s=s.replace(y,(e,t)=>t+"{X}")),r+=s.replace(v,e.toString())+"\n"}else t.supportsUniformBuffers||(r=r.replace(y,(e,t)=>t+"{X}")),r=r.replace(v,o)}let s=[];for(let t of i){let o=t.split(e[0]);for(let e=0;e<o.length-1;e++)s.push(o[e]),s.push(r);s.push(o[o.length-1])}i=s,n=n||r.indexOf("#include<")>=0||r.indexOf("#include <")>=0}else{let e=t.shadersRepository+"ShadersInclude/"+o+".fx";T.loadFile(e,e=>{t.includesShadersStore[o]=e,F(i.join(""),t,r)});return}}b.length=0;let s=i.join("");n?F(s.toString(),t,r):r(s)}let T={loadFile:(e,r,o,i,n,s)=>{throw(0,t._WarnImport)("FileTools")}};e.s(["Finalize",0,function(e,t,r){return r.processor&&r.processor.finalizeShaders?r.processor.finalizeShaders(e,t,r.processingContext):{vertexCode:e,fragmentCode:t}},"Initialize",0,function(e){e.processor&&e.processor.initializeShaders&&e.processor.initializeShaders(e.processingContext)},"Process",0,function(e,t,r,s){t.processor?.preProcessShaderCode&&(e=t.processor.preProcessShaderCode(e,t.isFragment)),F(e,t,e=>{t.processCodeAfterIncludes&&(e=t.processCodeAfterIncludes(t.isFragment?"fragment":"vertex",e,t.defines)),r(function(e,t,r){var s;let a,l,c=function(e,t){if(t.processor?.noPrecision)return e;let r=t.shouldUseHighPrecisionShader;return -1===e.indexOf("precision highp float")?e=r?"precision highp float;\n"+e:"precision mediump float;\n"+e:r||(e=e.replace("precision highp float","precision mediump float")),e}(e,t);if(!t.processor||0===t.processor.shaderLanguage&&-1!==c.indexOf("#version 3")&&(c=c.replace("#version 300 es",""),!t.processor.parseGLES3))return c;let u=t.defines,f=function(e,t){let r=e.defines,i={};for(let e of r){let t=e.replace("#define","").replace(";","").trim().split(" ");i[t[0]]=t.length>1?t[1]:""}return e.processor?.shaderLanguage===0&&(i.GL_ES="true"),i.__VERSION__=e.version,i[e.platformName]="true",o(i,t?.isNDCHalfZRange,t?.useReverseDepthBuffer,t?.useExactSrgbConversions),i}(t,r);t.processor.preProcessor&&(c=t.processor.preProcessor(c,u,f,t.isFragment,t.processingContext));let d={};return s=c,a=new i,(l=new n).lineIndex=-1,l.lines=s.split("\n"),C(l,a,d),c=a.process(f,t,d),t.processor.postProcessor&&(c=t.processor.postProcessor(c,u,t.isFragment,t.processingContext,r?{drawBuffersExtensionDisabled:!r.getCaps().drawBuffersExtension}:{},f,d)),r?._features.needShaderCodeInlining&&(c=r.inlineShaderCode(c)),c}(e,t,s),e)})},"ProcessIncludes",0,F,"_FunctionContainer",0,T],48685)},49399,e=>{"use strict";let t={},r={};e.s(["_IsSideEffectImplemented",0,function(e){return!!e&&!e.__isSideEffectStub},"_MissingSideEffect",0,function(e,t,o=!1){let i=function(){if(o&&1){let o=`${e}.${t}`;r[o]||(r[o]=!0,console.warn(`[Babylon.js] ${o}() requires a side-effect import. See: https://doc.babylonjs.com/setup/treeshaking`))}};return i.__isSideEffectStub=!0,i},"_MissingSideEffectProperty",0,function(e,t){return{get(){},set(e){Object.defineProperty(this,t,{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0}},"_WarnImport",0,function(e,r=!1){if(!r||!t[e])return t[e]=!0,`${e} needs to be imported before as it contains a side-effect required by your code.`}])},45735,e=>{"use strict";e.s(["GetDOMTextContent",0,function(e){let t="",r=e.firstChild;for(;r;)3===r.nodeType&&(t+=r.textContent),r=r.nextSibling;return t},"IsDocumentAvailable",0,function(){return"u">typeof document},"IsNavigatorAvailable",0,function(){return"u">typeof navigator},"IsWindowObjectExist",0,function(){return"u">typeof window}])},20887,e=>{"use strict";let t;var r=e.i(5369),o=e.i(45735),i=e.i(97991),n=e.i(50273),s=e.i(89188),a=e.i(31619),l=e.i(64781),c=e.i(71829),u=e.i(20969),f=e.i(48685),d=e.i(8697),g=e.i(89435),p=e.i(74171);let h=new RegExp(/^data:([^,]+\/[^,]+)?;base64,/i);class m extends a.RuntimeError{constructor(e,t){super(e,a.ErrorCodes.LoadFileError),this.name="LoadFileError",a.BaseError._setPrototypeOf(this,m.prototype),t instanceof r.WebRequest?this.request=t:this.file=t}}class y extends a.RuntimeError{constructor(e,t){super(e,a.ErrorCodes.RequestFileError),this.request=t,this.name="RequestFileError",a.BaseError._setPrototypeOf(this,y.prototype)}}class v extends a.RuntimeError{constructor(e,t){super(e,a.ErrorCodes.ReadFileError),this.file=t,this.name="ReadFileError",a.BaseError._setPrototypeOf(this,v.prototype)}}let b={DefaultRetryStrategy:s.RetryStrategy.ExponentialBackoff(),BaseUrl:"",CorsBehavior:"anonymous",PreprocessUrl:e=>e,ScriptBaseUrl:"",ScriptPreprocessUrl:e=>e,CleanUrl:e=>e=e.replace(/#/gm,"%23")},P=(e,t)=>{if((!e||0!==e.indexOf("data:"))&&b.CorsBehavior)if("string"==typeof b.CorsBehavior||b.CorsBehavior instanceof String)t.crossOrigin=b.CorsBehavior;else{let r=b.CorsBehavior(e);r&&(t.crossOrigin=r)}},A=(e,t,o,i,s="",a,u=c.EngineStore.LastCreatedEngine)=>{let f;if("u"<typeof HTMLImageElement&&!u?._features.forceBitmapOverHTMLImageElement)return o("LoadImage is only supported in web or BabylonNative environments."),null;let d=!1;if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))if("u">typeof Blob&&"u">typeof URL){let t;t=e instanceof ArrayBuffer?e:(0,p.GetBlobBufferSource)(e),f=URL.createObjectURL(new Blob([t],{type:s})),d=!0}else f=`data:${s};base64,`+(0,l.EncodeArrayBufferToBase64)(e);else e instanceof Blob?(f=URL.createObjectURL(e),d=!0):(f=b.CleanUrl(e),f=b.PreprocessUrl(f));let g=t=>{if(o){let r=f||e.toString();o(`Error while trying to load image: ${0===r.indexOf("http")||r.length<=128?r:r.slice(0,128)+"..."}`,t)}};if(u?._features.forceBitmapOverHTMLImageElement)return K(f,r=>{u.createImageBitmap(new Blob([r],{type:s}),{premultiplyAlpha:"none",colorSpaceConversion:"none",...a}).then(e=>{t(e),d&&URL.revokeObjectURL(f)}).catch(t=>{o&&o("Error while trying to load image: "+e,t)})},void 0,i||void 0,!0,(e,t)=>{g(t)}),null;let h=new Image;!1;P(f,h);let m=[],y=()=>{for(let e of m)e.target.removeEventListener(e.name,e.handler);m.length=0};for(let e of(m.push({target:h,name:"load",handler:()=>{y(),t(h),d&&h.src&&URL.revokeObjectURL(h.src)}}),m.push({target:h,name:"error",handler:e=>{y(),g(e),d&&h.src&&URL.revokeObjectURL(h.src)}}),m.push({target:document,name:"securitypolicyviolation",handler:e=>{if(e.blockedURI!==h.src||"report"===e.disposition)return;y();let t=Error(`CSP violation of policy ${e.effectiveDirective} ${e.blockedURI}. Current policy is ${e.originalPolicy}`);c.EngineStore.UseFallbackTexture=!1,g(t),d&&h.src&&URL.revokeObjectURL(h.src),h.src=""}}),m))e.target.addEventListener(e.name,e.handler);let v="blob:"===f.substring(0,5),A="data:"===f.substring(0,5),U=()=>{v||A||!r.WebRequest.IsCustomRequestAvailable?h.src=f:K(f,(e,t,r)=>{let o=new Blob([e],{type:!s&&r?r:s}),i=URL.createObjectURL(o);d=!0,h.src=i},void 0,i||void 0,!0,(e,t)=>{g(t)})};if(!v&&!A&&i&&i.enableTexturesOffline)i.open(()=>{i&&i.loadImage(f,h)},U);else{if(-1!==f.indexOf("file:")){let e=decodeURIComponent(f.substring(5).toLowerCase());if(n.FilesInputStore.FilesToLoad[e]&&"u">typeof URL){try{let t;try{t=URL.createObjectURL(n.FilesInputStore.FilesToLoad[e])}catch(r){t=URL.createObjectURL(n.FilesInputStore.FilesToLoad[e])}h.src=t,d=!0}catch(e){h.src=""}return h}}U()}return h},U=(e,t,r,o,n)=>{let s=new FileReader,a={onCompleteObservable:new i.Observable,abort:()=>s.abort()};return s.onloadend=()=>a.onCompleteObservable.notifyObservers(a),n&&(s.onerror=()=>{n(new v(`Unable to read ${e.name}`,e))}),s.onload=e=>{t(e.target.result)},r&&(s.onprogress=r),o?s.readAsArrayBuffer(e):s.readAsText(e),a},K=(e,t,r,o,s,a,l)=>{if(e.name)return U(e,t,r,s,a?e=>{a(void 0,e)}:void 0);if(-1!==e.indexOf("file:")){let o=decodeURIComponent(e.substring(5).toLowerCase());0===o.indexOf("./")&&(o=o.substring(2));let i=n.FilesInputStore.FilesToLoad[o];if(i)return U(i,t,r,s,a?e=>a(void 0,new m(e.message,e.file)):void 0)}let{match:c,type:u}=B(e);if(c){let r={onCompleteObservable:new i.Observable,abort:()=>()=>{}};try{let r=s?E(e):w(e);t(r,void 0,u)}catch(e){a?a(void 0,e):d.Logger.Error(e.message||"Failed to parse the Data URL")}return g.TimingTools.SetImmediate(()=>{r.onCompleteObservable.notifyObservers(r)}),r}return C(e,(e,r)=>{t(e,r?.responseURL,r?.getResponseHeader("content-type"))},r,o,s,a?e=>{a(e.request,new m(e.message,e.request))}:void 0,l)},C=(e,t,n,s,a,l,u)=>{null!==s&&(s??(s=c.EngineStore.LastCreatedScene?.offlineProvider)),e=b.CleanUrl(e),e=b.PreprocessUrl(e);let f=b.BaseUrl+e,g=!1,p={onCompleteObservable:new i.Observable,abort:()=>g=!0},h=()=>{let e,i=new r.WebRequest,s=null,c=()=>{i&&(n&&i.removeEventListener("progress",n),e&&i.removeEventListener("readystatechange",e),i.removeEventListener("loadend",h))},h=()=>{c(),p.onCompleteObservable.notifyObservers(p),p.onCompleteObservable.clear(),n=void 0,e=null,h=null,l=void 0,u=void 0,t=void 0};p.abort=()=>{g=!0,h&&h(),i&&i.readyState!==(XMLHttpRequest.DONE||4)&&i.abort(),null!==s&&(clearTimeout(s),s=null),i=null};let m=e=>{let t=e.message||"Unknown error";l&&i?l(new y(t,i)):d.Logger.Error(t)},v=d=>{if(i){if(i.open("GET",f),u)try{u(i)}catch(e){m(e);return}a&&(i.responseType="arraybuffer"),n&&i.addEventListener("progress",n),h&&i.addEventListener("loadend",h),e=()=>{if(!g&&i&&i.readyState===(XMLHttpRequest.DONE||4)){if(e&&i.removeEventListener("readystatechange",e),i.status>=200&&i.status<300||0===i.status&&(!(0,o.IsWindowObjectExist)()||F())){let e=a?i.response:i.responseText;if(null!==e){try{t&&t(e,i)}catch(e){m(e)}return}}let n=b.DefaultRetryStrategy;if(n){let e=n(f,i,d);if(-1!==e){c(),i=new r.WebRequest,s=setTimeout(()=>v(d+1),e);return}}let u=new y("Error status: "+i.status+" "+i.statusText+" - Unable to load "+f,i);l&&l(u)}},i.addEventListener("readystatechange",e),i.send()}};v(0)};if(s&&s.enableSceneOffline&&!e.startsWith("blob:")){let r=e=>{e&&e.status>400?l&&l(e):h()};s.open(()=>{s&&s.loadFile(b.BaseUrl+e,e=>{!g&&t&&t(e),p.onCompleteObservable.notifyObservers(p)},n?e=>{!g&&n&&n(e)}:void 0,r,a)},r)}else h();return p},F=()=>"u">typeof location&&"file:"===location.protocol,T=e=>h.test(e),B=e=>{let t=h.exec(e);return null===t||0===t.length?{match:!1,type:""}:{match:!0,type:t[0].replace("data:","").replace(";base64,","")}};function E(e){return(0,l.DecodeBase64ToBinary)(e.split(",")[1])}let w=e=>(0,l.DecodeBase64ToString)(e.split(",")[1]),x=!1;e.s(["DecodeBase64UrlToBinary",0,E,"FileToolsOptions",0,b,"GetMimeType",0,e=>{let{match:t,type:r}=B(e);if(t)return r||void 0;let o=e.lastIndexOf(".");switch(e.substring(o+1).toLowerCase()){case"glb":return"model/gltf-binary";case"bin":return"application/octet-stream";case"gltf":return"model/gltf+json";case"jpg":case"jpeg":return"image/jpeg";case"png":return"image/png";case"webp":return"image/webp";case"ktx":return"image/ktx";case"ktx2":return"image/ktx2";case"avif":return"image/avif";default:return}},"IsBase64DataUrl",0,T,"LoadFile",0,K,"LoadFileError",0,m,"LoadImage",0,A,"ReadFile",0,U,"RegisterFileTools",0,function(){!x&&(x=!0,Object.defineProperty(t={DecodeBase64UrlToBinary:E,DecodeBase64UrlToString:w,DefaultRetryStrategy:b.DefaultRetryStrategy,BaseUrl:b.BaseUrl,CorsBehavior:b.CorsBehavior,PreprocessUrl:b.PreprocessUrl,IsBase64DataUrl:T,IsFileURL:F,LoadFile:K,LoadImage:A,ReadFile:U,RequestFile:C,SetCorsBehavior:P},"DefaultRetryStrategy",{get:function(){return b.DefaultRetryStrategy},set:function(e){b.DefaultRetryStrategy=e}}),Object.defineProperty(t,"BaseUrl",{get:function(){return b.BaseUrl},set:function(e){b.BaseUrl=e}}),Object.defineProperty(t,"PreprocessUrl",{get:function(){return b.PreprocessUrl},set:function(e){b.PreprocessUrl=e}}),Object.defineProperty(t,"CorsBehavior",{get:function(){return b.CorsBehavior},set:function(e){b.CorsBehavior=e}}),u.EngineFunctionContext.loadFile=K,u.EngineFunctionContext.loadImage=A,f._FunctionContainer.loadFile=K)},"RequestFile",0,C,"SetCorsBehavior",0,P])},50273,89188,31619,e=>{"use strict";class t{}t.FilesToLoad={},e.s(["FilesInputStore",0,t],50273),e.s(["RetryStrategy",0,class{static ExponentialBackoff(e=3,t=500){return(r,o,i)=>0!==o.status||i>=e||-1!==r.indexOf("file:")?-1:Math.pow(2,i)*t}}],89188);class r extends Error{}r._setPrototypeOf=Object.setPrototypeOf||((e,t)=>(e.__proto__=t,e));class o extends r{constructor(e,t,i){super(e),this.errorCode=t,this.innerError=i,this.name="RuntimeError",r._setPrototypeOf(this,o.prototype)}}e.s(["BaseError",0,r,"ErrorCodes",0,{MeshInvalidPositionsError:0,UnsupportedTextureError:1e3,GLTFLoaderUnexpectedMagicError:2e3,SceneLoaderError:3e3,LoadFileError:4e3,RequestFileError:4001,ReadFileError:4002},"RuntimeError",0,o],31619)},61654,e=>{"use strict";let t=null;function r(){if(t)return t;let e=new ArrayBuffer(4),r=new Float32Array(e),o=new Uint32Array(e),i=new Uint32Array(512),n=new Uint32Array(512);for(let e=0;e<256;++e){let t=e-127;t<-24?(i[e]=0,i[256|e]=32768,n[e]=24,n[256|e]=24):t<-14?(i[e]=1024>>-t-14,i[256|e]=1024>>-t-14|32768,n[e]=-t-1,n[256|e]=-t-1):t<=15?(i[e]=t+15<<10,i[256|e]=t+15<<10|32768,n[e]=13,n[256|e]=13):t<128?(i[e]=31744,i[256|e]=64512,n[e]=24,n[256|e]=24):(i[e]=31744,i[256|e]=64512,n[e]=13,n[256|e]=13)}let s=new Uint32Array(2048),a=new Uint32Array(64),l=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,r=0;for(;(8388608&t)==0;)t<<=1,r-=8388608;t&=-8388609,r+=0x38800000,s[e]=t|r}for(let e=1024;e<2048;++e)s[e]=0x38000000+(e-1024<<13);for(let e=1;e<31;++e)a[e]=e<<23;a[31]=0x47800000,a[32]=0x80000000;for(let e=33;e<63;++e)a[e]=0x80000000+(e-32<<23);a[63]=0xc7800000;for(let e=1;e<64;++e)32!==e&&(l[e]=1024);return t={floatView:r,uint32View:o,baseTable:i,shiftTable:n,mantissaTable:s,exponentTable:a,offsetTable:l}}e.s(["FromHalfFloat",0,function(e){let t=r();return t.uint32View[0]=t.mantissaTable[t.offsetTable[e>>10]+(1023&e)]+t.exponentTable[e>>10],t.floatView[0]},"MaxHalfFloat",0,65504,"ToHalfFloat",0,function(e){let t=r();t.floatView[0]=e;let o=t.uint32View[0],i=o>>23&511;return t.baseTable[i]+((8388607&o)>>t.shiftTable[i])}])},93561,e=>{"use strict";var t=e.i(8697),r=e.i(68282);class o{static Instantiate(e){if(this.RegisteredExternalClasses&&this.RegisteredExternalClasses[e])return this.RegisteredExternalClasses[e];let o=(0,r.GetClass)(e);if(o)return o;t.Logger.Warn(e+" not found, you may have missed an import.");let i=e.split("."),n="u">typeof window?window:"u">typeof globalThis?globalThis:this;for(let e=0,t=i.length;e<t;e++)n=n[i[e]];return"function"!=typeof n?null:n}}o.RegisteredExternalClasses={},e.s(["InstantiationTools",0,o])},2103,e=>{"use strict";var t=e.i(45735);e.s(["PrecisionDate",0,class{static get Now(){return(0,t.IsWindowObjectExist)()&&window.performance&&window.performance.now?window.performance.now():Date.now()}}])},64781,e=>{"use strict";let t=e=>atob(e);e.s(["Decode",0,e=>{if("u">typeof TextDecoder)return new TextDecoder().decode(e);let t="";for(let r=0;r<e.byteLength;r++)t+=String.fromCharCode(e[r]);return t},"DecodeBase64ToBinary",0,e=>"function"==typeof Uint8Array.fromBase64?Uint8Array.fromBase64(e).buffer:function(e){let r=t(e),o=r.length,i=new Uint8Array(new ArrayBuffer(o));for(let e=0;e<o;e++)i[e]=r.charCodeAt(e);return i.buffer}(e),"DecodeBase64ToString",0,t,"EncodeArrayBufferToBase64",0,e=>{let t=ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e);return"function"==typeof t.toBase64?t.toBase64():function(e){let t,r,o,i,n,s,a,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;for(;u<e.length;)t=e[u++],r=u<e.length?e[u++]:NaN,o=u<e.length?e[u++]:NaN,i=t>>2,n=(3&t)<<4|r>>4,s=(15&r)<<2|o>>6,a=63&o,isNaN(r)?s=a=64:isNaN(o)&&(a=64),c+=l.charAt(i)+l.charAt(n)+l.charAt(s)+l.charAt(a);return c}(t)}])},89435,e=>{"use strict";let t=[];function r(e,t,r){try{if(e())return t(),!0}catch(e){return r?.(e),!0}return!1}e.s(["TimingTools",0,class{static SetImmediate(e){0===t.length&&setTimeout(()=>{let e=t;for(let r of(t=[],e))r()},1),t.push(e)}},"_RetryWithInterval",0,(e,t,o,i=16,n=3e4,s=!0,a)=>{if(s&&r(e,t,o))return null;let l=setInterval(()=>{r(e,t,o)?clearInterval(l):(n-=i)<0&&(clearInterval(l),o?.(Error("Operation timed out after maximum retries. "+(a||"")),!0))},i);return()=>clearInterval(l)}])},4696,e=>{"use strict";function t(e){let t=r(e),i=o(e);return t-e>e-i?i:t}function r(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e}function o(e){return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,(e|=e>>16)-(e>>1)}e.s(["FloorPOT",0,o,"GetExponentOfTwo",0,function(e,i,n=2){let s;switch(n){case 1:s=o(e);break;case 2:s=t(e);break;default:s=r(e)}return Math.min(s,i)},"IsExponentOfTwo",0,function(e){let t=1;do t*=2;while(t<e)return t===e},"Mix",0,function(e,t,r){return e*(1-r)+t*r},"NearestPOT",0,t])},17814,87663,e=>{"use strict";var t,r=e.i(97991),o=e.i(45735),i=e.i(8697);let n=(e,t,r)=>!e||e.getClassName&&"Mesh"===e.getClassName()?null:e.getClassName&&("SubMesh"===e.getClassName()||"PhysicsBody"===e.getClassName())?e.clone(t):e.clone?e.clone():Array.isArray(e)?e.slice():r&&"object"==typeof e?{...e}:null;class s{static DeepCopy(e,t,r,o,s=!1){for(let a of function(e){let t=[];do for(let r of Object.getOwnPropertyNames(e))-1===t.indexOf(r)&&t.push(r);while(e=Object.getPrototypeOf(e))return t}(e)){if("_"===a[0]&&(!o||-1===o.indexOf(a))||a.endsWith("Observable")||r&&-1!==r.indexOf(a))continue;let l=e[a],c=typeof l;if("function"!==c)try{if("object"===c)if(l instanceof Uint8Array)t[a]=Uint8Array.from(l);else if(l instanceof Array){if(t[a]=[],l.length>0)if("object"==typeof l[0])for(let e=0;e<l.length;e++){let r=n(l[e],t,s);-1===t[a].indexOf(r)&&t[a].push(r)}else t[a]=l.slice(0)}else t[a]=n(l,t,s);else t[a]=l}catch(e){i.Logger.Warn(e.message)}}}}e.s(["DeepCopier",0,s],87663);var a=e.i(2103),l=e.i(49399),c=e.i(5369),u=e.i(71829),f=e.i(20887),d=e.i(89435),g=e.i(93561),p=e.i(70081),h=e.i(4696);class m{static get BaseUrl(){return f.FileToolsOptions.BaseUrl}static set BaseUrl(e){f.FileToolsOptions.BaseUrl=e}static get CleanUrl(){return f.FileToolsOptions.CleanUrl}static set CleanUrl(e){f.FileToolsOptions.CleanUrl=e}static IsAbsoluteUrl(e){return 0===e.indexOf("//")||!(-1===e.indexOf("://")||-1===e.indexOf(".")||-1===e.indexOf("/")||e.indexOf(":")>e.indexOf("/"))&&(!!(e.indexOf("://")<e.indexOf("."))||0===e.indexOf("data:")||0===e.indexOf("blob:"))}static set ScriptBaseUrl(e){f.FileToolsOptions.ScriptBaseUrl=e}static get ScriptBaseUrl(){return f.FileToolsOptions.ScriptBaseUrl}static set CDNBaseUrl(e){t.ScriptBaseUrl=e,t.AssetBaseUrl=e}static set ScriptPreprocessUrl(e){f.FileToolsOptions.ScriptPreprocessUrl=e}static get ScriptPreprocessUrl(){return f.FileToolsOptions.ScriptPreprocessUrl}static get DefaultRetryStrategy(){return f.FileToolsOptions.DefaultRetryStrategy}static set DefaultRetryStrategy(e){f.FileToolsOptions.DefaultRetryStrategy=e}static get CorsBehavior(){return f.FileToolsOptions.CorsBehavior}static set CorsBehavior(e){f.FileToolsOptions.CorsBehavior=e}static get UseFallbackTexture(){return u.EngineStore.UseFallbackTexture}static set UseFallbackTexture(e){u.EngineStore.UseFallbackTexture=e}static get RegisteredExternalClasses(){return g.InstantiationTools.RegisteredExternalClasses}static set RegisteredExternalClasses(e){g.InstantiationTools.RegisteredExternalClasses=e}static get fallbackTexture(){return u.EngineStore.FallbackTexture}static set fallbackTexture(e){u.EngineStore.FallbackTexture=e}static FetchToRef(e,t,r,o,i,n){let s=((Math.abs(e)*r%r|0)+(Math.abs(t)*o%o|0)*r)*4;n.r=i[s]/255,n.g=i[s+1]/255,n.b=i[s+2]/255,n.a=i[s+3]/255}static Mix(e,t,r){return 0}static Instantiate(e){return g.InstantiationTools.Instantiate(e)}static SetImmediate(e){d.TimingTools.SetImmediate(e)}static IsExponentOfTwo(e){return!0}static FloatRound(e){return Math.fround(e)}static GetFilename(e){let t=e.lastIndexOf("/");return t<0?e:e.substring(t+1)}static GetFolderPath(e,t=!1){let r=e.lastIndexOf("/");return r<0?t?e:"":e.substring(0,r+1)}static ToDegrees(e){return 180*e/Math.PI}static ToRadians(e){return e*Math.PI/180}static SmoothAngleChange(e,t,r=.9){let o=this.ToRadians(e),i=this.ToRadians(t);return this.ToDegrees(Math.atan2((1-r)*Math.sin(i)+r*Math.sin(o),(1-r)*Math.cos(i)+r*Math.cos(o)))}static MakeArray(e,t){return!0!==t&&(void 0===e||null==e)?null:Array.isArray(e)?e:[e]}static GetPointerPrefix(e){return(0,o.IsWindowObjectExist)()&&!window.PointerEvent?"mouse":"pointer"}static SetCorsBehavior(e,t){(0,f.SetCorsBehavior)(e,t)}static SetReferrerPolicyBehavior(e,t){t.referrerPolicy=e}static get PreprocessUrl(){return f.FileToolsOptions.PreprocessUrl}static set PreprocessUrl(e){f.FileToolsOptions.PreprocessUrl=e}static LoadImage(e,t,r,o,i,n){return(0,f.LoadImage)(e,t,r,o,i,n)}static LoadFile(e,t,r,o,i,n){return(0,f.LoadFile)(e,t,r,o,i,n)}static async LoadFileAsync(e,t=!0){return await new Promise((r,o)=>{(0,f.LoadFile)(e,e=>{r(e)},void 0,void 0,t,(e,t)=>{o(t)})})}static GetAssetUrl(e){if(!e)return"";if(t.AssetBaseUrl&&e.startsWith(t._DefaultAssetsUrl)){let r=t.AssetBaseUrl.endsWith("/")?t.AssetBaseUrl.slice(0,-1):t.AssetBaseUrl;return e.replace(t._DefaultAssetsUrl,r)}return e}static GetBabylonScriptURL(e,r){if(!e)return"";if(e.startsWith(t._DefaultCdnUrl)){if(t.ScriptBaseUrl){let r=t.ScriptBaseUrl.endsWith("/")?t.ScriptBaseUrl.slice(0,-1):t.ScriptBaseUrl;e=e.replace(t._DefaultCdnUrl,r)}else if(t._CdnVersion){let r=`${t._DefaultCdnUrl}/v${t._CdnVersion}`;e.startsWith(r)||(e=e.replace(t._DefaultCdnUrl,r))}}return e=t.ScriptPreprocessUrl(e),r&&!t.IsAbsoluteUrl(e)&&(e=t.GetAbsoluteUrl(e)),e}static LoadBabylonScript(e,r,o,i){e=t.GetBabylonScriptURL(e),t.LoadScript(e,r,o)}static async LoadBabylonScriptAsync(e){return e=t.GetBabylonScriptURL(e),await t.LoadScriptAsync(e)}static _LoadScriptNative(e,r,o,i,n=!1){if(_native){if(n){let e="Loading a script as an ES module is not supported in Babylon Native";o?.(e,Error(e));return}t.LoadFile(e,e=>{try{Function(e).apply(null),r&&r()}catch(e){o&&o("LoadScript Error",e)}},void 0,void 0,!1,(e,t)=>{o&&o("LoadScript Error",t)})}}static _LoadScriptWeb(e,t,r,i,n=!1){if("function"==typeof importScripts){try{importScripts(e),t&&t()}catch(t){r?.(`Unable to load script '${e}' in worker`,t)}return}if(!(0,o.IsWindowObjectExist)())return void r?.(`Cannot load script '${e}' outside of a window or a worker`);let s=document.getElementsByTagName("head")[0],a=document.createElement("script");n?(a.setAttribute("type","module"),a.innerText=e):(a.setAttribute("type","text/javascript"),a.setAttribute("src",e)),i&&(a.id=i),a.onload=()=>{t&&t()},a.onerror=t=>{r&&r(`Unable to load script '${e}'`,t)},s.appendChild(a)}static async LoadScriptAsync(e,t){return await new Promise((r,o)=>{this.LoadScript(e,()=>{r()},(e,t)=>{o(t||Error(e))},t)})}static ReadFileAsDataURL(e,t,o){let i=new FileReader,n={onCompleteObservable:new r.Observable,abort:()=>i.abort()};return i.onloadend=()=>{n.onCompleteObservable.notifyObservers(n)},i.onload=e=>{t(e.target.result)},i.onprogress=o,i.readAsDataURL(e),n}static ReadFile(e,t,r,o,i){return(0,f.ReadFile)(e,t,r,o,i)}static FileAsURL(e){let t=new Blob([e]);return window.URL.createObjectURL(t)}static Format(e,t=2){return e.toFixed(t)}static DeepCopy(e,t,r,o){s.DeepCopy(e,t,r,o)}static IsEmpty(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}static RegisterTopRootEvents(e,t){for(let r=0;r<t.length;r++){let o=t[r];e.addEventListener(o.name,o.handler,!1);try{window.parent&&window.parent.addEventListener(o.name,o.handler,!1)}catch(e){}}}static UnregisterTopRootEvents(e,t){for(let r=0;r<t.length;r++){let o=t[r];e.removeEventListener(o.name,o.handler);try{e.parent&&e.parent.removeEventListener(o.name,o.handler)}catch(e){}}}static async DumpFramebuffer(e,t,r,o,i="image/png",n,s){throw(0,l._WarnImport)("DumpTools")}static DumpData(e,t,r,o,i="image/png",n,s=!1,a=!1,c){throw(0,l._WarnImport)("DumpTools")}static async DumpDataAsync(e,t,r,o="image/png",i,n=!1,s=!1,a){throw(0,l._WarnImport)("DumpTools")}static _IsOffScreenCanvas(e){return void 0!==e.convertToBlob}static ToBlob(e,r,o="image/png",i){t._IsOffScreenCanvas(e)||e.toBlob||(e.toBlob=function(e,t,r){setTimeout(()=>{let o=atob(this.toDataURL(t,r).split(",")[1]),i=o.length,n=new Uint8Array(i);for(let e=0;e<i;e++)n[e]=o.charCodeAt(e);e(new Blob([n]))})}),t._IsOffScreenCanvas(e)?e.convertToBlob({type:o,quality:i}).then(e=>r(e)):e.toBlob(function(e){r(e)},o,i)}static DownloadBlob(e,r){if("download"in document.createElement("a")){if(!r){let e=new Date;r="screenshot_"+((e.getFullYear()+"-"+(e.getMonth()+1)).slice(2)+"-"+e.getDate()+"_"+e.getHours()+"-")+("0"+e.getMinutes()).slice(-2)+".png"}t.Download(e,r)}else if(e&&"u">typeof URL){let t=URL.createObjectURL(e),r=window.open("");if(!r)return;let o=r.document.createElement("img");o.onload=function(){URL.revokeObjectURL(t)},o.src=t,r.document.body.appendChild(o)}}static EncodeScreenshotCanvasData(e,r,o="image/png",i,n){if("string"!=typeof i&&r){if(r){if(t._IsOffScreenCanvas(e))return void e.convertToBlob({type:o,quality:n}).then(e=>{let t=new FileReader;t.readAsDataURL(e),t.onloadend=()=>{r(t.result)}});r(e.toDataURL(o,n))}}else this.ToBlob(e,function(e){e&&t.DownloadBlob(e,i),r&&r("")},o,n)}static Download(e,t){if("u"<typeof URL)return;let r=window.URL.createObjectURL(e),o=document.createElement("a");document.body.appendChild(o),o.style.display="none",o.href=r,o.download=t,o.addEventListener("click",()=>{o.parentElement&&o.parentElement.removeChild(o)}),o.click(),window.URL.revokeObjectURL(r)}static BackCompatCameraNoPreventDefault(e){return"boolean"==typeof e[0]?e[0]:"boolean"==typeof e[1]&&e[1]}static CreateScreenshot(e,t,r,o,i="image/png",n=!1,s){throw(0,l._WarnImport)("ScreenshotTools")}static async CreateScreenshotAsync(e,t,r,o="image/png",i){throw(0,l._WarnImport)("ScreenshotTools")}static CreateScreenshotUsingRenderTarget(e,t,r,o,i="image/png",n=1,s=!1,a,c=!1,u=!1,f=!0,d,g){throw(0,l._WarnImport)("ScreenshotTools")}static async CreateScreenshotUsingRenderTargetAsync(e,t,r,o="image/png",i=1,n=!1,s,a=!1,c=!1,u=!0,f,d){throw(0,l._WarnImport)("ScreenshotTools")}static RandomId(){return(0,p.RandomGUID)()}static IsBase64(e){return(0,f.IsBase64DataUrl)(e)}static DecodeBase64(e){return(0,f.DecodeBase64UrlToBinary)(e)}static get errorsCount(){return i.Logger.errorsCount}static Log(e){i.Logger.Log(e)}static Warn(e){i.Logger.Warn(e)}static Error(e){i.Logger.Error(e)}static get LogCache(){return i.Logger.LogCache}static ClearLogCache(){i.Logger.ClearLogCache()}static set LogLevels(e){i.Logger.LogLevels=e}static set PerformanceLogLevel(e){(e&t.PerformanceUserMarkLogLevel)===t.PerformanceUserMarkLogLevel?_native?.enablePerformanceLogging?(_native.enablePerformanceLogging(1),t.StartPerformanceCounter=t._StartMarkNative,t.EndPerformanceCounter=t._EndMarkNative):(t.StartPerformanceCounter=t._StartUserMark,t.EndPerformanceCounter=t._EndUserMark):(e&t.PerformanceConsoleLogLevel)===t.PerformanceConsoleLogLevel?_native?.enablePerformanceLogging?(_native.enablePerformanceLogging(2),t.StartPerformanceCounter=t._StartMarkNative,t.EndPerformanceCounter=t._EndMarkNative):(t.StartPerformanceCounter=t._StartPerformanceConsole,t.EndPerformanceCounter=t._EndPerformanceConsole):(t.StartPerformanceCounter=t._StartPerformanceCounterDisabled,t.EndPerformanceCounter=t._EndPerformanceCounterDisabled,_native?.disablePerformanceLogging?.())}static _StartPerformanceCounterDisabled(e,t){}static _EndPerformanceCounterDisabled(e,t){}static _StartUserMark(e,r=!0){if(!t._Performance){if(!(0,o.IsWindowObjectExist)())return;t._Performance=window.performance}r&&t._Performance.mark&&t._Performance.mark(e+"-Begin")}static _EndUserMark(e,r=!0){r&&t._Performance.mark&&(t._Performance.mark(e+"-End"),t._Performance.measure(e,e+"-Begin",e+"-End"))}static _StartPerformanceConsole(e,r=!0){r&&(t._StartUserMark(e,r),console.time&&console.time(e))}static _EndPerformanceConsole(e,r=!0){r&&(t._EndUserMark(e,r),console.timeEnd(e))}static _StartMarkNative(e,r=!0){if(r&&_native?.startPerformanceCounter)if(t._NativePerformanceCounterHandles.has(e))t.Warn(`Performance counter with name ${e} is already started.`);else{let r=_native.startPerformanceCounter(e);t._NativePerformanceCounterHandles.set(e,r)}}static _EndMarkNative(e,r=!0){if(r&&_native?.endPerformanceCounter){let r=t._NativePerformanceCounterHandles.get(e);r?(_native.endPerformanceCounter(r),t._NativePerformanceCounterHandles.delete(e)):t.Warn(`Performance counter with name ${e} was not started.`)}}static get Now(){return a.PrecisionDate.Now}static GetClassName(e,t=!1){let r=null;return!t&&e.getClassName?r=e.getClassName():(e instanceof Object&&(r=(t?e:Object.getPrototypeOf(e)).constructor.__bjsclassName__),r||(r=typeof e)),r}static First(e,t){for(let r of e)if(t(r))return r;return null}static getFullClassName(e,t=!1){let r=null,o=null;if(!t&&e.getClassName)r=e.getClassName();else{if(e instanceof Object){let i=t?e:Object.getPrototypeOf(e);r=i.constructor.__bjsclassName__,o=i.constructor.__bjsmoduleName__}r||(r=typeof e)}return r?(null!=o?o+".":"")+r:null}static async DelayAsync(e){await new Promise(t=>{setTimeout(()=>{t()},e)})}static IsSafari(){return!!(0,o.IsNavigatorAvailable)()&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}}t=m,m.AssetBaseUrl="",m.UseCustomRequestHeaders=!1,m.CustomRequestHeaders=c.WebRequest.CustomRequestHeaders,m.GetDOMTextContent=o.GetDOMTextContent,m._DefaultCdnUrl="https://cdn.babylonjs.com",m._CdnVersion="9.23.0",m._DefaultAssetsUrl="https://assets.babylonjs.com/core",m.LoadScript="u"<typeof _native?t._LoadScriptWeb:t._LoadScriptNative,m.GetAbsoluteUrl="object"==typeof document?e=>{let t=document.createElement("a");return t.href=e,t.href}:"function"==typeof URL&&"object"==typeof location?e=>new URL(e,location.origin).href:()=>{throw Error("Unable to get absolute URL. Override BABYLON.Tools.GetAbsoluteUrl to a custom implementation for the current context.")},m.NoneLogLevel=i.Logger.NoneLogLevel,m.MessageLogLevel=i.Logger.MessageLogLevel,m.WarningLogLevel=i.Logger.WarningLogLevel,m.ErrorLogLevel=i.Logger.ErrorLogLevel,m.AllLogLevel=i.Logger.AllLogLevel,m.IsWindowObjectExist=o.IsWindowObjectExist,m.PerformanceNoneLogLevel=0,m.PerformanceUserMarkLogLevel=1,m.PerformanceConsoleLogLevel=2,m._NativePerformanceCounterHandles=new Map,m.StartPerformanceCounter=t._StartPerformanceCounterDisabled,m.EndPerformanceCounter=t._EndPerformanceCounterDisabled;class y{constructor(e,t,r,o=0){this.iterations=e,this.index=o-1,this._done=!1,this._fn=t,this._successCallback=r}executeNext(){this._done||(this.index+1<this.iterations?(++this.index,this._fn(this)):this.breakLoop())}breakLoop(){this._done=!0,this._successCallback()}static Run(e,t,r,o=0){let i=new y(e,t,r,o);return i.executeNext(),i}static SyncAsyncForLoop(e,t,r,o,i,n=0){return y.Run(Math.ceil(e/t),o=>{i&&i()?o.breakLoop():setTimeout(()=>{for(let n=0;n<t;++n){let s=o.index*t+n;if(s>=e)break;if(r(s),i&&i()){o.breakLoop();break}}o.executeNext()},n)},o)}}let v=!1;e.s(["AsyncLoop",0,y,"RegisterTools",0,function(){v||(v=!0,m.Mix=h.Mix,m.IsExponentOfTwo=h.IsExponentOfTwo,u.EngineStore.FallbackTexture="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QBmRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAAExAAIAAAAQAAAATgAAAAAAAABgAAAAAQAAAGAAAAABcGFpbnQubmV0IDQuMC41AP/bAEMABAIDAwMCBAMDAwQEBAQFCQYFBQUFCwgIBgkNCw0NDQsMDA4QFBEODxMPDAwSGBITFRYXFxcOERkbGRYaFBYXFv/bAEMBBAQEBQUFCgYGChYPDA8WFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFv/AABEIAQABAAMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/APH6KKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FCiiigD6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++gooooA+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gUKKKKAPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76CiiigD5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BQooooA+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/voKKKKAPl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FCiiigD6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++gooooA+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gUKKKKAPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76CiiigD5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BQooooA+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/voKKKKAPl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FCiiigD6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++gooooA+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gUKKKKAPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76P//Z")},"Tools",0,m],17814)},5369,e=>{"use strict";class t{constructor(){this._xhr="u">typeof _native&&_native.XMLHttpRequest?new _native.XMLHttpRequest:new XMLHttpRequest,this._requestURL=""}static get IsCustomRequestAvailable(){return Object.keys(t.CustomRequestHeaders).length>0||t.CustomRequestModifiers.length>0}static _CleanUrl(e){return e=(e=e.replace("file:http:","http:")).replace("file:https:","https:")}static _ShouldSkipRequestModifications(e){return t.SkipRequestModificationForBabylonCDN&&(e.includes("preview.babylonjs.com")||e.includes("cdn.babylonjs.com"))}static _CollectCustomizations(e,r={}){let o={...r};if(t._ShouldSkipRequestModifications(e))return{url:e,headers:o};for(let e in t.CustomRequestHeaders){let r=t.CustomRequestHeaders[e];r&&(o[e]=r)}let i={setRequestHeader:(e,t)=>{o[e]=t}};for(let r of t.CustomRequestModifiers){if(t._ShouldSkipRequestModifications(e))break;let o=r(i,e);"string"==typeof o&&(e=o)}return{url:e,headers:o}}static async FetchAsync(e,r={}){let o=r.method??"GET";if("u">typeof fetch){let{url:i,headers:n}=t._CollectCustomizations(t._CleanUrl(e),r.headers??{});return await fetch(i,{method:o,headers:n,body:r.body??void 0})}return await new Promise((i,n)=>{let s=new t;s.responseType="arraybuffer",s.addEventListener("readystatechange",()=>{if(4===s.readyState)if(s.status>=200&&s.status<300){let e="u">typeof Headers?new Headers:void 0,t=s.getResponseHeader("Content-Type");t&&e&&e.set("Content-Type",t),"u">typeof Response?i(new Response(s.response,{status:s.status,statusText:s.statusText,headers:e})):i({ok:!0,status:s.status,statusText:s.statusText,headers:{get:e=>s.getResponseHeader(e)},arrayBuffer:async()=>await Promise.resolve(s.response)})}else n(Error(`HTTP ${s.status} loading '${s.requestURL}': ${s.statusText}`))}),s.open(o,e,r.headers),s.send(r.body??null)})}get requestURL(){return this._requestURL}get onprogress(){return this._xhr.onprogress}set onprogress(e){this._xhr.onprogress=e}get readyState(){return this._xhr.readyState}get status(){return this._xhr.status}get statusText(){return this._xhr.statusText}get response(){return this._xhr.response}get responseURL(){return this._xhr.responseURL}get responseText(){return this._xhr.responseText}get responseType(){return this._xhr.responseType}set responseType(e){this._xhr.responseType=e}get timeout(){return this._xhr.timeout}set timeout(e){this._xhr.timeout=e}addEventListener(e,t,r){this._xhr.addEventListener(e,t,r)}removeEventListener(e,t,r){this._xhr.removeEventListener(e,t,r)}abort(){this._xhr.abort()}send(e){this._xhr.send(e)}open(e,r,o){let{url:i,headers:n}=t._CollectCustomizations(r,o);for(let r in this._requestURL=t._CleanUrl(i),this._xhr.open(e,this._requestURL,!0),n)this._xhr.setRequestHeader(r,n[r])}setRequestHeader(e,t){this._xhr.setRequestHeader(e,t)}getResponseHeader(e){return this._xhr.getResponseHeader(e)}}t.CustomRequestHeaders={},t.CustomRequestModifiers=[],t.SkipRequestModificationForBabylonCDN=!0,e.s(["WebRequest",0,t])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18426,t=>{"use strict";var e=t.i(23422),i=t.i(65678),o=t.i(68282);class r extends e.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.body=this.registerDataInput("body",i.RichTypeAny),this.velocity=this.registerDataInput("velocity",i.RichTypeVector3)}_execute(t,e){let i=this.body.getValue(t);if(!i){this._reportError(t,"No physics body provided"),this.out._activateSignal(t);return}i.setLinearVelocity(this.velocity.getValue(t)),this.out._activateSignal(t)}getClassName(){return"FlowGraphSetLinearVelocityBlock"}}let l=!1;t.s(["FlowGraphSetLinearVelocityBlock",0,r,"RegisterFlowGraphSetLinearVelocityBlock",0,function(){l||(l=!0,(0,o.RegisterClass)("FlowGraphSetLinearVelocityBlock",r))}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52295,t=>{"use strict";var o=t.i(65678),e=t.i(23422),i=t.i(8697),l=t.i(68282);class a extends e.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.config=t,this.condition=this.registerDataInput("condition",o.RichTypeBoolean),this.executionFlow=this._registerSignalOutput("executionFlow"),this.completed=this._registerSignalOutput("completed"),this._unregisterSignalOutput("out")}_execute(t,o){let e=this.condition.getValue(t);this.config?.doWhile&&!e&&this.executionFlow._activateSignal(t);let l=0;for(;e;){if(this.executionFlow._activateSignal(t),++l>=a.MaxLoopCount){i.Logger.Warn("FlowGraphWhileLoopBlock: Max loop count reached. Breaking.");break}e=this.condition.getValue(t)}this.completed._activateSignal(t)}getClassName(){return"FlowGraphWhileLoopBlock"}}a.MaxLoopCount=1e3;let n=!1;t.s(["FlowGraphWhileLoopBlock",0,a,"RegisterFlowGraphWhileLoopBlock",0,function(){n||(n=!0,(0,l.RegisterClass)("FlowGraphWhileLoopBlock",a))}])}]);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94921,e=>{"use strict";var r=e.i(25044);let o="lodPixelShader",t=`precision highp float;const float GammaEncodePowerApprox=1.0/2.2;varying vec2 vUV;uniform sampler2D textureSampler;uniform float lod;uniform vec2 texSize;uniform int gamma;void main(void)
|
|
2
2
|
{ivec2 textureDimensions=textureSize(textureSampler,0);gl_FragColor=texelFetch(textureSampler,ivec2(vUV*vec2(textureDimensions)),int(lod));if (gamma==0) {gl_FragColor.rgb=pow(gl_FragColor.rgb,vec3(GammaEncodePowerApprox));}}
|
|
3
3
|
`;r.ShaderStore.ShadersStore[o]||(r.ShaderStore.ShadersStore[o]=t),e.s(["lodPixelShader",0,{name:o,shader:t}])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89479,e=>{"use strict";var t=e.i(64675),i=e.i(68282);class n extends t.FlowGraphExecutionBlock{constructor(e){super(e),this.config=e,this.executionSignals=[],this.setNumberOfOutputSignals(this.config.outputSignalCount)}_execute(e){for(let t=0;t<this.executionSignals.length;t++)this.executionSignals[t]._activateSignal(e)}setNumberOfOutputSignals(e=1){for(;this.executionSignals.length>e;){let e=this.executionSignals.pop();e&&(e.disconnectFromAll(),this._unregisterSignalOutput(e.name))}for(;this.executionSignals.length<e;)this.executionSignals.push(this._registerSignalOutput(`out_${this.executionSignals.length}`))}getClassName(){return"FlowGraphSequenceBlock"}}let s=!1;e.s(["FlowGraphSequenceBlock",0,n,"RegisterFlowGraphSequenceBlock",0,function(){s||(s=!0,(0,i.RegisterClass)("FlowGraphSequenceBlock",n))}])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87090,e=>{"use strict";var i=e.i(87083),t=e.i(65678),s=e.i(68282);class l extends i.FlowGraphEventBlock{constructor(e){super(e),this.config=e,this.body=this.registerDataInput("body",t.RichTypeAny),this.otherBody=this.registerDataOutput("otherBody",t.RichTypeAny),this.point=this.registerDataOutput("point",t.RichTypeVector3),this.normal=this.registerDataOutput("normal",t.RichTypeVector3),this.impulse=this.registerDataOutput("impulse",t.RichTypeNumber),this.distance=this.registerDataOutput("distance",t.RichTypeNumber)}_preparePendingTasks(e){let i=this.body.getValue(e);if(!i)return void this._reportError(e,"No physics body provided for collision event");i.setCollisionCallbackEnabled(!0);let t=i.getCollisionObservable().add(i=>{this._onCollision(e,i)});e._setExecutionVariable(this,"_collisionObserver",t),e._setExecutionVariable(this,"_subscribedBody",i)}_onCollision(e,i){let t=this.body.getValue(e),s=i.collider===t?i.collidedAgainst:i.collider;this.otherBody.setValue(s,e),i.point&&this.point.setValue(i.point,e),i.normal&&this.normal.setValue(i.normal,e),this.impulse.setValue(i.impulse,e),this.distance.setValue(i.distance,e),this._execute(e)}_executeEvent(e,i){return!0}_cancelPendingTasks(e){let i=e._getExecutionVariable(this,"_collisionObserver",null),t=e._getExecutionVariable(this,"_subscribedBody",null);if(i&&t){let e=t.getCollisionObservable();e.remove(i),e.hasObservers()||t.setCollisionCallbackEnabled(!1)}e._setExecutionVariable(this,"_collisionObserver",null),e._setExecutionVariable(this,"_subscribedBody",null)}getClassName(){return"FlowGraphPhysicsCollisionEventBlock"}}let o=!1;e.s(["FlowGraphPhysicsCollisionEventBlock",0,l,"RegisterFlowGraphPhysicsCollisionEventBlock",0,function(){o||(o=!0,(0,s.RegisterClass)("FlowGraphPhysicsCollisionEventBlock",l))}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,62639,e=>{"use strict";var t=e.i(65678),u=e.i(23422),i=e.i(68282);class o extends u.FlowGraphExecutionBlockWithOutSignal{constructor(e){super(e),this.count=this.registerDataInput("count",t.RichTypeNumber),this.reset=this._registerSignalInput("reset"),this.currentCount=this.registerDataOutput("currentCount",t.RichTypeNumber)}_execute(e,t){if(t===this.reset)return void e._setExecutionVariable(this,"debounceCount",0);let u=this.count.getValue(e),i=e._getExecutionVariable(this,"debounceCount",0)+1;this.currentCount.setValue(i,e),e._setExecutionVariable(this,"debounceCount",i),i>=u&&(this.out._activateSignal(e),e._setExecutionVariable(this,"debounceCount",0))}getClassName(){return"FlowGraphDebounceBlock"}}let s=!1;e.s(["FlowGraphDebounceBlock",0,o,"RegisterFlowGraphDebounceBlock",0,function(){s||(s=!0,(0,i.RegisterClass)("FlowGraphDebounceBlock",o))}])}]);
|
|
@@ -1,60 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
2
|
-
#ifdef MULTIVIEW
|
|
3
|
-
mat4 viewProjectionR;
|
|
4
|
-
#endif
|
|
5
|
-
mat4 view;mat4 projection;vec4 vEyePosition;mat4 inverseProjection;};
|
|
6
|
-
`;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["sceneUboDeclaration",0,{name:r,shader:t}])},88913,e=>{"use strict";var i=e.i(47150);let r="harmonicsFunctions",t=`#ifdef USESPHERICALFROMREFLECTIONMAP
|
|
7
|
-
#ifdef SPHERICAL_HARMONICS
|
|
8
|
-
vec3 computeEnvironmentIrradiance(vec3 normal) {return vSphericalL00
|
|
9
|
-
+ vSphericalL1_1*(normal.y)
|
|
10
|
-
+ vSphericalL10*(normal.z)
|
|
11
|
-
+ vSphericalL11*(normal.x)
|
|
12
|
-
+ vSphericalL2_2*(normal.y*normal.x)
|
|
13
|
-
+ vSphericalL2_1*(normal.y*normal.z)
|
|
14
|
-
+ vSphericalL20*((3.0*normal.z*normal.z)-1.0)
|
|
15
|
-
+ vSphericalL21*(normal.z*normal.x)
|
|
16
|
-
+ vSphericalL22*(normal.x*normal.x-(normal.y*normal.y));}
|
|
17
|
-
#else
|
|
18
|
-
vec3 computeEnvironmentIrradiance(vec3 normal) {float Nx=normal.x;float Ny=normal.y;float Nz=normal.z;vec3 C1=vSphericalZZ.rgb;vec3 Cx=vSphericalX.rgb;vec3 Cy=vSphericalY.rgb;vec3 Cz=vSphericalZ.rgb;vec3 Cxx_zz=vSphericalXX_ZZ.rgb;vec3 Cyy_zz=vSphericalYY_ZZ.rgb;vec3 Cxy=vSphericalXY.rgb;vec3 Cyz=vSphericalYZ.rgb;vec3 Czx=vSphericalZX.rgb;vec3 a1=Cyy_zz*Ny+Cy;vec3 a2=Cyz*Nz+a1;vec3 b1=Czx*Nz+Cx;vec3 b2=Cxy*Ny+b1;vec3 b3=Cxx_zz*Nx+b2;vec3 t1=Cz *Nz+C1;vec3 t2=a2 *Ny+t1;vec3 t3=b3 *Nx+t2;return t3;}
|
|
19
|
-
#endif
|
|
20
|
-
#endif
|
|
21
|
-
`;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["harmonicsFunctions",0,{name:r,shader:t}])},49161,48661,e=>{"use strict";var i=e.i(47150);let r="clipPlaneVertexDeclaration",t=`#ifdef CLIPPLANE
|
|
22
|
-
uniform vec4 vClipPlane;varying float fClipDistance;
|
|
23
|
-
#endif
|
|
24
|
-
#ifdef CLIPPLANE2
|
|
25
|
-
uniform vec4 vClipPlane2;varying float fClipDistance2;
|
|
26
|
-
#endif
|
|
27
|
-
#ifdef CLIPPLANE3
|
|
28
|
-
uniform vec4 vClipPlane3;varying float fClipDistance3;
|
|
29
|
-
#endif
|
|
30
|
-
#ifdef CLIPPLANE4
|
|
31
|
-
uniform vec4 vClipPlane4;varying float fClipDistance4;
|
|
32
|
-
#endif
|
|
33
|
-
#ifdef CLIPPLANE5
|
|
34
|
-
uniform vec4 vClipPlane5;varying float fClipDistance5;
|
|
35
|
-
#endif
|
|
36
|
-
#ifdef CLIPPLANE6
|
|
37
|
-
uniform vec4 vClipPlane6;varying float fClipDistance6;
|
|
38
|
-
#endif
|
|
39
|
-
`;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["clipPlaneVertexDeclaration",0,{name:r,shader:t}],49161);let n="clipPlaneVertex",a=`#ifdef CLIPPLANE
|
|
40
|
-
fClipDistance=dot(worldPos,vClipPlane);
|
|
41
|
-
#endif
|
|
42
|
-
#ifdef CLIPPLANE2
|
|
43
|
-
fClipDistance2=dot(worldPos,vClipPlane2);
|
|
44
|
-
#endif
|
|
45
|
-
#ifdef CLIPPLANE3
|
|
46
|
-
fClipDistance3=dot(worldPos,vClipPlane3);
|
|
47
|
-
#endif
|
|
48
|
-
#ifdef CLIPPLANE4
|
|
49
|
-
fClipDistance4=dot(worldPos,vClipPlane4);
|
|
50
|
-
#endif
|
|
51
|
-
#ifdef CLIPPLANE5
|
|
52
|
-
fClipDistance5=dot(worldPos,vClipPlane5);
|
|
53
|
-
#endif
|
|
54
|
-
#ifdef CLIPPLANE6
|
|
55
|
-
fClipDistance6=dot(worldPos,vClipPlane6);
|
|
56
|
-
#endif
|
|
57
|
-
`;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=a),e.s(["clipPlaneVertex",0,{name:n,shader:a}],48661)},36406,36178,42421,47692,51540,95178,e=>{"use strict";var i=e.i(47150);let r="bonesDeclaration",t=`#if NUM_BONE_INFLUENCERS>0
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12211,60661,88305,16450,67412,11832,e=>{"use strict";var i=e.i(25044);let r="bonesDeclaration",t=`#if NUM_BONE_INFLUENCERS>0
|
|
58
2
|
attribute vec4 matricesIndices;attribute vec4 matricesWeights;
|
|
59
3
|
#if NUM_BONE_INFLUENCERS>4
|
|
60
4
|
attribute vec4 matricesIndicesExtra;attribute vec4 matricesWeightsExtra;
|
|
@@ -83,7 +27,7 @@ return mat4(m0,m1,m2,m3);
|
|
|
83
27
|
#endif
|
|
84
28
|
#endif
|
|
85
29
|
#endif
|
|
86
|
-
`;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["bonesDeclaration",0,{name:r,shader:t}],
|
|
30
|
+
`;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["bonesDeclaration",0,{name:r,shader:t}],12211);let n="bakedVertexAnimationDeclaration",a=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
87
31
|
uniform float bakedVertexAnimationTime;
|
|
88
32
|
#if !defined(WEBGL2) && !defined(WEBGPU)
|
|
89
33
|
uniform vec2 bakedVertexAnimationTextureSizeInverted;
|
|
@@ -102,7 +46,7 @@ float offset=index*4.0;float frameUV=(frame+0.5)*bakedVertexAnimationTextureSize
|
|
|
102
46
|
#endif
|
|
103
47
|
}
|
|
104
48
|
#endif
|
|
105
|
-
`;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=a),e.s(["bakedVertexAnimationDeclaration",0,{name:n,shader:a}],
|
|
49
|
+
`;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=a),e.s(["bakedVertexAnimationDeclaration",0,{name:n,shader:a}],60661);let d="instancesDeclaration",f=`#ifdef INSTANCES
|
|
106
50
|
attribute vec4 world0;attribute vec4 world1;attribute vec4 world2;attribute vec4 world3;
|
|
107
51
|
#ifdef INSTANCESCOLOR
|
|
108
52
|
attribute vec4 instanceColor;
|
|
@@ -124,7 +68,7 @@ uniform mat4 world;
|
|
|
124
68
|
uniform mat4 previousWorld;
|
|
125
69
|
#endif
|
|
126
70
|
#endif
|
|
127
|
-
`;i.ShaderStore.IncludesShadersStore[d]||(i.ShaderStore.IncludesShadersStore[d]=f),e.s(["instancesDeclaration",0,{name:d,shader:f}],
|
|
71
|
+
`;i.ShaderStore.IncludesShadersStore[d]||(i.ShaderStore.IncludesShadersStore[d]=f),e.s(["instancesDeclaration",0,{name:d,shader:f}],88305);let o="instancesVertex",c=`#ifdef INSTANCES
|
|
128
72
|
mat4 finalWorld=mat4(world0,world1,world2,world3);
|
|
129
73
|
#if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
|
|
130
74
|
mat4 finalPreviousWorld=mat4(previousWorld0,previousWorld1,
|
|
@@ -142,7 +86,7 @@ mat4 finalWorld=world;
|
|
|
142
86
|
mat4 finalPreviousWorld=previousWorld;
|
|
143
87
|
#endif
|
|
144
88
|
#endif
|
|
145
|
-
`;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=c),e.s(["instancesVertex",0,{name:o,shader:c}],
|
|
89
|
+
`;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=c),e.s(["instancesVertex",0,{name:o,shader:c}],16450);let l="bonesVertex",s=`#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
146
90
|
#if NUM_BONE_INFLUENCERS>0
|
|
147
91
|
mat4 influence;
|
|
148
92
|
#ifdef BONETEXTURE
|
|
@@ -195,7 +139,7 @@ influence+=mBones[int(matricesIndicesExtra[3])]*matricesWeightsExtra[3];
|
|
|
195
139
|
finalWorld=finalWorld*influence;
|
|
196
140
|
#endif
|
|
197
141
|
#endif
|
|
198
|
-
`;i.ShaderStore.IncludesShadersStore[l]||(i.ShaderStore.IncludesShadersStore[l]=s),e.s(["bonesVertex",0,{name:l,shader:s}],
|
|
142
|
+
`;i.ShaderStore.IncludesShadersStore[l]||(i.ShaderStore.IncludesShadersStore[l]=s),e.s(["bonesVertex",0,{name:l,shader:s}],67412);let m="bakedVertexAnimation",v=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
199
143
|
{
|
|
200
144
|
#ifdef INSTANCES
|
|
201
145
|
#define BVASNAME bakedVertexAnimationSettingsInstanced
|
|
@@ -226,7 +170,63 @@ VATInfluence+=readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,matricesIn
|
|
|
226
170
|
#endif
|
|
227
171
|
finalWorld=finalWorld*VATInfluence;}
|
|
228
172
|
#endif
|
|
229
|
-
`;i.ShaderStore.IncludesShadersStore[m]||(i.ShaderStore.IncludesShadersStore[m]=v),e.s(["bakedVertexAnimation",0,{name:m,shader:v}],
|
|
173
|
+
`;i.ShaderStore.IncludesShadersStore[m]||(i.ShaderStore.IncludesShadersStore[m]=v),e.s(["bakedVertexAnimation",0,{name:m,shader:v}],11832)},11218,e=>{"use strict";var i=e.i(25044);let r="bumpVertex",t=`#if defined(BUMP) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC)
|
|
174
|
+
#if defined(TANGENT) && defined(NORMAL)
|
|
175
|
+
vec3 tbnNormal=normalize(normalUpdated);vec3 tbnTangent=normalize(tangentUpdated.xyz);vec3 tbnBitangent=cross(tbnNormal,tbnTangent)*tangentUpdated.w;vTBN=mat3(finalWorld)*mat3(tbnTangent,tbnBitangent,tbnNormal);
|
|
176
|
+
#endif
|
|
177
|
+
#endif
|
|
178
|
+
`;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["bumpVertex",0,{name:r,shader:t}])},86040,16642,e=>{"use strict";var i=e.i(25044);let r="clipPlaneVertexDeclaration",t=`#ifdef CLIPPLANE
|
|
179
|
+
uniform vec4 vClipPlane;varying float fClipDistance;
|
|
180
|
+
#endif
|
|
181
|
+
#ifdef CLIPPLANE2
|
|
182
|
+
uniform vec4 vClipPlane2;varying float fClipDistance2;
|
|
183
|
+
#endif
|
|
184
|
+
#ifdef CLIPPLANE3
|
|
185
|
+
uniform vec4 vClipPlane3;varying float fClipDistance3;
|
|
186
|
+
#endif
|
|
187
|
+
#ifdef CLIPPLANE4
|
|
188
|
+
uniform vec4 vClipPlane4;varying float fClipDistance4;
|
|
189
|
+
#endif
|
|
190
|
+
#ifdef CLIPPLANE5
|
|
191
|
+
uniform vec4 vClipPlane5;varying float fClipDistance5;
|
|
192
|
+
#endif
|
|
193
|
+
#ifdef CLIPPLANE6
|
|
194
|
+
uniform vec4 vClipPlane6;varying float fClipDistance6;
|
|
195
|
+
#endif
|
|
196
|
+
`;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["clipPlaneVertexDeclaration",0,{name:r,shader:t}],86040);let n="clipPlaneVertex",a=`#ifdef CLIPPLANE
|
|
197
|
+
fClipDistance=dot(worldPos,vClipPlane);
|
|
198
|
+
#endif
|
|
199
|
+
#ifdef CLIPPLANE2
|
|
200
|
+
fClipDistance2=dot(worldPos,vClipPlane2);
|
|
201
|
+
#endif
|
|
202
|
+
#ifdef CLIPPLANE3
|
|
203
|
+
fClipDistance3=dot(worldPos,vClipPlane3);
|
|
204
|
+
#endif
|
|
205
|
+
#ifdef CLIPPLANE4
|
|
206
|
+
fClipDistance4=dot(worldPos,vClipPlane4);
|
|
207
|
+
#endif
|
|
208
|
+
#ifdef CLIPPLANE5
|
|
209
|
+
fClipDistance5=dot(worldPos,vClipPlane5);
|
|
210
|
+
#endif
|
|
211
|
+
#ifdef CLIPPLANE6
|
|
212
|
+
fClipDistance6=dot(worldPos,vClipPlane6);
|
|
213
|
+
#endif
|
|
214
|
+
`;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=a),e.s(["clipPlaneVertex",0,{name:n,shader:a}],16642)},8823,e=>{"use strict";var i=e.i(25044);let r="harmonicsFunctions",t=`#ifdef USESPHERICALFROMREFLECTIONMAP
|
|
215
|
+
#ifdef SPHERICAL_HARMONICS
|
|
216
|
+
vec3 computeEnvironmentIrradiance(vec3 normal) {return vSphericalL00
|
|
217
|
+
+ vSphericalL1_1*(normal.y)
|
|
218
|
+
+ vSphericalL10*(normal.z)
|
|
219
|
+
+ vSphericalL11*(normal.x)
|
|
220
|
+
+ vSphericalL2_2*(normal.y*normal.x)
|
|
221
|
+
+ vSphericalL2_1*(normal.y*normal.z)
|
|
222
|
+
+ vSphericalL20*((3.0*normal.z*normal.z)-1.0)
|
|
223
|
+
+ vSphericalL21*(normal.z*normal.x)
|
|
224
|
+
+ vSphericalL22*(normal.x*normal.x-(normal.y*normal.y));}
|
|
225
|
+
#else
|
|
226
|
+
vec3 computeEnvironmentIrradiance(vec3 normal) {float Nx=normal.x;float Ny=normal.y;float Nz=normal.z;vec3 C1=vSphericalZZ.rgb;vec3 Cx=vSphericalX.rgb;vec3 Cy=vSphericalY.rgb;vec3 Cz=vSphericalZ.rgb;vec3 Cxx_zz=vSphericalXX_ZZ.rgb;vec3 Cyy_zz=vSphericalYY_ZZ.rgb;vec3 Cxy=vSphericalXY.rgb;vec3 Cyz=vSphericalYZ.rgb;vec3 Czx=vSphericalZX.rgb;vec3 a1=Cyy_zz*Ny+Cy;vec3 a2=Cyz*Nz+a1;vec3 b1=Czx*Nz+Cx;vec3 b2=Cxy*Ny+b1;vec3 b3=Cxx_zz*Nx+b2;vec3 t1=Cz *Nz+C1;vec3 t2=a2 *Ny+t1;vec3 t3=b3 *Nx+t2;return t3;}
|
|
227
|
+
#endif
|
|
228
|
+
#endif
|
|
229
|
+
`;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["harmonicsFunctions",0,{name:r,shader:t}])},70020,93342,35567,67186,e=>{"use strict";var i=e.i(25044);let r="morphTargetsVertexGlobalDeclaration",t=`#ifdef MORPHTARGETS
|
|
230
230
|
uniform float morphTargetInfluences[NUM_MORPH_INFLUENCERS];
|
|
231
231
|
#ifdef MORPHTARGETS_TEXTURE
|
|
232
232
|
uniform float morphTargetTextureIndices[NUM_MORPH_INFLUENCERS];uniform vec3 morphTargetTextureInfo;uniform highp sampler2DArray morphTargets;vec3 readVector3FromRawSampler(int targetIndex,float vertexIndex)
|
|
@@ -247,7 +247,7 @@ float y=floor(vertexIndex/morphTargetTextureInfo.y);float x=vertexIndex-y*morphT
|
|
|
247
247
|
}
|
|
248
248
|
#endif
|
|
249
249
|
#endif
|
|
250
|
-
`;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["morphTargetsVertexGlobalDeclaration",0,{name:r,shader:t}],
|
|
250
|
+
`;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["morphTargetsVertexGlobalDeclaration",0,{name:r,shader:t}],70020);let n="morphTargetsVertexDeclaration",a=`#ifdef MORPHTARGETS
|
|
251
251
|
#ifndef MORPHTARGETS_TEXTURE
|
|
252
252
|
#ifdef MORPHTARGETS_POSITION
|
|
253
253
|
attribute vec3 position{X};
|
|
@@ -271,12 +271,12 @@ attribute vec4 color{X};
|
|
|
271
271
|
uniform float morphTargetCount;
|
|
272
272
|
#endif
|
|
273
273
|
#endif
|
|
274
|
-
`;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=a),e.s(["morphTargetsVertexDeclaration",0,{name:n,shader:a}],
|
|
274
|
+
`;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=a),e.s(["morphTargetsVertexDeclaration",0,{name:n,shader:a}],93342);let d="morphTargetsVertexGlobal",f=`#ifdef MORPHTARGETS
|
|
275
275
|
#ifdef MORPHTARGETS_TEXTURE
|
|
276
276
|
float vertexID;
|
|
277
277
|
#endif
|
|
278
278
|
#endif
|
|
279
|
-
`;i.ShaderStore.IncludesShadersStore[d]||(i.ShaderStore.IncludesShadersStore[d]=f),e.s(["morphTargetsVertexGlobal",0,{name:d,shader:f}],
|
|
279
|
+
`;i.ShaderStore.IncludesShadersStore[d]||(i.ShaderStore.IncludesShadersStore[d]=f),e.s(["morphTargetsVertexGlobal",0,{name:d,shader:f}],35567);let o="morphTargetsVertex",c=`#ifdef MORPHTARGETS
|
|
280
280
|
#ifdef MORPHTARGETS_TEXTURE
|
|
281
281
|
#if {X}==0
|
|
282
282
|
for (int i=0; i<NUM_MORPH_INFLUENCERS; i++) {if (float(i)>=morphTargetCount) break;vertexID=float(gl_VertexID)*morphTargetTextureInfo.x;
|
|
@@ -336,13 +336,13 @@ colorUpdated+=(color{X}-color)*morphTargetInfluences[{X}];
|
|
|
336
336
|
#endif
|
|
337
337
|
#endif
|
|
338
338
|
#endif
|
|
339
|
-
`;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=c),e.s(["morphTargetsVertex",0,{name:o,shader:c}],
|
|
340
|
-
#
|
|
341
|
-
|
|
342
|
-
#endif
|
|
343
|
-
|
|
344
|
-
`;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["
|
|
345
|
-
`;i.ShaderStore.IncludesShadersStore[l]||(i.ShaderStore.IncludesShadersStore[l]=s);var m=e.i(
|
|
339
|
+
`;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=c),e.s(["morphTargetsVertex",0,{name:o,shader:c}],67186)},77074,e=>{"use strict";var i=e.i(25044);let r="sceneUboDeclaration",t=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
|
|
340
|
+
#ifdef MULTIVIEW
|
|
341
|
+
mat4 viewProjectionR;
|
|
342
|
+
#endif
|
|
343
|
+
mat4 view;mat4 projection;vec4 vEyePosition;mat4 inverseProjection;};
|
|
344
|
+
`;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["sceneUboDeclaration",0,{name:r,shader:t}])},63395,e=>{"use strict";var i=e.i(25044),r=e.i(12211),t=e.i(60661),n=e.i(70020),a=e.i(93342),d=e.i(88305);let f="geometryVertexDeclaration",o="uniform mat4 viewProjection;uniform mat4 view;";i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=o);var c=e.i(77074);let l="geometryUboDeclaration",s=`#include<sceneUboDeclaration>
|
|
345
|
+
`;i.ShaderStore.IncludesShadersStore[l]||(i.ShaderStore.IncludesShadersStore[l]=s);var m=e.i(86040),v=e.i(8823),u=e.i(35567),S=e.i(67186),E=e.i(16450),T=e.i(67412),I=e.i(11832),x=e.i(16642),p=e.i(11218);let N="geometryVertexShader",h=`precision highp float;
|
|
346
346
|
#include<bonesDeclaration>
|
|
347
347
|
#include<bakedVertexAnimationDeclaration>
|
|
348
348
|
#include<morphTargetsVertexGlobalDeclaration>
|
|
@@ -554,4 +554,4 @@ vEnvironmentIrradiance=computeEnvironmentIrradiance(reflectionVector)*vReflectio
|
|
|
554
554
|
#endif
|
|
555
555
|
#endif
|
|
556
556
|
}
|
|
557
|
-
`;for(let e of(i.ShaderStore.ShadersStore[N]||(i.ShaderStore.ShadersStore[N]=h),[r.bonesDeclaration,t.bakedVertexAnimationDeclaration,n.morphTargetsVertexGlobalDeclaration,a.morphTargetsVertexDeclaration,d.instancesDeclaration,{name:f,shader:o},c.sceneUboDeclaration,{name:l,shader:s},m.clipPlaneVertexDeclaration,v.harmonicsFunctions,u.morphTargetsVertexGlobal,S.morphTargetsVertex,E.instancesVertex,T.bonesVertex,I.bakedVertexAnimation,x.clipPlaneVertex,p.bumpVertex]))i.ShaderStore.IncludesShadersStore[e.name]||(i.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["geometryVertexShader",0,{name:N,shader:h}],
|
|
557
|
+
`;for(let e of(i.ShaderStore.ShadersStore[N]||(i.ShaderStore.ShadersStore[N]=h),[r.bonesDeclaration,t.bakedVertexAnimationDeclaration,n.morphTargetsVertexGlobalDeclaration,a.morphTargetsVertexDeclaration,d.instancesDeclaration,{name:f,shader:o},c.sceneUboDeclaration,{name:l,shader:s},m.clipPlaneVertexDeclaration,v.harmonicsFunctions,u.morphTargetsVertexGlobal,S.morphTargetsVertex,E.instancesVertex,T.bonesVertex,I.bakedVertexAnimation,x.clipPlaneVertex,p.bumpVertex]))i.ShaderStore.IncludesShadersStore[e.name]||(i.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["geometryVertexShader",0,{name:N,shader:h}],63395)}]);
|