@uptimizr/dashboard 0.3.0 → 0.3.1
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 +4 -4
- package/out/__next._full.txt +10 -10
- package/out/__next._head.txt +4 -4
- package/out/__next._index.txt +3 -3
- package/out/__next._tree.txt +1 -1
- package/out/_next/static/chunks/0-29qf-q72olu.js +1 -0
- package/out/_next/static/chunks/0-tk5ptli--r0.js +1 -0
- package/out/_next/static/chunks/006nix8mv66z_.js +1 -0
- package/out/_next/static/chunks/01aeari2x_tlz.js +1 -0
- package/out/_next/static/chunks/0296l8lzd69ns.js +1 -0
- package/out/_next/static/chunks/02tc9r3sc7fgc.js +1 -0
- package/out/_next/static/chunks/{256k1jw1m--l7.js → 03st_hmor6qju.js} +1 -1
- package/out/_next/static/chunks/{2ue1wo4ryk87z.js → 04pk6n3z75dcy.js} +1 -1
- package/out/_next/static/chunks/05l3dluxivcor.js +1 -0
- package/out/_next/static/chunks/06ljadw2-i91-.js +1 -0
- package/out/_next/static/chunks/{2ycvtdd68gub7.js → 08bm3ye5govev.js} +1 -1
- package/out/_next/static/chunks/{32ahba5ezp467.js → 08rk1dp1wb-gm.js} +38 -38
- package/out/_next/static/chunks/091ll-lp6spu3.js +1 -0
- package/out/_next/static/chunks/09p5fltt7o3to.js +1 -0
- package/out/_next/static/chunks/{3mbnfpufs2-7e.js → 0_tqu60oxaj7q.js} +1 -1
- package/out/_next/static/chunks/{3riekaxl3uxfb.js → 0_ux41xcoea3u.js} +40 -40
- package/out/_next/static/chunks/0b7-mrrg7ryj2.js +1 -0
- package/out/_next/static/chunks/{29tfeb6amdkjb.js → 0c2k-gvwph4qs.js} +1 -1
- package/out/_next/static/chunks/0e7xuupmrw4-e.js +1 -0
- package/out/_next/static/chunks/0f_nv15a8q415.js +1 -0
- package/out/_next/static/chunks/0fxfsshoxnnh6.js +4 -0
- package/out/_next/static/chunks/0g6u34xkzrpjn.js +1 -0
- package/out/_next/static/chunks/0g7p8zp2kxve5.js +1 -0
- package/out/_next/static/chunks/0gblbgw7w7r9w.js +1 -0
- package/out/_next/static/chunks/0gwa154w_0wuh.js +1 -0
- package/out/_next/static/chunks/0h-ohf4gntwtj.js +1 -0
- package/out/_next/static/chunks/0h1o0cr3327tt.js +1 -0
- package/out/_next/static/chunks/0i9oqg-xbq-a9.js +1 -0
- package/out/_next/static/chunks/0ioyy42h35hnd.js +1 -0
- package/out/_next/static/chunks/{242xhzxxetctz.js → 0jf3n5n5yrr4o.js} +1 -1
- package/out/_next/static/chunks/{3idaz_s77e-j_.js → 0jxklh_ayjd4b.js} +12 -12
- package/out/_next/static/chunks/{07eeopuufsqp-.js → 0k79ryqehst0b.js} +11 -11
- package/out/_next/static/chunks/{3be6s4_kn9q-o.js → 0kcbdjbdxu_wa.js} +1 -1
- package/out/_next/static/chunks/0kr-bd6fuqc2s.js +1 -0
- package/out/_next/static/chunks/0l3wwyl93sqh9.js +1 -0
- package/out/_next/static/chunks/{3l1dr_qm_x5kp.js → 0m0n7kjzscx0y.js} +1 -1
- package/out/_next/static/chunks/0m3yjobjg36ce.js +1 -0
- package/out/_next/static/chunks/{1a9l89j7e6mqu.js → 0mk8tangq9equ.js} +1 -1
- package/out/_next/static/chunks/0mqi0xn_c010j.js +1 -0
- package/out/_next/static/chunks/0msckddycfy76.js +1 -0
- package/out/_next/static/chunks/0ngai1_zxwsk8.js +1 -0
- package/out/_next/static/chunks/0ngiuj5k-or6g.js +1 -0
- package/out/_next/static/chunks/0nx_t8iq-324h.js +1 -0
- package/out/_next/static/chunks/0oap0o8a8a_cl.js +1 -0
- package/out/_next/static/chunks/{3tm-pqpmq_ppw.js → 0ostjlqtwkhqr.js} +1 -1
- package/out/_next/static/chunks/{1uu-rt_8p1edp.js → 0ptp4ne7j6yg6.js} +11 -11
- package/out/_next/static/chunks/0rruvj1cyflrh.js +1 -0
- package/out/_next/static/chunks/{0o_mp98xzqfyf.js → 0tl8j9f8lt0yf.js} +1 -1
- package/out/_next/static/chunks/{0sqys6o2pbe1q.js → 0ufakw529sr9d.js} +38 -38
- package/out/_next/static/chunks/{3ne77mjdz2y7o.js → 0vddljjnmozzx.js} +1 -1
- package/out/_next/static/chunks/{0dm32-jq30tg8.js → 0w0sx062qmcsh.js} +1 -1
- package/out/_next/static/chunks/{0rys92_73hdb0.js → 0x4-zyy8pzmlq.js} +1 -1
- package/out/_next/static/chunks/0x6i6e6863tir.js +1 -0
- package/out/_next/static/chunks/{3k9d4ylc3li2t.js → 0zcdc17ie6lmh.js} +10 -10
- package/out/_next/static/chunks/{44nxswtahaq4w.js → 0zo4x1j8ug-kb.js} +5 -5
- package/out/_next/static/chunks/{0jmn7u31w95ly.js → 0zwkmsojeuekb.js} +2 -2
- package/out/_next/static/chunks/{3m6nmp2dca6un.js → 1--aypw9o8yng.js} +37 -37
- package/out/_next/static/chunks/1--kelnig7pxx.js +1 -0
- package/out/_next/static/chunks/1-ud6hztxiazp.js +1 -0
- package/out/_next/static/chunks/10v4rskkrjgd_.js +1 -0
- package/out/_next/static/chunks/117ys3lltfmcu.js +1 -0
- package/out/_next/static/chunks/14klj_i6-l-10.js +1 -0
- package/out/_next/static/chunks/159u-hx80yfaw.js +1 -0
- package/out/_next/static/chunks/{3gimb3z_mteou.js → 168r9r65o9jnc.js} +1 -1
- package/out/_next/static/chunks/{0w8_1yjvol1f0.js → 16d4a4iopj2if.js} +5 -5
- package/out/_next/static/chunks/{2z_jn9ud28fk7.js → 17d1isrw8gtnb.js} +1 -1
- package/out/_next/static/chunks/17dabmbnkkplu.js +1 -0
- package/out/_next/static/chunks/17dmbt396_tyq.js +1 -0
- package/out/_next/static/chunks/17ev44x54_jrd.js +1 -0
- package/out/_next/static/chunks/17svumd4o0qnc.js +1 -0
- package/out/_next/static/chunks/17v12p4sfraa0.js +1 -0
- package/out/_next/static/chunks/18avgwx9nlxp9.js +1 -0
- package/out/_next/static/chunks/{0tw4dyl-cp-hd.js → 18k-0jn63_5ie.js} +1 -1
- package/out/_next/static/chunks/18r387bj9iv0j.js +1 -0
- package/out/_next/static/chunks/18ss4ls60s31e.js +1 -0
- package/out/_next/static/chunks/1a7cup181rjod.js +1 -0
- package/out/_next/static/chunks/1ajmblsp0wj0_.js +1 -0
- package/out/_next/static/chunks/{1dsy2ngmfflis.js → 1b2tkk7e_2o0k.js} +2 -2
- package/out/_next/static/chunks/{1ltux4lwz7muf.js → 1bv97vf67p_ri.js} +33 -33
- package/out/_next/static/chunks/1e1zozntzsx42.js +1 -0
- package/out/_next/static/chunks/1ek5rtpo6rxev.js +1 -0
- package/out/_next/static/chunks/1evp209qbr4cr.js +5 -0
- package/out/_next/static/chunks/1f1vq3goue1w4.js +1 -0
- package/out/_next/static/chunks/{296w2ke-v5tbm.js → 1f92k-xa0pl-3.js} +1 -1
- package/out/_next/static/chunks/1fa265388524p.js +1 -0
- package/out/_next/static/chunks/{1_qzlkuxukhpq.js → 1fvlbwp6r93wo.js} +22 -22
- package/out/_next/static/chunks/1g3z43o3h-024.js +31 -0
- package/out/_next/static/chunks/1g_27texazqcj.js +1 -0
- package/out/_next/static/chunks/1iaxzjly2pap1.js +1 -0
- package/out/_next/static/chunks/{0c83pe1mpx456.js → 1j--a56ji33_x.js} +1 -1
- package/out/_next/static/chunks/{112hws17nz665.js → 1kl5xxohpr6-4.js} +1 -1
- package/out/_next/static/chunks/1kmsg9ef5djl3.js +1 -0
- package/out/_next/static/chunks/1kq86iv41cet4.js +1 -0
- package/out/_next/static/chunks/1l12hkz1g7uhf.js +1 -0
- package/out/_next/static/chunks/{3figbil1t4ssj.js → 1ll0ta8a2qx1p.js} +16 -16
- package/out/_next/static/chunks/1my2rhysaxjw4.js +3 -0
- package/out/_next/static/chunks/{1ynju1jqfrcv0.js → 1oara6fkfvgs3.js} +1 -1
- package/out/_next/static/chunks/1par9m038tiov.js +1 -0
- package/out/_next/static/chunks/1rcfy_gzean3n.js +1 -0
- package/out/_next/static/chunks/{35h5n42wxwgzk.js → 1rne-b-ktit5c.js} +2 -2
- package/out/_next/static/chunks/1t60cososq7b0.js +1 -0
- package/out/_next/static/chunks/1tdg_eolxlcdl.js +1 -0
- package/out/_next/static/chunks/1vkww9l6lgqag.js +1 -0
- package/out/_next/static/chunks/1vpcaaf-0dn7q.js +1 -0
- package/out/_next/static/chunks/1vzmzrjhlm1q5.js +1 -0
- package/out/_next/static/chunks/1w9xu1qa9-wmv.js +1 -0
- package/out/_next/static/chunks/1wyr4at61q29n.js +1 -0
- package/out/_next/static/chunks/{3_mu-4rdjajna.js → 1y12bjsbq18_t.js} +34 -34
- package/out/_next/static/chunks/1y20bv6vl4ylk.js +1 -0
- package/out/_next/static/chunks/{0tnlbw78tgaxp.js → 1zcrrq1fx8g2y.js} +2 -2
- package/out/_next/static/chunks/229mkx-mtfcgf.js +1 -0
- package/out/_next/static/chunks/{3yfrsm8lfi6ls.js → 22qzld31fbhbv.js} +1 -1
- package/out/_next/static/chunks/245h82k-g1nxr.js +1 -0
- package/out/_next/static/chunks/24cqjhy669845.js +1 -0
- package/out/_next/static/chunks/25ctnyh7njp-d.js +4 -0
- package/out/_next/static/chunks/2716si10ouwu-.js +1 -0
- package/out/_next/static/chunks/286ggpetqnwyo.js +3 -0
- package/out/_next/static/chunks/28f1onw3nywbz.js +1 -0
- package/out/_next/static/chunks/28ycc-1519hl2.js +1 -0
- package/out/_next/static/chunks/{17xd8hnazzr0g.js → 29v8falcmjvev.js} +34 -33
- package/out/_next/static/chunks/{0o6ayai0s01js.js → 2_7dp91937mqi.js} +1 -1
- package/out/_next/static/chunks/2ab-99frxpah-.js +1 -0
- package/out/_next/static/chunks/2apt1vh-7rl2l.js +1 -0
- package/out/_next/static/chunks/2bn9u9r0rfhvc.js +1 -0
- package/out/_next/static/chunks/{45bwefvdpztfs.js → 2btqzk0tj0gz6.js} +1 -1
- package/out/_next/static/chunks/2cvvxifoedn6j.js +1 -0
- package/out/_next/static/chunks/2dhv35o59yzao.js +1 -0
- package/out/_next/static/chunks/{17q0c2h5ui10r.js → 2dolerz81xb52.js} +1 -1
- package/out/_next/static/chunks/{2xwy0-qfho1iz.js → 2dqg85hsevk3c.js} +2 -2
- package/out/_next/static/chunks/{41wt50z9tx9cx.js → 2enlv4yy0t-9j.js} +12 -12
- package/out/_next/static/chunks/2ey30qeaob985.js +1 -0
- package/out/_next/static/chunks/2f0r-df7tb3pu.js +1 -0
- package/out/_next/static/chunks/2gh4z57fem0_v.js +1 -0
- package/out/_next/static/chunks/2gtebfttq1v0o.js +1 -0
- package/out/_next/static/chunks/{1ua15kzid0_8p.js → 2h051-1hu4co_.js} +9 -9
- package/out/_next/static/chunks/2h1uw3cluvmmo.js +1 -0
- package/out/_next/static/chunks/2ib62lnqqaf4p.js +1 -0
- package/out/_next/static/chunks/2j-sax2xfdv7l.js +1 -0
- package/out/_next/static/chunks/{3z84au-mitjjw.js → 2k4s5rt7-l8jr.js} +1 -1
- package/out/_next/static/chunks/2kje_jvmwsvwo.js +1 -0
- package/out/_next/static/chunks/{2cbmf9m7lqv6k.js → 2kn_dqzbyabtn.js} +1 -1
- package/out/_next/static/chunks/2l_oqx9idxcs8.js +1 -0
- package/out/_next/static/chunks/{42k2-4_2hrg6u.js → 2mleh3pbge181.js} +1 -1
- package/out/_next/static/chunks/{31u5lbu1vxznh.js → 2npk7tr63h7rl.js} +1 -1
- package/out/_next/static/chunks/2op88btas-hl8.js +1 -0
- package/out/_next/static/chunks/{1gs-5722l4u59.js → 2p8dbh81chhon.js} +1 -1
- package/out/_next/static/chunks/{2yph6f7khgqii.js → 2reukv9c7cq_9.js} +1 -1
- package/out/_next/static/chunks/{14ggsmqwej_tt.js → 2rjc8yn50ducj.js} +34 -34
- package/out/_next/static/chunks/2s0dwzg7kq36n.js +1 -0
- package/out/_next/static/chunks/2vaoftqgc44cg.js +1 -0
- package/out/_next/static/chunks/{3_gku1pwluoo0.js → 2vmybybb3dvia.js} +1 -1
- package/out/_next/static/chunks/2w7yf7ouyrlkb.js +1 -0
- package/out/_next/static/chunks/{3218lp8l0a5g_.js → 2y75diyxqlhzl.js} +1 -1
- package/out/_next/static/chunks/{0fh-9h9ylxskr.js → 2yr9wt421xdjr.js} +17 -17
- package/out/_next/static/chunks/{0otsec99kdkt7.js → 2yzui3v-besdu.js} +4 -4
- package/out/_next/static/chunks/{3wi9gzq2mtr_q.js → 2z9ot-w1x60fv.js} +1 -1
- package/out/_next/static/chunks/2zljunurdji0q.js +1 -0
- package/out/_next/static/chunks/{38x3c1ra5slhe.js → 3043pprgv9ors.js} +23 -23
- package/out/_next/static/chunks/31nbg0n1q43p2.js +1 -0
- package/out/_next/static/chunks/340pg0qkv5tqq.js +1 -0
- package/out/_next/static/chunks/{37epa8fz59vba.js → 348hdbpkkcq_2.js} +22 -21
- package/out/_next/static/chunks/34gp3hvr3j6um.js +1 -0
- package/out/_next/static/chunks/38ea9kqlbxt86.js +1 -0
- package/out/_next/static/chunks/38g9jpxjoxn2x.js +1 -0
- package/out/_next/static/chunks/390fogn9oz13i.js +1 -0
- package/out/_next/static/chunks/{3w9go565cjhq3.js → 39lxb7c--3_2u.js} +30 -30
- package/out/_next/static/chunks/{2bjlls8-qe05r.js → 3_bzxvqtk1t53.js} +12 -12
- package/out/_next/static/chunks/3ajhvedcs_lzb.js +1 -0
- package/out/_next/static/chunks/3bsvp8qhjqdu0.js +1 -0
- package/out/_next/static/chunks/{023axeoslq39i.js → 3d0ejsnhbzi-j.js} +1 -1
- package/out/_next/static/chunks/3d5yb9ybkz7hx.js +1 -0
- package/out/_next/static/chunks/{0echnagbkyx79.js → 3efuvh_35yhes.js} +39 -39
- package/out/_next/static/chunks/3fx3sriw1w3sa.js +1 -0
- package/out/_next/static/chunks/{2qq3uzsbiicw3.js → 3fz7tc-4j13uv.js} +21 -21
- package/out/_next/static/chunks/3g4e2txsrb2p2.js +1 -0
- package/out/_next/static/chunks/{1m_buecgcq67j.js → 3g5ae-38cepwm.js} +199 -199
- package/out/_next/static/chunks/3g_h_00xs9u59.js +1 -0
- package/out/_next/static/chunks/3gi0f1kg72xsf.js +1 -0
- package/out/_next/static/chunks/{38fhw7fatsyvd.js → 3he9bxsc67ivq.js} +1 -1
- package/out/_next/static/chunks/3hr-mlwi78nov.js +1 -0
- package/out/_next/static/chunks/3kr1polwvt6o_.js +1 -0
- package/out/_next/static/chunks/{0j__xaq_8_di1.js → 3mwoauxszd3mn.js} +1 -1
- package/out/_next/static/chunks/3ovd8o_usay7j.js +1 -0
- package/out/_next/static/chunks/3pdpaqzwhhijn.js +1 -0
- package/out/_next/static/chunks/3pyggl13glbdc.js +1 -0
- package/out/_next/static/chunks/{0927l-ygd5c8d.js → 3qw6q7d74g5wp.js} +1 -1
- package/out/_next/static/chunks/3rl45k759wfi1.js +1 -0
- package/out/_next/static/chunks/3s2d9ymcd0l4e.js +1 -0
- package/out/_next/static/chunks/{0flc7nppbmsl1.js → 3sbm1ak54_2ep.js} +1 -1
- package/out/_next/static/chunks/3sg4zff4-h3t1.js +1 -0
- package/out/_next/static/chunks/3urd7r018nel4.js +1 -0
- package/out/_next/static/chunks/3v0td-ziuai2i.js +1 -0
- package/out/_next/static/chunks/3vaho-xrtuchd.js +2 -0
- package/out/_next/static/chunks/3vxkkhs0vi_xa.js +1 -0
- package/out/_next/static/chunks/{1g7emwu85bifo.js → 3w1a2o8nevap8.js} +18 -18
- package/out/_next/static/chunks/3wqs57qehored.js +1 -0
- package/out/_next/static/chunks/3x6wpv_z5m6rz.js +1 -0
- package/out/_next/static/chunks/{1qg_etglhvp9h.js → 3y9c26fv1poq_.js} +199 -199
- package/out/_next/static/chunks/{0ql-s-tsmel_u.js → 404f_93w2e8ty.js} +1 -1
- package/out/_next/static/chunks/40acif2eh_unv.js +1 -0
- package/out/_next/static/chunks/{1hatz-jlztrn0.js → 4227p7752rnny.js} +1 -1
- package/out/_next/static/chunks/42oyfkhdvb-u3.js +1 -0
- package/out/_next/static/chunks/44gsjajjdhf51.js +1 -0
- package/out/_next/static/chunks/{turbopack-19105pdhzxp1x.js → turbopack-16ab30_1p4vhq.js} +1 -1
- package/out/_not-found/__next._full.txt +8 -8
- package/out/_not-found/__next._head.txt +4 -4
- package/out/_not-found/__next._index.txt +3 -3
- package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/out/_not-found/__next._not-found.txt +3 -3
- package/out/_not-found/__next._tree.txt +1 -1
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +8 -8
- package/out/index.html +1 -1
- package/out/index.txt +10 -10
- package/package.json +8 -8
- package/out/_next/static/chunks/002cjeoit6-up.js +0 -1
- package/out/_next/static/chunks/02n1uiltexy3w.js +0 -1
- package/out/_next/static/chunks/03ab2khhe8-x5.js +0 -1
- package/out/_next/static/chunks/04_yytpc2paxy.js +0 -1
- package/out/_next/static/chunks/06qot1qvlsqaz.js +0 -1
- package/out/_next/static/chunks/08a5xek662n8n.js +0 -1
- package/out/_next/static/chunks/08wuc9--s8zn_.js +0 -1
- package/out/_next/static/chunks/09510356f0lad.js +0 -1
- package/out/_next/static/chunks/0_eu72k69lxj7.js +0 -1
- package/out/_next/static/chunks/0beajlqy8p8b5.js +0 -1
- package/out/_next/static/chunks/0dn0yx0rn6mpf.js +0 -1
- package/out/_next/static/chunks/0eh1ml86u8dh7.js +0 -1
- package/out/_next/static/chunks/0fzmc1up21g1i.js +0 -1
- package/out/_next/static/chunks/0grlb9lo8e502.js +0 -1
- package/out/_next/static/chunks/0h22pg-0xrxnm.js +0 -1
- package/out/_next/static/chunks/0j6p1pmc14t96.js +0 -1
- package/out/_next/static/chunks/0j_6dx-sttgsy.js +0 -1
- package/out/_next/static/chunks/0kfd-cvj5fvtz.js +0 -1
- package/out/_next/static/chunks/0r47gs_e93cka.js +0 -1
- package/out/_next/static/chunks/0titqrn1qmcsv.js +0 -1
- package/out/_next/static/chunks/0tl_moiyi2txt.js +0 -1
- package/out/_next/static/chunks/0v82oqyoy9zol.js +0 -1
- package/out/_next/static/chunks/0vbce-8omgurc.js +0 -1
- package/out/_next/static/chunks/0vfsg5byzep_0.js +0 -1
- package/out/_next/static/chunks/0xh144a5fz58h.js +0 -1
- package/out/_next/static/chunks/0xjltg_pph0c8.js +0 -1
- package/out/_next/static/chunks/0yeqgh0dnas8d.js +0 -1
- package/out/_next/static/chunks/101-7e_7up7rk.js +0 -1
- package/out/_next/static/chunks/128e51hj_04r0.js +0 -1
- package/out/_next/static/chunks/12kv810lohbsx.js +0 -5
- package/out/_next/static/chunks/14bws-suyy5zu.js +0 -1
- package/out/_next/static/chunks/15s7425ffrec9.js +0 -3
- package/out/_next/static/chunks/17genz6pkmty_.js +0 -1
- package/out/_next/static/chunks/18dczy9ylt2s_.js +0 -1
- package/out/_next/static/chunks/18xs_kvsaolb0.js +0 -1
- package/out/_next/static/chunks/19016f8-ry0z6.js +0 -1
- package/out/_next/static/chunks/1_6oejyxj39li.js +0 -1
- package/out/_next/static/chunks/1_aon8nz9p1fr.js +0 -1
- package/out/_next/static/chunks/1akaj5rhgitn3.js +0 -1
- package/out/_next/static/chunks/1bvl1ws7b_3gn.js +0 -1
- package/out/_next/static/chunks/1cdbk6kxyr1c9.js +0 -1
- package/out/_next/static/chunks/1fbjkk55uu4_g.js +0 -1
- package/out/_next/static/chunks/1furcfsgrw_3g.js +0 -1
- package/out/_next/static/chunks/1g0-f1g3gn_rs.js +0 -1
- package/out/_next/static/chunks/1gt4kh0_xmigy.js +0 -1
- package/out/_next/static/chunks/1h8xzuuhhglu9.js +0 -1
- package/out/_next/static/chunks/1iioifo7i0t0_.js +0 -1
- package/out/_next/static/chunks/1iiz7jqgj20z0.js +0 -1
- package/out/_next/static/chunks/1kujmd5n0j9nk.js +0 -1
- package/out/_next/static/chunks/1n9sy0yt5d2vq.js +0 -1
- package/out/_next/static/chunks/1nj82er7msdto.js +0 -2
- package/out/_next/static/chunks/1p1gz6dseck--.js +0 -1
- package/out/_next/static/chunks/1p1xtsfwvpuqo.js +0 -1
- package/out/_next/static/chunks/1p8f6okk2ewbz.js +0 -1
- package/out/_next/static/chunks/1pdep2_c530sg.js +0 -1
- package/out/_next/static/chunks/1th_t5ujeqlkf.js +0 -1
- package/out/_next/static/chunks/1thr-mdzbu96v.js +0 -1
- package/out/_next/static/chunks/1tta1a064979p.js +0 -1
- package/out/_next/static/chunks/1u_riwm0nfww7.js +0 -1
- package/out/_next/static/chunks/1uu93wuxigx4k.js +0 -1
- package/out/_next/static/chunks/1zfojlgb15okk.js +0 -1
- package/out/_next/static/chunks/1zj8x5wbgnzz-.js +0 -1
- package/out/_next/static/chunks/1zl6t15gh34nn.js +0 -1
- package/out/_next/static/chunks/2-qo2o1_fmpy-.js +0 -3
- package/out/_next/static/chunks/223vrr_4sfhsj.js +0 -1
- package/out/_next/static/chunks/22cr2b04btguf.js +0 -1
- package/out/_next/static/chunks/24essz5mmvx-6.js +0 -1
- package/out/_next/static/chunks/259obyrpxcv6r.js +0 -1
- package/out/_next/static/chunks/26v9yqicofqba.js +0 -1
- package/out/_next/static/chunks/2712627rfsmwn.js +0 -1
- package/out/_next/static/chunks/290d93hmm_e8b.js +0 -1
- package/out/_next/static/chunks/2_2fk7iddrs43.js +0 -1
- package/out/_next/static/chunks/2ckd7f1wbfod-.js +0 -1
- package/out/_next/static/chunks/2d6hru4qo23tt.js +0 -1
- package/out/_next/static/chunks/2ejvntxtvf5o9.js +0 -1
- package/out/_next/static/chunks/2f7_3tzf7xhps.js +0 -1
- package/out/_next/static/chunks/2gxd_o1g89_bv.js +0 -1
- package/out/_next/static/chunks/2hd2txb4-m9k1.js +0 -1
- package/out/_next/static/chunks/2hpxou_cnp4f_.js +0 -1
- package/out/_next/static/chunks/2izioctrfc0s5.js +0 -1
- package/out/_next/static/chunks/2jhnk4h4n0udv.js +0 -1
- package/out/_next/static/chunks/2jpkhkk9zi8-f.js +0 -1
- package/out/_next/static/chunks/2kpet_l1kq2sx.js +0 -1
- package/out/_next/static/chunks/2nck5w4c7leb7.js +0 -1
- package/out/_next/static/chunks/2qqqpu0ahfdda.js +0 -1
- package/out/_next/static/chunks/2r3ct6se2qn8z.js +0 -1
- package/out/_next/static/chunks/2u-f7mmxvk8wj.js +0 -1
- package/out/_next/static/chunks/2uk-vwlxe9-xr.js +0 -1
- package/out/_next/static/chunks/2ur5-lxdvv1jm.js +0 -1
- package/out/_next/static/chunks/2veqsohwfhfqc.js +0 -1
- package/out/_next/static/chunks/2vqlv9wnewhu9.js +0 -1
- package/out/_next/static/chunks/2wzshintp5lf8.js +0 -1
- package/out/_next/static/chunks/2x-00glogc485.js +0 -1
- package/out/_next/static/chunks/2yfxy0f5fqs4o.js +0 -1
- package/out/_next/static/chunks/2z88mt3ixktu3.js +0 -1
- package/out/_next/static/chunks/3-eswqjobiqk1.js +0 -1
- package/out/_next/static/chunks/30-tbi7pys6fp.js +0 -4
- package/out/_next/static/chunks/30c-nsedy_ce0.js +0 -1
- package/out/_next/static/chunks/337hn35kts7ud.js +0 -1
- package/out/_next/static/chunks/33dgpebv-tf73.js +0 -1
- package/out/_next/static/chunks/36jkdhq6kb-cf.js +0 -1
- package/out/_next/static/chunks/3833xfnz0a-ub.js +0 -1
- package/out/_next/static/chunks/38awrh_qxn22k.js +0 -1
- package/out/_next/static/chunks/39idqlqlcp5b9.js +0 -1
- package/out/_next/static/chunks/3coacc4-g-g5c.js +0 -1
- package/out/_next/static/chunks/3e00fzdfkclzq.js +0 -1
- package/out/_next/static/chunks/3e8fmlq0k5wkg.js +0 -1
- package/out/_next/static/chunks/3e9tzyrt4_98z.js +0 -1
- package/out/_next/static/chunks/3edelqkq92pil.js +0 -1
- package/out/_next/static/chunks/3j-4wuhs5weba.js +0 -1
- package/out/_next/static/chunks/3jjfnwvybayy7.js +0 -1
- package/out/_next/static/chunks/3jwm5dfk_78gc.js +0 -1
- package/out/_next/static/chunks/3l3_0ack3gy4k.js +0 -1
- package/out/_next/static/chunks/3lwhs5ja7tun3.js +0 -1
- package/out/_next/static/chunks/3mcd08gmt038z.js +0 -1
- package/out/_next/static/chunks/3mt5th7b1i_u9.js +0 -1
- package/out/_next/static/chunks/3puhrqtujktyv.js +0 -1
- package/out/_next/static/chunks/3rdifucupcgkg.js +0 -1
- package/out/_next/static/chunks/3sdoskq_buttj.js +0 -1
- package/out/_next/static/chunks/3sjq_xoi4rbyg.js +0 -31
- package/out/_next/static/chunks/3tg-ma9tv9xu4.js +0 -1
- package/out/_next/static/chunks/3xagd_2_9zft2.js +0 -1
- package/out/_next/static/chunks/3xsq_anpad-fb.js +0 -1
- package/out/_next/static/chunks/3ycv2qq7vpbua.js +0 -1
- package/out/_next/static/chunks/4030dhur2h70-.js +0 -1
- package/out/_next/static/chunks/40ffffml4h_3r.js +0 -4
- package/out/_next/static/chunks/431slrqh0wa0g.js +0 -1
- package/out/_next/static/chunks/43s_lbd1i2krj.js +0 -1
- /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → -UlF345C3V4TG3ZtvR-5_}/_buildManifest.js +0 -0
- /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → -UlF345C3V4TG3ZtvR-5_}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → -UlF345C3V4TG3ZtvR-5_}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86985,t=>{"use strict";class r{static SetMatrixPrecision(t){if(r.MatrixTrackPrecisionChange=!1,t&&!r.MatrixUse64Bits&&r.MatrixTrackedMatrices)for(let t=0;t<r.MatrixTrackedMatrices.length;++t){let e=r.MatrixTrackedMatrices[t],i=e._m;e._m=Array(16);for(let t=0;t<16;++t)e._m[t]=i[t]}r.MatrixUse64Bits=t,r.MatrixCurrentType=r.MatrixUse64Bits?Array:Float32Array,r.MatrixTrackedMatrices=null}}r.MatrixUse64Bits=!1,r.MatrixTrackPrecisionChange=!0,r.MatrixCurrentType=Float32Array,r.MatrixTrackedMatrices=[],t.s(["PerformanceConfigurator",0,r])},46703,t=>{"use strict";t.s(["Clamp",0,function(t,r=0,e=1){return Math.min(e,Math.max(r,t))},"Hermite",0,function(t,r,e,i,s){let n=s*s,a=s*n;return t*(2*a-3*n+1)+e*(-2*a+3*n)+r*(a-2*n+s)+i*(a-n)},"HighestCommonFactor",0,function t(r,e){let i=r%e;return 0===i?e:t(e,i)},"ILog2",0,function(t){if(Math.log2)return Math.floor(Math.log2(t));if(t<0)return NaN;if(0===t)return-1/0;let r=0;if(t<1){for(;t<1;)r++,t*=2;r=-r}else if(t>1)for(;t>1;)r++,t=Math.floor(t/2);return r},"Lerp",0,function(t,r,e){return t+(r-t)*e},"NormalizeRadians",0,function(t){return t-2*Math.PI*Math.floor((t+Math.PI)/(2*Math.PI))},"RandomRange",0,function(t,r){return t===r?t:Math.random()*(r-t)+t},"ToHex",0,function(t){let r=t.toString(16);return t<=15?("0"+r).toUpperCase():r.toUpperCase()},"WithinEpsilon",0,function(t,r,e=1401298e-51){return Math.abs(t-r)<=e}])},81623,75405,99267,t=>{"use strict";var r,e,i;let s={},n={};function a(t,r,e=!1){let i=function(){if(e&&1){let e=`${t}.${r}`;n[e]||(n[e]=!0,console.warn(`[Babylon.js] ${e}() requires a side-effect import. See: https://doc.babylonjs.com/setup/treeshaking`))}};return i.__isSideEffectStub=!0,i}t.s(["_IsSideEffectImplemented",0,function(t){return!!t&&!t.__isSideEffectStub},"_MissingSideEffect",0,a,"_MissingSideEffectProperty",0,function(t,r){return{get(){},set(t){Object.defineProperty(this,r,{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0}},"_WarnImport",0,function(t,r=!1){if(!r||!s[t])return s[t]=!0,`${t} needs to be imported before as it contains a side-effect required by your code.`}],75405);let h="u">typeof WeakRef;class o{constructor(t,r=!1,e,i){this.initialize(t,r,e,i)}initialize(t,r=!1,e,i){return this.mask=t,this.skipNextObservers=r,this.target=e,this.currentTarget=i,this}}class l{constructor(t,r,e=null){this.callback=t,this.mask=r,this.scope=e,this._willBeUnregistered=!1,this.unregisterOnNextCall=!1,this._remove=null}remove(t=!1){this._remove&&this._remove(t)}}class u{static FromPromise(t,r){let e=new u;return t.then(t=>{e.notifyObservers(t)}).catch(t=>{if(r)r.notifyObservers(t);else throw t}),e}get observers(){return this._observers}constructor(t,r=!1){this.notifyIfTriggered=r,this._observers=[],this._numObserversMarkedAsDeleted=0,this._hasNotified=!1,this._eventState=new o(0),t&&(this._onObserverAdded=t)}add(t,r=-1,e=!1,i=null,s=!1){if(!t)return null;let n=new l(t,r,i);n.unregisterOnNextCall=s,e?this._observers.unshift(n):this._observers.push(n),this._onObserverAdded&&this._onObserverAdded(n),this._hasNotified&&this.notifyIfTriggered&&void 0!==this._lastNotifiedValue&&this.notifyObserver(n,this._lastNotifiedValue);let a=h?new WeakRef(this):{deref:()=>this};return n._remove=(t=!1)=>{let r=a.deref();r&&(t?r.remove(n):r._remove(n))},n}addOnce(t){return this.add(t,void 0,void 0,void 0,!0)}remove(t){return!!t&&(t._remove=null,-1!==this._observers.indexOf(t)&&(this._deferUnregister(t),!0))}removeCallback(t,r){for(let e=0;e<this._observers.length;e++){let i=this._observers[e];if(!i._willBeUnregistered&&i.callback===t&&(!r||r===i.scope))return this._deferUnregister(i),!0}return!1}_deferUnregister(t){t._willBeUnregistered||(this._numObserversMarkedAsDeleted++,t.unregisterOnNextCall=!1,t._willBeUnregistered=!0,setTimeout(()=>{this._remove(t)},0))}_remove(t,r=!0){if(!t)return!1;let e=this._observers.indexOf(t);return -1!==e&&(r&&this._numObserversMarkedAsDeleted--,this._observers.splice(e,1),!0)}makeObserverTopPriority(t){this._remove(t,!1),this._observers.unshift(t)}makeObserverBottomPriority(t){this._remove(t,!1),this._observers.push(t)}notifyObservers(t,r=-1,e,i,s){if(this.notifyIfTriggered&&(this._hasNotified=!0,this._lastNotifiedValue=t),!this._observers.length)return!0;let n=this._eventState;for(let a of(n.mask=r,n.target=e,n.currentTarget=i,n.skipNextObservers=!1,n.lastReturnValue=t,n.userInfo=s,this._observers))if(!a._willBeUnregistered&&(a.mask&r&&(a.unregisterOnNextCall&&this._deferUnregister(a),a.scope?n.lastReturnValue=a.callback.apply(a.scope,[t,n]):n.lastReturnValue=a.callback(t,n)),n.skipNextObservers))return!1;return!0}notifyObserver(t,r,e=-1){if(this.notifyIfTriggered&&(this._hasNotified=!0,this._lastNotifiedValue=r),t._willBeUnregistered)return;let i=this._eventState;i.mask=e,i.skipNextObservers=!1,t.unregisterOnNextCall&&this._deferUnregister(t),t.callback(r,i)}hasObservers(){return this._observers.length-this._numObserversMarkedAsDeleted>0}clear(){for(;this._observers.length;){let t=this._observers.pop();t&&(t._remove=null)}this._onObserverAdded=null,this._numObserversMarkedAsDeleted=0,this.cleanLastNotifiedState()}cleanLastNotifiedState(){this._hasNotified=!1,this._lastNotifiedValue=void 0}clone(){let t=new u;return t._observers=this._observers.slice(0),t}hasSpecificMask(t=-1){for(let r of this._observers)if(r.mask&t||r.mask===t)return!0;return!1}}(r=u.prototype).notifyObserversWithPromise??(r.notifyObserversWithPromise=a("Observable","notifyObserversWithPromise")),(e=u.prototype).runCoroutineAsync??(e.runCoroutineAsync=a("Observable","runCoroutineAsync")),(i=u.prototype).cancelAllCoroutines??(i.cancelAllCoroutines=a("Observable","cancelAllCoroutines")),t.s(["Observable",0,u],99267);class c{static get LastCreatedEngine(){return 0===this.Instances.length?null:this.Instances[this.Instances.length-1]}static get LastCreatedScene(){return this._LastCreatedScene}}c.Instances=[],c.OnEnginesDisposedObservable=new u,c._LastCreatedScene=null,c.UseFallbackTexture=!0,c.FallbackTexture="",t.s(["EngineStore",0,c],81623)},77052,t=>{"use strict";let r={};t.s(["GetClass",0,function(t){return r[t]},"RegisterClass",0,function(t,e){r[t]=e}])},70653,t=>{"use strict";var r=t.i(48657),e=t.i(89030),i=t.i(46703),s=t.i(77052);function n(t){return Math.pow(t,e.ToLinearSpace)}function a(t){return t<=.04045?.0773993808*t:Math.pow(.947867299*(t+.055),2.4)}function h(t){return Math.pow(t,e.ToGammaSpace)}function o(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}class l{constructor(t=0,r=0,e=0){this.r=t,this.g=r,this.b=e}toString(){return"{R: "+this.r+" G:"+this.g+" B:"+this.b+"}"}getClassName(){return"Color3"}getHashCode(){let t=255*this.r|0;return 397*(t=397*t^255*this.g)^255*this.b}toArray(t,r=0){return t[r]=this.r,t[r+1]=this.g,t[r+2]=this.b,this}fromArray(t,r=0){return l.FromArrayToRef(t,r,this),this}toColor4(t=1){return new u(this.r,this.g,this.b,t)}asArray(){return[this.r,this.g,this.b]}toLuminance(){return .3*this.r+.59*this.g+.11*this.b}multiply(t){return new l(this.r*t.r,this.g*t.g,this.b*t.b)}multiplyToRef(t,r){return r.r=this.r*t.r,r.g=this.g*t.g,r.b=this.b*t.b,r}multiplyInPlace(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyByFloats(t,r,e){return new l(this.r*t,this.g*r,this.b*e)}divide(t){throw ReferenceError("Can not divide a color")}divideToRef(t,r){throw ReferenceError("Can not divide a color")}divideInPlace(t){throw ReferenceError("Can not divide a color")}minimizeInPlace(t){return this.minimizeInPlaceFromFloats(t.r,t.g,t.b)}maximizeInPlace(t){return this.maximizeInPlaceFromFloats(t.r,t.g,t.b)}minimizeInPlaceFromFloats(t,r,e){return this.r=Math.min(t,this.r),this.g=Math.min(r,this.g),this.b=Math.min(e,this.b),this}maximizeInPlaceFromFloats(t,r,e){return this.r=Math.max(t,this.r),this.g=Math.max(r,this.g),this.b=Math.max(e,this.b),this}floorToRef(t){throw ReferenceError("Can not floor a color")}floor(){throw ReferenceError("Can not floor a color")}fractToRef(t){throw ReferenceError("Can not fract a color")}fract(){throw ReferenceError("Can not fract a color")}equals(t){return t&&this.r===t.r&&this.g===t.g&&this.b===t.b}equalsFloats(t,r,e){return this.equalsToFloats(t,r,e)}equalsToFloats(t,r,e){return this.r===t&&this.g===r&&this.b===e}equalsWithEpsilon(t,r=e.Epsilon){return(0,i.WithinEpsilon)(this.r,t.r,r)&&(0,i.WithinEpsilon)(this.g,t.g,r)&&(0,i.WithinEpsilon)(this.b,t.b,r)}negate(){throw ReferenceError("Can not negate a color")}negateInPlace(){throw ReferenceError("Can not negate a color")}negateToRef(t){throw ReferenceError("Can not negate a color")}scale(t){return new l(this.r*t,this.g*t,this.b*t)}scaleInPlace(t){return this.r*=t,this.g*=t,this.b*=t,this}scaleToRef(t,r){return r.r=this.r*t,r.g=this.g*t,r.b=this.b*t,r}scaleAndAddToRef(t,r){return r.r+=this.r*t,r.g+=this.g*t,r.b+=this.b*t,r}clampToRef(t=0,r=1,e){return e.r=(0,i.Clamp)(this.r,t,r),e.g=(0,i.Clamp)(this.g,t,r),e.b=(0,i.Clamp)(this.b,t,r),e}add(t){return new l(this.r+t.r,this.g+t.g,this.b+t.b)}addInPlace(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addInPlaceFromFloats(t,r,e){return this.r+=t,this.g+=r,this.b+=e,this}addToRef(t,r){return r.r=this.r+t.r,r.g=this.g+t.g,r.b=this.b+t.b,r}subtract(t){return new l(this.r-t.r,this.g-t.g,this.b-t.b)}subtractToRef(t,r){return r.r=this.r-t.r,r.g=this.g-t.g,r.b=this.b-t.b,r}subtractInPlace(t){return this.r-=t.r,this.g-=t.g,this.b-=t.b,this}subtractFromFloats(t,r,e){return new l(this.r-t,this.g-r,this.b-e)}subtractFromFloatsToRef(t,r,e,i){return i.r=this.r-t,i.g=this.g-r,i.b=this.b-e,i}clone(){return new l(this.r,this.g,this.b)}copyFrom(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copyFromFloats(t,r,e){return this.r=t,this.g=r,this.b=e,this}set(t,r,e){return this.copyFromFloats(t,r,e)}setAll(t){return this.r=this.g=this.b=t,this}toHexString(){let t=Math.round(255*this.r),r=Math.round(255*this.g),e=Math.round(255*this.b);return"#"+(0,i.ToHex)(t)+(0,i.ToHex)(r)+(0,i.ToHex)(e)}fromHexString(t){return"#"!==t.substring(0,1)||7!==t.length||(this.r=parseInt(t.substring(1,3),16)/255,this.g=parseInt(t.substring(3,5),16)/255,this.b=parseInt(t.substring(5,7),16)/255),this}toHSV(){return this.toHSVToRef(new l)}toHSVToRef(t){let r=this.r,e=this.g,i=this.b,s=Math.max(r,e,i),n=Math.min(r,e,i),a=0,h=0,o=s-n;return 0!==s&&(h=o/s),s!=n&&(s==r?(a=(e-i)/o,e<i&&(a+=6)):s==e?a=(i-r)/o+2:s==i&&(a=(r-e)/o+4),a*=60),t.r=a,t.g=h,t.b=s,t}toLinearSpace(t=!1){let r=new l;return this.toLinearSpaceToRef(r,t),r}toLinearSpaceToRef(t,r=!1){return r?(t.r=a(this.r),t.g=a(this.g),t.b=a(this.b)):(t.r=n(this.r),t.g=n(this.g),t.b=n(this.b)),this}toGammaSpace(t=!1){let r=new l;return this.toGammaSpaceToRef(r,t),r}toGammaSpaceToRef(t,r=!1){return r?(t.r=o(this.r),t.g=o(this.g),t.b=o(this.b)):(t.r=h(this.r),t.g=h(this.g),t.b=h(this.b)),this}static HSVtoRGBToRef(t,r,e,i){let s=e*r,n=t/60,a=s*(1-Math.abs(n%2-1)),h=0,o=0,l=0;n>=0&&n<=1?(h=s,o=a):n>=1&&n<=2?(h=a,o=s):n>=2&&n<=3?(o=s,l=a):n>=3&&n<=4?(o=a,l=s):n>=4&&n<=5?(h=a,l=s):n>=5&&n<=6&&(h=s,l=a);let u=e-s;return i.r=h+u,i.g=o+u,i.b=l+u,i}static FromHSV(t,r,e){let i=new l(0,0,0);return l.HSVtoRGBToRef(t,r,e,i),i}static FromHexString(t){return new l(0,0,0).fromHexString(t)}static FromArray(t,r=0){return new l(t[r],t[r+1],t[r+2])}static FromArrayToRef(t,r=0,e){e.r=t[r],e.g=t[r+1],e.b=t[r+2]}static FromInts(t,r,e){return new l(t/255,r/255,e/255)}static Lerp(t,r,e){let i=new l(0,0,0);return l.LerpToRef(t,r,e,i),i}static LerpToRef(t,r,e,i){i.r=t.r+(r.r-t.r)*e,i.g=t.g+(r.g-t.g)*e,i.b=t.b+(r.b-t.b)*e}static Hermite(t,r,e,i,s){let n=s*s,a=s*n,h=2*a-3*n+1,o=-2*a+3*n,u=a-2*n+s,c=a-n;return new l(t.r*h+e.r*o+r.r*u+i.r*c,t.g*h+e.g*o+r.g*u+i.g*c,t.b*h+e.b*o+r.b*u+i.b*c)}static Hermite1stDerivative(t,r,e,i,s){let n=l.Black();return this.Hermite1stDerivativeToRef(t,r,e,i,s,n),n}static Hermite1stDerivativeToRef(t,r,e,i,s,n){let a=s*s;n.r=(a-s)*6*t.r+(3*a-4*s+1)*r.r+(-a+s)*6*e.r+(3*a-2*s)*i.r,n.g=(a-s)*6*t.g+(3*a-4*s+1)*r.g+(-a+s)*6*e.g+(3*a-2*s)*i.g,n.b=(a-s)*6*t.b+(3*a-4*s+1)*r.b+(-a+s)*6*e.b+(3*a-2*s)*i.b}static Red(){return new l(1,0,0)}static Green(){return new l(0,1,0)}static Blue(){return new l(0,0,1)}static Black(){return new l(0,0,0)}static get BlackReadOnly(){return l._BlackReadOnly}static White(){return new l(1,1,1)}static Purple(){return new l(.5,0,.5)}static Magenta(){return new l(1,0,1)}static Yellow(){return new l(1,1,0)}static Gray(){return new l(.5,.5,.5)}static Teal(){return new l(0,1,1)}static Random(){return new l(Math.random(),Math.random(),Math.random())}}l._V8PerformanceHack=new l(.5,.5,.5),l._BlackReadOnly=l.Black();class u{constructor(t=0,r=0,e=0,i=1){this.r=t,this.g=r,this.b=e,this.a=i}asArray(){return[this.r,this.g,this.b,this.a]}toArray(t,r=0){return t[r]=this.r,t[r+1]=this.g,t[r+2]=this.b,t[r+3]=this.a,this}fromArray(t,r=0){return this.r=t[r],this.g=t[r+1],this.b=t[r+2],this.a=t[r+3],this}equals(t){return t&&this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}add(t){return new u(this.r+t.r,this.g+t.g,this.b+t.b,this.a+t.a)}addToRef(t,r){return r.r=this.r+t.r,r.g=this.g+t.g,r.b=this.b+t.b,r.a=this.a+t.a,r}addInPlace(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this.a+=t.a,this}addInPlaceFromFloats(t,r,e,i){return this.r+=t,this.g+=r,this.b+=e,this.a+=i,this}subtract(t){return new u(this.r-t.r,this.g-t.g,this.b-t.b,this.a-t.a)}subtractToRef(t,r){return r.r=this.r-t.r,r.g=this.g-t.g,r.b=this.b-t.b,r.a=this.a-t.a,r}subtractInPlace(t){return this.r-=t.r,this.g-=t.g,this.b-=t.b,this.a-=t.a,this}subtractFromFloats(t,r,e,i){return new u(this.r-t,this.g-r,this.b-e,this.a-i)}subtractFromFloatsToRef(t,r,e,i,s){return s.r=this.r-t,s.g=this.g-r,s.b=this.b-e,s.a=this.a-i,s}scale(t){return new u(this.r*t,this.g*t,this.b*t,this.a*t)}scaleInPlace(t){return this.r*=t,this.g*=t,this.b*=t,this.a*=t,this}scaleToRef(t,r){return r.r=this.r*t,r.g=this.g*t,r.b=this.b*t,r.a=this.a*t,r}scaleAndAddToRef(t,r){return r.r+=this.r*t,r.g+=this.g*t,r.b+=this.b*t,r.a+=this.a*t,r}clampToRef(t=0,r=1,e){return e.r=(0,i.Clamp)(this.r,t,r),e.g=(0,i.Clamp)(this.g,t,r),e.b=(0,i.Clamp)(this.b,t,r),e.a=(0,i.Clamp)(this.a,t,r),e}multiply(t){return new u(this.r*t.r,this.g*t.g,this.b*t.b,this.a*t.a)}multiplyToRef(t,r){return r.r=this.r*t.r,r.g=this.g*t.g,r.b=this.b*t.b,r.a=this.a*t.a,r}multiplyInPlace(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this.a*=t.a,this}multiplyByFloats(t,r,e,i){return new u(this.r*t,this.g*r,this.b*e,this.a*i)}divide(t){throw ReferenceError("Can not divide a color")}divideToRef(t,r){throw ReferenceError("Can not divide a color")}divideInPlace(t){throw ReferenceError("Can not divide a color")}minimizeInPlace(t){return this.r=Math.min(this.r,t.r),this.g=Math.min(this.g,t.g),this.b=Math.min(this.b,t.b),this.a=Math.min(this.a,t.a),this}maximizeInPlace(t){return this.r=Math.max(this.r,t.r),this.g=Math.max(this.g,t.g),this.b=Math.max(this.b,t.b),this.a=Math.max(this.a,t.a),this}minimizeInPlaceFromFloats(t,r,e,i){return this.r=Math.min(t,this.r),this.g=Math.min(r,this.g),this.b=Math.min(e,this.b),this.a=Math.min(i,this.a),this}maximizeInPlaceFromFloats(t,r,e,i){return this.r=Math.max(t,this.r),this.g=Math.max(r,this.g),this.b=Math.max(e,this.b),this.a=Math.max(i,this.a),this}floorToRef(t){throw ReferenceError("Can not floor a color")}floor(){throw ReferenceError("Can not floor a color")}fractToRef(t){throw ReferenceError("Can not fract a color")}fract(){throw ReferenceError("Can not fract a color")}negate(){throw ReferenceError("Can not negate a color")}negateInPlace(){throw ReferenceError("Can not negate a color")}negateToRef(t){throw ReferenceError("Can not negate a color")}equalsWithEpsilon(t,r=e.Epsilon){return(0,i.WithinEpsilon)(this.r,t.r,r)&&(0,i.WithinEpsilon)(this.g,t.g,r)&&(0,i.WithinEpsilon)(this.b,t.b,r)&&(0,i.WithinEpsilon)(this.a,t.a,r)}equalsToFloats(t,r,e,i){return this.r===t&&this.g===r&&this.b===e&&this.a===i}toString(){return"{R: "+this.r+" G:"+this.g+" B:"+this.b+" A:"+this.a+"}"}getClassName(){return"Color4"}getHashCode(){let t=255*this.r|0;return 397*(t=397*(t=397*t^255*this.g)^255*this.b)^255*this.a}clone(){return new u().copyFrom(this)}copyFrom(t){return this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this}copyFromFloats(t,r,e,i){return this.r=t,this.g=r,this.b=e,this.a=i,this}set(t,r,e,i){return this.copyFromFloats(t,r,e,i)}setAll(t){return this.r=this.g=this.b=this.a=t,this}toHexString(t=!1){let r=Math.round(255*this.r),e=Math.round(255*this.g),s=Math.round(255*this.b);if(t)return"#"+(0,i.ToHex)(r)+(0,i.ToHex)(e)+(0,i.ToHex)(s);let n=Math.round(255*this.a);return"#"+(0,i.ToHex)(r)+(0,i.ToHex)(e)+(0,i.ToHex)(s)+(0,i.ToHex)(n)}fromHexString(t){return"#"!==t.substring(0,1)||9!==t.length&&7!==t.length||(this.r=parseInt(t.substring(1,3),16)/255,this.g=parseInt(t.substring(3,5),16)/255,this.b=parseInt(t.substring(5,7),16)/255,9===t.length&&(this.a=parseInt(t.substring(7,9),16)/255)),this}toLinearSpace(t=!1){let r=new u;return this.toLinearSpaceToRef(r,t),r}toLinearSpaceToRef(t,r=!1){return r?(t.r=a(this.r),t.g=a(this.g),t.b=a(this.b)):(t.r=n(this.r),t.g=n(this.g),t.b=n(this.b)),t.a=this.a,this}toGammaSpace(t=!1){let r=new u;return this.toGammaSpaceToRef(r,t),r}toGammaSpaceToRef(t,r=!1){return r?(t.r=o(this.r),t.g=o(this.g),t.b=o(this.b)):(t.r=h(this.r),t.g=h(this.g),t.b=h(this.b)),t.a=this.a,this}static FromHexString(t){return"#"!==t.substring(0,1)||9!==t.length&&7!==t.length?new u(0,0,0,0):new u(0,0,0,1).fromHexString(t)}static Lerp(t,r,e){return u.LerpToRef(t,r,e,new u)}static LerpToRef(t,r,e,i){return i.r=t.r+(r.r-t.r)*e,i.g=t.g+(r.g-t.g)*e,i.b=t.b+(r.b-t.b)*e,i.a=t.a+(r.a-t.a)*e,i}static Hermite(t,r,e,i,s){let n=s*s,a=s*n,h=2*a-3*n+1,o=-2*a+3*n,l=a-2*n+s,c=a-n;return new u(t.r*h+e.r*o+r.r*l+i.r*c,t.g*h+e.g*o+r.g*l+i.g*c,t.b*h+e.b*o+r.b*l+i.b*c,t.a*h+e.a*o+r.a*l+i.a*c)}static Hermite1stDerivative(t,r,e,i,s){let n=new u;return this.Hermite1stDerivativeToRef(t,r,e,i,s,n),n}static Hermite1stDerivativeToRef(t,r,e,i,s,n){let a=s*s;n.r=(a-s)*6*t.r+(3*a-4*s+1)*r.r+(-a+s)*6*e.r+(3*a-2*s)*i.r,n.g=(a-s)*6*t.g+(3*a-4*s+1)*r.g+(-a+s)*6*e.g+(3*a-2*s)*i.g,n.b=(a-s)*6*t.b+(3*a-4*s+1)*r.b+(-a+s)*6*e.b+(3*a-2*s)*i.b,n.a=(a-s)*6*t.a+(3*a-4*s+1)*r.a+(-a+s)*6*e.a+(3*a-2*s)*i.a}static FromColor3(t,r=1){return new u(t.r,t.g,t.b,r)}static FromArray(t,r=0){return new u(t[r],t[r+1],t[r+2],t[r+3])}static FromArrayToRef(t,r=0,e){e.r=t[r],e.g=t[r+1],e.b=t[r+2],e.a=t[r+3]}static FromInts(t,r,e,i){return new u(t/255,r/255,e/255,i/255)}static CheckColors4(t,r){if(t.length===3*r){let r=[];for(let e=0;e<t.length;e+=3){let i=e/3*4;r[i]=t[e],r[i+1]=t[e+1],r[i+2]=t[e+2],r[i+3]=1}return r}return t}}u._V8PerformanceHack=new u(.5,.5,.5,.5);class c{}c.Color3=(0,r.BuildArray)(3,l.Black),c.Color4=(0,r.BuildArray)(3,()=>new u(0,0,0,0));let g=!1;t.s(["Color3",0,l,"Color4",0,u,"RegisterMathColor",0,function(){g||(g=!0,Object.defineProperties(l.prototype,{dimension:{value:[3]},rank:{value:1}}),Object.defineProperties(u.prototype,{dimension:{value:[4]},rank:{value:1}}),(0,s.RegisterClass)("BABYLON.Color3",l),(0,s.RegisterClass)("BABYLON.Color4",u))},"TmpColors",0,c])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,58703,e=>{"use strict";var t=e.i(44023),o=e.i(5110),u=e.i(77052);class i extends t.FlowGraphExecutionBlockWithOutSignal{constructor(e){super(e),this.sound=this.registerDataInput("sound",o.RichTypeAny),this.volume=this.registerDataInput("volume",o.RichTypeNumber,1)}_execute(e,t){let o=this.sound.getValue(e);if(!o){this._reportError(e,"No sound provided"),this.out._activateSignal(e);return}o.volume=this.volume.getValue(e),this.out._activateSignal(e)}getClassName(){return"FlowGraphSetSoundVolumeBlock"}}let l=!1;function s(){l||(l=!0,(0,u.RegisterClass)("FlowGraphSetSoundVolumeBlock",i))}e.s(["FlowGraphSetSoundVolumeBlock",0,i,"RegisterFlowGraphSetSoundVolumeBlock",0,s],51860),s(),e.s([],8166),e.i(8166),e.i(51860),e.s(["FlowGraphSetSoundVolumeBlock",0,i],58703)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,883,e=>{"use strict";var t=e.i(10272),s=e.i(37143),r=e.i(72976),i=e.i(70653),a=e.i(46862),n=e.i(58720),o=e.i(23507),l=e.i(80871),u=e.i(44702),h=e.i(89748),_=e.i(31278),T=e.i(92040),c=e.i(12033),d=e.i(97001),p=e.i(35407),m=e.i(44451),g=e.i(18131),f=e.i(33457),R=e.i(13379),A=e.i(80737),E=e.i(37882);function x(e){return class extends e{constructor(){super(...arguments),this.REFLECTION=!1,this.REFLECTIONMAP_3D=!1,this.REFLECTIONMAP_SPHERICAL=!1,this.REFLECTIONMAP_PLANAR=!1,this.REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFLECTIONMAP_CUBIC=!1,this.REFLECTIONMAP_PROJECTION=!1,this.REFLECTIONMAP_SKYBOX=!1,this.REFLECTIONMAP_EXPLICIT=!1,this.REFLECTIONMAP_EQUIRECTANGULAR=!1,this.REFLECTIONMAP_EQUIRECTANGULAR_FIXED=!1,this.REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED=!1,this.INVERTCUBICMAP=!1,this.USESPHERICALFROMREFLECTIONMAP=!1,this.USEIRRADIANCEMAP=!1,this.USE_IRRADIANCE_DOMINANT_DIRECTION=!1,this.USESPHERICALINVERTEX=!1,this.REFLECTIONMAP_OPPOSITEZ=!1,this.LODINREFLECTIONALPHA=!1,this.GAMMAREFLECTION=!1,this.RGBDREFLECTION=!1}}}var S=e.i(96265),y=e.i(5436),M=e.i(22369),I=e.i(45707),C=e.i(65740),F=e.i(36516);class b extends F.RenderTargetTexture{get isSupported(){return this._engine?.getCaps().drawBuffersExtension??!1}get textures(){return this._textures}get count(){return this._count}get depthTexture(){return this._textures[this._textures.length-1]}set wrapU(e){if(this._textures)for(let t=0;t<this._textures.length;t++)this._textures[t].wrapU=e}set wrapV(e){if(this._textures)for(let t=0;t<this._textures.length;t++)this._textures[t].wrapV=e}constructor(e,t,s,r,i,a){const n=!!i&&!!i.generateMipMaps&&i.generateMipMaps,o=!!i&&!!i.generateDepthTexture&&i.generateDepthTexture,l=i&&i.depthTextureFormat?i.depthTextureFormat:15,u=!i||void 0===i.doNotChangeAspectRatio||i.doNotChangeAspectRatio,h=!!i&&!!i.drawOnlyOnFirstAttachmentByDefault&&i.drawOnlyOnFirstAttachmentByDefault;if(super(e,t,r,n,u,void 0,void 0,void 0,void 0,void 0,void 0,void 0,!0),!this.isSupported)return void this.dispose();this._textureNames=a;const _=[],T=[],c=[],d=[],p=[],m=[],g=[],f=[];this._initTypes(s,_,T,c,d,p,m,g,f,i);const R=!i||void 0===i.generateDepthBuffer||i.generateDepthBuffer,A=!!i&&void 0!==i.generateStencilBuffer&&i.generateStencilBuffer,E=i&&i.samples?i.samples:1;this._multiRenderTargetOptions={samplingModes:T,generateMipMaps:n,generateDepthBuffer:R,generateStencilBuffer:A,generateDepthTexture:o,depthTextureFormat:l,types:_,textureCount:s,useSRGBBuffers:c,samples:E,formats:d,targetTypes:p,faceIndex:m,layerIndex:g,layerCounts:f,labels:a,label:e},this._count=s,this._drawOnlyOnFirstAttachmentByDefault=h,s>0&&(this._createInternalTextures(),this._createTextures(a))}_initTypes(e,t,s,r,i,a,o,l,u,h){for(let _=0;_<e;_++)h&&h.types&&void 0!==h.types[_]?t.push(h.types[_]):t.push(h&&h.defaultType?h.defaultType:0),h&&h.samplingModes&&void 0!==h.samplingModes[_]?s.push(h.samplingModes[_]):s.push(n.Texture.BILINEAR_SAMPLINGMODE),h&&h.useSRGBBuffers&&void 0!==h.useSRGBBuffers[_]?r.push(h.useSRGBBuffers[_]):r.push(!1),h&&h.formats&&void 0!==h.formats[_]?i.push(h.formats[_]):i.push(5),h&&h.targetTypes&&void 0!==h.targetTypes[_]?a.push(h.targetTypes[_]):a.push(3553),h&&h.faceIndex&&void 0!==h.faceIndex[_]?o.push(h.faceIndex[_]):o.push(0),h&&h.layerIndex&&void 0!==h.layerIndex[_]?l.push(h.layerIndex[_]):l.push(0),h&&h.layerCounts&&void 0!==h.layerCounts[_]?u.push(h.layerCounts[_]):u.push(1)}_createInternaTextureIndexMapping(){let e={},t=[];if(!this._renderTarget)return t;let s=this._renderTarget.textures;for(let r=0;r<s.length;r++){let i=s[r];if(!i)continue;let a=e[i.uniqueId];void 0!==a?t[r]=a:e[i.uniqueId]=r}return t}_rebuild(e=!1,t=!1,s){if(this._count<1||e)return;let r=this._createInternaTextureIndexMapping();this.releaseInternalTextures(),this._createInternalTextures(),t&&(this._releaseTextures(),this._createTextures(s));let i=this._renderTarget.textures;for(let e=0;e<i.length;e++){let t=this._textures[e];void 0!==r[e]&&this._renderTarget.setTexture(i[r[e]],e),t._texture=i[e],t._texture&&(t._noMipmap=!t._texture.useMipMaps,t._useSRGBBuffer=t._texture._useSRGBBuffer)}1!==this.samples&&this._renderTarget.setSamples(this.samples,!this._drawOnlyOnFirstAttachmentByDefault,!0)}_createInternalTextures(){this._renderTarget=this._getEngine().createMultipleRenderTarget(this._size,this._multiRenderTargetOptions,!this._drawOnlyOnFirstAttachmentByDefault),this._texture=this._renderTarget.texture}_releaseTextures(){if(this._textures)for(let e=0;e<this._textures.length;e++)this._textures[e]._texture=null,this._textures[e].dispose()}_createTextures(e){let t=this._renderTarget.textures;this._textures=[];for(let s=0;s<t.length;s++){let r=new n.Texture(null,this.getScene());e?.[s]&&(r.name=e[s]),r._texture=t[s],r._texture&&(r._noMipmap=!r._texture.useMipMaps,r._useSRGBBuffer=r._texture._useSRGBBuffer),this._textures.push(r)}}setInternalTexture(e,t,s=!0){if(this.renderTarget&&(0===t&&(this._texture=e),this.renderTarget.setTexture(e,t,s),this.textures[t]||(this.textures[t]=new n.Texture(null,this.getScene()),this.textures[t].name=this._textureNames?.[t]??this.textures[t].name),this.textures[t]._texture=e,this.textures[t]._noMipmap=!e.useMipMaps,this.textures[t]._useSRGBBuffer=e._useSRGBBuffer,this._count=this.renderTarget.textures?this.renderTarget.textures.length:0,this._multiRenderTargetOptions.types&&(this._multiRenderTargetOptions.types[t]=e.type),this._multiRenderTargetOptions.samplingModes&&(this._multiRenderTargetOptions.samplingModes[t]=e.samplingMode),this._multiRenderTargetOptions.useSRGBBuffers&&(this._multiRenderTargetOptions.useSRGBBuffers[t]=e._useSRGBBuffer),this._multiRenderTargetOptions.targetTypes&&-1!==this._multiRenderTargetOptions.targetTypes[t])){let s;s=e.is2DArray?35866:e.isCube?34067:e.is3D?32879:3553,this._multiRenderTargetOptions.targetTypes[t]=s}}setLayerAndFaceIndex(e,t=-1,s=-1){this.textures[e]&&this.renderTarget&&(this._multiRenderTargetOptions.layerIndex&&(this._multiRenderTargetOptions.layerIndex[e]=t),this._multiRenderTargetOptions.faceIndex&&(this._multiRenderTargetOptions.faceIndex[e]=s),this.renderTarget.setLayerAndFaceIndex(e,t,s))}setLayerAndFaceIndices(e,t){this.renderTarget&&(this._multiRenderTargetOptions.layerIndex=e,this._multiRenderTargetOptions.faceIndex=t,this.renderTarget.setLayerAndFaceIndices(e,t))}get samples(){return this._samples}set samples(e){this._renderTarget?this._samples=this._renderTarget.setSamples(e):this._samples=e}resize(e){this._processSizeParameter(e),this._rebuild(!1,void 0,this._textureNames)}updateCount(e,t,s){this._multiRenderTargetOptions.textureCount=e,this._count=e;let r=[],i=[],a=[],n=[],o=[],l=[],u=[],h=[];this._textureNames=s,this._initTypes(e,r,i,a,n,o,l,u,h,t),this._multiRenderTargetOptions.types=r,this._multiRenderTargetOptions.samplingModes=i,this._multiRenderTargetOptions.useSRGBBuffers=a,this._multiRenderTargetOptions.formats=n,this._multiRenderTargetOptions.targetTypes=o,this._multiRenderTargetOptions.faceIndex=l,this._multiRenderTargetOptions.layerIndex=u,this._multiRenderTargetOptions.layerCounts=h,this._multiRenderTargetOptions.labels=s,this._rebuild(!1,!0,s)}_unbindFrameBuffer(e,t){this._renderTarget&&e.unBindMultiColorAttachmentFramebuffer(this._renderTarget,this.isCube,()=>{this.onAfterRenderObservable.notifyObservers(t)})}dispose(e=!1){this._releaseTextures(),e?this._texture=null:this.releaseInternalTextures(),super.dispose()}releaseInternalTextures(){let e=this._renderTarget?.textures;if(e){for(let t=e.length-1;t>=0;t--)this._textures[t]._texture=null;this._renderTarget?.dispose(),this._renderTarget=null}}}var L=e.i(75405),P=e.i(66749),O=e.i(19905);class N{constructor(e){this.name=O.SceneComponentConstants.NAME_GEOMETRYBUFFERRENDERER,this.scene=e}register(){this.scene._gatherRenderTargetsStage.registerStep(O.SceneComponentConstants.STEP_GATHERRENDERTARGETS_GEOMETRYBUFFERRENDERER,this,this._gatherRenderTargets)}rebuild(){}dispose(){}_gatherRenderTargets(e){this.scene._geometryBufferRenderer&&e.push(this.scene._geometryBufferRenderer.getGBuffer())}}let D=!1,v=["diffuseSampler","bumpSampler","reflectivitySampler","albedoSampler","morphTargets","boneSampler","transmissionWeightSampler","subsurfaceWeightSampler","iblShadowSampler"],U=["world","mBones","viewProjection","diffuseMatrix","view","previousWorld","previousViewProjection","mPreviousBones","bumpMatrix","reflectivityMatrix","albedoMatrix","reflectivityColor","albedoColor","reflectionMatrix","vTransmissionWeight","vSubsurfaceWeight","vEyePosition","vTransmissionScatterAnisotropy","vSubsurfaceScatterAnisotropy","shadowTextureSize","metallic","glossiness","vTangentSpaceParams","vBumpInfos","morphTargetInfluences","morphTargetCount","morphTargetTextureInfo","morphTargetTextureIndices","boneTextureInfo"];class B{get normalsAreUnsigned(){return this._normalsAreUnsigned}_linkPrePassRenderer(e){this._linkedWithPrePass=!0,this._prePassRenderer=e,this._multiRenderTarget&&(this._multiRenderTarget.onClearObservable.clear(),this._multiRenderTarget.onClearObservable.add(()=>{}))}_unlinkPrePassRenderer(){this._linkedWithPrePass=!1,this._createRenderTargets()}_resetLayout(){this._enableDepth=!0,this._enableNormal=!0,this._enablePosition=!1,this._enableReflectivity=!1,this._enableVelocity=!1,this._enableVelocityLinear=!1,this._enableScreenspaceDepth=!1,this._enableIrradiance=!1,this._attachmentsFromPrePass=[]}_forceTextureType(e,t){e===B.POSITION_TEXTURE_TYPE?(this._positionIndex=t,this._enablePosition=!0):e===B.VELOCITY_TEXTURE_TYPE?(this._velocityIndex=t,this._enableVelocity=!0):e===B.VELOCITY_LINEAR_TEXTURE_TYPE?(this._velocityLinearIndex=t,this._enableVelocityLinear=!0):e===B.REFLECTIVITY_TEXTURE_TYPE?(this._reflectivityIndex=t,this._enableReflectivity=!0):e===B.DEPTH_TEXTURE_TYPE?(this._depthIndex=t,this._enableDepth=!0):e===B.NORMAL_TEXTURE_TYPE?(this._normalIndex=t,this._enableNormal=!0):e===B.SCREENSPACE_DEPTH_TEXTURE_TYPE?(this._screenspaceDepthIndex=t,this._enableScreenspaceDepth=!0):e===B.IRRADIANCE_TEXTURE_TYPE&&(this._irradianceIndex=t,this._enableIrradiance=!0)}_setAttachments(e){this._attachmentsFromPrePass=e}_linkInternalTexture(e){this._multiRenderTarget.setInternalTexture(e,0,!1)}get renderList(){return this._multiRenderTarget.renderList}set renderList(e){this._multiRenderTarget.renderList=e}get isSupported(){return this._multiRenderTarget.isSupported}getTextureIndex(e){switch(e){case B.POSITION_TEXTURE_TYPE:return this._positionIndex;case B.VELOCITY_TEXTURE_TYPE:return this._velocityIndex;case B.VELOCITY_LINEAR_TEXTURE_TYPE:return this._velocityLinearIndex;case B.REFLECTIVITY_TEXTURE_TYPE:return this._reflectivityIndex;case B.DEPTH_TEXTURE_TYPE:return this._depthIndex;case B.NORMAL_TEXTURE_TYPE:return this._normalIndex;case B.SCREENSPACE_DEPTH_TEXTURE_TYPE:return this._screenspaceDepthIndex;case B.IRRADIANCE_TEXTURE_TYPE:return this._irradianceIndex;default:return -1}}get enableDepth(){return this._enableDepth}set enableDepth(e){this._enableDepth=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableNormal(){return this._enableNormal}set enableNormal(e){this._enableNormal=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enablePosition(){return this._enablePosition}set enablePosition(e){this._enablePosition=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableVelocity(){return this._enableVelocity}set enableVelocity(e){this._enableVelocity=e,e||(this._previousTransformationMatrices={}),this._linkedWithPrePass||(this.dispose(),this._createRenderTargets()),this._scene.needsPreviousWorldMatrices=e}get enableVelocityLinear(){return this._enableVelocityLinear}set enableVelocityLinear(e){this._enableVelocityLinear=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableReflectivity(){return this._enableReflectivity}set enableReflectivity(e){this._enableReflectivity=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableScreenspaceDepth(){return this._enableScreenspaceDepth}set enableScreenspaceDepth(e){this._enableScreenspaceDepth=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableIrradiance(){return this._enableIrradiance}set enableIrradiance(e){this._enableIrradiance=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get scene(){return this._scene}get ratio(){return"object"==typeof this._ratioOrDimensions?1:this._ratioOrDimensions}get shaderLanguage(){return this._shaderLanguage}constructor(e,t=1,s=15,r){this._previousTransformationMatrices={},this._previousBonesTransformationMatrices={},this.excludedSkinnedMeshesFromVelocity=[],this.renderTransparentMeshes=!0,this.generateNormalsInWorldSpace=!1,this._normalsAreUnsigned=!1,this._resizeObserver=null,this._enableDepth=!0,this._enableNormal=!0,this._enablePosition=!1,this._enableVelocity=!1,this._enableVelocityLinear=!1,this._enableReflectivity=!1,this._enableScreenspaceDepth=!1,this._enableIrradiance=!1,this._clearColor=new i.Color4(0,0,0,0),this._clearDepthColor=new i.Color4(0,0,0,1),this._positionIndex=-1,this._velocityIndex=-1,this._velocityLinearIndex=-1,this._reflectivityIndex=-1,this._depthIndex=-1,this._normalIndex=-1,this._screenspaceDepthIndex=-1,this._irradianceIndex=-1,this._linkedWithPrePass=!1,this.generateIrradianceWithScatterMask=!1,this.useSpecificClearForDepthTexture=!1,this._shaderLanguage=0,this._shadersLoaded=!1,this._scene=e,this._ratioOrDimensions=t,this._useUbo=e.getEngine().supportsUniformBuffers,this._depthFormat=s,this._textureTypesAndFormats=r||{},this._initShaderSourceAsync(),function(e){D||(D=!0,Object.defineProperty(P.Scene.prototype,"geometryBufferRenderer",{get:function(){return this._geometryBufferRenderer},set:function(e){e&&e.isSupported&&(this._geometryBufferRenderer=e)},enumerable:!0,configurable:!0}),P.Scene.prototype.enableGeometryBufferRenderer=function(t=1,s=15,r){return this._geometryBufferRenderer||(this._geometryBufferRenderer=new e(this,t,s,r),this._geometryBufferRenderer.isSupported||(this._geometryBufferRenderer=null)),this._geometryBufferRenderer},P.Scene.prototype.disableGeometryBufferRenderer=function(){this._geometryBufferRenderer&&(this._geometryBufferRenderer.dispose(),this._geometryBufferRenderer=null)},e._SceneComponentInitialization=e=>{let t=e._getComponent(O.SceneComponentConstants.NAME_GEOMETRYBUFFERRENDERER);t||(t=new N(e),e._addComponent(t))})}(B),B._SceneComponentInitialization(this._scene),this._createRenderTargets()}async _initShaderSourceAsync(){this._scene.getEngine().isWebGPU&&!B.ForceGLSL?(this._shaderLanguage=1,await Promise.all([e.A(89527),e.A(2793)])):await Promise.all([e.A(36650),e.A(8047)]),this._shadersLoaded=!0}isReady(e,t){if(!this._shadersLoaded)return!1;let s=e.getMaterial();if(s&&s.disableDepthWrite||"GaussianSplattingMesh"===e.getMesh().getClassName())return!1;let r=[],i=[p.VertexBuffer.PositionKind],a=e.getMesh();a.isVerticesDataPresent(p.VertexBuffer.NormalKind)&&(r.push("#define HAS_NORMAL_ATTRIBUTE"),i.push(p.VertexBuffer.NormalKind));let n=!1,o=!1;if(s){let e=!1;if(s.needAlphaTestingForMesh(a)&&s.getAlphaTestTexture()&&(r.push("#define ALPHATEST"),r.push(`#define ALPHATEST_UV${s.getAlphaTestTexture().coordinatesIndex+1}`),e=!0),(s.bumpTexture||s.normalTexture||s.geometryNormalTexture)&&f.MaterialFlags.BumpTextureEnabled){let t=s.bumpTexture||s.normalTexture||s.geometryNormalTexture;r.push("#define BUMP"),r.push(`#define BUMP_UV${t.coordinatesIndex+1}`),e=!0}if(this._enableReflectivity){let t=!1;"PBRMetallicRoughnessMaterial"===s.getClassName()?(s.metallicRoughnessTexture&&(r.push("#define ORMTEXTURE"),r.push(`#define REFLECTIVITY_UV${s.metallicRoughnessTexture.coordinatesIndex+1}`),r.push("#define METALLICWORKFLOW"),e=!0,t=!0),null!=s.metallic&&(r.push("#define METALLIC"),r.push("#define METALLICWORKFLOW"),t=!0),null!=s.roughness&&(r.push("#define ROUGHNESS"),r.push("#define METALLICWORKFLOW"),t=!0),t&&(s.baseTexture&&(r.push("#define ALBEDOTEXTURE"),r.push(`#define ALBEDO_UV${s.baseTexture.coordinatesIndex+1}`),s.baseTexture.gammaSpace&&r.push("#define GAMMAALBEDO"),e=!0),s.baseColor&&r.push("#define ALBEDOCOLOR"))):"PBRSpecularGlossinessMaterial"===s.getClassName()?(s.specularGlossinessTexture?(r.push("#define SPECULARGLOSSINESSTEXTURE"),r.push(`#define REFLECTIVITY_UV${s.specularGlossinessTexture.coordinatesIndex+1}`),e=!0,s.specularGlossinessTexture.gammaSpace&&r.push("#define GAMMAREFLECTIVITYTEXTURE")):s.specularColor&&r.push("#define REFLECTIVITYCOLOR"),null!=s.glossiness&&r.push("#define GLOSSINESS")):"PBRMaterial"===s.getClassName()?(s.metallicTexture&&(r.push("#define ORMTEXTURE"),r.push(`#define REFLECTIVITY_UV${s.metallicTexture.coordinatesIndex+1}`),r.push("#define METALLICWORKFLOW"),e=!0,t=!0),null!=s.metallic&&(r.push("#define METALLIC"),r.push("#define METALLICWORKFLOW"),t=!0),null!=s.roughness&&(r.push("#define ROUGHNESS"),r.push("#define METALLICWORKFLOW"),t=!0),t?(s.albedoTexture&&(r.push("#define ALBEDOTEXTURE"),r.push(`#define ALBEDO_UV${s.albedoTexture.coordinatesIndex+1}`),s.albedoTexture.gammaSpace&&r.push("#define GAMMAALBEDO"),e=!0),s.albedoColor&&r.push("#define ALBEDOCOLOR")):(s.reflectivityTexture?(r.push("#define SPECULARGLOSSINESSTEXTURE"),r.push(`#define REFLECTIVITY_UV${s.reflectivityTexture.coordinatesIndex+1}`),s.reflectivityTexture.gammaSpace&&r.push("#define GAMMAREFLECTIVITYTEXTURE"),e=!0):s.reflectivityColor&&r.push("#define REFLECTIVITYCOLOR"),null!=s.microSurface&&r.push("#define GLOSSINESS"))):"StandardMaterial"===s.getClassName()?(s.specularTexture&&(r.push("#define REFLECTIVITYTEXTURE"),r.push(`#define REFLECTIVITY_UV${s.specularTexture.coordinatesIndex+1}`),s.specularTexture.gammaSpace&&r.push("#define GAMMAREFLECTIVITYTEXTURE"),e=!0),s.specularColor&&r.push("#define REFLECTIVITYCOLOR")):"OpenPBRMaterial"===s.getClassName()&&(r.push("#define METALLIC"),r.push("#define ROUGHNESS"),s._useRoughnessFromMetallicTextureGreen&&s.baseMetalnessTexture?(r.push("#define ORMTEXTURE"),r.push(`#define REFLECTIVITY_UV${s.baseMetalnessTexture.coordinatesIndex+1}`),e=!0):s.baseMetalnessTexture?(r.push("#define METALLIC_TEXTURE"),r.push(`#define METALLIC_UV${s.baseMetalnessTexture.coordinatesIndex+1}`),e=!0):s.specularRoughnessTexture&&(r.push("#define ROUGHNESS_TEXTURE"),r.push(`#define ROUGHNESS_UV${s.specularRoughnessTexture.coordinatesIndex+1}`),e=!0),s.baseColorTexture&&(r.push("#define ALBEDOTEXTURE"),r.push(`#define ALBEDO_UV${s.baseColorTexture.coordinatesIndex+1}`),s.baseColorTexture.gammaSpace&&r.push("#define GAMMAALBEDO"),e=!0),s.baseColor&&r.push("#define ALBEDOCOLOR"))}this._enableIrradiance&&this.generateIrradianceWithScatterMask&&(r.push("#define IRRADIANCE_SCATTER_MASK"),"OpenPBRMaterial"===s.getClassName()&&(s.subsurfaceWeight>0&&s.subsurfaceWeightTexture&&(r.push("#define SUBSURFACE_WEIGHT"),r.push(`#define SUBSURFACEWEIGHT_UV${s.subsurfaceWeightTexture.coordinatesIndex+1}`),e=!0),s.transmissionWeight>0&&s.transmissionWeightTexture&&(r.push("#define TRANSMISSION_WEIGHT"),r.push(`#define TRANSMISSIONWEIGHT_UV${s.transmissionWeightTexture.coordinatesIndex+1}`),e=!0))),e&&(r.push("#define NEED_UV"),a.isVerticesDataPresent(p.VertexBuffer.UVKind)&&(i.push(p.VertexBuffer.UVKind),r.push("#define UV1"),n=!0),a.isVerticesDataPresent(p.VertexBuffer.UV2Kind)&&(i.push(p.VertexBuffer.UV2Kind),r.push("#define UV2"),o=!0))}if(this._enableDepth&&(r.push("#define DEPTH"),r.push("#define DEPTH_INDEX "+this._depthIndex)),this._enableNormal&&(r.push("#define NORMAL"),r.push("#define NORMAL_INDEX "+this._normalIndex)),this._enablePosition&&(r.push("#define POSITION"),r.push("#define POSITION_INDEX "+this._positionIndex)),this._enableVelocity&&(r.push("#define VELOCITY"),r.push("#define VELOCITY_INDEX "+this._velocityIndex),-1===this.excludedSkinnedMeshesFromVelocity.indexOf(a)&&r.push("#define BONES_VELOCITY_ENABLED")),this._enableVelocityLinear&&(r.push("#define VELOCITY_LINEAR"),r.push("#define VELOCITY_LINEAR_INDEX "+this._velocityLinearIndex),-1===this.excludedSkinnedMeshesFromVelocity.indexOf(a)&&r.push("#define BONES_VELOCITY_ENABLED")),this._enableReflectivity&&(r.push("#define REFLECTIVITY"),r.push("#define REFLECTIVITY_INDEX "+this._reflectivityIndex)),this._enableScreenspaceDepth&&-1!==this._screenspaceDepthIndex&&(r.push("#define SCREENSPACE_DEPTH_INDEX "+this._screenspaceDepthIndex),r.push("#define SCREENSPACE_DEPTH")),this._enableIrradiance&&-1!==this._irradianceIndex){r.push("#define IRRADIANCE_INDEX "+this._irradianceIndex),r.push("#define IRRADIANCE");let e=this._scene;if(e.environmentTexture){let t={},i=!1,a=0;for(let n in("OpenPBRMaterial"===s.getClassName()||"StandardMaterial"===s.getClassName()||"PBRMetallicRoughnessMaterial"===s.getClassName()||"PBRSpecularGlossinessMaterial"===s.getClassName()||"PBRMaterial"===s.getClassName())&&(i=!!s.realtimeFiltering,a=s.realtimeFilteringQuality||0),(0,d.PrepareDefinesForIBL)(e,e.environmentTexture,t,i,a,!0),t)t[n]&&r.push("#define "+n);t.USEIRRADIANCEMAP||r.push("#define SPHERICAL_HARMONICS");let n=e.postProcessRenderPipelineManager.supportedPipelines.find(e=>"IBLShadowsRenderPipeline"===e.getClassName());n&&n._getAccumulatedTexture()&&(r.push("#define IBL_SHADOW_TEXTURE"),n.coloredShadows&&r.push("#define COLORED_IBL_SHADOWS"))}}this.generateNormalsInWorldSpace&&r.push("#define NORMAL_WORLDSPACE"),this._normalsAreUnsigned&&r.push("#define ENCODE_NORMAL"),a.useBones&&a.computeBonesUsingShaders&&a.skeleton?(i.push(p.VertexBuffer.MatricesIndicesKind),i.push(p.VertexBuffer.MatricesWeightsKind),a.numBoneInfluencers>4&&(i.push(p.VertexBuffer.MatricesIndicesExtraKind),i.push(p.VertexBuffer.MatricesWeightsExtraKind)),r.push("#define NUM_BONE_INFLUENCERS "+a.numBoneInfluencers),r.push("#define BONETEXTURE "+a.skeleton.isUsingTextureForMatrices),r.push("#define BonesPerMesh "+(a.skeleton.bones.length+1))):(r.push("#define NUM_BONE_INFLUENCERS 0"),r.push("#define BONETEXTURE false"),r.push("#define BonesPerMesh 0"));let l=a.morphTargetManager?(0,d.PrepareDefinesAndAttributesForMorphTargets)(a.morphTargetManager,r,i,a,!0,!0,!1,n,o,!1):0;t&&(r.push("#define INSTANCES"),(0,d.PushAttributesForInstances)(i,this._enableVelocity||this._enableVelocityLinear),e.getRenderingMesh().hasThinInstances&&r.push("#define THIN_INSTANCES")),this._linkedWithPrePass?r.push("#define SCENE_MRT_COUNT "+this._attachmentsFromPrePass.length):r.push("#define SCENE_MRT_COUNT "+this._multiRenderTarget.textures.length),(0,T.PrepareStringDefinesForClipPlanes)(s,this._scene,r);let u=this._scene.getEngine(),h=e._getDrawWrapper(void 0,!0),_=h.defines,c=r.join("\n");return _!==c&&h.setEffect(u.createEffect("geometry",{attributes:i,uniformsNames:U,samplers:v,defines:c,onCompiled:null,fallbacks:null,onError:null,uniformBuffersNames:["Scene"],indexParameters:{buffersCount:this._multiRenderTarget.textures.length-1,maxSimultaneousMorphTargets:l},shaderLanguage:this.shaderLanguage},u),c),h.effect.isReady()}getGBuffer(){return this._multiRenderTarget}get samples(){return this._multiRenderTarget.samples}set samples(e){this._multiRenderTarget.samples=e}dispose(){this._resizeObserver&&(this._scene.getEngine().onResizeObservable.remove(this._resizeObserver),this._resizeObserver=null),this._multiRenderTarget?.renderTarget&&this.scene.getEngine()._currentRenderTarget===this._multiRenderTarget.renderTarget&&this.scene.getEngine().unBindFramebuffer(this._multiRenderTarget?.renderTarget),this.getGBuffer().dispose()}_assignRenderTargetIndices(){let e=[],t=[],s=0;return this._enableDepth&&(this._depthIndex=s,s++,e.push("gBuffer_Depth"),t.push(this._textureTypesAndFormats[B.DEPTH_TEXTURE_TYPE])),this._enableNormal&&(this._normalIndex=s,s++,e.push("gBuffer_Normal"),t.push(this._textureTypesAndFormats[B.NORMAL_TEXTURE_TYPE])),this._enablePosition&&(this._positionIndex=s,s++,e.push("gBuffer_Position"),t.push(this._textureTypesAndFormats[B.POSITION_TEXTURE_TYPE])),this._enableVelocity&&(this._velocityIndex=s,s++,e.push("gBuffer_Velocity"),t.push(this._textureTypesAndFormats[B.VELOCITY_TEXTURE_TYPE])),this._enableVelocityLinear&&(this._velocityLinearIndex=s,s++,e.push("gBuffer_VelocityLinear"),t.push(this._textureTypesAndFormats[B.VELOCITY_LINEAR_TEXTURE_TYPE])),this._enableReflectivity&&(this._reflectivityIndex=s,s++,e.push("gBuffer_Reflectivity"),t.push(this._textureTypesAndFormats[B.REFLECTIVITY_TEXTURE_TYPE])),this._enableScreenspaceDepth&&(this._screenspaceDepthIndex=s,s++,e.push("gBuffer_ScreenspaceDepth"),t.push(this._textureTypesAndFormats[B.SCREENSPACE_DEPTH_TEXTURE_TYPE])),this._enableIrradiance&&(this._irradianceIndex=s,s++,e.push("gBuffer_Irradiance"),t.push(this._textureTypesAndFormats[B.IRRADIANCE_TEXTURE_TYPE])),[s,e,t]}_createRenderTargets(){let e=this._scene.getEngine(),[t,s,r]=this._assignRenderTargetIndices(),i=0;e._caps.textureFloat&&e._caps.textureFloatLinearFiltering?i=1:e._caps.textureHalfFloat&&e._caps.textureHalfFloatLinearFiltering&&(i=2);let a=void 0!==this._ratioOrDimensions.width?this._ratioOrDimensions:{width:e.getRenderWidth()*this._ratioOrDimensions,height:e.getRenderHeight()*this._ratioOrDimensions},l=[],u=[],h=[];for(let e of r)e?(l.push(e.textureType),u.push(e.textureFormat),h.push(e.samplingMode??2)):(l.push(i),u.push(5),h.push(2));if(this._normalsAreUnsigned=11===l[B.NORMAL_TEXTURE_TYPE]||13===l[B.NORMAL_TEXTURE_TYPE],this._multiRenderTarget=new b("gBuffer",a,t,this._scene,{generateMipMaps:!1,generateDepthTexture:!0,types:l,formats:u,samplingModes:h,depthTextureFormat:this._depthFormat},s.concat("gBuffer_DepthBuffer")),!this.isSupported)return;this._multiRenderTarget.wrapU=n.Texture.CLAMP_ADDRESSMODE,this._multiRenderTarget.wrapV=n.Texture.CLAMP_ADDRESSMODE,this._multiRenderTarget.refreshRate=1,this._multiRenderTarget.renderParticles=!1,this._multiRenderTarget.renderList=null;let _=[!0],c=[!1],p=[!0];for(let e=1;e<t;++e)_.push(!0),p.push(!1),c.push(!0);let m=e.buildTextureLayout(_),g=e.buildTextureLayout(c),R=e.buildTextureLayout(p);this._multiRenderTarget.onClearObservable.add(e=>{e.bindAttachments(this.useSpecificClearForDepthTexture?g:m),e.clear(this._clearColor,!0,!0,!0),this.useSpecificClearForDepthTexture&&(e.bindAttachments(R),e.clear(this._clearDepthColor,!0,!0,!0)),e.bindAttachments(m)}),this._resizeObserver=e.onResizeObservable.add(()=>{if(this._multiRenderTarget){let t=void 0!==this._ratioOrDimensions.width?this._ratioOrDimensions:{width:e.getRenderWidth()*this._ratioOrDimensions,height:e.getRenderHeight()*this._ratioOrDimensions};this._multiRenderTarget.resize(t)}});let A=e=>{let t=e.getRenderingMesh(),s=e.getEffectiveMesh(),r=this._scene,i=r.getEngine(),a=e.getMaterial();if(!a)return;if(s._internalAbstractMeshDataInfo._isActiveIntermediate=!1,(this._enableVelocity||this._enableVelocityLinear)&&!this._previousTransformationMatrices[s.uniqueId]&&(this._previousTransformationMatrices[s.uniqueId]={world:S.Matrix.Identity(),viewProjection:r.getTransformMatrix()},t.skeleton)){let e=t.skeleton.getTransformMatrices(t);this._previousBonesTransformationMatrices[t.uniqueId]=this._copyBonesTransformationMatrices(e,new Float32Array(e.length))}let n=t._getInstancesRenderList(e._id,!!e.getReplacementMesh());if(n.mustReturn)return;let l=i.getCaps().instancedArrays&&(null!==n.visibleInstances[e._id]||t.hasThinInstances),u=s.getWorldMatrix();if(this.isReady(e,l)){let h,_=e._getDrawWrapper();if(!_)return;let c=_.effect;if(i.enableEffect(_),l||t._bind(e,c,a.fillMode),this._useUbo?((0,d.BindSceneUniformBuffer)(c,this._scene.getSceneUniformBuffer()),this._scene.finalizeSceneUbo()):(c.setMatrix("viewProjection",r.getTransformMatrix()),c.setMatrix("view",r.getViewMatrix()),this._scene.bindEyePosition(c,"vEyePosition")),!t._instanceDataStorage.isFrozen&&(a.backFaceCulling||null!==a.sideOrientation)){let e=s._getWorldMatrixDeterminant();h=a._getEffectiveOrientation(t),e<0&&(h=h===o.Material.ClockWiseSideOrientation?o.Material.CounterClockWiseSideOrientation:o.Material.ClockWiseSideOrientation)}else h=t._effectiveSideOrientation;if(a._preBind(_,h),a.needAlphaTestingForMesh(s)){let e=a.getAlphaTestTexture();e&&(c.setTexture("diffuseSampler",e),c.setMatrix("diffuseMatrix",e.getTextureMatrix()))}if((a.bumpTexture||a.normalTexture||a.geometryNormalTexture)&&r.getEngine().getCaps().standardDerivatives&&f.MaterialFlags.BumpTextureEnabled){let e=a.bumpTexture||a.normalTexture||a.geometryNormalTexture;c.setFloat3("vBumpInfos",e.coordinatesIndex,1/e.level,a.parallaxScaleBias),c.setMatrix("bumpMatrix",e.getTextureMatrix()),c.setTexture("bumpSampler",e),c.setFloat2("vTangentSpaceParams",a.invertNormalMapX?-1:1,a.invertNormalMapY?-1:1)}if(this._enableReflectivity&&("PBRMetallicRoughnessMaterial"===a.getClassName()?(null!==a.metallicRoughnessTexture&&(c.setTexture("reflectivitySampler",a.metallicRoughnessTexture),c.setMatrix("reflectivityMatrix",a.metallicRoughnessTexture.getTextureMatrix())),null!==a.metallic&&c.setFloat("metallic",a.metallic),null!==a.roughness&&c.setFloat("glossiness",1-a.roughness),null!==a.baseTexture&&(c.setTexture("albedoSampler",a.baseTexture),c.setMatrix("albedoMatrix",a.baseTexture.getTextureMatrix())),null!==a.baseColor&&c.setColor3("albedoColor",a.baseColor)):"PBRSpecularGlossinessMaterial"===a.getClassName()?(null!==a.specularGlossinessTexture?(c.setTexture("reflectivitySampler",a.specularGlossinessTexture),c.setMatrix("reflectivityMatrix",a.specularGlossinessTexture.getTextureMatrix())):null!==a.specularColor&&c.setColor3("reflectivityColor",a.specularColor),null!==a.glossiness&&c.setFloat("glossiness",a.glossiness)):"PBRMaterial"===a.getClassName()?(null!==a.metallicTexture&&(c.setTexture("reflectivitySampler",a.metallicTexture),c.setMatrix("reflectivityMatrix",a.metallicTexture.getTextureMatrix())),null!==a.metallic&&c.setFloat("metallic",a.metallic),null!==a.roughness&&c.setFloat("glossiness",1-a.roughness),null!==a.roughness||null!==a.metallic||null!==a.metallicTexture?(null!==a.albedoTexture&&(c.setTexture("albedoSampler",a.albedoTexture),c.setMatrix("albedoMatrix",a.albedoTexture.getTextureMatrix())),null!==a.albedoColor&&c.setColor3("albedoColor",a.albedoColor)):(null!==a.reflectivityTexture?(c.setTexture("reflectivitySampler",a.reflectivityTexture),c.setMatrix("reflectivityMatrix",a.reflectivityTexture.getTextureMatrix())):null!==a.reflectivityColor&&c.setColor3("reflectivityColor",a.reflectivityColor),null!==a.microSurface&&c.setFloat("glossiness",a.microSurface))):"StandardMaterial"===a.getClassName()?(null!==a.specularTexture&&(c.setTexture("reflectivitySampler",a.specularTexture),c.setMatrix("reflectivityMatrix",a.specularTexture.getTextureMatrix())),null!==a.specularColor&&c.setColor3("reflectivityColor",a.specularColor)):"OpenPBRMaterial"===a.getClassName()&&(a._useRoughnessFromMetallicTextureGreen&&a.baseMetalnessTexture?(c.setTexture("reflectivitySampler",a.baseMetalnessTexture),c.setMatrix("reflectivityMatrix",a.baseMetalnessTexture.getTextureMatrix())):a.baseMetalnessTexture?(c.setTexture("metallicSampler",a.baseMetalnessTexture),c.setMatrix("metallicMatrix",a.baseMetalnessTexture.getTextureMatrix())):a.specularRoughnessTexture&&(c.setTexture("roughnessSampler",a.specularRoughnessTexture),c.setMatrix("roughnessMatrix",a.specularRoughnessTexture.getTextureMatrix())),c.setFloat("metallic",a.baseMetalness),c.setFloat("glossiness",1-a.specularRoughness),null!==a.baseColorTexture&&(c.setTexture("albedoSampler",a.baseColorTexture),c.setMatrix("albedoMatrix",a.baseColorTexture.getTextureMatrix())),null!==a.baseColor&&c.setColor3("albedoColor",a.baseColor))),this._enableIrradiance&&r.environmentTexture){let e=r.environmentTexture,t=r.postProcessRenderPipelineManager.supportedPipelines.find(e=>"IBLShadowsRenderPipeline"===e.getClassName());if(t){let e=t._getAccumulatedTexture();e&&(c.setTexture("iblShadowSampler",e),c.setFloat2("shadowTextureSize",e.getSize().width,e.getSize().height))}if(c.setMatrix("reflectionMatrix",e.getReflectionTextureMatrix()),c.setFloat2("vReflectionInfos",e.level*r.iblIntensity,0),c.setTexture("reflectionSampler",e),e.irradianceTexture&&(c.setTexture("irradianceSampler",e.irradianceTexture),e.irradianceTexture._dominantDirection&&c.setVector3("vReflectionDominantDirection",e.irradianceTexture._dominantDirection)),e.sphericalPolynomial){let t=e.sphericalPolynomial;if(t.preScaledHarmonics){let e=t.preScaledHarmonics;c.setVector3("vSphericalL00",e.l00),c.setVector3("vSphericalL1_1",e.l1_1),c.setVector3("vSphericalL10",e.l10),c.setVector3("vSphericalL11",e.l11),c.setVector3("vSphericalL2_2",e.l2_2),c.setVector3("vSphericalL2_1",e.l2_1),c.setVector3("vSphericalL20",e.l20),c.setVector3("vSphericalL21",e.l21),c.setVector3("vSphericalL22",e.l22)}else c.setFloat3("vSphericalX",t.x.x,t.x.y,t.x.z),c.setFloat3("vSphericalY",t.y.x,t.y.y,t.y.z),c.setFloat3("vSphericalZ",t.z.x,t.z.y,t.z.z),c.setFloat3("vSphericalXX_ZZ",t.xx.x-t.zz.x,t.xx.y-t.zz.y,t.xx.z-t.zz.z),c.setFloat3("vSphericalYY_ZZ",t.yy.x-t.zz.x,t.yy.y-t.zz.y,t.yy.z-t.zz.z),c.setFloat3("vSphericalZZ",t.zz.x,t.zz.y,t.zz.z),c.setFloat3("vSphericalXY",t.xy.x,t.xy.y,t.xy.z),c.setFloat3("vSphericalYZ",t.yz.x,t.yz.y,t.yz.z),c.setFloat3("vSphericalZX",t.zx.x,t.zx.y,t.zx.z)}this.generateIrradianceWithScatterMask&&"OpenPBRMaterial"===a.getClassName()&&(c.setFloat("vSubsurfaceWeight",a.subsurfaceWeight),a.subsurfaceWeightTexture&&(c.setTexture("subsurfaceWeightSampler",a.subsurfaceWeightTexture),c.setMatrix("subsurfaceWeightMatrix",a.subsurfaceWeightTexture.getTextureMatrix())),c.setFloat("vTransmissionWeight",a.transmissionWeight),a.transmissionWeightTexture&&(c.setTexture("transmissionWeightSampler",a.transmissionWeightTexture),c.setMatrix("transmissionWeightMatrix",a.transmissionWeightTexture.getTextureMatrix())),c.setFloat("vTransmissionScatterAnisotropy",a.transmissionScatterAnisotropy),c.setFloat("vSubsurfaceScatterAnisotropy",a.subsurfaceScatterAnisotropy))}if((0,T.BindClipPlane)(c,a,this._scene),t.useBones&&t.computeBonesUsingShaders&&t.skeleton){let e=t.skeleton;if(e.isUsingTextureForMatrices&&c.getUniformIndex("boneTextureInfo")>-1){let s=e.getTransformMatrixTexture(t);c.setTexture("boneSampler",s),c.setFloat2("boneTextureInfo",e._textureWidth,e._textureHeight)}else c.setMatrices("mBones",t.skeleton.getTransformMatrices(t));(this._enableVelocity||this._enableVelocityLinear)&&c.setMatrices("mPreviousBones",this._previousBonesTransformationMatrices[t.uniqueId])}(0,d.BindMorphTargetParameters)(t,c),t.morphTargetManager&&t.morphTargetManager.isUsingTextureForTargets&&t.morphTargetManager._bind(c),(this._enableVelocity||this._enableVelocityLinear)&&(c.setMatrix("previousWorld",this._previousTransformationMatrices[s.uniqueId].world),c.setMatrix("previousViewProjection",this._previousTransformationMatrices[s.uniqueId].viewProjection)),l&&t.hasThinInstances&&c.setMatrix("world",u),t._processRendering(s,e,c,a.fillMode,n,l,(e,t)=>{e||c.setMatrix("world",t)})}(this._enableVelocity||this._enableVelocityLinear)&&(this._previousTransformationMatrices[s.uniqueId].world=u.clone(),this._previousTransformationMatrices[s.uniqueId].viewProjection=this._scene.getTransformMatrix().clone(),t.skeleton&&this._copyBonesTransformationMatrices(t.skeleton.getTransformMatrices(t),this._previousBonesTransformationMatrices[s.uniqueId]))};this._multiRenderTarget.customIsReadyFunction=(t,s,r)=>{if((r||0===s)&&t.subMeshes)for(let s=0;s<t.subMeshes.length;++s){let r=t.subMeshes[s],i=r.getMaterial(),a=r.getRenderingMesh();if(!i)continue;let n=a._getInstancesRenderList(r._id,!!r.getReplacementMesh()),o=e.getCaps().instancedArrays&&(null!==n.visibleInstances[r._id]||a.hasThinInstances);if(!this.isReady(r,o))return!1}return!0},this._multiRenderTarget.customRenderFunction=(t,s,r,i)=>{let a;if(this._linkedWithPrePass){if(!this._prePassRenderer.enabled)return;this._scene.getEngine().bindAttachments(this._attachmentsFromPrePass)}if(i.length){for(e.setColorWrite(!1),a=0;a<i.length;a++)A(i.data[a]);e.setColorWrite(!0)}for(a=0;a<t.length;a++)A(t.data[a]);for(e.setDepthWrite(!1),a=0;a<s.length;a++)A(s.data[a]);if(this.renderTransparentMeshes)for(a=0;a<r.length;a++)A(r.data[a]);e.setDepthWrite(!0)}}_copyBonesTransformationMatrices(e,t){for(let s=0;s<e.length;s++)t[s]=e[s];return t}}B.ForceGLSL=!1,B.DEPTH_TEXTURE_TYPE=0,B.NORMAL_TEXTURE_TYPE=1,B.POSITION_TEXTURE_TYPE=2,B.VELOCITY_TEXTURE_TYPE=3,B.REFLECTIVITY_TEXTURE_TYPE=4,B.SCREENSPACE_DEPTH_TEXTURE_TYPE=5,B.VELOCITY_LINEAR_TEXTURE_TYPE=6,B.IRRADIANCE_TEXTURE_TYPE=7,B._SceneComponentInitialization=e=>{throw(0,L._WarnImport)("GeometryBufferRendererSceneComponent")};var k=e.i(77052);let G={effect:null,subMesh:null};function V(e){if("number"==typeof e)return 1;if(e instanceof S.Vector2)return 2;if(e instanceof S.Vector3||e instanceof i.Color3)return 3;if(e instanceof S.Vector4||e instanceof i.Color4)return 4;throw Error("Unsupported OpenPBR property type.")}class z{populateVectorFromLinkedProperties(e){let t=V(e);for(let e in this.linkedProperties){let s=this.linkedProperties[e],r=s.numComponents;if(t<r||s.targetUniformComponentOffset>t-r)return void(1==r?R.Logger.Error(`Float property ${s.name} has an offset that is too large.`):R.Logger.Error(`Vector${r} property ${s.name} won't fit in Vector${t} or has an offset that is too large.`));"number"==typeof s.value?z._tmpArray[s.targetUniformComponentOffset]=s.value:s.value.toArray(z._tmpArray,s.targetUniformComponentOffset)}e.fromArray(z._tmpArray)}constructor(e,t){this.linkedProperties={},this.firstLinkedKey="",this.name=e,this.numComponents=t}}z._tmpArray=[0,0,0,0];class H{constructor(e,t,s,r,i=0,a){this.targetUniformComponentNum=4,this.targetUniformComponentOffset=0,this.name=e,this.targetUniformName=s,this.defaultValue=t,this.value=t,this.targetUniformComponentNum=r,this.targetUniformComponentOffset=i,this.requiredDefine=a}get numComponents(){return"number"==typeof this.defaultValue?1:V(this.defaultValue)}}class W{get samplerName(){return this.samplerPrefix+"Sampler"}get samplerInfoName(){return"v"+this.samplerPrefix.charAt(0).toUpperCase()+this.samplerPrefix.slice(1)+"Infos"}get samplerMatrixName(){return this.samplerPrefix+"Matrix"}constructor(e,t,s){this.value=null,this.samplerPrefix="",this.textureDefine="",this.name=e,this.samplerPrefix=t,this.textureDefine=s}}class w extends(0,E.PrepassDefinesMixin)((0,A.UVDefinesMixin)(u.MaterialDefines)){}class X extends x(w){}class Y extends(0,h.ImageProcessingDefinesMixin)(X){constructor(e){super(e),this.NUM_SAMPLES="0",this.REALTIME_FILTERING=!1,this.IBL_CDF_FILTERING=!1,this.LIGHTCOUNT=0,this.VERTEXCOLOR=!1,this.BAKED_VERTEX_ANIMATION_TEXTURE=!1,this.VERTEXALPHA=!1,this.ALPHATEST=!1,this.DEPTHPREPASS=!1,this.ALPHABLEND=!1,this.ALPHA_FROM_BASE_COLOR_TEXTURE=!1,this.ALPHATESTVALUE="0.5",this.PREMULTIPLYALPHA=!1,this.REFLECTIVITY_GAMMA=!1,this.REFLECTIVITYDIRECTUV=0,this.SPECULARTERM=!1,this.LODBASEDMICROSFURACE=!0,this.SPECULAR_ROUGHNESS_FROM_METALNESS_TEXTURE_GREEN=!1,this.BASE_METALNESS_FROM_METALNESS_TEXTURE_BLUE=!1,this.AOSTOREINMETALMAPRED=!1,this.SPECULAR_WEIGHT_IN_ALPHA=!1,this.SPECULAR_WEIGHT_FROM_SPECULAR_COLOR_TEXTURE=!1,this.SPECULAR_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE=!1,this.COAT_ROUGHNESS_FROM_GREEN_CHANNEL=!1,this.COAT_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE=!1,this.USE_GLTF_STYLE_ANISOTROPY=!1,this.THIN_FILM_THICKNESS_FROM_THIN_FILM_TEXTURE=!1,this.FUZZ_ROUGHNESS_FROM_TEXTURE_ALPHA=!1,this.SUBSURFACE_WEIGHT_FROM_TEXTURE_ALPHA=!1,this.GEOMETRY_THICKNESS_FROM_GREEN_CHANNEL=!1,this.ENVIRONMENTBRDF=!1,this.ENVIRONMENTBRDF_RGBD=!1,this.FUZZENVIRONMENTBRDF=!1,this.NORMAL=!1,this.TANGENT=!1,this.OBJECTSPACE_NORMALMAP=!1,this.PARALLAX=!1,this.PARALLAX_RHS=!1,this.PARALLAXOCCLUSION=!1,this.NORMALXYSCALE=!0,this.ANISOTROPIC=!1,this.ANISOTROPIC_OPENPBR=!0,this.ANISOTROPIC_BASE=!1,this.ANISOTROPIC_COAT=!1,this.FUZZ_IBL_SAMPLES=6,this.REFRACTION_HIGH_QUALITY_BLUR=!1,this.FUZZ=!1,this.THIN_FILM=!1,this.IRIDESCENCE=!1,this.DISPERSION=!1,this.SCATTERING=!1,this.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING=!1,this.SSS_SAMPLE_COUNT=16,this.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING_GBUFFER=!1,this.TRANSMISSION_SLAB=!1,this.TRANSMISSION_SLAB_VOLUME=!1,this.SUBSURFACE_SLAB=!1,this.GEOMETRY_THIN_WALLED=!1,this.REFRACTED_BACKGROUND=!1,this.REFRACTED_LIGHTS=!1,this.REFRACTED_ENVIRONMENT=!1,this.REFRACTED_ENVIRONMENT_OPPOSITEZ=!1,this.REFRACTED_ENVIRONMENT_LOCAL_CUBE=!1,this.RADIANCEOCCLUSION=!1,this.HORIZONOCCLUSION=!1,this.INSTANCES=!1,this.THIN_INSTANCES=!1,this.INSTANCESCOLOR=!1,this.NUM_BONE_INFLUENCERS=0,this.BonesPerMesh=0,this.BONETEXTURE=!1,this.BONES_VELOCITY_ENABLED=!1,this.NONUNIFORMSCALING=!1,this.MORPHTARGETS=!1,this.MORPHTARGETS_POSITION=!1,this.MORPHTARGETS_NORMAL=!1,this.MORPHTARGETS_TANGENT=!1,this.MORPHTARGETS_UV=!1,this.MORPHTARGETS_UV2=!1,this.MORPHTARGETS_COLOR=!1,this.MORPHTARGETTEXTURE_HASPOSITIONS=!1,this.MORPHTARGETTEXTURE_HASNORMALS=!1,this.MORPHTARGETTEXTURE_HASTANGENTS=!1,this.MORPHTARGETTEXTURE_HASUVS=!1,this.MORPHTARGETTEXTURE_HASUV2S=!1,this.MORPHTARGETTEXTURE_HASCOLORS=!1,this.NUM_MORPH_INFLUENCERS=0,this.MORPHTARGETS_TEXTURE=!1,this.USEPHYSICALLIGHTFALLOFF=!1,this.USEGLTFLIGHTFALLOFF=!1,this.TWOSIDEDLIGHTING=!1,this.MIRRORED=!1,this.SHADOWFLOAT=!1,this.CLIPPLANE=!1,this.CLIPPLANE2=!1,this.CLIPPLANE3=!1,this.CLIPPLANE4=!1,this.CLIPPLANE5=!1,this.CLIPPLANE6=!1,this.POINTSIZE=!1,this.FOG=!1,this.LOGARITHMICDEPTH=!1,this.CAMERA_ORTHOGRAPHIC=!1,this.CAMERA_PERSPECTIVE=!1,this.AREALIGHTSUPPORTED=!0,this.FORCENORMALFORWARD=!1,this.SPECULARAA=!1,this.UNLIT=!1,this.DECAL_AFTER_DETAIL=!1,this.TEXTURE_REPETITION_MODE=0,this.DEBUGMODE=0,this.USE_VERTEX_PULLING=!1,this.VERTEX_PULLING_USE_INDEX_BUFFER=!1,this.VERTEX_PULLING_INDEX_BUFFER_32BITS=!1,this.RIGHT_HANDED=!1,this.CLUSTLIGHT_SLICES=0,this.CLUSTLIGHT_BATCH=0,this.BRDF_V_HEIGHT_CORRELATED=!0,this.MS_BRDF_ENERGY_CONSERVATION=!0,this.SPHERICAL_HARMONICS=!0,this.SPECULAR_GLOSSINESS_ENERGY_CONSERVATION=!0,this.MIX_IBL_RADIANCE_WITH_IRRADIANCE=!0,this.LEGACY_SPECULAR_ENERGY_CONSERVATION=!1,this.BASE_DIFFUSE_MODEL=0,this.DIELECTRIC_SPECULAR_MODEL=1,this.CONDUCTOR_SPECULAR_MODEL=1,this.rebuild()}reset(){super.reset(),this.ALPHATESTVALUE="0.5",this.NORMALXYSCALE=!0}}class Z extends(0,y.ImageProcessingMixin)(M.PushMaterial){}class K extends Z{get geometryTangentAngle(){return Math.atan2(this.geometryTangent.y,this.geometryTangent.x)}set geometryTangentAngle(e){this.geometryTangent=new S.Vector2(Math.cos(e),Math.sin(e))}get geometryCoatTangentAngle(){return Math.atan2(this.geometryCoatTangent.y,this.geometryCoatTangent.x)}set geometryCoatTangentAngle(e){this.geometryCoatTangent=new S.Vector2(Math.cos(e),Math.sin(e))}get sssQuality(){return this._sssQuality}set sssQuality(e){this._sssQuality!==e&&(this._sssQuality=e,this.markAsDirty(1))}get sssIrradianceTexture(){return this._sssIrradianceTexture}set sssIrradianceTexture(e){this._sssIrradianceTexture!==e&&(this._sssIrradianceTexture=e,this._markAllSubMeshesAsTexturesDirty())}get sssDepthTexture(){return this._sssDepthTexture}set sssDepthTexture(e){this._sssDepthTexture!==e&&(this._sssDepthTexture=e,this._markAllSubMeshesAsTexturesDirty())}get hasTransparency(){return this.subsurfaceWeight>0||this.transmissionWeight>0}get hasScattering(){return this.transmissionWeight>0&&this.transmissionDepth>0&&!this.transmissionScatter.equals(i.Color3.BlackReadOnly)||this.subsurfaceWeight>0}get usePhysicalLightFalloff(){return this._lightFalloff===o.Material.LIGHTFALLOFF_PHYSICAL}set usePhysicalLightFalloff(e){e!==this.usePhysicalLightFalloff&&(this._markAllSubMeshesAsTexturesDirty(),e?this._lightFalloff=o.Material.LIGHTFALLOFF_PHYSICAL:this._lightFalloff=o.Material.LIGHTFALLOFF_STANDARD)}get useGLTFLightFalloff(){return this._lightFalloff===o.Material.LIGHTFALLOFF_GLTF}set useGLTFLightFalloff(e){e!==this.useGLTFLightFalloff&&(this._markAllSubMeshesAsTexturesDirty(),e?this._lightFalloff=o.Material.LIGHTFALLOFF_GLTF:this._lightFalloff=o.Material.LIGHTFALLOFF_STANDARD)}get backgroundRefractionTexture(){return this._backgroundRefractionTexture}set backgroundRefractionTexture(e){this._backgroundRefractionTexture=e,this._markAllSubMeshesAsTexturesDirty()}get refractionHighQualityBlur(){return this._refractionHighQualityBlur}set refractionHighQualityBlur(e){this._refractionHighQualityBlur!==e&&(this._refractionHighQualityBlur=e,this.markAsDirty(1))}get realTimeFiltering(){return this._realTimeFiltering}set realTimeFiltering(e){this._realTimeFiltering=e,this.markAsDirty(1)}get realTimeFilteringQuality(){return this._realTimeFilteringQuality}set realTimeFilteringQuality(e){this._realTimeFilteringQuality=e,this.markAsDirty(1)}get fuzzSampleNumber(){return this._fuzzSampleNumber}set fuzzSampleNumber(e){this._fuzzSampleNumber=e,this.markAsDirty(1)}get canRenderToMRT(){return!0}constructor(e,t,s=!1){for(const a of(super(e,t,void 0,s||K.ForceGLSL),this._baseWeight=new H("base_weight",1,"vBaseWeight",1),this._baseWeightTexture=new W("base_weight","baseWeight","BASE_WEIGHT"),this._baseColor=new H("base_color",i.Color3.White(),"vBaseColor",4),this._baseColorTexture=new W("base_color","baseColor","BASE_COLOR"),this._baseDiffuseRoughness=new H("base_diffuse_roughness",0,"vBaseDiffuseRoughness",1),this._baseDiffuseRoughnessTexture=new W("base_diffuse_roughness","baseDiffuseRoughness","BASE_DIFFUSE_ROUGHNESS"),this._baseMetalness=new H("base_metalness",0,"vReflectanceInfo",4,0),this._baseMetalnessTexture=new W("base_metalness","baseMetalness","BASE_METALNESS"),this._specularWeight=new H("specular_weight",1,"vReflectanceInfo",4,3),this._specularWeightTexture=new W("specular_weight","specularWeight","SPECULAR_WEIGHT"),this._specularColor=new H("specular_color",i.Color3.White(),"vSpecularColor",4),this._specularColorTexture=new W("specular_color","specularColor","SPECULAR_COLOR"),this._specularRoughness=new H("specular_roughness",.3,"vReflectanceInfo",4,1),this._specularRoughnessTexture=new W("specular_roughness","specularRoughness","SPECULAR_ROUGHNESS"),this._specularRoughnessAnisotropy=new H("specular_roughness_anisotropy",0,"vSpecularAnisotropy",3,2),this._specularRoughnessAnisotropyTexture=new W("specular_roughness_anisotropy","specularRoughnessAnisotropy","SPECULAR_ROUGHNESS_ANISOTROPY"),this._specularIor=new H("specular_ior",1.5,"vReflectanceInfo",4,2),this._transmissionWeight=new H("transmission_weight",0,"vTransmissionWeight",1),this._transmissionWeightTexture=new W("transmission_weight","transmissionWeight","TRANSMISSION_WEIGHT"),this._transmissionColor=new H("transmission_color",i.Color3.White(),"vTransmissionColor",3,0),this._transmissionColorTexture=new W("transmission_color","transmissionColor","TRANSMISSION_COLOR"),this._transmissionDepth=new H("transmission_depth",0,"vTransmissionDepth",1,0),this._transmissionDepthTexture=new W("transmission_depth","transmissionDepth","TRANSMISSION_DEPTH"),this._transmissionScatter=new H("transmission_scatter",i.Color3.Black(),"vTransmissionScatter",3,0),this._transmissionScatterTexture=new W("transmission_scatter","transmissionScatter","TRANSMISSION_SCATTER"),this._transmissionScatterAnisotropy=new H("transmission_scatter_anisotropy",0,"vTransmissionScatterAnisotropy",1,0),this._transmissionDispersionScale=new H("transmission_dispersion_scale",0,"vTransmissionDispersionScale",1,0),this._transmissionDispersionScaleTexture=new W("transmission_dispersion_scale","transmissionDispersionScale","TRANSMISSION_DISPERSION_SCALE"),this._transmissionDispersionAbbeNumber=new H("transmission_dispersion_abbe_number",20,"vTransmissionDispersionAbbeNumber",1,0),this._subsurfaceWeight=new H("subsurface_weight",0,"vSubsurfaceWeight",1,0,"SUBSURFACE_SLAB"),this._subsurfaceWeightTexture=new W("subsurface_weight","subsurfaceWeight","SUBSURFACE_WEIGHT"),this._subsurfaceColor=new H("subsurface_color",new i.Color3(.8,.8,.8),"vSubsurfaceColor",3,0,"SUBSURFACE_SLAB"),this._subsurfaceColorTexture=new W("subsurface_color","subsurfaceColor","SUBSURFACE_COLOR"),this._subsurfaceRadius=new H("subsurface_radius",.1,"vSubsurfaceRadius",1,0,"SUBSURFACE_SLAB"),this._subsurfaceRadiusScale=new H("subsurface_radius_scale",new i.Color3(1,.5,.25),"vSubsurfaceRadiusScale",3,0,"SUBSURFACE_SLAB"),this._subsurfaceRadiusScaleTexture=new W("subsurface_radius_scale","subsurfaceRadiusScale","SUBSURFACE_RADIUS_SCALE"),this._subsurfaceScatterAnisotropy=new H("subsurface_scatter_anisotropy",0,"vSubsurfaceScatterAnisotropy",1,0,"SUBSURFACE_SLAB"),this._coatWeight=new H("coat_weight",0,"vCoatWeight",1,0),this._coatWeightTexture=new W("coat_weight","coatWeight","COAT_WEIGHT"),this._coatColor=new H("coat_color",i.Color3.White(),"vCoatColor",3,0),this._coatColorTexture=new W("coat_color","coatColor","COAT_COLOR"),this._coatRoughness=new H("coat_roughness",0,"vCoatRoughness",1,0),this._coatRoughnessTexture=new W("coat_roughness","coatRoughness","COAT_ROUGHNESS"),this._coatRoughnessAnisotropy=new H("coat_roughness_anisotropy",0,"vCoatRoughnessAnisotropy",1),this._coatRoughnessAnisotropyTexture=new W("coat_roughness_anisotropy","coatRoughnessAnisotropy","COAT_ROUGHNESS_ANISOTROPY"),this._coatIor=new H("coat_ior",1.5,"vCoatIor",1,0),this._coatDarkening=new H("coat_darkening",1,"vCoatDarkening",1,0),this._coatDarkeningTexture=new W("coat_darkening","coatDarkening","COAT_DARKENING"),this.useCoatRoughnessFromWeightTexture=!1,this._fuzzWeight=new H("fuzz_weight",0,"vFuzzWeight",1,0),this._fuzzWeightTexture=new W("fuzz_weight","fuzzWeight","FUZZ_WEIGHT"),this._fuzzColor=new H("fuzz_color",i.Color3.White(),"vFuzzColor",3,0),this._fuzzColorTexture=new W("fuzz_color","fuzzColor","FUZZ_COLOR"),this._fuzzRoughness=new H("fuzz_roughness",.5,"vFuzzRoughness",1,0),this._fuzzRoughnessTexture=new W("fuzz_roughness","fuzzRoughness","FUZZ_ROUGHNESS"),this._geometryThinWalled=new H("geometry_thin_walled",0,"vGeometryThinWalled",1,0),this._geometryNormalTexture=new W("geometry_normal","geometryNormal","GEOMETRY_NORMAL"),this._geometryTangent=new H("geometry_tangent",new S.Vector2(1,0),"vSpecularAnisotropy",3,0),this._geometryTangentTexture=new W("geometry_tangent","geometryTangent","GEOMETRY_TANGENT"),this._geometryCoatNormalTexture=new W("geometry_coat_normal","geometryCoatNormal","GEOMETRY_COAT_NORMAL"),this._geometryCoatTangent=new H("geometry_coat_tangent",new S.Vector2(1,0),"vGeometryCoatTangent",2,0),this._geometryCoatTangentTexture=new W("geometry_coat_tangent","geometryCoatTangent","GEOMETRY_COAT_TANGENT"),this._geometryOpacity=new H("geometry_opacity",1,"vBaseColor",4,3),this._geometryOpacityTexture=new W("geometry_opacity","geometryOpacity","GEOMETRY_OPACITY"),this._geometryThickness=new H("geometry_thickness",0,"vGeometryThickness",1,0),this._geometryThicknessTexture=new W("geometry_thickness","geometryThickness","GEOMETRY_THICKNESS"),this._emissionLuminance=new H("emission_luminance",1,"vLightingIntensity",4,1),this._emissionColor=new H("emission_color",i.Color3.Black(),"vEmissionColor",3),this._emissionColorTexture=new W("emission_color","emissionColor","EMISSION_COLOR"),this._thinFilmWeight=new H("thin_film_weight",0,"vThinFilmWeight",1,0),this._thinFilmWeightTexture=new W("thin_film_weight","thinFilmWeight","THIN_FILM_WEIGHT"),this._thinFilmThickness=new H("thin_film_thickness",.5,"vThinFilmThickness",2,0),this._thinFilmThicknessMin=new H("thin_film_thickness_min",0,"vThinFilmThickness",2,1),this._thinFilmThicknessTexture=new W("thin_film_thickness","thinFilmThickness","THIN_FILM_THICKNESS"),this._thinFilmIor=new H("thin_film_ior",1.4,"vThinFilmIor",1,0),this._ambientOcclusionTexture=new W("ambient_occlusion","ambientOcclusion","AMBIENT_OCCLUSION"),this._sssQuality=K.SSS_QUALITY_MEDIUM,this._sssIrradianceTexture=null,this._sssDepthTexture=null,this._uniformsList={},this._uniformsArray=[],this._samplersList={},this._samplerDefines={},this.directIntensity=1,this.environmentIntensity=1,this.useSpecularWeightFromTextureAlpha=!1,this.forceAlphaTest=!1,this.alphaCutOff=.4,this.useAmbientOcclusionFromMetallicTextureRed=!1,this.useAmbientInGrayScale=!1,this.useObjectSpaceNormalMap=!1,this.useParallax=!1,this.useParallaxOcclusion=!1,this.parallaxScaleBias=.05,this.disableLighting=!1,this.forceIrradianceInFragment=!1,this.maxSimultaneousLights=4,this.invertNormalMapX=!1,this.invertNormalMapY=!1,this.twoSidedLighting=!1,this.useAlphaFresnel=!1,this.useLinearAlphaFresnel=!1,this.environmentBRDFTexture=null,this.forceNormalForward=!1,this.enableSpecularAntiAliasing=!1,this.useHorizonOcclusion=!0,this.useRadianceOcclusion=!0,this.unlit=!1,this.applyDecalMapAfterDetailMap=!1,this._lightingInfos=new S.Vector4(this.directIntensity,1,this.environmentIntensity,1),this._radianceTexture=null,this._useSpecularWeightFromAlpha=!1,this._useSpecularWeightFromSpecularColorTexture=!1,this._useSpecularRoughnessAnisotropyFromTangentTexture=!1,this._useCoatRoughnessAnisotropyFromTangentTexture=!1,this._useCoatRoughnessFromGreenChannel=!1,this._useGltfStyleAnisotropy=!1,this._useFuzzRoughnessFromTextureAlpha=!1,this._useSubsurfaceWeightFromTextureAlpha=!1,this._useHorizonOcclusion=!0,this._useRadianceOcclusion=!0,this._useAlphaFromBaseColorTexture=!1,this._useAmbientOcclusionFromMetallicTextureRed=!1,this._useRoughnessFromMetallicTextureGreen=!1,this._useMetallicFromMetallicTextureBlue=!1,this._useThinFilmThicknessFromTextureGreen=!1,this._useGeometryThicknessFromGreenChannel=!1,this._lightFalloff=o.Material.LIGHTFALLOFF_PHYSICAL,this._useObjectSpaceNormalMap=!1,this._useParallax=!1,this._useParallaxOcclusion=!1,this._parallaxScaleBias=.05,this._disableLighting=!1,this._maxSimultaneousLights=4,this._invertNormalMapX=!1,this._invertNormalMapY=!1,this._twoSidedLighting=!1,this._alphaCutOff=.4,this._useAlphaFresnel=!1,this._useLinearAlphaFresnel=!1,this._environmentBRDFTexture=null,this._environmentFuzzBRDFTexture=null,this._backgroundRefractionTexture=null,this._refractionHighQualityBlur=!0,this._forceIrradianceInFragment=!1,this._realTimeFiltering=!1,this._realTimeFilteringQuality=8,this._fuzzSampleNumber=4,this._forceNormalForward=!1,this._enableSpecularAntiAliasing=!1,this._renderTargets=new I.SmartArray(16),this._unlit=!1,this._applyDecalMapAfterDetailMap=!1,this._debugMode=0,this._shadersLoaded=!1,this._breakShaderLoadedCheck=!1,this._vertexPullingMetadata=null,this.debugMode=0,this.debugLimit=-1,this.debugFactor=1,this._cacheHasRenderTargetTextures=!1,this._transparencyMode=o.Material.MATERIAL_OPAQUE,this.getScene()&&!this.getScene()?.getEngine().isWebGPU&&this.getScene().getEngine().webGLVersion<2&&R.Logger.Error("OpenPBRMaterial: WebGL 2.0 or above is required for this material."),K._noiseTextures[this.getScene().uniqueId]||(K._noiseTextures[this.getScene().uniqueId]=new n.Texture(C.Tools.GetAssetUrl("https://assets.babylonjs.com/core/blue_noise/blue_noise_rgb.png"),this.getScene(),!1,!0,1),this.getScene().onDisposeObservable.addOnce(()=>{K._noiseTextures[this.getScene().uniqueId]?.dispose(),delete K._noiseTextures[this.getScene().uniqueId]})),this._attachImageProcessingConfiguration(null),this.getRenderTargetTextures=()=>(this._renderTargets.reset(),f.MaterialFlags.ReflectionTextureEnabled&&this._radianceTexture&&this._radianceTexture.isRenderTarget&&this._renderTargets.push(this._radianceTexture),f.MaterialFlags.RefractionTextureEnabled&&this._backgroundRefractionTexture&&this._backgroundRefractionTexture.isRenderTarget&&this._renderTargets.push(this._backgroundRefractionTexture),this._eventInfo.renderTargets=this._renderTargets,this._callbackPluginEventFillRenderTargetTextures(this._eventInfo),this._renderTargets),this._environmentBRDFTexture=(0,r.GetOpenPBREnvironmentBRDFTexture)(this.getScene()),this._environmentFuzzBRDFTexture=(0,r.GetEnvironmentFuzzBRDFTexture)(this.getScene()),this.prePassConfiguration=new g.PrePassConfiguration,this._propertyList={},Object.getOwnPropertyNames(this))){const e=this[a];e instanceof H&&(this._propertyList[a]=e)}for(const e of(Object.keys(this._propertyList).forEach(e=>{let t=this._propertyList[e],s=this._uniformsList[t.targetUniformName];s?s.numComponents!==t.targetUniformComponentNum?R.Logger.Error(`Uniform ${t.targetUniformName} already exists of size ${s.numComponents}, but trying to set it to ${t.targetUniformComponentNum}.`):s.requiredDefine!==t.requiredDefine&&(s.requiredDefine=void 0):((s=new z(t.targetUniformName,t.targetUniformComponentNum)).requiredDefine=t.requiredDefine,this._uniformsList[t.targetUniformName]=s),""===s.firstLinkedKey&&(s.firstLinkedKey=t.name),s.linkedProperties[t.name]=t}),this._uniformsArray=Object.values(this._uniformsList),this._samplersList={},Object.getOwnPropertyNames(this))){const t=this[e];t instanceof W&&(this._samplersList[e]=t)}for(const e in this._samplersList){const t=this._samplersList[e].textureDefine;this._samplerDefines[t]={type:"boolean",default:!1},this._samplerDefines[t+"DIRECTUV"]={type:"number",default:0},this._samplerDefines[t+"_GAMMA"]={type:"boolean",default:!1}}this._baseWeight,this._baseWeightTexture,this._baseColor,this._baseColorTexture,this._baseDiffuseRoughness,this._baseDiffuseRoughnessTexture,this._baseMetalness,this._baseMetalnessTexture,this._specularWeight,this._specularWeightTexture,this._specularColor,this._specularColorTexture,this._specularRoughness,this._specularIor,this._specularRoughnessTexture,this._specularRoughnessAnisotropy,this._specularRoughnessAnisotropyTexture,this._transmissionWeight,this._transmissionWeightTexture,this._transmissionColor,this._transmissionColorTexture,this._transmissionDepth,this._transmissionDepthTexture,this._transmissionScatter,this._transmissionScatterTexture,this._transmissionScatterAnisotropy,this._transmissionDispersionScale,this._transmissionDispersionScaleTexture,this._transmissionDispersionAbbeNumber,this._subsurfaceWeight,this._subsurfaceWeightTexture,this._subsurfaceColor,this._subsurfaceColorTexture,this._subsurfaceRadius,this._subsurfaceRadiusScale,this._subsurfaceRadiusScaleTexture,this._subsurfaceScatterAnisotropy,this._coatWeight,this._coatWeightTexture,this._coatColor,this._coatColorTexture,this._coatRoughness,this._coatRoughnessTexture,this._coatRoughnessAnisotropy,this._coatRoughnessAnisotropyTexture,this._coatIor,this._coatDarkening,this._coatDarkeningTexture,this._fuzzWeight,this._fuzzWeightTexture,this._fuzzColor,this._fuzzColorTexture,this._fuzzRoughness,this._fuzzRoughnessTexture,this._geometryThinWalled,this._geometryNormalTexture,this._geometryTangent,this._geometryTangentTexture,this._geometryCoatNormalTexture,this._geometryCoatTangent,this._geometryCoatTangentTexture,this._geometryOpacity,this._geometryOpacityTexture,this._geometryThickness,this._geometryThicknessTexture,this._thinFilmWeight,this._thinFilmWeightTexture,this._thinFilmThickness,this._thinFilmThicknessMin,this._thinFilmThicknessTexture,this._thinFilmIor,this._emissionLuminance,this._emissionColor,this._emissionColorTexture,this._ambientOcclusionTexture}get hasRenderTargetTextures(){return!!f.MaterialFlags.ReflectionTextureEnabled&&!!this._radianceTexture&&!!this._radianceTexture.isRenderTarget||!!f.MaterialFlags.RefractionTextureEnabled&&!!this._backgroundRefractionTexture&&!!this._backgroundRefractionTexture.isRenderTarget||this._cacheHasRenderTargetTextures}get isPrePassCapable(){return!this.disableDepthWrite}getClassName(){return"OpenPBRMaterial"}get transparencyMode(){return this._transparencyMode}set transparencyMode(e){this._transparencyMode!==e&&(this._transparencyMode=e,this._markAllSubMeshesAsTexturesAndMiscDirty())}_shouldUseAlphaFromBaseColorTexture(){return this._hasAlphaChannel()&&this._transparencyMode!==o.Material.MATERIAL_OPAQUE&&!this.geometryOpacityTexture}_hasAlphaChannel(){return null!=this.baseColorTexture&&this.baseColorTexture.hasAlpha&&this._useAlphaFromBaseColorTexture||null!=this.geometryOpacityTexture}needAlphaBlending(){return this.geometryOpacity<1||null!=this.geometryOpacityTexture}needAlphaBlendingForMesh(e){return this.geometryOpacity<1||null!=this.geometryOpacityTexture||super.needAlphaBlendingForMesh(e)}clone(e,t=!0,s=""){let r=l.SerializationHelper.Clone(()=>new K(e,this.getScene()),this,{cloneTexturesOnlyOnce:t});return r.id=e,r.name=e,this.stencil.copyTo(r.stencil),this._clonePlugins(r,s),r}serialize(){let e=super.serialize();return e.customType="BABYLON.OpenPBRMaterial",e}static Parse(e,t,s){let r=l.SerializationHelper.Parse(()=>new K(e.name,t),e,t,s);return e.stencil&&r.stencil.parse(e.stencil,t,s),o.Material._ParsePlugins(e,r,t,s),r}forceCompilation(e,t,s){let r={clipPlane:!1,useInstances:!1,...s};this._uniformBufferLayoutBuilt||this.buildUniformLayout(),this._callbackPluginEventGeneric(4,this._eventInfo),(()=>{if(this._breakShaderLoadedCheck)return;let s=new Y({...this._eventInfo.defineNames||{},...this._samplerDefines||{}}),i=this._prepareEffect(e,e,s,void 0,void 0,r.useInstances,r.clipPlane);this._onEffectCreatedObservable&&(G.effect=i,G.subMesh=null,this._onEffectCreatedObservable.notifyObservers(G)),i.isReady()?t&&t(this):i.onCompileObservable.add(()=>{t&&t(this)})})()}isReadyForSubMesh(e,t,s){this._uniformBufferLayoutBuilt||this.buildUniformLayout();let r=t._drawWrapper;if(r.effect&&this.isFrozen&&r._wasPreviouslyReady&&r._wasPreviouslyUsingInstances===s)return!0;t.materialDefines||(this._callbackPluginEventGeneric(4,this._eventInfo),t.materialDefines=new Y({...this._eventInfo.defineNames||{},...this._samplerDefines||{}}));let i=t.materialDefines;if(this._isReadyForSubMesh(t))return!0;let a=this.getScene(),n=a.getEngine();if(i._areTexturesDirty&&(this._eventInfo.hasRenderTargetTextures=!1,this._callbackPluginEventHasRenderTargetTextures(this._eventInfo),this._cacheHasRenderTargetTextures=this._eventInfo.hasRenderTargetTextures,a.texturesEnabled)){for(let e in this._samplersList){let t=this._samplersList[e];if(t.value&&!t.value.isReadyOrNotBlocking())return!1}let e=this._getRadianceTexture();if(e&&f.MaterialFlags.ReflectionTextureEnabled){if(!e.isReadyOrNotBlocking())return!1;if(e.irradianceTexture){if(!e.irradianceTexture.isReadyOrNotBlocking())return!1}else if(!e.sphericalPolynomial&&e.getInternalTexture()?._sphericalPolynomialPromise)return!1}if(this._environmentBRDFTexture&&f.MaterialFlags.ReflectionTextureEnabled&&!this._environmentBRDFTexture.isReady()||this._environmentFuzzBRDFTexture&&f.MaterialFlags.ReflectionTextureEnabled&&!this._environmentFuzzBRDFTexture.isReady()||this._backgroundRefractionTexture&&f.MaterialFlags.RefractionTextureEnabled&&!this._backgroundRefractionTexture.isReadyOrNotBlocking()||K._noiseTextures[a.uniqueId]&&!K._noiseTextures[a.uniqueId].isReady()||this._sssIrradianceTexture&&this._sssDepthTexture&&(!this._sssIrradianceTexture.isReady()||!this._sssDepthTexture.isReady()))return!1}if(this._eventInfo.isReadyForSubMesh=!0,this._eventInfo.defines=i,this._eventInfo.subMesh=t,this._callbackPluginEventIsReadyForSubMesh(this._eventInfo),!this._eventInfo.isReadyForSubMesh||i._areImageProcessingDirty&&this._imageProcessingConfiguration&&!this._imageProcessingConfiguration.isReady())return!1;if(i.AREALIGHTUSED){for(let t=0;t<e.lightSources.length;t++)if(!e.lightSources[t]._isReady())return!1}if(n.getCaps().standardDerivatives||e.isVerticesDataPresent(p.VertexBuffer.NormalKind)||(e.createNormals(!0),R.Logger.Warn("OpenPBRMaterial: Normals have been created for the mesh: "+e.name)),!(0,d.AreLightsTexturesReady)(a,e,this._maxSimultaneousLights,this._disableLighting))return!1;let o=t.effect,l=i._areLightsDisposed,u=this._prepareEffect(e,t.getRenderingMesh(),i,this.onCompiled,this.onError,s,null),h=!1;if(u)if(this._onEffectCreatedObservable&&(G.effect=u,G.subMesh=t,this._onEffectCreatedObservable.notifyObservers(G)),this.allowShaderHotSwapping&&o&&!u.isReady()){if(i.markAsUnprocessed(),h=this.isFrozen,l)return i._areLightsDisposed=!0,!1}else a.resetCachedMaterial(),t.setEffect(u,i,this._materialContext);return!!t.effect&&!!t.effect.isReady()&&(i._renderId=a.getRenderId(),r._wasPreviouslyReady=!h,r._wasPreviouslyUsingInstances=!!s,this._checkScenePerformancePriority(),!0)}buildUniformLayout(){let e=this._uniformBuffer;e.addUniform("vTangentSpaceParams",2),e.addUniform("vLightingIntensity",4),e.addUniform("pointSize",1),e.addUniform("vDebugMode",2),e.addUniform("renderTargetSize",2),e.addUniform("cameraInfo",4),e.addUniform("vTextureRepetitionHexTilingParams",4),e.addUniform("backgroundRefractionMatrix",16),e.addUniform("vBackgroundRefractionInfos",3),(0,d.PrepareUniformLayoutForIBL)(e,!0,!0,!0,!0,!0),Object.values(this._uniformsList).forEach(t=>{e.addUniform(t.name,t.numComponents)}),Object.values(this._samplersList).forEach(t=>{e.addUniform(t.samplerInfoName,2),e.addUniform(t.samplerMatrixName,16)}),super.buildUniformLayout()}bindPropertiesForSubMesh(e,t,s,r){if(0===this.geometryThickness)e.updateFloat("vGeometryThickness",0);else{r.getRenderingMesh().getWorldMatrix().decompose(S.TmpVectors.Vector3[0]);let t=Math.max(Math.abs(S.TmpVectors.Vector3[0].x),Math.abs(S.TmpVectors.Vector3[0].y),Math.abs(S.TmpVectors.Vector3[0].z));e.updateFloat("vGeometryThickness",this.geometryThickness*t)}}bindForSubMesh(e,t,s){let r=this.getScene(),a=s.materialDefines;if(!a)return;let n=s.effect;if(!n)return;this._activeEffect=n,t.getMeshUniformBuffer().bindToEffect(n,"Mesh"),t.transferToEffect(e);let o=r.getEngine();this._uniformBuffer.bindToEffect(n,"Material"),this.prePassConfiguration.bindForSubMesh(this._activeEffect,r,t,e,this.isFrozen),m.MaterialHelperGeometryRendering.Bind(o.currentRenderPassId,this._activeEffect,t,e,this);let l=r.activeCamera;l?this._uniformBuffer.updateFloat4("cameraInfo",l.minZ,l.maxZ,0,0):this._uniformBuffer.updateFloat4("cameraInfo",0,0,0,0);let u=this.textureRepetitionHexTilingParams;this._uniformBuffer.updateFloat4("vTextureRepetitionHexTilingParams",u[0],u[1],u[2],u[3]),this._eventInfo.subMesh=s,this._callbackPluginEventHardBindForSubMesh(this._eventInfo),a.OBJECTSPACE_NORMALMAP&&(e.toNormalMatrix(this._normalMatrix),this.bindOnlyNormalMatrix(this._normalMatrix));let h=this._mustRebind(r,n,s,t.visibility),_=o._features.needToAlwaysBindUniformBuffers;(0,d.BindBonesParameters)(t,this._activeEffect,this.prePassConfiguration),this._vertexPullingMetadata&&(0,c.BindVertexPullingUniforms)(this._activeEffect,this._vertexPullingMetadata);let p=this._uniformBuffer;if(h){this.bindViewProjection(n);let e=this._getRadianceTexture();if(!p.useUbo||!this.isFrozen||!p.isSync||s._drawWrapper._forceRebindOnNextCall){if(r.texturesEnabled){for(let e in this._samplersList){let t=this._samplersList[e];t.value&&(p.updateFloat2(t.samplerInfoName,t.value.coordinatesIndex,t.value.level),(0,d.BindTextureMatrix)(t.value,p,t.samplerPrefix))}(this.geometryNormalTexture||this.geometryCoatNormalTexture)&&(r._mirroredCameraPosition?p.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?1:-1,this._invertNormalMapY?1:-1):p.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?-1:1,this._invertNormalMapY?-1:1)),(0,d.BindIBLParameters)(r,a,p,i.Color3.White(),e,this.realTimeFiltering,!0,!0,!0,!0,!0)}this.pointsCloud&&p.updateFloat("pointSize",this.pointSize);let t=this._uniformsArray;for(let e=0,s=t.length;e<s;e++){let s=t[e];(void 0===s.requiredDefine||a[s.requiredDefine])&&(4===s.numComponents?(s.populateVectorFromLinkedProperties(S.TmpVectors.Vector4[0]),p.updateVector4(s.name,S.TmpVectors.Vector4[0])):3===s.numComponents?(s.populateVectorFromLinkedProperties(S.TmpVectors.Vector3[0]),p.updateVector3(s.name,S.TmpVectors.Vector3[0])):2===s.numComponents?(s.populateVectorFromLinkedProperties(S.TmpVectors.Vector2[0]),p.updateFloat2(s.name,S.TmpVectors.Vector2[0].x,S.TmpVectors.Vector2[0].y)):1===s.numComponents&&p.updateFloat(s.name,s.linkedProperties[s.firstLinkedKey].value))}this._lightingInfos.x=this.directIntensity,this._lightingInfos.y=this.emissionLuminance,this._lightingInfos.z=this.environmentIntensity*r.environmentIntensity,this._lightingInfos.w=1,p.updateVector4("vLightingIntensity",this._lightingInfos),p.updateFloat2("vDebugMode",this.debugLimit,this.debugFactor)}if(r.texturesEnabled){for(let e in this._samplersList){let t=this._samplersList[e];t.value&&p.setTexture(t.samplerName,t.value)}if((0,d.BindIBLSamplers)(r,a,p,e,this.realTimeFiltering),a.ENVIRONMENTBRDF&&p.setTexture("environmentBrdfSampler",this._environmentBRDFTexture),a.FUZZENVIRONMENTBRDF&&p.setTexture("environmentFuzzBrdfSampler",this._environmentFuzzBRDFTexture),a.REFRACTED_BACKGROUND&&(p.setTexture("backgroundRefractionSampler",this._backgroundRefractionTexture),p.updateMatrix("backgroundRefractionMatrix",this._backgroundRefractionTexture.getReflectionTextureMatrix()),S.TmpVectors.Vector3[1].set(Math.log2(this._backgroundRefractionTexture.getSize().width),0,0),p.updateVector3("vBackgroundRefractionInfos",S.TmpVectors.Vector3[1])),(a.ANISOTROPIC||a.FUZZ||a.REFRACTED_BACKGROUND||a.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING)&&p.setTexture("blueNoiseSampler",K._noiseTextures[this.getScene().uniqueId]),a.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING&&this.sssIrradianceTexture&&this.sssDepthTexture){let e=this.sssIrradianceTexture.getSize().width,t=this.sssIrradianceTexture.getSize().height;p.setTexture("sceneIrradianceSampler",this.sssIrradianceTexture),p.setTexture("sceneDepthSampler",this.sssDepthTexture),p.updateFloat2("renderTargetSize",e,t)}}this.getScene().useOrderIndependentTransparency&&this.needAlphaBlendingForMesh(t)&&this.getScene().depthPeelingRenderer.bind(n),this._eventInfo.subMesh=s,this._callbackPluginEventBindForSubMesh(this._eventInfo),(0,T.BindClipPlane)(this._activeEffect,this,r),this.bindEyePosition(n)}else _&&(this._needToBindSceneUbo=!0);this.bindPropertiesForSubMesh(this._uniformBuffer,r,r.getEngine(),s),(h||!this.isFrozen||_)&&r.lightsEnabled&&!this._disableLighting&&(0,d.BindLights)(r,t,this._activeEffect,a,this._maxSimultaneousLights),(h||!this.isFrozen)&&(this.bindView(n),(0,d.BindFogParameters)(r,t,this._activeEffect,!0),a.NUM_MORPH_INFLUENCERS&&(0,d.BindMorphTargetParameters)(t,this._activeEffect),a.BAKED_VERTEX_ANIMATION_TEXTURE&&t.bakedVertexAnimationManager?.bind(n,a.INSTANCES),this._imageProcessingConfiguration.bind(this._activeEffect),(0,d.BindLogDepth)(a,this._activeEffect,r)),this._afterBind(t,this._activeEffect,s),p.update()}getAnimatables(){let e=super.getAnimatables();for(let t in this._samplersList){let s=this._samplersList[t];s.value&&s.value.animations&&s.value.animations.length>0&&e.push(s.value)}return this._radianceTexture&&this._radianceTexture.animations&&this._radianceTexture.animations.length>0&&e.push(this._radianceTexture),e}getActiveTextures(){let e=super.getActiveTextures();for(let t in this._samplersList){let s=this._samplersList[t];s.value&&e.push(s.value)}return this._radianceTexture&&e.push(this._radianceTexture),e}hasTexture(e){if(super.hasTexture(e))return!0;for(let t in this._samplersList)if(this._samplersList[t].value===e)return!0;return this._radianceTexture===e}setPrePassRenderer(){return!1}dispose(e,t){if(this._breakShaderLoadedCheck=!0,t){for(let e in this._environmentBRDFTexture&&this.getScene().openPBREnvironmentBRDFTexture!==this._environmentBRDFTexture&&this._environmentBRDFTexture.dispose(),this._environmentFuzzBRDFTexture&&this.getScene().environmentFuzzBRDFTexture!==this._environmentFuzzBRDFTexture&&this._environmentFuzzBRDFTexture.dispose(),this._backgroundRefractionTexture=null,this._samplersList){let t=this._samplersList[e];t.value?.dispose()}this._radianceTexture?.dispose()}this._renderTargets.dispose(),this._imageProcessingConfiguration&&this._imageProcessingObserver&&this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver),super.dispose(e,t)}_getRadianceTexture(){return this._radianceTexture?this._radianceTexture:this.getScene().environmentTexture}_prepareEffect(t,s,r,i=null,n=null,o=null,l=null){if(this._prepareDefines(t,s,r,o,l),!r.isDirty)return null;r.markAsProcessed();let u=this.getScene().getEngine(),h=new _.EffectFallbacks,f=0;r.USESPHERICALINVERTEX&&h.addFallback(f++,"USESPHERICALINVERTEX"),r.FOG&&h.addFallback(f,"FOG"),r.SPECULARAA&&h.addFallback(f,"SPECULARAA"),r.POINTSIZE&&h.addFallback(f,"POINTSIZE"),r.LOGARITHMICDEPTH&&h.addFallback(f,"LOGARITHMICDEPTH"),r.PARALLAX&&h.addFallback(f,"PARALLAX"),r.PARALLAX_RHS&&h.addFallback(f,"PARALLAX_RHS"),r.PARALLAXOCCLUSION&&h.addFallback(f++,"PARALLAXOCCLUSION"),r.ENVIRONMENTBRDF&&h.addFallback(f++,"ENVIRONMENTBRDF"),r.TANGENT&&h.addFallback(f++,"TANGENT"),f=(0,d.HandleFallbacksForShadows)(r,h,this._maxSimultaneousLights,f),r.SPECULARTERM&&h.addFallback(f++,"SPECULARTERM"),r.USESPHERICALFROMREFLECTIONMAP&&h.addFallback(f++,"USESPHERICALFROMREFLECTIONMAP"),r.USEIRRADIANCEMAP&&h.addFallback(f++,"USEIRRADIANCEMAP"),r.NORMAL&&h.addFallback(f++,"NORMAL"),r.VERTEXCOLOR&&h.addFallback(f++,"VERTEXCOLOR"),r.MORPHTARGETS&&h.addFallback(f++,"MORPHTARGETS"),r.MULTIVIEW&&h.addFallback(0,"MULTIVIEW");let R=[p.VertexBuffer.PositionKind];r.NORMAL&&R.push(p.VertexBuffer.NormalKind),r.TANGENT&&R.push(p.VertexBuffer.TangentKind);for(let e=1;e<=6;++e)r["UV"+e]&&R.push(`uv${1===e?"":e}`);r.VERTEXCOLOR&&R.push(p.VertexBuffer.ColorKind),(0,d.PrepareAttributesForBones)(R,t,r,h),(0,d.PrepareAttributesForInstances)(R,r),(0,d.PrepareAttributesForMorphTargets)(R,t,r),(0,d.PrepareAttributesForBakedVertexAnimation)(R,t,r);let A="openpbr",E=["world","view","viewProjection","projection","vEyePosition","inverseProjection","renderTargetSize","vLightsType","visibility","vFogInfos","vFogColor","pointSize","mBones","normalMatrix","vLightingIntensity","logarithmicDepthConstant","vTangentSpaceParams","boneTextureInfo","vDebugMode","morphTargetTextureInfo","morphTargetTextureIndices","cameraInfo","vTextureRepetitionHexTilingParams","backgroundRefractionMatrix","vBackgroundRefractionInfos"];for(let e in this._uniformsList)E.push(e);let x=["environmentBrdfSampler","boneSampler","morphTargets","oitDepthSampler","oitFrontColorSampler","areaLightsLTC1Sampler","areaLightsLTC2Sampler"];for(let e in r.FUZZENVIRONMENTBRDF&&x.push("environmentFuzzBrdfSampler"),r.REFRACTED_BACKGROUND&&x.push("backgroundRefractionSampler"),(r.ANISOTROPIC||r.FUZZ||r.REFRACTED_BACKGROUND||r.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING)&&x.push("blueNoiseSampler"),r.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING&&(x.push("sceneIrradianceSampler"),x.push("sceneDepthSampler")),this._samplersList){let t=this._samplersList[e];x.push(t.samplerName),E.push(t.samplerInfoName),E.push(t.samplerMatrixName)}(0,d.PrepareUniformsAndSamplersForIBL)(E,x,!0);let S=["Material","Scene","Mesh"],y={maxSimultaneousLights:this._maxSimultaneousLights,maxSimultaneousMorphTargets:r.NUM_MORPH_INFLUENCERS};if(this._eventInfo.fallbacks=h,this._eventInfo.fallbackRank=f,this._eventInfo.defines=r,this._eventInfo.uniforms=E,this._eventInfo.attributes=R,this._eventInfo.samplers=x,this._eventInfo.uniformBuffersNames=S,this._eventInfo.customCode=void 0,this._eventInfo.mesh=t,this._eventInfo.indexParameters=y,this._callbackPluginEventGeneric(128,this._eventInfo),m.MaterialHelperGeometryRendering.AddUniformsAndSamplers(E,x),g.PrePassConfiguration.AddUniforms(E),g.PrePassConfiguration.AddSamplers(x),(0,T.AddClipPlaneUniforms)(E),this._useVertexPulling){let e=s?.geometry;e&&(this._vertexPullingMetadata=(0,c.PrepareVertexPullingUniforms)(e),this._vertexPullingMetadata&&this._vertexPullingMetadata.forEach((e,t)=>{E.push(`vp_${t}_info`)}))}else this._vertexPullingMetadata=null;a.ImageProcessingConfiguration&&(a.ImageProcessingConfiguration.PrepareUniforms(E,r),a.ImageProcessingConfiguration.PrepareSamplers(x,r)),(0,d.PrepareUniformsAndSamplersList)({uniformsNames:E,uniformBuffersNames:S,samplers:x,defines:r,maxSimultaneousLights:this._maxSimultaneousLights,shaderLanguage:this._shaderLanguage});let M={};this.customShaderNameResolve&&(A=this.customShaderNameResolve(A,E,S,x,r,R,M));let I=r.toString(),C=u.createEffect(A,{attributes:R,uniformsNames:E,uniformBuffersNames:S,samplers:x,defines:I,fallbacks:h,onCompiled:i,onError:n,indexParameters:y,processFinalCode:M.processFinalCode,processCodeAfterIncludes:this._eventInfo.customCode,multiTarget:r.PREPASS,shaderLanguage:this._shaderLanguage,extraInitializationsAsync:this._shadersLoaded?void 0:async()=>{1===this.shaderLanguage?await Promise.all([e.A(22496),e.A(20734)]):await Promise.all([e.A(82285),e.A(52747)]),this._shadersLoaded=!0}},u);return this._eventInfo.customCode=void 0,C}_prepareDefines(e,t,s,i=null,a=null){let n=t.hasThinInstances,l=this.getScene(),u=l.getEngine();(0,d.PrepareDefinesForLights)(l,e,s,!0,this._maxSimultaneousLights,this._disableLighting),s._needNormals=!0,(0,d.PrepareDefinesForMultiview)(l,s);let h=this.needAlphaBlendingForMesh(e)&&this.getScene().useOrderIndependentTransparency;if((0,d.PrepareDefinesForPrePass)(l,s,this.canRenderToMRT&&!h),(0,d.PrepareDefinesForOIT)(l,s,h),m.MaterialHelperGeometryRendering.PrepareDefines(u.currentRenderPassId,e,s),s._areTexturesDirty){s._needUVs=!1;for(let e=1;e<=6;++e)s["MAINUV"+e]=!1;if(l.texturesEnabled){for(let e in this._samplersList){let t=this._samplersList[e];t.value?((0,d.PrepareDefinesForMergedUV)(t.value,s,t.textureDefine),s[t.textureDefine+"_GAMMA"]=t.value.gammaSpace):s[t.textureDefine]=!1}let e=this._getRadianceTexture(),t=this._forceIrradianceInFragment||this.realTimeFiltering||this._twoSidedLighting||u.getCaps().maxVaryingVectors<=8||null!=this._baseDiffuseRoughnessTexture;if((0,d.PrepareDefinesForIBL)(l,e,s,this.realTimeFiltering,this.realTimeFilteringQuality,!t),this._baseMetalnessTexture&&(s.AOSTOREINMETALMAPRED=this._useAmbientOcclusionFromMetallicTextureRed),s.SPECULAR_WEIGHT_IN_ALPHA=this._useSpecularWeightFromAlpha,s.SPECULAR_WEIGHT_FROM_SPECULAR_COLOR_TEXTURE=this._useSpecularWeightFromSpecularColorTexture,s.SPECULAR_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE=this._useSpecularRoughnessAnisotropyFromTangentTexture,s.COAT_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE=this._useCoatRoughnessAnisotropyFromTangentTexture,s.COAT_ROUGHNESS_FROM_GREEN_CHANNEL=this._useCoatRoughnessFromGreenChannel,s.SPECULAR_ROUGHNESS_FROM_METALNESS_TEXTURE_GREEN=this._useRoughnessFromMetallicTextureGreen,s.FUZZ_ROUGHNESS_FROM_TEXTURE_ALPHA=this._useFuzzRoughnessFromTextureAlpha,s.SUBSURFACE_WEIGHT_FROM_TEXTURE_ALPHA=this._useSubsurfaceWeightFromTextureAlpha,s.BASE_METALNESS_FROM_METALNESS_TEXTURE_BLUE=this._useMetallicFromMetallicTextureBlue,s.THIN_FILM_THICKNESS_FROM_THIN_FILM_TEXTURE=this._useThinFilmThicknessFromTextureGreen,s.GEOMETRY_THICKNESS_FROM_GREEN_CHANNEL=this._useGeometryThicknessFromGreenChannel,this.geometryNormalTexture?(this._useParallax&&this.baseColorTexture&&f.MaterialFlags.DiffuseTextureEnabled?(s.PARALLAX=!0,s.PARALLAX_RHS=l.useRightHandedSystem,s.PARALLAXOCCLUSION=!!this._useParallaxOcclusion):s.PARALLAX=!1,s.OBJECTSPACE_NORMALMAP=this._useObjectSpaceNormalMap):(s.PARALLAX=!1,s.PARALLAX_RHS=!1,s.PARALLAXOCCLUSION=!1,s.OBJECTSPACE_NORMALMAP=!1),this._environmentBRDFTexture&&f.MaterialFlags.ReflectionTextureEnabled?(s.ENVIRONMENTBRDF=!0,s.ENVIRONMENTBRDF_RGBD=this._environmentBRDFTexture.isRGBD):(s.ENVIRONMENTBRDF=!1,s.ENVIRONMENTBRDF_RGBD=!1),this._environmentFuzzBRDFTexture?s.FUZZENVIRONMENTBRDF=!0:s.FUZZENVIRONMENTBRDF=!1,this.hasTransparency){s.REFRACTED_BACKGROUND=!!this._backgroundRefractionTexture&&f.MaterialFlags.RefractionTextureEnabled,s.REFRACTION_HIGH_QUALITY_BLUR=this._refractionHighQualityBlur,s.REFRACTED_LIGHTS=!0;let e=this._getRadianceTexture();e?(s.REFRACTED_ENVIRONMENT=f.MaterialFlags.RefractionTextureEnabled,s.REFRACTED_ENVIRONMENT_OPPOSITEZ=this.getScene().useRightHandedSystem?!e.invertZ:e.invertZ,s.REFRACTED_ENVIRONMENT_LOCAL_CUBE=e.isCube&&e.boundingBoxSize):s.REFRACTED_ENVIRONMENT=!1}else s.REFRACTED_BACKGROUND=!1,s.REFRACTED_LIGHTS=!1,s.REFRACTED_ENVIRONMENT=!1;this._shouldUseAlphaFromBaseColorTexture()?s.ALPHA_FROM_BASE_COLOR_TEXTURE=!0:s.ALPHA_FROM_BASE_COLOR_TEXTURE=!1}this._lightFalloff===o.Material.LIGHTFALLOFF_STANDARD?(s.USEPHYSICALLIGHTFALLOFF=!1,s.USEGLTFLIGHTFALLOFF=!1):this._lightFalloff===o.Material.LIGHTFALLOFF_GLTF?(s.USEPHYSICALLIGHTFALLOFF=!1,s.USEGLTFLIGHTFALLOFF=!0):(s.USEPHYSICALLIGHTFALLOFF=!0,s.USEGLTFLIGHTFALLOFF=!1),!this.backFaceCulling&&this._twoSidedLighting?s.TWOSIDEDLIGHTING=!0:s.TWOSIDEDLIGHTING=!1,s.MIRRORED=!!l._mirroredCameraPosition,s.SPECULARAA=u.getCaps().standardDerivatives&&this._enableSpecularAntiAliasing}if((s._areTexturesDirty||s._areMiscDirty)&&(s.ALPHATESTVALUE=`${this._alphaCutOff}${this._alphaCutOff%1==0?".":""}`,s.PREMULTIPLYALPHA=7===this.alphaMode||8===this.alphaMode,s.ALPHABLEND=this.needAlphaBlendingForMesh(e)),s._areTexturesDirty&&(s.TEXTURE_REPETITION_MODE=u.version>1||u.isWebGPU?this.textureRepetitionMode:0),s._areImageProcessingDirty&&this._imageProcessingConfiguration&&this._imageProcessingConfiguration.prepareDefines(s),s.FORCENORMALFORWARD=this._forceNormalForward,s.RADIANCEOCCLUSION=this._useRadianceOcclusion,s.HORIZONOCCLUSION=this._useHorizonOcclusion,(this.specularRoughnessAnisotropy>0||this.coatRoughnessAnisotropy>0)&&K._noiseTextures[l.uniqueId]&&f.MaterialFlags.ReflectionTextureEnabled?(s.ANISOTROPIC=!0,e.isVerticesDataPresent(p.VertexBuffer.TangentKind)||(s._needUVs=!0,s.MAINUV1=!0),this._useGltfStyleAnisotropy&&(s.USE_GLTF_STYLE_ANISOTROPY=!0),s.ANISOTROPIC_BASE=this.specularRoughnessAnisotropy>0,s.ANISOTROPIC_COAT=this.coatRoughnessAnisotropy>0):(s.ANISOTROPIC=!1,s.USE_GLTF_STYLE_ANISOTROPY=!1,s.ANISOTROPIC_BASE=!1,s.ANISOTROPIC_COAT=!1),s.THIN_FILM=this.thinFilmWeight>0,s.IRIDESCENCE=this.thinFilmWeight>0,s.DISPERSION=this.transmissionDispersionScale>0,s.SCATTERING=this.hasScattering,s.SSS_SAMPLE_COUNT=[8,16,32][this._sssQuality]??16,s.TRANSMISSION_SLAB=this.transmissionWeight>0,s.TRANSMISSION_SLAB_VOLUME=this.transmissionWeight>0&&this.transmissionDepth>0,s.SUBSURFACE_SLAB=this.subsurfaceWeight>0,!s.PREPASS&&(s.SUBSURFACE_SLAB||s.TRANSMISSION_SLAB_VOLUME)){let e=!1;if(!this.sssIrradianceTexture&&l.geometryBufferRenderer){let t=l.geometryBufferRenderer.getTextureIndex(B.IRRADIANCE_TEXTURE_TYPE);this.sssIrradianceTexture=l.geometryBufferRenderer.getGBuffer().textures[t],e=!0}if(!this.sssDepthTexture&&l.geometryBufferRenderer){let t=l.geometryBufferRenderer.getTextureIndex(B.SCREENSPACE_DEPTH_TEXTURE_TYPE);this.sssDepthTexture=l.geometryBufferRenderer.getGBuffer().textures[t],e=!0}this.sssIrradianceTexture&&this.sssDepthTexture&&(s.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING=!0,e&&(s.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING_GBUFFER=!0))}s.FUZZ=this.fuzzWeight>0&&f.MaterialFlags.ReflectionTextureEnabled,s.GEOMETRY_THIN_WALLED=0!=this.geometryThinWalled,s.FUZZ?(e.isVerticesDataPresent(p.VertexBuffer.TangentKind)||(s._needUVs=!0,s.MAINUV1=!0),this._environmentFuzzBRDFTexture=(0,r.GetEnvironmentFuzzBRDFTexture)(this.getScene()),s.FUZZ_IBL_SAMPLES=this.fuzzSampleNumber):(this._environmentFuzzBRDFTexture=null,s.FUZZENVIRONMENTBRDF=!1,s.FUZZ_IBL_SAMPLES=0),s._areMiscDirty&&((0,d.PrepareDefinesForMisc)(e,l,this._useLogarithmicDepth,this.pointsCloud,this.fogEnabled,this.needAlphaTestingForMesh(e),s,this._applyDecalMapAfterDetailMap,this._useVertexPulling,t,this._isVertexOutputInvariant),s.UNLIT=this._unlit||(this.pointsCloud||this.wireframe)&&!e.isVerticesDataPresent(p.VertexBuffer.NormalKind),s.DEBUGMODE=this._debugMode),(0,d.PrepareDefinesForFrameBoundValues)(l,u,this,s,!!i,a,n),this._eventInfo.defines=s,this._eventInfo.mesh=e,this._callbackPluginEventPrepareDefinesBeforeAttributes(this._eventInfo),(0,d.PrepareDefinesForAttributes)(e,s,!0,!0,!0,this._transparencyMode!==o.Material.MATERIAL_OPAQUE),this._callbackPluginEventPrepareDefines(this._eventInfo)}}K.SSS_QUALITY_LOW=0,K.SSS_QUALITY_MEDIUM=1,K.SSS_QUALITY_HIGH=2,K._noiseTextures={},K.ForceGLSL=!1,(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseWeight")],K.prototype,"_baseWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseWeightTexture")],K.prototype,"_baseWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseColor")],K.prototype,"_baseColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseColorTexture")],K.prototype,"_baseColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseDiffuseRoughness")],K.prototype,"_baseDiffuseRoughness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseDiffuseRoughnessTexture")],K.prototype,"_baseDiffuseRoughnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseMetalness")],K.prototype,"_baseMetalness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseMetalnessTexture")],K.prototype,"_baseMetalnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularWeight")],K.prototype,"_specularWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularWeightTexture")],K.prototype,"_specularWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularColor")],K.prototype,"_specularColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularColorTexture")],K.prototype,"_specularColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularRoughness")],K.prototype,"_specularRoughness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularRoughnessTexture")],K.prototype,"_specularRoughnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularRoughnessAnisotropy")],K.prototype,"_specularRoughnessAnisotropy",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularRoughnessAnisotropyTexture")],K.prototype,"_specularRoughnessAnisotropyTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularIor")],K.prototype,"_specularIor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionWeight")],K.prototype,"_transmissionWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionWeightTexture")],K.prototype,"_transmissionWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionColor")],K.prototype,"_transmissionColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionColorTexture")],K.prototype,"_transmissionColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDepth")],K.prototype,"_transmissionDepth",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDepthTexture")],K.prototype,"_transmissionDepthTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionScatter")],K.prototype,"_transmissionScatter",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionScatterTexture")],K.prototype,"_transmissionScatterTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionScatterAnisotropy")],K.prototype,"_transmissionScatterAnisotropy",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDispersionScale")],K.prototype,"_transmissionDispersionScale",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDispersionScaleTexture")],K.prototype,"_transmissionDispersionScaleTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDispersionAbbeNumber")],K.prototype,"_transmissionDispersionAbbeNumber",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceWeight")],K.prototype,"_subsurfaceWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceWeightTexture")],K.prototype,"_subsurfaceWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceColor")],K.prototype,"_subsurfaceColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceColorTexture")],K.prototype,"_subsurfaceColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceRadius")],K.prototype,"_subsurfaceRadius",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceRadiusScale")],K.prototype,"_subsurfaceRadiusScale",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceRadiusScaleTexture")],K.prototype,"_subsurfaceRadiusScaleTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceScatterAnisotropy")],K.prototype,"_subsurfaceScatterAnisotropy",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatWeight")],K.prototype,"_coatWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatWeightTexture")],K.prototype,"_coatWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatColor")],K.prototype,"_coatColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatColorTexture")],K.prototype,"_coatColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatRoughness")],K.prototype,"_coatRoughness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatRoughnessTexture")],K.prototype,"_coatRoughnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatRoughnessAnisotropy")],K.prototype,"_coatRoughnessAnisotropy",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatRoughnessAnisotropyTexture")],K.prototype,"_coatRoughnessAnisotropyTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatIor")],K.prototype,"_coatIor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatDarkening")],K.prototype,"_coatDarkening",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatDarkeningTexture")],K.prototype,"_coatDarkeningTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzWeight")],K.prototype,"_fuzzWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzWeightTexture")],K.prototype,"_fuzzWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzColor")],K.prototype,"_fuzzColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzColorTexture")],K.prototype,"_fuzzColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzRoughness")],K.prototype,"_fuzzRoughness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzRoughnessTexture")],K.prototype,"_fuzzRoughnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryThinWalled")],K.prototype,"_geometryThinWalled",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryNormalTexture")],K.prototype,"_geometryNormalTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryTangent")],K.prototype,"_geometryTangent",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryTangentTexture")],K.prototype,"_geometryTangentTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryCoatNormalTexture")],K.prototype,"_geometryCoatNormalTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryCoatTangent")],K.prototype,"_geometryCoatTangent",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryCoatTangentTexture")],K.prototype,"_geometryCoatTangentTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryOpacity")],K.prototype,"_geometryOpacity",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryOpacityTexture")],K.prototype,"_geometryOpacityTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryThickness")],K.prototype,"_geometryThickness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryThicknessTexture")],K.prototype,"_geometryThicknessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","emissionLuminance")],K.prototype,"_emissionLuminance",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","emissionColor")],K.prototype,"_emissionColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","emissionColorTexture")],K.prototype,"_emissionColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmWeight")],K.prototype,"_thinFilmWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmWeightTexture")],K.prototype,"_thinFilmWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmThickness")],K.prototype,"_thinFilmThickness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmThicknessMin")],K.prototype,"_thinFilmThicknessMin",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmThicknessTexture")],K.prototype,"_thinFilmThicknessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmIor")],K.prototype,"_thinFilmIor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","ambientOcclusionTexture")],K.prototype,"_ambientOcclusionTexture",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"directIntensity",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"environmentIntensity",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useSpecularWeightFromTextureAlpha",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],K.prototype,"forceAlphaTest",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],K.prototype,"alphaCutOff",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useAmbientOcclusionFromMetallicTextureRed",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useAmbientInGrayScale",void 0),(0,t.__decorate)([(0,s.serialize)()],K.prototype,"usePhysicalLightFalloff",null),(0,t.__decorate)([(0,s.serialize)()],K.prototype,"useGLTFLightFalloff",null),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useObjectSpaceNormalMap",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useParallax",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useParallaxOcclusion",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"parallaxScaleBias",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsLightsDirty")],K.prototype,"disableLighting",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"forceIrradianceInFragment",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsLightsDirty")],K.prototype,"maxSimultaneousLights",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"invertNormalMapX",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"invertNormalMapY",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"twoSidedLighting",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useAlphaFresnel",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useLinearAlphaFresnel",void 0),(0,t.__decorate)([(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"environmentBRDFTexture",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"forceNormalForward",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"enableSpecularAntiAliasing",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useHorizonOcclusion",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useRadianceOcclusion",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsMiscDirty")],K.prototype,"unlit",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsMiscDirty")],K.prototype,"applyDecalMapAfterDetailMap",void 0),(0,t.__decorate)([(0,s.expandToProperty)("_markAllSubMeshesAsMiscDirty")],K.prototype,"debugMode",void 0),(0,t.__decorate)([(0,s.serialize)()],K.prototype,"transparencyMode",null);let Q=!1;function q(){Q||(Q=!0,(0,k.RegisterClass)("BABYLON.OpenPBRMaterial",K))}e.s(["OpenPBRMaterial",0,K,"OpenPBRMaterialDefines",0,Y,"RegisterOpenpbrMaterial",0,q],68465),q(),e.s([],45916),e.i(45916),e.i(68465),e.s(["OpenPBRMaterial",0,K,"OpenPBRMaterialDefines",0,Y,"RegisterOpenpbrMaterial",0,q],883)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98105,e=>{"use strict";var o=e.i(13379),t=e.i(77052);class r{static Instantiate(e){if(this.RegisteredExternalClasses&&this.RegisteredExternalClasses[e])return this.RegisteredExternalClasses[e];let r=(0,t.GetClass)(e);if(r)return r;o.Logger.Warn(e+" not found, you may have missed an import.");let i=e.split("."),a="u">typeof window?window:"u">typeof globalThis?globalThis:this;for(let e=0,o=i.length;e<o;e++)a=a[i[e]];return"function"!=typeof a?null:a}}r.RegisteredExternalClasses={},e.s(["InstantiationTools",0,r])},65740,71265,e=>{"use strict";var o,t=e.i(99267),r=e.i(64545),i=e.i(13379);let a=(e,o,t)=>!e||e.getClassName&&"Mesh"===e.getClassName()?null:e.getClassName&&("SubMesh"===e.getClassName()||"PhysicsBody"===e.getClassName())?e.clone(o):e.clone?e.clone():Array.isArray(e)?e.slice():t&&"object"==typeof e?{...e}:null;class n{static DeepCopy(e,o,t,r,n=!1){for(let s of function(e){let o=[];do for(let t of Object.getOwnPropertyNames(e))-1===o.indexOf(t)&&o.push(t);while(e=Object.getPrototypeOf(e))return o}(e)){if("_"===s[0]&&(!r||-1===r.indexOf(s))||s.endsWith("Observable")||t&&-1!==t.indexOf(s))continue;let l=e[s],c=typeof l;if("function"!==c)try{if("object"===c)if(l instanceof Uint8Array)o[s]=Uint8Array.from(l);else if(l instanceof Array){if(o[s]=[],l.length>0)if("object"==typeof l[0])for(let e=0;e<l.length;e++){let t=a(l[e],o,n);-1===o[s].indexOf(t)&&o[s].push(t)}else o[s]=l.slice(0)}else o[s]=a(l,o,n);else o[s]=l}catch(e){i.Logger.Warn(e.message)}}}}e.s(["DeepCopier",0,n],71265);var s=e.i(36395),l=e.i(75405),c=e.i(65295),K=e.i(81623),g=e.i(46712),u=e.i(23240),P=e.i(98105),f=e.i(84768),d=e.i(68179);class v{static get BaseUrl(){return g.FileToolsOptions.BaseUrl}static set BaseUrl(e){g.FileToolsOptions.BaseUrl=e}static get CleanUrl(){return g.FileToolsOptions.CleanUrl}static set CleanUrl(e){g.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){g.FileToolsOptions.ScriptBaseUrl=e}static get ScriptBaseUrl(){return g.FileToolsOptions.ScriptBaseUrl}static set CDNBaseUrl(e){o.ScriptBaseUrl=e,o.AssetBaseUrl=e}static set ScriptPreprocessUrl(e){g.FileToolsOptions.ScriptPreprocessUrl=e}static get ScriptPreprocessUrl(){return g.FileToolsOptions.ScriptPreprocessUrl}static get DefaultRetryStrategy(){return g.FileToolsOptions.DefaultRetryStrategy}static set DefaultRetryStrategy(e){g.FileToolsOptions.DefaultRetryStrategy=e}static get CorsBehavior(){return g.FileToolsOptions.CorsBehavior}static set CorsBehavior(e){g.FileToolsOptions.CorsBehavior=e}static get UseFallbackTexture(){return K.EngineStore.UseFallbackTexture}static set UseFallbackTexture(e){K.EngineStore.UseFallbackTexture=e}static get RegisteredExternalClasses(){return P.InstantiationTools.RegisteredExternalClasses}static set RegisteredExternalClasses(e){P.InstantiationTools.RegisteredExternalClasses=e}static get fallbackTexture(){return K.EngineStore.FallbackTexture}static set fallbackTexture(e){K.EngineStore.FallbackTexture=e}static FetchToRef(e,o,t,r,i,a){let n=((Math.abs(e)*t%t|0)+(Math.abs(o)*r%r|0)*t)*4;a.r=i[n]/255,a.g=i[n+1]/255,a.b=i[n+2]/255,a.a=i[n+3]/255}static Mix(e,o,t){return 0}static Instantiate(e){return P.InstantiationTools.Instantiate(e)}static SetImmediate(e){u.TimingTools.SetImmediate(e)}static IsExponentOfTwo(e){return!0}static FloatRound(e){return Math.fround(e)}static GetFilename(e){let o=e.lastIndexOf("/");return o<0?e:e.substring(o+1)}static GetFolderPath(e,o=!1){let t=e.lastIndexOf("/");return t<0?o?e:"":e.substring(0,t+1)}static ToDegrees(e){return 180*e/Math.PI}static ToRadians(e){return e*Math.PI/180}static SmoothAngleChange(e,o,t=.9){let r=this.ToRadians(e),i=this.ToRadians(o);return this.ToDegrees(Math.atan2((1-t)*Math.sin(i)+t*Math.sin(r),(1-t)*Math.cos(i)+t*Math.cos(r)))}static MakeArray(e,o){return!0!==o&&(void 0===e||null==e)?null:Array.isArray(e)?e:[e]}static GetPointerPrefix(e){return(0,r.IsWindowObjectExist)()&&!window.PointerEvent?"mouse":"pointer"}static SetCorsBehavior(e,o){(0,g.SetCorsBehavior)(e,o)}static SetReferrerPolicyBehavior(e,o){o.referrerPolicy=e}static get PreprocessUrl(){return g.FileToolsOptions.PreprocessUrl}static set PreprocessUrl(e){g.FileToolsOptions.PreprocessUrl=e}static LoadImage(e,o,t,r,i,a){return(0,g.LoadImage)(e,o,t,r,i,a)}static LoadFile(e,o,t,r,i,a){return(0,g.LoadFile)(e,o,t,r,i,a)}static async LoadFileAsync(e,o=!0){return await new Promise((t,r)=>{(0,g.LoadFile)(e,e=>{t(e)},void 0,void 0,o,(e,o)=>{r(o)})})}static GetAssetUrl(e){if(!e)return"";if(o.AssetBaseUrl&&e.startsWith(o._DefaultAssetsUrl)){let t=o.AssetBaseUrl.endsWith("/")?o.AssetBaseUrl.slice(0,-1):o.AssetBaseUrl;return e.replace(o._DefaultAssetsUrl,t)}return e}static GetBabylonScriptURL(e,t){if(!e)return"";if(e.startsWith(o._DefaultCdnUrl)){if(o.ScriptBaseUrl){let t=o.ScriptBaseUrl.endsWith("/")?o.ScriptBaseUrl.slice(0,-1):o.ScriptBaseUrl;e=e.replace(o._DefaultCdnUrl,t)}else if(o._CdnVersion){let t=`${o._DefaultCdnUrl}/v${o._CdnVersion}`;e.startsWith(t)||(e=e.replace(o._DefaultCdnUrl,t))}}return e=o.ScriptPreprocessUrl(e),t&&!o.IsAbsoluteUrl(e)&&(e=o.GetAbsoluteUrl(e)),e}static LoadBabylonScript(e,t,r,i){e=o.GetBabylonScriptURL(e),o.LoadScript(e,t,r)}static async LoadBabylonScriptAsync(e){return e=o.GetBabylonScriptURL(e),await o.LoadScriptAsync(e)}static _LoadScriptNative(e,t,r){_native&&o.LoadFile(e,e=>{try{Function(e).apply(null),t&&t()}catch(e){r&&r("LoadScript Error",e)}},void 0,void 0,!1,(e,o)=>{r&&r("LoadScript Error",o)})}static _LoadScriptWeb(e,o,t,i,a=!1){if("function"==typeof importScripts){try{importScripts(e),o&&o()}catch(o){t?.(`Unable to load script '${e}' in worker`,o)}return}if(!(0,r.IsWindowObjectExist)())return void t?.(`Cannot load script '${e}' outside of a window or a worker`);let n=document.getElementsByTagName("head")[0],s=document.createElement("script");a?(s.setAttribute("type","module"),s.innerText=e):(s.setAttribute("type","text/javascript"),s.setAttribute("src",e)),i&&(s.id=i),s.onload=()=>{o&&o()},s.onerror=o=>{t&&t(`Unable to load script '${e}'`,o)},n.appendChild(s)}static async LoadScriptAsync(e,o){return await new Promise((t,r)=>{this.LoadScript(e,()=>{t()},(e,o)=>{r(o||Error(e))},o)})}static ReadFileAsDataURL(e,o,r){let i=new FileReader,a={onCompleteObservable:new t.Observable,abort:()=>i.abort()};return i.onloadend=()=>{a.onCompleteObservable.notifyObservers(a)},i.onload=e=>{o(e.target.result)},i.onprogress=r,i.readAsDataURL(e),a}static ReadFile(e,o,t,r,i){return(0,g.ReadFile)(e,o,t,r,i)}static FileAsURL(e){let o=new Blob([e]);return window.URL.createObjectURL(o)}static Format(e,o=2){return e.toFixed(o)}static DeepCopy(e,o,t,r){n.DeepCopy(e,o,t,r)}static IsEmpty(e){for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o))return!1;return!0}static RegisterTopRootEvents(e,o){for(let t=0;t<o.length;t++){let r=o[t];e.addEventListener(r.name,r.handler,!1);try{window.parent&&window.parent.addEventListener(r.name,r.handler,!1)}catch(e){}}}static UnregisterTopRootEvents(e,o){for(let t=0;t<o.length;t++){let r=o[t];e.removeEventListener(r.name,r.handler);try{e.parent&&e.parent.removeEventListener(r.name,r.handler)}catch(e){}}}static async DumpFramebuffer(e,o,t,r,i="image/png",a,n){throw(0,l._WarnImport)("DumpTools")}static DumpData(e,o,t,r,i="image/png",a,n=!1,s=!1,c){throw(0,l._WarnImport)("DumpTools")}static async DumpDataAsync(e,o,t,r="image/png",i,a=!1,n=!1,s){throw(0,l._WarnImport)("DumpTools")}static _IsOffScreenCanvas(e){return void 0!==e.convertToBlob}static ToBlob(e,t,r="image/png",i){o._IsOffScreenCanvas(e)||e.toBlob||(e.toBlob=function(e,o,t){setTimeout(()=>{let r=atob(this.toDataURL(o,t).split(",")[1]),i=r.length,a=new Uint8Array(i);for(let e=0;e<i;e++)a[e]=r.charCodeAt(e);e(new Blob([a]))})}),o._IsOffScreenCanvas(e)?e.convertToBlob({type:r,quality:i}).then(e=>t(e)):e.toBlob(function(e){t(e)},r,i)}static DownloadBlob(e,t){if("download"in document.createElement("a")){if(!t){let e=new Date;t="screenshot_"+((e.getFullYear()+"-"+(e.getMonth()+1)).slice(2)+"-"+e.getDate()+"_"+e.getHours()+"-")+("0"+e.getMinutes()).slice(-2)+".png"}o.Download(e,t)}else if(e&&"u">typeof URL){let o=URL.createObjectURL(e),t=window.open("");if(!t)return;let r=t.document.createElement("img");r.onload=function(){URL.revokeObjectURL(o)},r.src=o,t.document.body.appendChild(r)}}static EncodeScreenshotCanvasData(e,t,r="image/png",i,a){if("string"!=typeof i&&t){if(t){if(o._IsOffScreenCanvas(e))return void e.convertToBlob({type:r,quality:a}).then(e=>{let o=new FileReader;o.readAsDataURL(e),o.onloadend=()=>{t(o.result)}});t(e.toDataURL(r,a))}}else this.ToBlob(e,function(e){e&&o.DownloadBlob(e,i),t&&t("")},r,a)}static Download(e,o){if("u"<typeof URL)return;let t=window.URL.createObjectURL(e),r=document.createElement("a");document.body.appendChild(r),r.style.display="none",r.href=t,r.download=o,r.addEventListener("click",()=>{r.parentElement&&r.parentElement.removeChild(r)}),r.click(),window.URL.revokeObjectURL(t)}static BackCompatCameraNoPreventDefault(e){return"boolean"==typeof e[0]?e[0]:"boolean"==typeof e[1]&&e[1]}static CreateScreenshot(e,o,t,r,i="image/png",a=!1,n){throw(0,l._WarnImport)("ScreenshotTools")}static async CreateScreenshotAsync(e,o,t,r="image/png",i){throw(0,l._WarnImport)("ScreenshotTools")}static CreateScreenshotUsingRenderTarget(e,o,t,r,i="image/png",a=1,n=!1,s,c=!1,K=!1,g=!0,u,P){throw(0,l._WarnImport)("ScreenshotTools")}static async CreateScreenshotUsingRenderTargetAsync(e,o,t,r="image/png",i=1,a=!1,n,s=!1,c=!1,K=!0,g,u){throw(0,l._WarnImport)("ScreenshotTools")}static RandomId(){return(0,f.RandomGUID)()}static IsBase64(e){return(0,g.IsBase64DataUrl)(e)}static DecodeBase64(e){return(0,g.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&o.PerformanceUserMarkLogLevel)===o.PerformanceUserMarkLogLevel?_native?.enablePerformanceLogging?(_native.enablePerformanceLogging(1),o.StartPerformanceCounter=o._StartMarkNative,o.EndPerformanceCounter=o._EndMarkNative):(o.StartPerformanceCounter=o._StartUserMark,o.EndPerformanceCounter=o._EndUserMark):(e&o.PerformanceConsoleLogLevel)===o.PerformanceConsoleLogLevel?_native?.enablePerformanceLogging?(_native.enablePerformanceLogging(2),o.StartPerformanceCounter=o._StartMarkNative,o.EndPerformanceCounter=o._EndMarkNative):(o.StartPerformanceCounter=o._StartPerformanceConsole,o.EndPerformanceCounter=o._EndPerformanceConsole):(o.StartPerformanceCounter=o._StartPerformanceCounterDisabled,o.EndPerformanceCounter=o._EndPerformanceCounterDisabled,_native?.disablePerformanceLogging?.())}static _StartPerformanceCounterDisabled(e,o){}static _EndPerformanceCounterDisabled(e,o){}static _StartUserMark(e,t=!0){if(!o._Performance){if(!(0,r.IsWindowObjectExist)())return;o._Performance=window.performance}t&&o._Performance.mark&&o._Performance.mark(e+"-Begin")}static _EndUserMark(e,t=!0){t&&o._Performance.mark&&(o._Performance.mark(e+"-End"),o._Performance.measure(e,e+"-Begin",e+"-End"))}static _StartPerformanceConsole(e,t=!0){t&&(o._StartUserMark(e,t),console.time&&console.time(e))}static _EndPerformanceConsole(e,t=!0){t&&(o._EndUserMark(e,t),console.timeEnd(e))}static _StartMarkNative(e,t=!0){if(t&&_native?.startPerformanceCounter)if(o._NativePerformanceCounterHandles.has(e))o.Warn(`Performance counter with name ${e} is already started.`);else{let t=_native.startPerformanceCounter(e);o._NativePerformanceCounterHandles.set(e,t)}}static _EndMarkNative(e,t=!0){if(t&&_native?.endPerformanceCounter){let t=o._NativePerformanceCounterHandles.get(e);t?(_native.endPerformanceCounter(t),o._NativePerformanceCounterHandles.delete(e)):o.Warn(`Performance counter with name ${e} was not started.`)}}static get Now(){return s.PrecisionDate.Now}static GetClassName(e,o=!1){let t=null;return!o&&e.getClassName?t=e.getClassName():(e instanceof Object&&(t=(o?e:Object.getPrototypeOf(e)).constructor.__bjsclassName__),t||(t=typeof e)),t}static First(e,o){for(let t of e)if(o(t))return t;return null}static getFullClassName(e,o=!1){let t=null,r=null;if(!o&&e.getClassName)t=e.getClassName();else{if(e instanceof Object){let i=o?e:Object.getPrototypeOf(e);t=i.constructor.__bjsclassName__,r=i.constructor.__bjsmoduleName__}t||(t=typeof e)}return t?(null!=r?r+".":"")+t:null}static async DelayAsync(e){await new Promise(o=>{setTimeout(()=>{o()},e)})}static IsSafari(){return!!(0,r.IsNavigatorAvailable)()&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}}o=v,v.AssetBaseUrl="",v.UseCustomRequestHeaders=!1,v.CustomRequestHeaders=c.WebRequest.CustomRequestHeaders,v.GetDOMTextContent=r.GetDOMTextContent,v._DefaultCdnUrl="https://cdn.babylonjs.com",v._CdnVersion="9.13.0",v._DefaultAssetsUrl="https://assets.babylonjs.com/core",v.LoadScript="u"<typeof _native?o._LoadScriptWeb:o._LoadScriptNative,v.GetAbsoluteUrl="object"==typeof document?e=>{let o=document.createElement("a");return o.href=e,o.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.")},v.NoneLogLevel=i.Logger.NoneLogLevel,v.MessageLogLevel=i.Logger.MessageLogLevel,v.WarningLogLevel=i.Logger.WarningLogLevel,v.ErrorLogLevel=i.Logger.ErrorLogLevel,v.AllLogLevel=i.Logger.AllLogLevel,v.IsWindowObjectExist=r.IsWindowObjectExist,v.PerformanceNoneLogLevel=0,v.PerformanceUserMarkLogLevel=1,v.PerformanceConsoleLogLevel=2,v._NativePerformanceCounterHandles=new Map,v.StartPerformanceCounter=o._StartPerformanceCounterDisabled,v.EndPerformanceCounter=o._EndPerformanceCounterDisabled;class A{constructor(e,o,t,r=0){this.iterations=e,this.index=r-1,this._done=!1,this._fn=o,this._successCallback=t}executeNext(){this._done||(this.index+1<this.iterations?(++this.index,this._fn(this)):this.breakLoop())}breakLoop(){this._done=!0,this._successCallback()}static Run(e,o,t,r=0){let i=new A(e,o,t,r);return i.executeNext(),i}static SyncAsyncForLoop(e,o,t,r,i,a=0){return A.Run(Math.ceil(e/o),r=>{i&&i()?r.breakLoop():setTimeout(()=>{for(let a=0;a<o;++a){let n=r.index*o+a;if(n>=e)break;if(t(n),i&&i()){r.breakLoop();break}}r.executeNext()},a)},r)}}let U=!1;e.s(["AsyncLoop",0,A,"RegisterTools",0,function(){U||(U=!0,v.Mix=d.Mix,v.IsExponentOfTwo=d.IsExponentOfTwo,K.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,v],65740)}]);
|