@uptimizr/dashboard 0.3.4 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/{2h051-1hu4co_.js → 0-0hui1_v3h8b.js} +9 -9
- package/out/_next/static/chunks/{2dqg85hsevk3c.js → 0-tzsd_n-ywom.js} +4 -4
- package/out/_next/static/chunks/00g5suuoa-_wn.js +1 -0
- package/out/_next/static/chunks/00o9hr_3hd0r8.js +1 -0
- package/out/_next/static/chunks/{0jxklh_ayjd4b.js → 00xc-0pj7on2s.js} +12 -12
- package/out/_next/static/chunks/01fh3_bncbe5u.js +1 -0
- package/out/_next/static/chunks/01urdkl1j8o6l.js +1 -0
- package/out/_next/static/chunks/{2j-sax2xfdv7l.js → 026vw95s88gsy.js} +1 -1
- package/out/_next/static/chunks/02eui3ctddbd2.js +1 -0
- package/out/_next/static/chunks/{3kr1polwvt6o_.js → 03zip1uidm6x9.js} +1 -1
- package/out/_next/static/chunks/{3gi0f1kg72xsf.js → 04_3ri5emyfcu.js} +1 -1
- package/out/_next/static/chunks/04c4nksb5y9r-.js +1 -0
- package/out/_next/static/chunks/04g-l-_b4payc.js +1 -0
- package/out/_next/static/chunks/04j9pexbmysdy.js +1 -0
- package/out/_next/static/chunks/{1rcfy_gzean3n.js → 055baac5e-c2o.js} +1 -1
- package/out/_next/static/chunks/05bdni_jrobq1.js +1 -0
- package/out/_next/static/chunks/05o0tb8l_htmw.js +1 -0
- package/out/_next/static/chunks/{3d5yb9ybkz7hx.js → 05uqfgf-hh-p5.js} +1 -1
- package/out/_next/static/chunks/06f-0kw8s0mqo.js +3 -0
- package/out/_next/static/chunks/{18r387bj9iv0j.js → 077eo-0dhbxz-.js} +1 -1
- package/out/_next/static/chunks/{18k-0jn63_5ie.js → 07z6p262h5hgl.js} +1 -1
- package/out/_next/static/chunks/{08bm3ye5govev.js → 08m_4cihfmik8.js} +1 -1
- package/out/_next/static/chunks/08obqw64faj8j.js +1 -0
- package/out/_next/static/chunks/{2k4s5rt7-l8jr.js → 099ilz3dmm1jw.js} +1 -1
- package/out/_next/static/chunks/09ppu_k464q-n.js +1 -0
- package/out/_next/static/chunks/{1rne-b-ktit5c.js → 0av6n_6q6kzo3.js} +2 -2
- package/out/_next/static/chunks/0bgcaf2x51kms.js +1 -0
- package/out/_next/static/chunks/{0ptp4ne7j6yg6.js → 0bj_310rugcn1.js} +11 -11
- package/out/_next/static/chunks/0c5d3qn2mb3ew.js +1 -0
- package/out/_next/static/chunks/{2gtebfttq1v0o.js → 0dck67in84de0.js} +1 -1
- package/out/_next/static/chunks/0dg4wxz-6u5lo.js +1 -0
- package/out/_next/static/chunks/{2apt1vh-7rl2l.js → 0dva036n8ab62.js} +1 -1
- package/out/_next/static/chunks/{159u-hx80yfaw.js → 0erga_bzezbza.js} +1 -1
- package/out/_next/static/chunks/0f0-i105odxqd.js +1 -0
- package/out/_next/static/chunks/{1fvlbwp6r93wo.js → 0g2wngc6oe7fd.js} +24 -24
- package/out/_next/static/chunks/0gyeqz9pagssf.js +1 -0
- package/out/_next/static/chunks/0i82k-t0fbn8f.js +1 -0
- package/out/_next/static/chunks/0kzw45f61wm3j.js +1 -0
- package/out/_next/static/chunks/0l8bfa2xewq69.js +1 -0
- package/out/_next/static/chunks/{390fogn9oz13i.js → 0n-zml1gn0o1u.js} +1 -1
- package/out/_next/static/chunks/{44gsjajjdhf51.js → 0n92hec_jb_-_.js} +1 -1
- package/out/_next/static/chunks/{2s0dwzg7kq36n.js → 0okbyggxe6mx5.js} +1 -1
- package/out/_next/static/chunks/{0h-ohf4gntwtj.js → 0pv2wirx45e1m.js} +1 -1
- package/out/_next/static/chunks/0qxd_8t3nca36.js +1 -0
- package/out/_next/static/chunks/0s1jghzw8jufz.js +1 -0
- package/out/_next/static/chunks/{0ngai1_zxwsk8.js → 0s84ekz_f9ngx.js} +1 -1
- package/out/_next/static/chunks/{16d4a4iopj2if.js → 0t89-lfct-7m6.js} +5 -5
- package/out/_next/static/chunks/0ti58h622yo-_.js +2 -0
- package/out/_next/static/chunks/{29v8falcmjvev.js → 0tn-9w46cwydp.js} +32 -32
- package/out/_next/static/chunks/0u8yr4k1y6m2t.js +1 -0
- package/out/_next/static/chunks/0ubxyut5rr600.js +1 -0
- package/out/_next/static/chunks/{3_bzxvqtk1t53.js → 0uxdbfa8gv6tk.js} +12 -12
- package/out/_next/static/chunks/0vso09vdz38sr.js +1 -0
- package/out/_next/static/chunks/{0_tqu60oxaj7q.js → 0w-hm7g7trtjg.js} +1 -1
- package/out/_next/static/chunks/0wbw9h7rsis2r.js +1 -0
- package/out/_next/static/chunks/{3sbm1ak54_2ep.js → 0wq_9f98weoe3.js} +1 -1
- package/out/_next/static/chunks/0y4e49hpuucdi.js +1 -0
- package/out/_next/static/chunks/{0ioyy42h35hnd.js → 0yvevihll7sz-.js} +1 -1
- package/out/_next/static/chunks/{0zcdc17ie6lmh.js → 0zf26k6juhlzo.js} +50 -18
- package/out/_next/static/chunks/{3sg4zff4-h3t1.js → 1-b44873bjsdw.js} +1 -1
- package/out/_next/static/chunks/1-c3a1vnl8v1q.js +1 -0
- package/out/_next/static/chunks/1-xf86jgea22y.js +1 -0
- package/out/_next/static/chunks/10b0qqdnb_nox.js +1 -0
- package/out/_next/static/chunks/{2ib62lnqqaf4p.js → 11p92pnn5el0v.js} +1 -1
- package/out/_next/static/chunks/{06ljadw2-i91-.js → 12kdmh0h_mboy.js} +1 -1
- package/out/_next/static/chunks/141tngxsk32hq.js +1 -0
- package/out/_next/static/chunks/14ijcpo72av4r.js +1 -0
- package/out/_next/static/chunks/16hdip1drt8o-.js +1 -0
- package/out/_next/static/chunks/{3g5ae-38cepwm.js → 17aahvhpls1l7.js} +199 -199
- package/out/_next/static/chunks/{17d1isrw8gtnb.js → 18txc1wwwu9f9.js} +1 -1
- package/out/_next/static/chunks/{2716si10ouwu-.js → 18wa83g0qfh-b.js} +1 -1
- package/out/_next/static/chunks/19dp8nr4uygg2.js +5 -0
- package/out/_next/static/chunks/1_8acnu6_-qe-.js +1 -0
- package/out/_next/static/chunks/1__nujzr9e352.js +3 -0
- package/out/_next/static/chunks/1bmyq1b0by7ug.js +1 -0
- package/out/_next/static/chunks/{1wyr4at61q29n.js → 1ccn725by19i1.js} +1 -1
- package/out/_next/static/chunks/{0f_nv15a8q415.js → 1d1tpj9nm1nhf.js} +1 -1
- package/out/_next/static/chunks/1dfwa563iciz3.js +1 -0
- package/out/_next/static/chunks/1di5enkavl9vx.js +4 -0
- package/out/_next/static/chunks/{006nix8mv66z_.js → 1e_-_7biavwmb.js} +1 -1
- package/out/_next/static/chunks/{1y12bjsbq18_t.js → 1ephzzweysylq.js} +34 -34
- package/out/_next/static/chunks/1fwsjnd1y-lx_.js +1 -0
- package/out/_next/static/chunks/{2z9ot-w1x60fv.js → 1fyh50hjt7hi_.js} +1 -1
- package/out/_next/static/chunks/1gaexq_suxai0.js +1 -0
- package/out/_next/static/chunks/1gtj_l5ame5mw.js +1 -0
- package/out/_next/static/chunks/{1--aypw9o8yng.js → 1gvdmbr65lpud.js} +39 -39
- package/out/_next/static/chunks/{02tc9r3sc7fgc.js → 1ho02fc091nj2.js} +1 -1
- package/out/_next/static/chunks/{3v0td-ziuai2i.js → 1hsvckd0sgdgr.js} +1 -1
- package/out/_next/static/chunks/1i4f3n_2_3ery.js +1 -0
- package/out/_next/static/chunks/1j7e3qpjuj89a.js +1 -0
- package/out/_next/static/chunks/{2btqzk0tj0gz6.js → 1mrvp94tietcv.js} +1 -1
- package/out/_next/static/chunks/{3vxkkhs0vi_xa.js → 1mvadj46owrck.js} +1 -1
- package/out/_next/static/chunks/{1b2tkk7e_2o0k.js → 1n_gxvu31aofy.js} +2 -2
- package/out/_next/static/chunks/{0gblbgw7w7r9w.js → 1nasz7q3tvb53.js} +1 -1
- package/out/_next/static/chunks/{2_7dp91937mqi.js → 1ng-fqh2_n984.js} +1 -1
- package/out/_next/static/chunks/{0x4-zyy8pzmlq.js → 1nqojcig-0m3c.js} +1 -1
- package/out/_next/static/chunks/1o3ggu95lfu6i.js +1 -0
- package/out/_next/static/chunks/{2dolerz81xb52.js → 1og49_atcksim.js} +1 -1
- package/out/_next/static/chunks/{0c2k-gvwph4qs.js → 1oljzgz5jistn.js} +1 -1
- package/out/_next/static/chunks/1ozi46t8jajqh.js +1 -0
- package/out/_next/static/chunks/{1w9xu1qa9-wmv.js → 1ph0tfo-4hl-f.js} +1 -1
- package/out/_next/static/chunks/{17dmbt396_tyq.js → 1qjsgebn9m-0l.js} +1 -1
- package/out/_next/static/chunks/{168r9r65o9jnc.js → 1qsut_e3msg0l.js} +1 -1
- package/out/_next/static/chunks/{3efuvh_35yhes.js → 1qxhgauuomthl.js} +39 -39
- package/out/_next/static/chunks/{2w7yf7ouyrlkb.js → 1rb8wewjbdisv.js} +1 -1
- package/out/_next/static/chunks/1rr74xxjtckyv.js +1 -0
- package/out/_next/static/chunks/{1kl5xxohpr6-4.js → 1solqr18og2ot.js} +1 -1
- package/out/_next/static/chunks/{2rjc8yn50ducj.js → 1t2exh89lnazc.js} +34 -34
- package/out/_next/static/chunks/{0_ux41xcoea3u.js → 1t7nl8rx7mabd.js} +40 -40
- package/out/_next/static/chunks/{3fx3sriw1w3sa.js → 1tt1bbry-4f-6.js} +1 -1
- package/out/_next/static/chunks/{0ufakw529sr9d.js → 1upkv4ltuh3s5.js} +40 -40
- package/out/_next/static/chunks/{2npk7tr63h7rl.js → 1uu55ejvi7q5u.js} +1 -1
- package/out/_next/static/chunks/{2cvvxifoedn6j.js → 1ux1rpe-n1mai.js} +1 -1
- package/out/_next/static/chunks/{091ll-lp6spu3.js → 1vmpltnr0cyos.js} +1 -1
- package/out/_next/static/chunks/1x99m91nt1m3b.js +1 -0
- package/out/_next/static/chunks/1xbzxfeq9789f.js +1 -0
- package/out/_next/static/chunks/1ybiu-rkt50_1.js +1 -0
- package/out/_next/static/chunks/{3y9c26fv1poq_.js → 2-hdejef-mpka.js} +199 -199
- package/out/_next/static/chunks/{22qzld31fbhbv.js → 2-p206i_ihx09.js} +1 -1
- package/out/_next/static/chunks/{340pg0qkv5tqq.js → 20qelrstvz9_n.js} +1 -1
- package/out/_next/static/chunks/21at65obnoo8z.js +1 -0
- package/out/_next/static/chunks/21ko5mxfderw0.js +1 -0
- package/out/_next/static/chunks/21muzwu43o8xg.js +1 -0
- package/out/_next/static/chunks/{3he9bxsc67ivq.js → 22ja7c3gk0_ko.js} +1 -1
- package/out/_next/static/chunks/{0mqi0xn_c010j.js → 22rl_arnzs-ve.js} +1 -1
- package/out/_next/static/chunks/23d-hvrwpixpm.js +1 -0
- package/out/_next/static/chunks/{2yzui3v-besdu.js → 255knovck7pv2.js} +4 -4
- package/out/_next/static/chunks/2569rrrffvm2w.js +31 -0
- package/out/_next/static/chunks/{229mkx-mtfcgf.js → 25gf6xn9u1c57.js} +1 -1
- package/out/_next/static/chunks/{2vmybybb3dvia.js → 267q_eg-c6f6m.js} +1 -1
- package/out/_next/static/chunks/{0e7xuupmrw4-e.js → 28ndw4nsw2t_4.js} +1 -1
- package/out/_next/static/chunks/{0m3yjobjg36ce.js → 29gv2swsp7tzu.js} +1 -1
- package/out/_next/static/chunks/29o74k0d6hkdf.js +1 -0
- package/out/_next/static/chunks/{0kr-bd6fuqc2s.js → 2bm95r0011asw.js} +1 -1
- package/out/_next/static/chunks/2btabnibkm0db.js +1 -0
- package/out/_next/static/chunks/2c--awgkdcikq.js +1 -0
- package/out/_next/static/chunks/{2ab-99frxpah-.js → 2c2dspoukng-5.js} +1 -1
- package/out/_next/static/chunks/{0zo4x1j8ug-kb.js → 2e46-2ubc90do.js} +5 -5
- package/out/_next/static/chunks/2ep7mjbaoeou0.js +1 -0
- package/out/_next/static/chunks/{1kq86iv41cet4.js → 2ezgqm7atphi6.js} +1 -1
- package/out/_next/static/chunks/{1bv97vf67p_ri.js → 2ftp5xmq_w23j.js} +35 -35
- package/out/_next/static/chunks/{38g9jpxjoxn2x.js → 2g_1ov-0j2kwd.js} +1 -1
- package/out/_next/static/chunks/2gfjzq_vjea4w.js +1 -0
- package/out/_next/static/chunks/{1tdg_eolxlcdl.js → 2h5hase6ewoyc.js} +1 -1
- package/out/_next/static/chunks/{0m0n7kjzscx0y.js → 2h5nvlgky7fpa.js} +1 -1
- package/out/_next/static/chunks/{17dabmbnkkplu.js → 2i82rmjta9ijs.js} +1 -1
- package/out/_next/static/chunks/2ies66gmou203.js +1 -0
- package/out/_next/static/chunks/2jenu2eek9viz.js +1 -0
- package/out/_next/static/chunks/{3043pprgv9ors.js → 2khh_pmm224k5.js} +23 -23
- package/out/_next/static/chunks/2kv9_bt15v83g.js +1 -0
- package/out/_next/static/chunks/{0msckddycfy76.js → 2luaj_cf5f19-.js} +1 -1
- package/out/_next/static/chunks/2mgmvz66gh5ub.js +1 -0
- package/out/_next/static/chunks/2nwlqtv3vrzcv.js +1 -0
- package/out/_next/static/chunks/{18ss4ls60s31e.js → 2o8k8x5zcepfy.js} +1 -1
- package/out/_next/static/chunks/{1e1zozntzsx42.js → 2pbgsq7vvtk8_.js} +1 -1
- package/out/_next/static/chunks/{0b7-mrrg7ryj2.js → 2pcdnd4nzcw4c.js} +1 -1
- package/out/_next/static/chunks/2q0rz76kj6h5z.js +1 -0
- package/out/_next/static/chunks/{3w1a2o8nevap8.js → 2rjfrjhp4kjev.js} +18 -18
- package/out/_next/static/chunks/2si5cg3hl5dtf.js +4 -0
- package/out/_next/static/chunks/2uhrhq35bki6u.js +1 -0
- package/out/_next/static/chunks/{1l12hkz1g7uhf.js → 2ymtumj-hfrjo.js} +1 -1
- package/out/_next/static/chunks/{2yr9wt421xdjr.js → 2z9mdtudj8crz.js} +17 -17
- package/out/_next/static/chunks/{1iaxzjly2pap1.js → 2zdzgmacaoor9.js} +1 -1
- package/out/_next/static/chunks/{0mk8tangq9equ.js → 2zpn7010iqgsy.js} +1 -1
- package/out/_next/static/chunks/2zyjw8g4tiu51.js +1 -0
- package/out/_next/static/chunks/{2kn_dqzbyabtn.js → 3-_08i4_7yhno.js} +1 -1
- package/out/_next/static/chunks/3-irhmtm1q5qw.js +1 -0
- package/out/_next/static/chunks/3-k74vn9exnb6.js +1 -0
- package/out/_next/static/chunks/{18avgwx9nlxp9.js → 3-x7522okdy-7.js} +1 -1
- package/out/_next/static/chunks/{1ll0ta8a2qx1p.js → 309f81l5ucsb_.js} +16 -16
- package/out/_next/static/chunks/{1f1vq3goue1w4.js → 31ei992g8gqz9.js} +1 -1
- package/out/_next/static/chunks/{0i9oqg-xbq-a9.js → 32vaw89wdwv5_.js} +1 -1
- package/out/_next/static/chunks/34y7nx6qmat06.js +1 -0
- package/out/_next/static/chunks/{1f92k-xa0pl-3.js → 35aagg46wp139.js} +1 -1
- package/out/_next/static/chunks/36rqw8h6ildpl.js +1 -0
- package/out/_next/static/chunks/{0zwkmsojeuekb.js → 380ivzcfb4o_3.js} +4 -4
- package/out/_next/static/chunks/{01aeari2x_tlz.js → 3a_khw6q6pyh1.js} +1 -1
- package/out/_next/static/chunks/3c_31f20z4jrl.js +1 -0
- package/out/_next/static/chunks/3ckp70rgr63u9.js +1 -0
- package/out/_next/static/chunks/{08rk1dp1wb-gm.js → 3d76e_yd8l_0x.js} +38 -38
- package/out/_next/static/chunks/{2p8dbh81chhon.js → 3ed24zmt8qfys.js} +1 -1
- package/out/_next/static/chunks/3ez20hi1mxw0w.js +1 -0
- package/out/_next/static/chunks/3fdx-rnos5ft-.js +1 -0
- package/out/_next/static/chunks/3fgfbxxb-j_bn.js +4 -0
- package/out/_next/static/chunks/{03st_hmor6qju.js → 3go-mst7n3udd.js} +1 -1
- package/out/_next/static/chunks/{3d0ejsnhbzi-j.js → 3gyyjsot8mdav.js} +1 -1
- package/out/_next/static/chunks/{2t9zu9v_g9kr9.js → 3iwf5yeurp57i.js} +3 -3
- package/out/_next/static/chunks/{0rruvj1cyflrh.js → 3k-gz8qf-mj-p.js} +1 -1
- package/out/_next/static/chunks/{2enlv4yy0t-9j.js → 3kalvwsf11-ss.js} +12 -12
- package/out/_next/static/chunks/3lehc5pujwhsz.js +1 -0
- package/out/_next/static/chunks/{05l3dluxivcor.js → 3m0ytnc241yfz.js} +1 -1
- package/out/_next/static/chunks/3mpe7c3iyxn5h.js +1 -0
- package/out/_next/static/chunks/{0tl8j9f8lt0yf.js → 3mvaub8qjdyuc.js} +1 -1
- package/out/_next/static/chunks/{0k79ryqehst0b.js → 3n-7bcmfbh299.js} +48 -18
- package/out/_next/static/chunks/{38ea9kqlbxt86.js → 3nw7u4bie0-g6.js} +1 -1
- package/out/_next/static/chunks/3qatb38-tk_gd.js +1 -0
- package/out/_next/static/chunks/3tdcdi_utmoy_.js +1 -0
- package/out/_next/static/chunks/{3x6wpv_z5m6rz.js → 3tdzweqszru4y.js} +1 -1
- package/out/_next/static/chunks/3tt_ir_va6262.js +1 -0
- package/out/_next/static/chunks/{39lxb7c--3_2u.js → 3w4qettzp7khe.js} +32 -32
- package/out/_next/static/chunks/{2op88btas-hl8.js → 3w_umk1xtj6to.js} +1 -1
- package/out/_next/static/chunks/{1kmsg9ef5djl3.js → 3y_51bmdnc0ey.js} +1 -1
- package/out/_next/static/chunks/{1ajmblsp0wj0_.js → 3yr66ufoli71t.js} +1 -1
- package/out/_next/static/chunks/{348hdbpkkcq_2.js → 3z4suna4kq4j5.js} +20 -20
- package/out/_next/static/chunks/{1y20bv6vl4ylk.js → 41qxc142snm22.js} +1 -1
- package/out/_next/static/chunks/{404f_93w2e8ty.js → 41yy4p3-rtyz1.js} +1 -1
- package/out/_next/static/chunks/{3fz7tc-4j13uv.js → 425epvuw3yy-n.js} +21 -21
- package/out/_next/static/chunks/{1t60cososq7b0.js → 43hwl25uke0l_.js} +1 -1
- package/out/_next/static/chunks/43qmngblcab8f.js +1 -0
- package/out/_next/static/chunks/{2bn9u9r0rfhvc.js → 442e2l3jzxd-_.js} +1 -1
- package/out/_next/static/chunks/{turbopack-16ab30_1p4vhq.js → turbopack-3r8yn0j92tqw_.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 +10 -10
- package/out/_next/static/chunks/0-29qf-q72olu.js +0 -1
- package/out/_next/static/chunks/0-tk5ptli--r0.js +0 -1
- package/out/_next/static/chunks/0296l8lzd69ns.js +0 -1
- package/out/_next/static/chunks/04pk6n3z75dcy.js +0 -1
- package/out/_next/static/chunks/06m_64ysu9kn0.js +0 -1
- package/out/_next/static/chunks/09p5fltt7o3to.js +0 -1
- package/out/_next/static/chunks/0fxfsshoxnnh6.js +0 -4
- package/out/_next/static/chunks/0g6u34xkzrpjn.js +0 -1
- package/out/_next/static/chunks/0g7p8zp2kxve5.js +0 -1
- package/out/_next/static/chunks/0gwa154w_0wuh.js +0 -1
- package/out/_next/static/chunks/0h1o0cr3327tt.js +0 -1
- package/out/_next/static/chunks/0jf3n5n5yrr4o.js +0 -1
- package/out/_next/static/chunks/0k9-8s-jof_gw.js +0 -1
- package/out/_next/static/chunks/0kcbdjbdxu_wa.js +0 -1
- package/out/_next/static/chunks/0l3wwyl93sqh9.js +0 -1
- package/out/_next/static/chunks/0ngiuj5k-or6g.js +0 -1
- package/out/_next/static/chunks/0nx_t8iq-324h.js +0 -1
- package/out/_next/static/chunks/0oap0o8a8a_cl.js +0 -1
- package/out/_next/static/chunks/0ostjlqtwkhqr.js +0 -1
- package/out/_next/static/chunks/0vddljjnmozzx.js +0 -1
- package/out/_next/static/chunks/0w0sx062qmcsh.js +0 -1
- package/out/_next/static/chunks/0x6i6e6863tir.js +0 -1
- package/out/_next/static/chunks/1--kelnig7pxx.js +0 -1
- package/out/_next/static/chunks/1-ud6hztxiazp.js +0 -1
- package/out/_next/static/chunks/10v4rskkrjgd_.js +0 -1
- package/out/_next/static/chunks/117ys3lltfmcu.js +0 -1
- package/out/_next/static/chunks/13oqt2aoms4f6.js +0 -1
- package/out/_next/static/chunks/14klj_i6-l-10.js +0 -1
- package/out/_next/static/chunks/17ev44x54_jrd.js +0 -1
- package/out/_next/static/chunks/17svumd4o0qnc.js +0 -1
- package/out/_next/static/chunks/17v12p4sfraa0.js +0 -1
- package/out/_next/static/chunks/1a7cup181rjod.js +0 -1
- package/out/_next/static/chunks/1ek5rtpo6rxev.js +0 -1
- package/out/_next/static/chunks/1evp209qbr4cr.js +0 -5
- package/out/_next/static/chunks/1fa265388524p.js +0 -1
- package/out/_next/static/chunks/1g3z43o3h-024.js +0 -31
- package/out/_next/static/chunks/1g_27texazqcj.js +0 -1
- package/out/_next/static/chunks/1j--a56ji33_x.js +0 -1
- package/out/_next/static/chunks/1oara6fkfvgs3.js +0 -1
- package/out/_next/static/chunks/1par9m038tiov.js +0 -1
- package/out/_next/static/chunks/1vkww9l6lgqag.js +0 -1
- package/out/_next/static/chunks/1vpcaaf-0dn7q.js +0 -1
- package/out/_next/static/chunks/1vzmzrjhlm1q5.js +0 -1
- package/out/_next/static/chunks/1zcrrq1fx8g2y.js +0 -4
- package/out/_next/static/chunks/245h82k-g1nxr.js +0 -1
- package/out/_next/static/chunks/24cqjhy669845.js +0 -1
- package/out/_next/static/chunks/259xlbe69b9tc.js +0 -1
- package/out/_next/static/chunks/25ctnyh7njp-d.js +0 -4
- package/out/_next/static/chunks/286ggpetqnwyo.js +0 -3
- package/out/_next/static/chunks/28f1onw3nywbz.js +0 -1
- package/out/_next/static/chunks/28ycc-1519hl2.js +0 -1
- package/out/_next/static/chunks/2dhv35o59yzao.js +0 -1
- package/out/_next/static/chunks/2ey30qeaob985.js +0 -1
- package/out/_next/static/chunks/2f0r-df7tb3pu.js +0 -1
- package/out/_next/static/chunks/2gh4z57fem0_v.js +0 -1
- package/out/_next/static/chunks/2h1uw3cluvmmo.js +0 -1
- package/out/_next/static/chunks/2kje_jvmwsvwo.js +0 -1
- package/out/_next/static/chunks/2l_oqx9idxcs8.js +0 -1
- package/out/_next/static/chunks/2reukv9c7cq_9.js +0 -1
- package/out/_next/static/chunks/2vaoftqgc44cg.js +0 -1
- package/out/_next/static/chunks/2y75diyxqlhzl.js +0 -1
- package/out/_next/static/chunks/2zljunurdji0q.js +0 -1
- package/out/_next/static/chunks/34gp3hvr3j6um.js +0 -1
- package/out/_next/static/chunks/34rcp8qrbp522.js +0 -3
- package/out/_next/static/chunks/38wksra3d_k-4.js +0 -1
- package/out/_next/static/chunks/3ajhvedcs_lzb.js +0 -1
- package/out/_next/static/chunks/3bsvp8qhjqdu0.js +0 -1
- package/out/_next/static/chunks/3g4e2txsrb2p2.js +0 -1
- package/out/_next/static/chunks/3g_h_00xs9u59.js +0 -1
- package/out/_next/static/chunks/3hr-mlwi78nov.js +0 -1
- package/out/_next/static/chunks/3l6t8b3addlw7.js +0 -1
- package/out/_next/static/chunks/3mwoauxszd3mn.js +0 -1
- package/out/_next/static/chunks/3ovd8o_usay7j.js +0 -1
- package/out/_next/static/chunks/3pdpaqzwhhijn.js +0 -1
- package/out/_next/static/chunks/3pyggl13glbdc.js +0 -1
- package/out/_next/static/chunks/3rl45k759wfi1.js +0 -1
- package/out/_next/static/chunks/3urd7r018nel4.js +0 -1
- package/out/_next/static/chunks/3vaho-xrtuchd.js +0 -2
- package/out/_next/static/chunks/3wqs57qehored.js +0 -1
- package/out/_next/static/chunks/40acif2eh_unv.js +0 -1
- package/out/_next/static/chunks/413o2v11bygt5.js +0 -1
- package/out/_next/static/chunks/4227p7752rnny.js +0 -1
- package/out/_next/static/chunks/42oyfkhdvb-u3.js +0 -1
- /package/out/_next/static/{M5esRfAVlWSeBcfLV_jVr → yF_tmb8VExvESewet-_To}/_buildManifest.js +0 -0
- /package/out/_next/static/{M5esRfAVlWSeBcfLV_jVr → yF_tmb8VExvESewet-_To}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{M5esRfAVlWSeBcfLV_jVr → yF_tmb8VExvESewet-_To}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,83464,e=>{"use strict";class t{static _CheckLimit(e,r){let s=t._LogLimitOutputs[e];return s?s.current++:(s={limit:r,current:1},t._LogLimitOutputs[e]=s),s.current<=s.limit}static _GenerateLimitMessage(e,r=1){let s=t._LogLimitOutputs[e];if(!s||!t.MessageLimitReached)return;let a=this._Levels[r];s.current===s.limit&&t[a.name](t.MessageLimitReached.replace(/%LIMIT%/g,""+s.limit).replace(/%TYPE%/g,a.name??""))}static _AddLogEntry(e){t._LogCache=e+t._LogCache,t.OnNewCacheEntry&&t.OnNewCacheEntry(e)}static _FormatMessage(e){let t=e=>e<10?"0"+e:""+e,r=new Date;return"["+t(r.getHours())+":"+t(r.getMinutes())+":"+t(r.getSeconds())+"]: "+e}static _LogDisabled(e,t){}static _LogEnabled(e=1,r,s){let a=Array.isArray(r)?r[0]:r;if(void 0!==s&&!t._CheckLimit(a,s))return;let n=t._FormatMessage(a),o=this._Levels[e],i=Array.isArray(r)?r.slice(1):[];o.logFunc&&o.logFunc("BJS - "+n,...i);let l=`<div style='color:${o.color}'>${n}</div><br>`;t._AddLogEntry(l),t._GenerateLimitMessage(a,e)}static get LogCache(){return t._LogCache}static ClearLogCache(){t._LogCache="",t._LogLimitOutputs={},t.errorsCount=0}static set LogLevels(e){for(let r of(t.Log=t._LogDisabled,t.Warn=t._LogDisabled,t.Error=t._LogDisabled,[t.MessageLogLevel,t.WarningLogLevel,t.ErrorLogLevel]))(e&r)===r&&(t[this._Levels[r].name]=t._LogEnabled.bind(t,r))}}t.NoneLogLevel=0,t.MessageLogLevel=1,t.WarningLogLevel=2,t.ErrorLogLevel=4,t.AllLogLevel=7,t.MessageLimitReached="Too many %TYPE%s (%LIMIT%), no more %TYPE%s will be reported for this message.",t._LogCache="",t._LogLimitOutputs={},t._Levels=[{},{color:"white",logFunc:console.log,name:"Log"},{color:"orange",logFunc:console.warn,name:"Warn"},{},{color:"red",logFunc:console.error,name:"Error"}],t.errorsCount=0,t.Log=t._LogEnabled.bind(t,t.MessageLogLevel),t.Warn=t._LogEnabled.bind(t,t.WarningLogLevel),t.Error=t._LogEnabled.bind(t,t.ErrorLogLevel),e.s(["Logger",0,t])},53477,e=>{"use strict";e.s(["RandomGUID",0,function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}])},75865,e=>{"use strict";e.s(["GetDOMTextContent",0,function(e){let t="",r=e.firstChild;for(;r;)3===r.nodeType&&(t+=r.textContent),r=r.nextSibling;return t},"IsDocumentAvailable",0,function(){return"u">typeof document},"IsNavigatorAvailable",0,function(){return"u">typeof navigator},"IsWindowObjectExist",0,function(){return"u">typeof window}])},72491,e=>{"use strict";class t{constructor(){this._xhr="u">typeof _native&&_native.XMLHttpRequest?new _native.XMLHttpRequest:new XMLHttpRequest,this._requestURL=""}static get IsCustomRequestAvailable(){return Object.keys(t.CustomRequestHeaders).length>0||t.CustomRequestModifiers.length>0}static _CleanUrl(e){return e=(e=e.replace("file:http:","http:")).replace("file:https:","https:")}static _ShouldSkipRequestModifications(e){return t.SkipRequestModificationForBabylonCDN&&(e.includes("preview.babylonjs.com")||e.includes("cdn.babylonjs.com"))}static _CollectCustomizations(e,r={}){let s={...r};if(t._ShouldSkipRequestModifications(e))return{url:e,headers:s};for(let e in t.CustomRequestHeaders){let r=t.CustomRequestHeaders[e];r&&(s[e]=r)}let a={setRequestHeader:(e,t)=>{s[e]=t}};for(let r of t.CustomRequestModifiers){if(t._ShouldSkipRequestModifications(e))break;let s=r(a,e);"string"==typeof s&&(e=s)}return{url:e,headers:s}}static async FetchAsync(e,r={}){let s=r.method??"GET";if("u">typeof fetch){let{url:a,headers:n}=t._CollectCustomizations(t._CleanUrl(e),r.headers??{});return await fetch(a,{method:s,headers:n,body:r.body??void 0})}return await new Promise((a,n)=>{let o=new t;o.responseType="arraybuffer",o.addEventListener("readystatechange",()=>{if(4===o.readyState)if(o.status>=200&&o.status<300){let e="u">typeof Headers?new Headers:void 0,t=o.getResponseHeader("Content-Type");t&&e&&e.set("Content-Type",t),"u">typeof Response?a(new Response(o.response,{status:o.status,statusText:o.statusText,headers:e})):a({ok:!0,status:o.status,statusText:o.statusText,headers:{get:e=>o.getResponseHeader(e)},arrayBuffer:async()=>await Promise.resolve(o.response)})}else n(Error(`HTTP ${o.status} loading '${o.requestURL}': ${o.statusText}`))}),o.open(s,e,r.headers),o.send(r.body??null)})}get requestURL(){return this._requestURL}get onprogress(){return this._xhr.onprogress}set onprogress(e){this._xhr.onprogress=e}get readyState(){return this._xhr.readyState}get status(){return this._xhr.status}get statusText(){return this._xhr.statusText}get response(){return this._xhr.response}get responseURL(){return this._xhr.responseURL}get responseText(){return this._xhr.responseText}get responseType(){return this._xhr.responseType}set responseType(e){this._xhr.responseType=e}get timeout(){return this._xhr.timeout}set timeout(e){this._xhr.timeout=e}addEventListener(e,t,r){this._xhr.addEventListener(e,t,r)}removeEventListener(e,t,r){this._xhr.removeEventListener(e,t,r)}abort(){this._xhr.abort()}send(e){this._xhr.send(e)}open(e,r,s){let{url:a,headers:n}=t._CollectCustomizations(r,s);for(let r in this._requestURL=t._CleanUrl(a),this._xhr.open(e,this._requestURL,!0),n)this._xhr.setRequestHeader(r,n[r])}setRequestHeader(e,t){this._xhr.setRequestHeader(e,t)}getResponseHeader(e){return this._xhr.getResponseHeader(e)}}t.CustomRequestHeaders={},t.CustomRequestModifiers=[],t.SkipRequestModificationForBabylonCDN=!0,e.s(["WebRequest",0,t])},37890,e=>{"use strict";let t=null;function r(){if(t)return t;let e=new ArrayBuffer(4),r=new Float32Array(e),s=new Uint32Array(e),a=new Uint32Array(512),n=new Uint32Array(512);for(let e=0;e<256;++e){let t=e-127;t<-24?(a[e]=0,a[256|e]=32768,n[e]=24,n[256|e]=24):t<-14?(a[e]=1024>>-t-14,a[256|e]=1024>>-t-14|32768,n[e]=-t-1,n[256|e]=-t-1):t<=15?(a[e]=t+15<<10,a[256|e]=t+15<<10|32768,n[e]=13,n[256|e]=13):t<128?(a[e]=31744,a[256|e]=64512,n[e]=24,n[256|e]=24):(a[e]=31744,a[256|e]=64512,n[e]=13,n[256|e]=13)}let o=new Uint32Array(2048),i=new Uint32Array(64),l=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,r=0;for(;(8388608&t)==0;)t<<=1,r-=8388608;t&=-8388609,r+=0x38800000,o[e]=t|r}for(let e=1024;e<2048;++e)o[e]=0x38000000+(e-1024<<13);for(let e=1;e<31;++e)i[e]=e<<23;i[31]=0x47800000,i[32]=0x80000000;for(let e=33;e<63;++e)i[e]=0x80000000+(e-32<<23);i[63]=0xc7800000;for(let e=1;e<64;++e)32!==e&&(l[e]=1024);return t={floatView:r,uint32View:s,baseTable:a,shiftTable:n,mantissaTable:o,exponentTable:i,offsetTable:l}}e.s(["FromHalfFloat",0,function(e){let t=r();return t.uint32View[0]=t.mantissaTable[t.offsetTable[e>>10]+(1023&e)]+t.exponentTable[e>>10],t.floatView[0]},"MaxHalfFloat",0,65504,"ToHalfFloat",0,function(e){let t=r();t.floatView[0]=e;let s=t.uint32View[0],a=s>>23&511;return t.baseTable[a]+((8388607&s)>>t.shiftTable[a])}])},59767,25440,65771,e=>{"use strict";class t{}t.FilesToLoad={},e.s(["FilesInputStore",0,t],59767),e.s(["RetryStrategy",0,class{static ExponentialBackoff(e=3,t=500){return(r,s,a)=>0!==s.status||a>=e||-1!==r.indexOf("file:")?-1:Math.pow(2,a)*t}}],25440);class r extends Error{}r._setPrototypeOf=Object.setPrototypeOf||((e,t)=>(e.__proto__=t,e));class s extends r{constructor(e,t,a){super(e),this.errorCode=t,this.innerError=a,this.name="RuntimeError",r._setPrototypeOf(this,s.prototype)}}e.s(["BaseError",0,r,"ErrorCodes",0,{MeshInvalidPositionsError:0,UnsupportedTextureError:1e3,GLTFLoaderUnexpectedMagicError:2e3,SceneLoaderError:3e3,LoadFileError:4e3,RequestFileError:4001,ReadFileError:4002},"RuntimeError",0,s],65771)},61023,e=>{"use strict";let t=e=>atob(e);e.s(["Decode",0,e=>{if("u">typeof TextDecoder)return new TextDecoder().decode(e);let t="";for(let r=0;r<e.byteLength;r++)t+=String.fromCharCode(e[r]);return t},"DecodeBase64ToBinary",0,e=>"function"==typeof Uint8Array.fromBase64?Uint8Array.fromBase64(e).buffer:function(e){let r=t(e),s=r.length,a=new Uint8Array(new ArrayBuffer(s));for(let e=0;e<s;e++)a[e]=r.charCodeAt(e);return a.buffer}(e),"DecodeBase64ToString",0,t,"EncodeArrayBufferToBase64",0,e=>{let t=ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e);return"function"==typeof t.toBase64?t.toBase64():function(e){let t,r,s,a,n,o,i,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="",c=0;for(;c<e.length;)t=e[c++],r=c<e.length?e[c++]:NaN,s=c<e.length?e[c++]:NaN,a=t>>2,n=(3&t)<<4|r>>4,o=(15&r)<<2|s>>6,i=63&s,isNaN(r)?o=i=64:isNaN(s)&&(i=64),u+=l.charAt(a)+l.charAt(n)+l.charAt(o)+l.charAt(i);return u}(t)}])},4775,e=>{"use strict";let t=[];function r(e,t,r){try{if(e())return t(),!0}catch(e){return r?.(e),!0}return!1}e.s(["TimingTools",0,class{static SetImmediate(e){0===t.length&&setTimeout(()=>{let e=t;for(let r of(t=[],e))r()},1),t.push(e)}},"_RetryWithInterval",0,(e,t,s,a=16,n=3e4,o=!0,i)=>{if(o&&r(e,t,s))return null;let l=setInterval(()=>{r(e,t,s)?clearInterval(l):(n-=a)<0&&(clearInterval(l),s?.(Error("Operation timed out after maximum retries. "+(i||"")),!0))},a);return()=>clearInterval(l)}])},5512,e=>{"use strict";var t=e.i(83464),r=e.i(37890);function s(e){switch(e){case 5120:case 5121:return 1;case 5122:case 5123:case 5131:return 2;case 5124:case 5125:case 5126:return 4;default:throw Error(`Invalid type '${e}'`)}}function a(e){switch(e){case 5120:return Int8Array;case 5121:return Uint8Array;case 5122:return Int16Array;case 5123:case 5131:return Uint16Array;case 5124:return Int32Array;case 5125:return Uint32Array;case 5126:return Float32Array;default:throw Error(`Invalid component type '${e}'`)}}function n(e,t,a,n,o,i,l,u){let c=Array(n),f=Array(n);if(e instanceof Array){let r=t/4,s=a/4;for(let t=0;t<i;t+=n){for(let t=0;t<n;t++)c[t]=f[t]=e[r+t];u(f,t);for(let t=0;t<n;t++)c[t]!==f[t]&&(e[r+t]=f[t]);r+=s}}else{let d=ArrayBuffer.isView(e)?new DataView(e.buffer,e.byteOffset,e.byteLength):new DataView(e),g=s(o);for(let e=0;e<i;e+=n){for(let e=0,s=t;e<n;e++,s+=g)c[e]=f[e]=function(e,t,s,a){switch(t){case 5120:{let t=e.getInt8(s);return a&&(t=Math.max(t/127,-1)),t}case 5121:{let t=e.getUint8(s);return a&&(t/=255),t}case 5122:{let t=e.getInt16(s,!0);return a&&(t=Math.max(t/32767,-1)),t}case 5123:{let t=e.getUint16(s,!0);return a&&(t/=65535),t}case 5131:return(0,r.FromHalfFloat)(e.getUint16(s,!0));case 5124:return e.getInt32(s,!0);case 5125:return e.getUint32(s,!0);case 5126:return e.getFloat32(s,!0);default:throw Error(`Invalid component type ${t}`)}}(d,o,s,l);u(f,e);for(let e=0,s=t;e<n;e++,s+=g)c[e]!==f[e]&&function(e,t,s,a,n){switch(t){case 5120:a&&(n=Math.round(127*n)),e.setInt8(s,n);break;case 5121:a&&(n=Math.round(255*n)),e.setUint8(s,n);break;case 5122:a&&(n=Math.round(32767*n)),e.setInt16(s,n,!0);break;case 5123:a&&(n=Math.round(65535*n)),e.setUint16(s,n,!0);break;case 5131:e.setUint16(s,(0,r.ToHalfFloat)(n),!0);break;case 5124:e.setInt32(s,n,!0);break;case 5125:e.setUint32(s,n,!0);break;case 5126:e.setFloat32(s,n,!0);break;default:throw Error(`Invalid component type ${t}`)}}(d,o,s,l,f[e]);t+=a}}}e.s(["CopyFloatData",0,function(e,r,a,o,i,l,u,c){let f=r*s(a),d=u*r;if(c.length!==d)throw Error("Output length is not valid");if(5126!==a||i!==f)return void n(e,o,i,r,a,d,l,(e,t)=>{for(let s=0;s<r;s++)c[t+s]=e[s]});if(e instanceof Array){let t=o/4;c.set(e,t)}else if(ArrayBuffer.isView(e)){let r=e.byteOffset+o;if((3&r)!=0){t.Logger.Warn("Float array must be aligned to 4-bytes border"),c.set(new Float32Array(e.buffer.slice(r,r+d*Float32Array.BYTES_PER_ELEMENT)));return}let s=new Float32Array(e.buffer,r,d);c.set(s)}else{let t=new Float32Array(e,o,d);c.set(t)}},"EnumerateFloatValues",0,n,"GetBlobBufferSource",0,function(e){let t=e.buffer;if(t instanceof ArrayBuffer)return e;let r=new ArrayBuffer(e.byteLength);return new Uint8Array(r).set(new Uint8Array(t,e.byteOffset,e.byteLength)),r},"GetFloatData",0,function(e,r,a,o,i,l,u,c){let f=r*s(a),d=u*r;if(5126!==a||i!==f){let t=new Float32Array(d);return n(e,o,i,r,a,d,l,(e,s)=>{for(let a=0;a<r;a++)t[s+a]=e[a]}),t}if(!(e instanceof Array||e instanceof Float32Array)||0!==o||e.length!==d)if(e instanceof Array){let t=o/4;return e.slice(t,t+d)}else{if(!ArrayBuffer.isView(e))return new Float32Array(e,o,d);let r=e.byteOffset+o;return((3&r)!=0&&(t.Logger.Warn("Float array must be aligned to 4-bytes border"),c=!0),c)?new Float32Array(e.buffer.slice(r,r+d*Float32Array.BYTES_PER_ELEMENT)):new Float32Array(e.buffer,r,d)}return c?e.slice():e},"GetTypeByteLength",0,s,"GetTypedArrayConstructor",0,a,"GetTypedArrayData",0,function(e,r,o,i,l,u,c){let f,d=s(o),g=a(o),p=u*r;if(Array.isArray(e)){if((3&i)!=0||(3&l)!=0)throw Error("byteOffset and byteStride must be a multiple of 4 for number[] data.");let t=i/4,s=l/4;if(t+(u-1)*s+r>e.length)throw Error("Last accessed index is out of bounds.");if(s<r)throw Error("Data stride cannot be smaller than the component size.");if(s!==r){let t=new g(p);return n(e,i,l,r,o,p,!1,(e,s)=>{for(let a=0;a<r;a++)t[s+a]=e[a]}),t}return new g(e.slice(t,t+p))}let y=i;if(ArrayBuffer.isView(e)?(f=e.buffer,y+=e.byteOffset):f=e,y+(u-1)*l+r*d>f.byteLength)throw Error("Last accessed byte is out of bounds.");let h=r*d;if(l<h)throw Error("Byte stride cannot be smaller than the component's byte size.");if(l!==h){let e=new g(p),t=new Uint8Array(f,y),s=new Uint8Array(e.buffer),a=r*d;for(let e=0,r=0,n=0;e<u;e++,r+=l,n+=a)s.set(t.subarray(r,r+a),n);return e}return(1!==d&&(y&d-1)!=0&&(t.Logger.Warn("Array must be aligned to border of element size. Data will be copied."),c=!0),c)?new g(f.slice(y,y+p*d)):new g(f,y,p)}])},25746,e=>{"use strict";var t=e.i(72491),r=e.i(75865),s=e.i(57554),a=e.i(59767),n=e.i(25440),o=e.i(65771),i=e.i(61023),l=e.i(47867),u=e.i(83464),c=e.i(4775),f=e.i(5512);let d=new RegExp(/^data:([^,]+\/[^,]+)?;base64,/i);class g extends o.RuntimeError{constructor(e,r){super(e,o.ErrorCodes.LoadFileError),this.name="LoadFileError",o.BaseError._setPrototypeOf(this,g.prototype),r instanceof t.WebRequest?this.request=r:this.file=r}}class p extends o.RuntimeError{constructor(e,t){super(e,o.ErrorCodes.RequestFileError),this.request=t,this.name="RequestFileError",o.BaseError._setPrototypeOf(this,p.prototype)}}class y extends o.RuntimeError{constructor(e,t){super(e,o.ErrorCodes.ReadFileError),this.file=t,this.name="ReadFileError",o.BaseError._setPrototypeOf(this,y.prototype)}}let h={DefaultRetryStrategy:n.RetryStrategy.ExponentialBackoff(),BaseUrl:"",CorsBehavior:"anonymous",PreprocessUrl:e=>e,ScriptBaseUrl:"",ScriptPreprocessUrl:e=>e,CleanUrl:e=>e=e.replace(/#/gm,"%23")},b=(e,t)=>{if((!e||0!==e.indexOf("data:"))&&h.CorsBehavior)if("string"==typeof h.CorsBehavior||h.CorsBehavior instanceof String)t.crossOrigin=h.CorsBehavior;else{let r=h.CorsBehavior(e);r&&(t.crossOrigin=r)}},m=(e,t,r,a,n)=>{let o=new FileReader,i={onCompleteObservable:new s.Observable,abort:()=>o.abort()};return o.onloadend=()=>i.onCompleteObservable.notifyObservers(i),n&&(o.onerror=()=>{n(new y(`Unable to read ${e.name}`,e))}),o.onload=e=>{t(e.target.result)},r&&(o.onprogress=r),a?o.readAsArrayBuffer(e):o.readAsText(e),i},L=(e,t,r,n,o,i,l)=>{if(e.name)return m(e,t,r,o,i?e=>{i(void 0,e)}:void 0);if(-1!==e.indexOf("file:")){let s=decodeURIComponent(e.substring(5).toLowerCase());0===s.indexOf("./")&&(s=s.substring(2));let n=a.FilesInputStore.FilesToLoad[s];if(n)return m(n,t,r,o,i?e=>i(void 0,new g(e.message,e.file)):void 0)}let{match:f,type:d}=T(e);if(f){let r={onCompleteObservable:new s.Observable,abort:()=>()=>{}};try{let r=o?x(e):_(e);t(r,void 0,d)}catch(e){i?i(void 0,e):u.Logger.Error(e.message||"Failed to parse the Data URL")}return c.TimingTools.SetImmediate(()=>{r.onCompleteObservable.notifyObservers(r)}),r}return v(e,(e,r)=>{t(e,r?.responseURL,r?.getResponseHeader("content-type"))},r,n,o,i?e=>{i(e.request,new g(e.message,e.request))}:void 0,l)},v=(e,a,n,o,i,c,f)=>{null!==o&&(o??(o=l.EngineStore.LastCreatedScene?.offlineProvider)),e=h.CleanUrl(e),e=h.PreprocessUrl(e);let d=h.BaseUrl+e,g=!1,y={onCompleteObservable:new s.Observable,abort:()=>g=!0},b=()=>{let e,s=new t.WebRequest,o=null,l=()=>{s&&(n&&s.removeEventListener("progress",n),e&&s.removeEventListener("readystatechange",e),s.removeEventListener("loadend",b))},b=()=>{l(),y.onCompleteObservable.notifyObservers(y),y.onCompleteObservable.clear(),n=void 0,e=null,b=null,c=void 0,f=void 0,a=void 0};y.abort=()=>{g=!0,b&&b(),s&&s.readyState!==(XMLHttpRequest.DONE||4)&&s.abort(),null!==o&&(clearTimeout(o),o=null),s=null};let m=e=>{let t=e.message||"Unknown error";c&&s?c(new p(t,s)):u.Logger.Error(t)},L=u=>{if(s){if(s.open("GET",d),f)try{f(s)}catch(e){m(e);return}i&&(s.responseType="arraybuffer"),n&&s.addEventListener("progress",n),b&&s.addEventListener("loadend",b),e=()=>{if(!g&&s&&s.readyState===(XMLHttpRequest.DONE||4)){if(e&&s.removeEventListener("readystatechange",e),s.status>=200&&s.status<300||0===s.status&&(!(0,r.IsWindowObjectExist)()||w())){let e=i?s.response:s.responseText;if(null!==e){try{a&&a(e,s)}catch(e){m(e)}return}}let n=h.DefaultRetryStrategy;if(n){let e=n(d,s,u);if(-1!==e){l(),s=new t.WebRequest,o=setTimeout(()=>L(u+1),e);return}}let f=new p("Error status: "+s.status+" "+s.statusText+" - Unable to load "+d,s);c&&c(f)}},s.addEventListener("readystatechange",e),s.send()}};L(0)};if(o&&o.enableSceneOffline&&!e.startsWith("blob:")){let t=e=>{e&&e.status>400?c&&c(e):b()};o.open(()=>{o&&o.loadFile(h.BaseUrl+e,e=>{!g&&a&&a(e),y.onCompleteObservable.notifyObservers(y)},n?e=>{!g&&n&&n(e)}:void 0,t,i)},t)}else b();return y},w=()=>"u">typeof location&&"file:"===location.protocol,T=e=>{let t=d.exec(e);return null===t||0===t.length?{match:!1,type:""}:{match:!0,type:t[0].replace("data:","").replace(";base64,","")}};function x(e){return(0,i.DecodeBase64ToBinary)(e.split(",")[1])}let _=e=>(0,i.DecodeBase64ToString)(e.split(",")[1]);e.s(["DecodeBase64UrlToBinary",0,x,"FileToolsOptions",0,h,"GetMimeType",0,e=>{let{match:t,type:r}=T(e);if(t)return r||void 0;let s=e.lastIndexOf(".");switch(e.substring(s+1).toLowerCase()){case"glb":return"model/gltf-binary";case"bin":return"application/octet-stream";case"gltf":return"model/gltf+json";case"jpg":case"jpeg":return"image/jpeg";case"png":return"image/png";case"webp":return"image/webp";case"ktx":return"image/ktx";case"ktx2":return"image/ktx2";case"avif":return"image/avif";default:return}},"IsBase64DataUrl",0,e=>d.test(e),"LoadFile",0,L,"LoadFileError",0,g,"LoadImage",0,(e,r,s,n,o="",u,c=l.EngineStore.LastCreatedEngine)=>{let d;if("u"<typeof HTMLImageElement&&!c?._features.forceBitmapOverHTMLImageElement)return s("LoadImage is only supported in web or BabylonNative environments."),null;let g=!1;if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))if("u">typeof Blob&&"u">typeof URL){let t;t=e instanceof ArrayBuffer?e:(0,f.GetBlobBufferSource)(e),d=URL.createObjectURL(new Blob([t],{type:o})),g=!0}else d=`data:${o};base64,`+(0,i.EncodeArrayBufferToBase64)(e);else e instanceof Blob?(d=URL.createObjectURL(e),g=!0):(d=h.CleanUrl(e),d=h.PreprocessUrl(d));let p=t=>{if(s){let r=d||e.toString();s(`Error while trying to load image: ${0===r.indexOf("http")||r.length<=128?r:r.slice(0,128)+"..."}`,t)}};if(c?._features.forceBitmapOverHTMLImageElement)return L(d,t=>{c.createImageBitmap(new Blob([t],{type:o}),{premultiplyAlpha:"none",colorSpaceConversion:"none",...u}).then(e=>{r(e),g&&URL.revokeObjectURL(d)}).catch(t=>{s&&s("Error while trying to load image: "+e,t)})},void 0,n||void 0,!0,(e,t)=>{p(t)}),null;let y=new Image;!1;b(d,y);let m=[],v=()=>{for(let e of m)e.target.removeEventListener(e.name,e.handler);m.length=0};for(let e of(m.push({target:y,name:"load",handler:()=>{v(),r(y),g&&y.src&&URL.revokeObjectURL(y.src)}}),m.push({target:y,name:"error",handler:e=>{v(),p(e),g&&y.src&&URL.revokeObjectURL(y.src)}}),m.push({target:document,name:"securitypolicyviolation",handler:e=>{if(e.blockedURI!==y.src||"report"===e.disposition)return;v();let t=Error(`CSP violation of policy ${e.effectiveDirective} ${e.blockedURI}. Current policy is ${e.originalPolicy}`);l.EngineStore.UseFallbackTexture=!1,p(t),g&&y.src&&URL.revokeObjectURL(y.src),y.src=""}}),m))e.target.addEventListener(e.name,e.handler);let w="blob:"===d.substring(0,5),T="data:"===d.substring(0,5),x=()=>{w||T||!t.WebRequest.IsCustomRequestAvailable?y.src=d:L(d,(e,t,r)=>{let s=new Blob([e],{type:!o&&r?r:o}),a=URL.createObjectURL(s);g=!0,y.src=a},void 0,n||void 0,!0,(e,t)=>{p(t)})};if(!w&&!T&&n&&n.enableTexturesOffline)n.open(()=>{n&&n.loadImage(d,y)},x);else{if(-1!==d.indexOf("file:")){let e=decodeURIComponent(d.substring(5).toLowerCase());if(a.FilesInputStore.FilesToLoad[e]&&"u">typeof URL){try{let t;try{t=URL.createObjectURL(a.FilesInputStore.FilesToLoad[e])}catch(r){t=URL.createObjectURL(a.FilesInputStore.FilesToLoad[e])}y.src=t,g=!0}catch(e){y.src=""}return y}}x()}return y},"ReadFile",0,m,"RequestFile",0,v,"SetCorsBehavior",0,b])},85240,e=>{"use strict";var t=e.i(75865);e.s(["PrecisionDate",0,class{static get Now(){return(0,t.IsWindowObjectExist)()&&window.performance&&window.performance.now?window.performance.now():Date.now()}}])},65679,e=>{"use strict";function t(e){let t=r(e),a=s(e);return t-e>e-a?a:t}function r(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e}function s(e){return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,(e|=e>>16)-(e>>1)}e.s(["FloorPOT",0,s,"GetExponentOfTwo",0,function(e,a,n=2){let o;switch(n){case 1:o=s(e);break;case 2:o=t(e);break;default:o=r(e)}return Math.min(o,a)},"IsExponentOfTwo",0,function(e){let t=1;do t*=2;while(t<e)return t===e},"Mix",0,function(e,t,r){return e*(1-r)+t*r},"NearestPOT",0,t])},58279,e=>{"use strict";var t=e.i(83464),r=e.i(48477);class s{static Instantiate(e){if(this.RegisteredExternalClasses&&this.RegisteredExternalClasses[e])return this.RegisteredExternalClasses[e];let s=(0,r.GetClass)(e);if(s)return s;t.Logger.Warn(e+" not found, you may have missed an import.");let a=e.split("."),n="u">typeof window?window:"u">typeof globalThis?globalThis:this;for(let e=0,t=a.length;e<t;e++)n=n[a[e]];return"function"!=typeof n?null:n}}s.RegisteredExternalClasses={},e.s(["InstantiationTools",0,s])},16147,68853,40220,e=>{"use strict";e.s(["__decorate",0,function(e,t,r,s){var a,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,s);else for(var i=e.length-1;i>=0;i--)(a=e[i])&&(o=(n<3?a(o):n>3?a(t,r,o):a(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o}],16147);let t={},r={};function s(e){let t=e.getClassName();return r[t]||(r[t]={}),r[t]}function a(e,t){return(r,a)=>{let n=s(r);n[a]||(n[a]={type:e,sourceName:t})}}function n(e,t,r,s){let a=r.value;r.value=(...r)=>{let n=a;if("u">typeof _native&&_native[t]){let e=_native[t];n=s?(...t)=>s(...t)?e(...t):a(...t):e}return e[t]=n,n(...r)}}e.s(["GetDirectStore",0,s,"GetMergedStore",0,function(e){let s=e.getClassName();if(t[s])return t[s];t[s]={};let a=t[s],n=e,o=s;for(;o;){let e,t=r[o];for(let e in t)a[e]=t[e];let s=!1;do{if(!(e=Object.getPrototypeOf(n)).getClassName){s=!0;break}if(e.getClassName()!==o)break;n=e}while(e)if(s)break;o=e.getClassName(),n=e}return a}],68853),n.filter=function(e){return(t,r,s)=>n(t,r,s,e)},e.s(["addAccessorsForMaterialProperty",0,function(e,t=null){return(r,s)=>{Object.defineProperty(r,t||"",{get:function(){return this[s].value},set:function(t){"function"==typeof this[s]?.value?.equals&&this[s].value.equals(t)||this[s].value!==t&&(this[s].value=t,r[e].apply(this))},enumerable:!0,configurable:!0})}},"expandToProperty",0,function(e,t=null){return function(e,t=null){return(r,s)=>{let a=t||"_"+s;Object.defineProperty(r,s,{get:function(){return this[a]},set:function(t){"function"==typeof this[a]?.equals&&this[a].equals(t)||this[a]!==t&&(this[a]=t,r[e].apply(this))},enumerable:!0,configurable:!0})}}(e,t)},"nativeOverride",0,n,"serialize",0,function(e){return a(0,e)},"serializeAsColor3",0,function(e){return a(2,e)},"serializeAsColor4",0,function(e){return a(8,e)},"serializeAsColorCurves",0,function(e){return a(7,e)},"serializeAsFresnelParameters",0,function(e){return a(3,e)},"serializeAsImageProcessingConfiguration",0,function(e){return a(9,e)},"serializeAsMatrix",0,function(e){return a(12,e)},"serializeAsMeshReference",0,function(e){return a(6,e)},"serializeAsQuaternion",0,function(e){return a(10,e)},"serializeAsTexture",0,function(e){return a(1,e)},"serializeAsVector2",0,function(e){return a(4,e)},"serializeAsVector3",0,function(e){return a(5,e)}],40220)},95397,55250,e=>{"use strict";var t=e.i(54670);class r{static Eval(e,t){return"true"===(e=e.match(/\([^()]*\)/g)?e.replace(/\([^()]*\)/g,e=>(e=e.slice(1,e.length-1),r._HandleParenthesisContent(e,t))):r._HandleParenthesisContent(e,t))||"false"!==e&&r.Eval(e,t)}static _HandleParenthesisContent(e,t){let s;t=t||(e=>"true"===e);let a=e.split("||");for(let e in a)if(Object.prototype.hasOwnProperty.call(a,e)){let n=r._SimplifyNegation(a[e].trim()),o=n.split("&&");if(o.length>1)for(let e=0;e<o.length;++e){let a=r._SimplifyNegation(o[e].trim());if(!(s="true"!==a&&"false"!==a?"!"===a[0]?!t(a.substring(1)):t(a):"true"===a)){n="false";break}}if(s||"true"===n){s=!0;break}s="true"!==n&&"false"!==n?"!"===n[0]?!t(n.substring(1)):t(n):"true"===n}return s?"true":"false"}static _SimplifyNegation(e){return"!true"===(e=(e=e.replace(/^[\s!]+/,e=>(e=e.replace(/[\s]/g,()=>"")).length%2?"!":"")).trim())?e="false":"!false"===e&&(e="true"),e}}class s{static EnableFor(e){e._tags=e._tags||{},e.hasTags=()=>s.HasTags(e),e.addTags=t=>s.AddTagsTo(e,t),e.removeTags=t=>s.RemoveTagsFrom(e,t),e.matchesTagsQuery=t=>s.MatchesQuery(e,t)}static DisableFor(e){delete e._tags,delete e.hasTags,delete e.addTags,delete e.removeTags,delete e.matchesTagsQuery}static HasTags(e){if(!e._tags)return!1;let t=e._tags;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!0;return!1}static GetTags(e,t=!0){if(!e._tags)return null;if(!t)return e._tags;{let t=[];for(let r in e._tags)Object.prototype.hasOwnProperty.call(e._tags,r)&&!0===e._tags[r]&&t.push(r);return t.join(" ")}}static AddTagsTo(e,t){if(t&&"string"==typeof t)for(let r of t.split(" "))s._AddTagTo(e,r)}static _AddTagTo(e,t){""===(t=t.trim())||"true"===t||"false"===t||t.match(/[\s]/)||t.match(/^([!]|([|]|[&]){2})/)||(s.EnableFor(e),e._tags[t]=!0)}static RemoveTagsFrom(e,t){if(!s.HasTags(e))return;let r=t.split(" ");for(let t in r)s._RemoveTagFrom(e,r[t])}static _RemoveTagFrom(e,t){delete e._tags[t]}static MatchesQuery(e,t){return void 0===t||(""===t?s.HasTags(e):r.Eval(t,t=>s.HasTags(e)&&e._tags[t]))}}e.s(["Tags",0,s],55250);var a=e.i(75053),n=e.i(10534),o=e.i(68853);let i=function(e,t,r,a={}){let n=e();s&&s.HasTags(t)&&s.AddTagsTo(n,s.GetTags(t,!0));let i=(0,o.GetMergedStore)(n),u={};for(let e in i){let s=i[e],o=t[e],c=s.type;if(null!=o&&("uniqueId"!==e||l.AllowLoadingUniqueId))switch(c){case 0:case 6:case 9:case 11:"function"==typeof o.slice?n[e]=o.slice():n[e]=o;break;case 1:a.cloneTexturesOnlyOnce&&u[o.uniqueId]?n[e]=u[o.uniqueId]:(n[e]=r||o.isRenderTarget?o:o.clone(),u[o.uniqueId]=n[e]);break;case 2:case 3:case 4:case 5:case 7:case 8:case 10:case 12:n[e]=r?o:o.clone()}}return n};class l{static AppendSerializedAnimations(e,t){if(e.animations){t.animations=[];for(let r=0;r<e.animations.length;r++){let s=e.animations[r];t.animations.push(s.serialize())}}}static Serialize(e,t){t||(t={}),s&&(t.tags=s.GetTags(e));let r=(0,o.GetMergedStore)(e);for(let s in r){let a=r[s],n=a.sourceName||s,o=a.type,i=e[s];if(null!=i&&("uniqueId"!==s||l.AllowLoadingUniqueId))switch(o){case 0:Array.isArray(i)?t[n]=i.slice():t[n]=i;break;case 1:case 3:case 7:case 9:t[n]=i.serialize();break;case 2:case 4:case 5:case 8:case 10:case 12:t[n]=i.asArray();break;case 6:case 11:t[n]=i.id}}return t}static ParseProperties(e,t,r,s){s||(s="");let i=(0,o.GetMergedStore)(t);for(let o in i){let u=i[o],c=e[u.sourceName||o],f=u.type;if(null!=c&&("uniqueId"!==o||l.AllowLoadingUniqueId))switch(f){case 0:t[o]=c;break;case 1:r&&(t[o]=l._TextureParser(c,r,s));break;case 2:t[o]=a.Color3.FromArray(c);break;case 3:t[o]=l._FresnelParametersParser(c);break;case 4:t[o]=n.Vector2.FromArray(c);break;case 5:t[o]=n.Vector3.FromArray(c);break;case 6:r&&(t[o]=r.getLastMeshById(c));break;case 7:t[o]=l._ColorCurvesParser(c);break;case 8:t[o]=a.Color4.FromArray(c);break;case 9:t[o]=l._ImageProcessingConfigurationParser(c);break;case 10:t[o]=n.Quaternion.FromArray(c);break;case 11:r&&(t[o]=r.getCameraById(c));break;case 12:t[o]=n.Matrix.FromArray(c)}}}static Parse(e,t,r,a=null){let n=e();return s&&s.AddTagsTo(n,t.tags),l.ParseProperties(t,n,r,a),n}static Clone(e,t,r={}){return i(e,t,!1,r)}static Instanciate(e,t){return i(e,t,!0)}}l.AllowLoadingUniqueId=!1,l._ImageProcessingConfigurationParser=e=>{throw(0,t._WarnImport)("ImageProcessingConfiguration")},l._FresnelParametersParser=e=>{throw(0,t._WarnImport)("FresnelParameters")},l._ColorCurvesParser=e=>{throw(0,t._WarnImport)("ColorCurves")},l._TextureParser=(e,r,s)=>{throw(0,t._WarnImport)("Texture")},e.s(["SerializationHelper",0,l],95397)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1719,t=>{"use strict";class e{static GetShadersRepository(t=0){return 0===t?e.ShadersRepository:e.ShadersRepositoryWGSL}static GetShadersStore(t=0){return 0===t?e.ShadersStore:e.ShadersStoreWGSL}static GetIncludesShadersStore(t=0){return 0===t?e.IncludesShadersStore:e.IncludesShadersStoreWGSL}}e.ShadersRepository="src/Shaders/",e.ShadersStore={},e.IncludesShadersStore={},e.ShadersRepositoryWGSL="src/ShadersWGSL/",e.ShadersStoreWGSL={},e.IncludesShadersStoreWGSL={},t.s(["ShaderStore",0,e])},91095,t=>{"use strict";var e,s,a,i,r=t.i(10534);(e=a||(a={}))[e.LOCAL=0]="LOCAL",e[e.WORLD=1]="WORLD",e[e.BONE=2]="BONE";class n{}n.X=new r.Vector3(1,0,0),n.Y=new r.Vector3(0,1,0),n.Z=new r.Vector3(0,0,1),(s=i||(i={}))[s.X=0]="X",s[s.Y=1]="Y",s[s.Z=2]="Z",t.s(["Axis",0,n,"Coordinate",0,i,"Space",0,a])},95294,t=>{"use strict";class e{constructor(t){this.length=0,this.data=Array(t),this._id=e._GlobalId++}push(t){this.data[this.length++]=t,this.length>this.data.length&&(this.data.length*=2)}forEach(t){for(let e=0;e<this.length;e++)t(this.data[e])}sort(t){this.data.sort(t)}reset(){this.length=0}dispose(){this.reset(),this.data&&(this.data.length=0)}concat(t){if(0!==t.length){this.length+t.length>this.data.length&&(this.data.length=(this.length+t.length)*2);for(let e=0;e<t.length;e++)this.data[this.length++]=(t.data||t)[e]}}indexOf(t){let e=this.data.indexOf(t);return e>=this.length?-1:e}contains(t){return -1!==this.indexOf(t)}}e._GlobalId=0,t.s(["SmartArray",0,e,"SmartArrayNoDuplicate",0,class extends e{constructor(){super(...arguments),this._duplicateId=0}push(t){super.push(t),t.__smartArrayFlags||(t.__smartArrayFlags={}),t.__smartArrayFlags[this._id]=this._duplicateId}pushNoDuplicate(t){return(!t.__smartArrayFlags||t.__smartArrayFlags[this._id]!==this._duplicateId)&&(this.push(t),!0)}reset(){super.reset(),this._duplicateId++}concatWithNoDuplicate(t){if(0!==t.length){this.length+t.length>this.data.length&&(this.data.length=(this.length+t.length)*2);for(let e=0;e<t.length;e++){let s=(t.data||t)[e];this.pushNoDuplicate(s)}}}}])},16475,t=>{"use strict";var e=t.i(38677);class s{static GetPlanes(t){let a=[];for(let t=0;t<6;t++)a.push(new e.Plane(0,0,0,0));return s.GetPlanesToRef(t,a),a}static GetNearPlaneToRef(t,e){let s=t.m;e.normal.x=s[3]+s[2],e.normal.y=s[7]+s[6],e.normal.z=s[11]+s[10],e.d=s[15]+s[14],e.normalize()}static GetFarPlaneToRef(t,e){let s=t.m;e.normal.x=s[3]-s[2],e.normal.y=s[7]-s[6],e.normal.z=s[11]-s[10],e.d=s[15]-s[14],e.normalize()}static GetLeftPlaneToRef(t,e){let s=t.m;e.normal.x=s[3]+s[0],e.normal.y=s[7]+s[4],e.normal.z=s[11]+s[8],e.d=s[15]+s[12],e.normalize()}static GetRightPlaneToRef(t,e){let s=t.m;e.normal.x=s[3]-s[0],e.normal.y=s[7]-s[4],e.normal.z=s[11]-s[8],e.d=s[15]-s[12],e.normalize()}static GetTopPlaneToRef(t,e){let s=t.m;e.normal.x=s[3]-s[1],e.normal.y=s[7]-s[5],e.normal.z=s[11]-s[9],e.d=s[15]-s[13],e.normalize()}static GetBottomPlaneToRef(t,e){let s=t.m;e.normal.x=s[3]+s[1],e.normal.y=s[7]+s[5],e.normal.z=s[11]+s[9],e.d=s[15]+s[13],e.normalize()}static GetPlanesToRef(t,e){s.GetNearPlaneToRef(t,e[0]),s.GetFarPlaneToRef(t,e[1]),s.GetLeftPlaneToRef(t,e[2]),s.GetRightPlaneToRef(t,e[3]),s.GetTopPlaneToRef(t,e[4]),s.GetBottomPlaneToRef(t,e[5])}static IsPointInFrustum(t,e){for(let s=0;s<6;s++)if(0>e[s].dotCoordinate(t))return!1;return!0}}t.s(["Frustum",0,s])},11437,t=>{"use strict";var e=t.i(10534);class s{}s.POINTERDOWN=1,s.POINTERUP=2,s.POINTERMOVE=4,s.POINTERWHEEL=8,s.POINTERPICK=16,s.POINTERTAP=32,s.POINTERDOUBLETAP=64;class a{constructor(t,e){this.type=t,this.event=e}}t.s(["PointerEventTypes",0,s,"PointerInfo",0,class extends a{get pickInfo(){return this._pickInfo||this._generatePickInfo(),this._pickInfo}constructor(t,e,s,a=null){super(t,e),this._pickInfo=s,this._inputManager=a}_generatePickInfo(){this._inputManager&&(this._pickInfo=this._inputManager._pickMove(this.event),this._inputManager._setRayOnPointerInfo(this._pickInfo,this.event),this._inputManager=null)}},"PointerInfoPre",0,class extends a{constructor(t,s,a,i){super(t,s),this.ray=null,this.originalPickingInfo=null,this.skipOnPointerObservable=!1,this.localPosition=new e.Vector2(a,i)}}])},70463,t=>{"use strict";class e{}e.KEYDOWN=1,e.KEYUP=2;class s{constructor(t,e){this.type=t,this.event=e}}t.s(["KeyboardEventTypes",0,e,"KeyboardInfo",0,s,"KeyboardInfoPre",0,class extends s{get skipOnPointerObservable(){return this.skipOnKeyboardObservable}set skipOnPointerObservable(t){this.skipOnKeyboardObservable=t}constructor(t,e){super(t,e),this.type=t,this.event=e,this.skipOnKeyboardObservable=!1}}])},24423,t=>{"use strict";var e,s;(s=e||(e={}))[s.PointerMove=0]="PointerMove",s[s.PointerDown=1]="PointerDown",s[s.PointerUp=2]="PointerUp";class a{}a.DOM_DELTA_PIXEL=0,a.DOM_DELTA_LINE=1,a.DOM_DELTA_PAGE=2,t.s(["EventConstants",0,a])},10952,t=>{"use strict";class e{constructor(t,e,s,a){this.x=t,this.y=e,this.width=s,this.height=a}toGlobal(t,s){return new e(this.x*t,this.y*s,this.width*t,this.height*s)}toGlobalToRef(t,e,s){return s.x=this.x*t,s.y=this.y*e,s.width=this.width*t,s.height=this.height*e,this}clone(){return new e(this.x,this.y,this.width,this.height)}}t.s(["Viewport",0,e])},25062,t=>{"use strict";var e=t.i(14769);class s extends e.FreeCamera{get touchAngularSensibility(){let t=this.inputs.attached.touch;return t?t.touchAngularSensibility:0}set touchAngularSensibility(t){let e=this.inputs.attached.touch;e&&(e.touchAngularSensibility=t)}get touchMoveSensibility(){let t=this.inputs.attached.touch;return t?t.touchMoveSensibility:0}set touchMoveSensibility(t){let e=this.inputs.attached.touch;e&&(e.touchMoveSensibility=t)}constructor(t,e,s){super(t,e,s),this.inputs.addTouch(),this._setupInputs()}getClassName(){return"TouchCamera"}_setupInputs(){let t=this.inputs.attached.touch,e=this.inputs.attached.mouse;e?e.touchEnabled=!t:t&&(t.allowMouse=!e)}}var a=t.i(10534),i=t.i(98491),r=t.i(18311);class n extends s{get gamepadAngularSensibility(){let t=this.inputs.attached.gamepad;return t?t.gamepadAngularSensibility:0}set gamepadAngularSensibility(t){let e=this.inputs.attached.gamepad;e&&(e.gamepadAngularSensibility=t)}get gamepadMoveSensibility(){let t=this.inputs.attached.gamepad;return t?t.gamepadMoveSensibility:0}set gamepadMoveSensibility(t){let e=this.inputs.attached.gamepad;e&&(e.gamepadMoveSensibility=t)}constructor(t,e,s){super(t,e,s),this.inputs.addGamepad()}getClassName(){return"UniversalCamera"}}let o=!1;function h(){o||(o=!0,i.Node.AddNodeConstructor("FreeCamera",(t,e)=>()=>new n(t,a.Vector3.Zero(),e)),r.Camera._CreateDefaultParsedCamera=(t,e)=>new n(t,a.Vector3.Zero(),e))}t.s(["RegisterUniversalCamera",0,h,"UniversalCamera",0,n],98730),h(),t.s([],65497),t.i(65497),t.i(98730),t.s(["RegisterUniversalCamera",0,h,"UniversalCamera",0,n],25062)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57348,s=>{"use strict";var e=s.i(93701);(0,e.RegisterDumpTools)(),s.s([],6590),s.i(6590),s.s(["Dispose",()=>e.Dispose,"DumpData",()=>e.DumpData,"DumpDataAsync",()=>e.DumpDataAsync,"DumpFramebuffer",()=>e.DumpFramebuffer,"DumpTools",()=>e.DumpTools,"EncodeImageAsync",()=>e.EncodeImageAsync,"RegisterDumpTools",()=>e.RegisterDumpTools],57348)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,45276,t=>{"use strict";var e=t.i(95330),i=t.i(82350),o=t.i(48477);class r extends e.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.config=t,this.object=this.registerDataInput("object",i.RichTypeAny,t.target),this.value=this.registerDataInput("value",i.RichTypeAny),this.propertyName=this.registerDataInput("propertyName",i.RichTypeString,t.propertyName),this.customSetFunction=this.registerDataInput("customSetFunction",i.RichTypeAny)}_execute(t,e){try{let e=this.object.getValue(t),i=this.value.getValue(t),o=this.propertyName.getValue(t);this._stopRunningAnimations(t,e,o);let r=this.customSetFunction.getValue(t);r?r(e,o,i,t):this._setPropertyValue(e,o,i)}catch(e){this._reportError(t,e)}this.out._activateSignal(t)}_stopRunningAnimations(t,e,i){let o=t._getGlobalContextVariable("currentlyRunningAnimationGroups",[]);for(let r of o){let n=t.assetsContext.animationGroups.find(t=>t.uniqueId===r);if(n){for(let s of n.targetedAnimations)if(s.target===e&&s.animation.targetProperty===i){n.stop(!0),n.dispose();let e=o.indexOf(r);-1!==e&&(o.splice(e,1),t._setGlobalContextVariable("currentlyRunningAnimationGroups",o))}}}}_setPropertyValue(t,e,i){let o=e.split("."),r=t;for(let t=0;t<o.length-1;t++){let e=o[t];void 0===r[e]&&(r[e]={}),r=r[e]}r[o[o.length-1]]=i}getClassName(){return"FlowGraphSetPropertyBlock"}}let n=!1;function s(){n||(n=!0,(0,o.RegisterClass)("FlowGraphSetPropertyBlock",r))}t.s(["FlowGraphSetPropertyBlock",0,r,"RegisterFlowGraphSetPropertyBlock",0,s],98643),s(),t.s([],34904),t.i(34904),t.i(98643),t.s(["FlowGraphSetPropertyBlock",0,r],45276)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1719,e=>{"use strict";class t{static GetShadersRepository(e=0){return 0===e?t.ShadersRepository:t.ShadersRepositoryWGSL}static GetShadersStore(e=0){return 0===e?t.ShadersStore:t.ShadersStoreWGSL}static GetIncludesShadersStore(e=0){return 0===e?t.IncludesShadersStore:t.IncludesShadersStoreWGSL}}t.ShadersRepository="src/Shaders/",t.ShadersStore={},t.IncludesShadersStore={},t.ShadersRepositoryWGSL="src/ShadersWGSL/",t.ShadersStoreWGSL={},t.IncludesShadersStoreWGSL={},e.s(["ShaderStore",0,t])},93357,29665,e=>{"use strict";var t=e.i(65703),r=e.i(57554);e.s(["PostProcessManager",0,class{constructor(e){this._vertexBuffers={},this._activePostProcesses=[],this.onBeforeRenderObservable=new r.Observable,this._scene=e}_prepareBuffers(){if(this._vertexBuffers[t.VertexBuffer.PositionKind])return;let e=[];e.push(1,1),e.push(-1,1),e.push(-1,-1),e.push(1,-1),this._vertexBuffers[t.VertexBuffer.PositionKind]=new t.VertexBuffer(this._scene.getEngine(),e,t.VertexBuffer.PositionKind,!1,!1,2),this._buildIndexBuffer()}_buildIndexBuffer(){let e=[];e.push(0),e.push(1),e.push(2),e.push(0),e.push(2),e.push(3),this._indexBuffer=this._scene.getEngine().createIndexBuffer(e)}_getActivePostProcesses(e){let t=this._activePostProcesses;t.length=0;for(let r=0;r<e.length;r++){let i=e[r];i&&t.push(i)}return t}_rebuild(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e._rebuild(),this._buildIndexBuffer())}_prepareFrame(e=null,t=null){let r=this._scene.activeCamera;return!!r&&!!(t=t||this._getActivePostProcesses(r._postProcesses))&&0!==t.length&&!!this._scene.postProcessesEnabled&&(t[0].activate(r,e,null!=t),!0)}directRender(e,t=null,r=!1,i=0,s=0,n=!1,a=e.length){let o=this._scene.getEngine();for(let h=0;h<a;h++){h<e.length-1?e[h+1].activate(this._scene.activeCamera||this._scene,t?.texture):(t?o.bindFramebuffer(t,i,void 0,void 0,r,s):n||o.restoreDefaultFramebuffer(),o._debugInsertMarker?.(`post process ${e[h].name} output`));let a=e[h],c=a.apply();c&&(a.onBeforeRenderObservable.notifyObservers(c),this._prepareBuffers(),o.bindBuffers(this._vertexBuffers,this._indexBuffer,c),o.drawElementsType(0,0,6),a.onAfterRenderObservable.notifyObservers(c))}o.setDepthBuffer(!0),o.setDepthWrite(!0)}_finalizeFrame(e,t,r,i,s=!1){let n=this._scene.activeCamera;if(!n||(this.onBeforeRenderObservable.notifyObservers(this),0===(i=i||this._getActivePostProcesses(n._postProcesses)).length||!this._scene.postProcessesEnabled))return;let a=this._scene.getEngine();for(let o=0,h=i.length;o<h;o++){let c=i[o];if(o<h-1?c._outputTexture=i[o+1].activate(n,t?.texture):(t?(a.bindFramebuffer(t,r,void 0,void 0,s),c._outputTexture=t):(a.restoreDefaultFramebuffer(),c._outputTexture=null),a._debugInsertMarker?.(`post process ${i[o].name} output`)),e)break;let l=c.apply();l&&(c.onBeforeRenderObservable.notifyObservers(l),this._prepareBuffers(),a.bindBuffers(this._vertexBuffers,this._indexBuffer,l),a.drawElementsType(0,0,6),c.onAfterRenderObservable.notifyObservers(l))}a.setDepthBuffer(!0),a.setDepthWrite(!0),a.setAlphaMode(0)}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),this._vertexBuffers[t.VertexBuffer.PositionKind]=null),this._indexBuffer&&(this._scene.getEngine()._releaseBuffer(this._indexBuffer),this._indexBuffer=null)}}],93357);var i=e.i(95294),s=e.i(10534);class n{set opaqueSortCompareFn(e){e?this._opaqueSortCompareFn=e:this._opaqueSortCompareFn=n.PainterSortCompare,this._renderOpaque=this._renderOpaqueSorted}set alphaTestSortCompareFn(e){e?this._alphaTestSortCompareFn=e:this._alphaTestSortCompareFn=n.PainterSortCompare,this._renderAlphaTest=this._renderAlphaTestSorted}set transparentSortCompareFn(e){e?this._transparentSortCompareFn=e:this._transparentSortCompareFn=n.defaultTransparentSortCompare,this._renderTransparent=this._renderTransparentSorted}constructor(e,t,r=null,s=null,n=null){this.index=e,this._opaqueSubMeshes=new i.SmartArray(256),this._transparentSubMeshes=new i.SmartArray(256),this._alphaTestSubMeshes=new i.SmartArray(256),this._depthOnlySubMeshes=new i.SmartArray(256),this._particleSystems=new i.SmartArray(256),this._spriteManagers=new i.SmartArray(256),this._empty=!0,this._edgesRenderers=new i.SmartArrayNoDuplicate(16),this.disableDepthPrePass=!1,this._scene=t,this.opaqueSortCompareFn=r,this.alphaTestSortCompareFn=s,this.transparentSortCompareFn=n}render(e,t,r,i,s=!0,n=!0,a=!0,o=!0,h){if(e)return void e(this._opaqueSubMeshes,this._alphaTestSubMeshes,this._transparentSubMeshes,this._depthOnlySubMeshes);let c=this._scene.getEngine();s&&0!==this._depthOnlySubMeshes.length&&(c.setColorWrite(!1),this._renderAlphaTest(this._depthOnlySubMeshes),c.setColorWrite(!0)),n&&0!==this._opaqueSubMeshes.length&&this._renderOpaque(this._opaqueSubMeshes),a&&0!==this._alphaTestSubMeshes.length&&this._renderAlphaTest(this._alphaTestSubMeshes);let l=c.getStencilBuffer();if(c.setStencilBuffer(!1),t&&this._renderSprites(),r&&this._renderParticles(i),this.onBeforeTransparentRendering&&this.onBeforeTransparentRendering(),o&&(h||0!==this._transparentSubMeshes.length||this._scene.useOrderIndependentTransparency)){if(c.setStencilBuffer(l),h)h(this._transparentSubMeshes,this);else if(this._scene.useOrderIndependentTransparency){let e=this._scene.depthPeelingRenderer.render(this._transparentSubMeshes);e.length&&this._renderTransparent(e)}else this._renderTransparent(this._transparentSubMeshes);c.setAlphaMode(0)}if(c.setStencilBuffer(!1),n&&this._edgesRenderers.length){for(let e=0;e<this._edgesRenderers.length;e++)this._edgesRenderers.data[e].render();c.setAlphaMode(0)}c.setStencilBuffer(l)}_renderOpaqueSorted(e){n._RenderSorted(e,this._opaqueSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderAlphaTestSorted(e){n._RenderSorted(e,this._alphaTestSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderTransparentSorted(e){n._RenderSorted(e,this._transparentSortCompareFn,this._scene.activeCamera,!0,this.disableDepthPrePass)}static _RenderSorted(e,t,r,i,a){let o,h=0,c=r?r.globalPosition:n._ZeroVector;if(i)for(;h<e.length;h++)(o=e.data[h])._alphaIndex=o.getMesh().alphaIndex,o._distanceToCamera=s.Vector3.Distance(o.getBoundingInfo().boundingSphere.centerWorld,c);let l=e.length===e.data.length?e.data:e.data.slice(0,e.length);t&&l.sort(t);let u=l[0].getMesh().getScene();for(h=0;h<l.length;h++)if(o=l[h],!u._activeMeshesFrozenButKeepClipping||o.isInFrustum(u._frustumPlanes)){if(i){let e=o.getMaterial();if(e&&e.needDepthPrePass&&!a){let t=e.getScene().getEngine();t.setColorWrite(!1),t.setAlphaMode(0),o.render(!1),t.setColorWrite(!0)}}o.render(i)}}static defaultTransparentSortCompare(e,t){return e._alphaIndex>t._alphaIndex?1:e._alphaIndex<t._alphaIndex?-1:n.backToFrontSortCompare(e,t)}static backToFrontSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?1:e._distanceToCamera>t._distanceToCamera?-1:0}static frontToBackSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?-1:+(e._distanceToCamera>t._distanceToCamera)}static PainterSortCompare(e,t){let r=e.getMesh(),i=t.getMesh();return r.material&&i.material?r.material.uniqueId-i.material.uniqueId:r.uniqueId-i.uniqueId}prepare(){this._opaqueSubMeshes.reset(),this._transparentSubMeshes.reset(),this._alphaTestSubMeshes.reset(),this._depthOnlySubMeshes.reset(),this._particleSystems.reset(),this.prepareSprites(),this._edgesRenderers.reset(),this._empty=!0}prepareSprites(){this._spriteManagers.reset()}dispose(){this._opaqueSubMeshes.dispose(),this._transparentSubMeshes.dispose(),this._alphaTestSubMeshes.dispose(),this._depthOnlySubMeshes.dispose(),this._particleSystems.dispose(),this._spriteManagers.dispose(),this._edgesRenderers.dispose()}dispatch(e,t,r){void 0===t&&(t=e.getMesh()),void 0===r&&(r=e.getMaterial()),null!=r&&(r.needAlphaBlendingForMesh(t)?this._transparentSubMeshes.push(e):r.needAlphaTestingForMesh(t)?(r.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._alphaTestSubMeshes.push(e)):(r.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._opaqueSubMeshes.push(e)),t._renderingGroup=this,t._edgesRenderer&&t.isEnabled()&&t.isVisible&&t._edgesRenderer.isEnabled&&this._edgesRenderers.pushNoDuplicate(t._edgesRenderer),this._empty=!1)}dispatchSprites(e){this._spriteManagers.push(e),this._empty=!1}dispatchParticles(e){this._particleSystems.push(e),this._empty=!1}_renderParticles(e){if(0===this._particleSystems.length)return;let t=this._scene.activeCamera;this._scene.onBeforeParticlesRenderingObservable.notifyObservers(this._scene);for(let r=0;r<this._particleSystems.length;r++){let i=this._particleSystems.data[r];if(0===(t&&t.layerMask&i.layerMask))continue;let s=i.emitter;s.position&&e&&-1===e.indexOf(s)||this._scene._activeParticles.addCount(i.render(),!1)}this._scene.onAfterParticlesRenderingObservable.notifyObservers(this._scene)}_renderSprites(){if(!this._scene.spritesEnabled||0===this._spriteManagers.length)return;let e=this._scene.activeCamera;this._scene.onBeforeSpritesRenderingObservable.notifyObservers(this._scene);for(let t=0;t<this._spriteManagers.length;t++){let r=this._spriteManagers.data[t];0!==(e&&e.layerMask&r.layerMask)&&r.render()}this._scene.onAfterSpritesRenderingObservable.notifyObservers(this._scene)}}n._ZeroVector=s.Vector3.Zero();class a{}class o{get disableDepthPrePass(){return this._disableDepthPrePass}set disableDepthPrePass(e){for(let t of(this._disableDepthPrePass=e,this._renderingGroups))t.disableDepthPrePass=e}get maintainStateBetweenFrames(){return this._maintainStateBetweenFrames}set maintainStateBetweenFrames(e){e!==this._maintainStateBetweenFrames&&(this._maintainStateBetweenFrames=e,this._maintainStateBetweenFrames||this.restoreDispachedFlags())}restoreDispachedFlags(){for(let e of this._scene.meshes)if(e.subMeshes)for(let t of e.subMeshes)t._wasDispatched=!1;if(this._scene.spriteManagers)for(let e of this._scene.spriteManagers)e._wasDispatched=!1;for(let e of this._scene.particleSystems)e._wasDispatched=!1}constructor(e){this._useSceneAutoClearSetup=!1,this._disableDepthPrePass=!1,this._renderingGroups=[],this._autoClearDepthStencil={},this._customOpaqueSortCompareFn={},this._customAlphaTestSortCompareFn={},this._customTransparentSortCompareFn={},this._renderingGroupInfo=new a,this._maintainStateBetweenFrames=!1,this._scene=e;for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++)this._autoClearDepthStencil[e]={autoClear:!0,depth:!0,stencil:!0}}get renderingGroups(){return this._renderingGroups}getRenderingGroup(e){let t=e||0;return this._prepareRenderingGroup(t),this._renderingGroups[t]}_clearDepthStencilBuffer(e=!0,t=!0){this._depthStencilBufferAlreadyCleaned||(this._scene.getEngine().clear(null,!1,e,t),this._depthStencilBufferAlreadyCleaned=!0)}render(e,t,r,i,s=!0,n=!0,a=!0,h=!0,c){let l=this._renderingGroupInfo;if(l.scene=this._scene,l.camera=this._scene.activeCamera,l.renderingManager=this,this._scene.spriteManagers&&i)for(let e=0;e<this._scene.spriteManagers.length;e++){let t=this._scene.spriteManagers[e];this.dispatchSprites(t)}for(let u=o.MIN_RENDERINGGROUPS;u<o.MAX_RENDERINGGROUPS;u++){this._depthStencilBufferAlreadyCleaned=u===o.MIN_RENDERINGGROUPS;let p=this._renderingGroups[u];if(!p||p._empty)continue;let d=1<<u;if(l.renderingGroupId=u,this._scene.onBeforeRenderingGroupObservable.notifyObservers(l,d),o.AUTOCLEAR){let e=this._useSceneAutoClearSetup?this._scene.getAutoClearDepthStencilSetup(u):this._autoClearDepthStencil[u];e&&e.autoClear&&this._clearDepthStencilBuffer(e.depth,e.stencil)}for(let e of this._scene._beforeRenderingGroupDrawStage)e.action(u);for(let o of(p.render(e,i,r,t,s,n,a,h,c),this._scene._afterRenderingGroupDrawStage))o.action(u);this._scene.onAfterRenderingGroupObservable.notifyObservers(l,d)}}reset(){if(!this.maintainStateBetweenFrames)for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepare()}}resetSprites(){if(!this.maintainStateBetweenFrames)for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepareSprites()}}dispose(){this.freeRenderingGroups(),this._renderingGroups.length=0,this._renderingGroupInfo=null}freeRenderingGroups(){for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.dispose()}}_prepareRenderingGroup(e){void 0===this._renderingGroups[e]&&(this._renderingGroups[e]=new n(e,this._scene,this._customOpaqueSortCompareFn[e],this._customAlphaTestSortCompareFn[e],this._customTransparentSortCompareFn[e]),this._renderingGroups[e].disableDepthPrePass=this._disableDepthPrePass)}dispatchSprites(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchSprites(e))}dispatchParticles(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchParticles(e))}dispatch(e,t,r){void 0===t&&(t=e.getMesh()),this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(t.renderingGroupId).dispatch(e,t,r))}setRenderingOrder(e,t=null,r=null,i=null){if(this._customOpaqueSortCompareFn[e]=t,this._customAlphaTestSortCompareFn[e]=r,this._customTransparentSortCompareFn[e]=i,this._renderingGroups[e]){let t=this._renderingGroups[e];t.opaqueSortCompareFn=this._customOpaqueSortCompareFn[e],t.alphaTestSortCompareFn=this._customAlphaTestSortCompareFn[e],t.transparentSortCompareFn=this._customTransparentSortCompareFn[e]}}setRenderingAutoClearDepthStencil(e,t,r=!0,i=!0){this._autoClearDepthStencil[e]={autoClear:t,depth:r,stencil:i}}getAutoClearDepthStencilSetup(e){return this._autoClearDepthStencil[e]}}o.MAX_RENDERINGGROUPS=4,o.MIN_RENDERINGGROUPS=0,o.AUTOCLEAR=!0,e.s(["RenderingManager",0,o],29665)},3367,e=>{"use strict";var t=e.i(85240);class r{get min(){return this._min}get max(){return this._max}get average(){return this._average}get lastSecAverage(){return this._lastSecAverage}get current(){return this._current}get total(){return this._totalAccumulated}get count(){return this._totalValueCount}constructor(){this._startMonitoringTime=0,this._min=0,this._max=0,this._average=0,this._lastSecAverage=0,this._current=0,this._totalValueCount=0,this._totalAccumulated=0,this._lastSecAccumulated=0,this._lastSecTime=0,this._lastSecValueCount=0}fetchNewFrame(){this._totalValueCount++,this._current=0,this._lastSecValueCount++}addCount(e,t){r.Enabled&&(this._current+=e,t&&this._fetchResult())}beginMonitoring(){r.Enabled&&(this._startMonitoringTime=t.PrecisionDate.Now)}endMonitoring(e=!0){if(!r.Enabled)return;e&&this.fetchNewFrame();let i=t.PrecisionDate.Now;this._current=i-this._startMonitoringTime,e&&this._fetchResult()}endFrame(){this._fetchResult()}_fetchResult(){this._totalAccumulated+=this._current,this._lastSecAccumulated+=this._current,this._min=Math.min(this._min,this._current),this._max=Math.max(this._max,this._current),this._average=this._totalAccumulated/this._totalValueCount;let e=t.PrecisionDate.Now;e-this._lastSecTime>1e3&&(this._lastSecAverage=this._lastSecAccumulated/this._lastSecValueCount,this._lastSecTime=e,this._lastSecAccumulated=0,this._lastSecValueCount=0)}}r.Enabled=!0,e.s(["PerfCounter",0,r])},16475,e=>{"use strict";var t=e.i(38677);class r{static GetPlanes(e){let i=[];for(let e=0;e<6;e++)i.push(new t.Plane(0,0,0,0));return r.GetPlanesToRef(e,i),i}static GetNearPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[2],t.normal.y=r[7]+r[6],t.normal.z=r[11]+r[10],t.d=r[15]+r[14],t.normalize()}static GetFarPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[2],t.normal.y=r[7]-r[6],t.normal.z=r[11]-r[10],t.d=r[15]-r[14],t.normalize()}static GetLeftPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[0],t.normal.y=r[7]+r[4],t.normal.z=r[11]+r[8],t.d=r[15]+r[12],t.normalize()}static GetRightPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[0],t.normal.y=r[7]-r[4],t.normal.z=r[11]-r[8],t.d=r[15]-r[12],t.normalize()}static GetTopPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[1],t.normal.y=r[7]-r[5],t.normal.z=r[11]-r[9],t.d=r[15]-r[13],t.normalize()}static GetBottomPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[1],t.normal.y=r[7]+r[5],t.normal.z=r[11]+r[9],t.d=r[15]+r[13],t.normalize()}static GetPlanesToRef(e,t){r.GetNearPlaneToRef(e,t[0]),r.GetFarPlaneToRef(e,t[1]),r.GetLeftPlaneToRef(e,t[2]),r.GetRightPlaneToRef(e,t[3]),r.GetTopPlaneToRef(e,t[4]),r.GetBottomPlaneToRef(e,t[5])}static IsPointInFrustum(e,t){for(let r=0;r<6;r++)if(0>t[r].dotCoordinate(e))return!1;return!0}}e.s(["Frustum",0,r])},66476,e=>{"use strict";var t=e.i(10534),r=e.i(65703);e.s(["PickingInfo",0,class{constructor(){this.hit=!1,this.distance=0,this.pickedPoint=null,this.pickedMesh=null,this.bu=0,this.bv=0,this.faceId=-1,this.subMeshFaceId=-1,this.subMeshId=0,this.pickedSprite=null,this.thinInstanceIndex=-1,this.ray=null,this.originMesh=null,this.aimTransform=null,this.gripTransform=null}getNormal(e=!1,i=!0){let s;if(!this.pickedMesh||i&&!this.pickedMesh.isVerticesDataPresent(r.VertexBuffer.NormalKind))return null;let n=this.pickedMesh.getIndices();n?.length===0&&(n=null);let a=t.TmpVectors.Vector3[0],o=t.TmpVectors.Vector3[1],h=t.TmpVectors.Vector3[2];if(i){let e=this.pickedMesh.getVerticesData(r.VertexBuffer.NormalKind),i=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+1],o):o.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],h):h.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]);i=i.scale(this.bu),c=c.scale(this.bv),l=l.scale(1-this.bu-this.bv),s=new t.Vector3(i.x+c.x+l.x,i.y+c.y+l.y,i.z+c.z+l.z)}else{let e=this.pickedMesh.getVerticesData(r.VertexBuffer.PositionKind),i=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+1],o):o.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],h):h.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]),u=i.subtract(c),p=l.subtract(c);s=t.Vector3.Cross(u,p)}let c=(e,r)=>{if(-1!==this.thinInstanceIndex){let i=e._thinInstanceDataStorage.matrixData,s=this.thinInstanceIndex<<4;if(i&&i.length>s){let e=t.TmpVectors.Matrix[0];t.Matrix.FromArrayToRef(i,s,e),t.Vector3.TransformNormalToRef(r,e,r)}}let i=e.getWorldMatrix();e.nonUniformScaling&&(t.TmpVectors.Matrix[0].copyFrom(i),(i=t.TmpVectors.Matrix[0]).setTranslationFromFloats(0,0,0),i.invert(),i.transposeToRef(t.TmpVectors.Matrix[1]),i=t.TmpVectors.Matrix[1]),t.Vector3.TransformNormalToRef(r,i,r)};if(e&&c(this.pickedMesh,s),this.ray){let r=t.TmpVectors.Vector3[0].copyFrom(s);e||c(this.pickedMesh,r),t.Vector3.Dot(r,this.ray.direction)>0&&s.negateInPlace()}return s.normalize(),s}getTextureCoordinates(e=r.VertexBuffer.UVKind){if(!this.pickedMesh||!this.pickedMesh.isVerticesDataPresent(e))return null;let i=this.pickedMesh.getIndices();if(!i)return null;let s=this.pickedMesh.getVerticesData(e);if(!s)return null;let n=t.Vector2.FromArray(s,2*i[3*this.faceId]),a=t.Vector2.FromArray(s,2*i[3*this.faceId+1]),o=t.Vector2.FromArray(s,2*i[3*this.faceId+2]);return n=n.scale(this.bu),a=a.scale(this.bv),o=o.scale(1-this.bu-this.bv),new t.Vector2(n.x+a.x+o.x,n.y+a.y+o.y)}}])},11437,e=>{"use strict";var t=e.i(10534);class r{}r.POINTERDOWN=1,r.POINTERUP=2,r.POINTERMOVE=4,r.POINTERWHEEL=8,r.POINTERPICK=16,r.POINTERTAP=32,r.POINTERDOUBLETAP=64;class i{constructor(e,t){this.type=e,this.event=t}}e.s(["PointerEventTypes",0,r,"PointerInfo",0,class extends i{get pickInfo(){return this._pickInfo||this._generatePickInfo(),this._pickInfo}constructor(e,t,r,i=null){super(e,t),this._pickInfo=r,this._inputManager=i}_generatePickInfo(){this._inputManager&&(this._pickInfo=this._inputManager._pickMove(this.event),this._inputManager._setRayOnPointerInfo(this._pickInfo,this.event),this._inputManager=null)}},"PointerInfoPre",0,class extends i{constructor(e,r,i,s){super(e,r),this.ray=null,this.originalPickingInfo=null,this.skipOnPointerObservable=!1,this.localPosition=new t.Vector2(i,s)}}])},70463,e=>{"use strict";class t{}t.KEYDOWN=1,t.KEYUP=2;class r{constructor(e,t){this.type=e,this.event=t}}e.s(["KeyboardEventTypes",0,t,"KeyboardInfo",0,r,"KeyboardInfoPre",0,class extends r{get skipOnPointerObservable(){return this.skipOnKeyboardObservable}set skipOnPointerObservable(e){this.skipOnKeyboardObservable=e}constructor(e,t){super(e,t),this.type=e,this.event=t,this.skipOnKeyboardObservable=!1}}])},24423,e=>{"use strict";var t,r;(r=t||(t={}))[r.PointerMove=0]="PointerMove",r[r.PointerDown=1]="PointerDown",r[r.PointerUp=2]="PointerUp";class i{}i.DOM_DELTA_PIXEL=0,i.DOM_DELTA_LINE=1,i.DOM_DELTA_PAGE=2,e.s(["EventConstants",0,i])},10952,e=>{"use strict";class t{constructor(e,t,r,i){this.x=e,this.y=t,this.width=r,this.height=i}toGlobal(e,r){return new t(this.x*e,this.y*r,this.width*e,this.height*r)}toGlobalToRef(e,t,r){return r.x=this.x*e,r.y=this.y*t,r.width=this.width*e,r.height=this.height*t,this}clone(){return new t(this.x,this.y,this.width,this.height)}}e.s(["Viewport",0,t])},4812,e=>{"use strict";e.s(["IntersectionInfo",0,class{constructor(e,t,r){this.bu=e,this.bv=t,this.distance=r,this.faceId=0,this.subMeshId=0,this._internalSubMeshId=0}}])},85106,e=>{"use strict";var t=e.i(56770),r=e.i(18311),i=e.i(26722),s=e.i(10534),n=e.i(27745),a=e.i(4812),o=e.i(66476),h=e.i(47867),c=e.i(49369);let l={internalPickerForMesh:void 0};class u{constructor(e,t,r=Number.MAX_VALUE,s=i.Epsilon){this.origin=e,this.direction=t,this.length=r,this.epsilon=s}clone(){return new u(this.origin.clone(),this.direction.clone(),this.length)}intersectsBoxMinMax(e,t,r=0){let i,s,n,a,o=u._TmpVector3[0].copyFromFloats(e.x-r,e.y-r,e.z-r),h=u._TmpVector3[1].copyFromFloats(t.x+r,t.y+r,t.z+r),c=0,l=Number.MAX_VALUE;if(1e-7>Math.abs(this.direction.x)){if(this.origin.x<o.x||this.origin.x>h.x)return!1}else if(i=1/this.direction.x,s=(o.x-this.origin.x)*i,(n=(h.x-this.origin.x)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;if(1e-7>Math.abs(this.direction.y)){if(this.origin.y<o.y||this.origin.y>h.y)return!1}else if(i=1/this.direction.y,s=(o.y-this.origin.y)*i,(n=(h.y-this.origin.y)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;if(1e-7>Math.abs(this.direction.z)){if(this.origin.z<o.z||this.origin.z>h.z)return!1}else if(i=1/this.direction.z,s=(o.z-this.origin.z)*i,(n=(h.z-this.origin.z)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;return!0}intersectsBox(e,t=0){return this.intersectsBoxMinMax(e.minimum,e.maximum,t)}intersectsSphere(e,t=0){let r=e.center.x-this.origin.x,i=e.center.y-this.origin.y,s=e.center.z-this.origin.z,n=r*r+i*i+s*s,a=e.radius+t,o=a*a;if(n<=o)return!0;let h=r*this.direction.x+i*this.direction.y+s*this.direction.z;return!(h<0)&&n-h*h<=o}intersectsTriangle(e,t,r){let i=u._TmpVector3[0],n=u._TmpVector3[1],o=u._TmpVector3[2],h=u._TmpVector3[3],c=u._TmpVector3[4];t.subtractToRef(e,i),r.subtractToRef(e,n),s.Vector3.CrossToRef(this.direction,n,o);let l=s.Vector3.Dot(i,o);if(0===l)return null;let p=1/l;this.origin.subtractToRef(e,h);let d=s.Vector3.Dot(h,o)*p;if(d<-this.epsilon||d>1+this.epsilon)return null;s.Vector3.CrossToRef(h,i,c);let f=s.Vector3.Dot(this.direction,c)*p;if(f<-this.epsilon||d+f>1+this.epsilon)return null;let _=s.Vector3.Dot(n,c)*p;return _>this.length||_<0?null:new a.IntersectionInfo(1-d-f,d,_)}intersectsPlane(e){let t,r=s.Vector3.Dot(e.normal,this.direction);if(999999997475243e-21>Math.abs(r))return null;{let i=s.Vector3.Dot(e.normal,this.origin);if((t=(-e.d-i)/r)<0)if(t<-999999997475243e-21)return null;else return 0;return t}}intersectsAxis(e,t=0){switch(e){case"y":{let e=(this.origin.y-t)/this.direction.y;if(e>0)return null;return new s.Vector3(this.origin.x+-(this.direction.x*e),t,this.origin.z+-(this.direction.z*e))}case"x":{let e=(this.origin.x-t)/this.direction.x;if(e>0)return null;return new s.Vector3(t,this.origin.y+-(this.direction.y*e),this.origin.z+-(this.direction.z*e))}case"z":{let e=(this.origin.z-t)/this.direction.z;if(e>0)return null;return new s.Vector3(this.origin.x+-(this.direction.x*e),this.origin.y+-(this.direction.y*e),t)}default:return null}}intersectsMesh(e,t,r,i=!1,n,a=!1){let o=s.TmpVectors.Matrix[0];return e.getWorldMatrix().invertToRef(o),this._tmpRay?u.TransformToRef(this,o,this._tmpRay):this._tmpRay=u.Transform(this,o),e.intersects(this._tmpRay,t,r,i,n,a)}intersectsMeshes(e,t,r){r?r.length=0:r=[];for(let i=0;i<e.length;i++){let s=this.intersectsMesh(e[i],t);s.hit&&r.push(s)}return r.sort(this._comparePickingInfo),r}_comparePickingInfo(e,t){return e.distance<t.distance?-1:+(e.distance>t.distance)}intersectionSegment(e,t,r){let i=this.origin,n=s.TmpVectors.Vector3[0],a=s.TmpVectors.Vector3[1],o=s.TmpVectors.Vector3[2],h=s.TmpVectors.Vector3[3];t.subtractToRef(e,n),this.direction.scaleToRef(u._Rayl,o),i.addToRef(o,a),e.subtractToRef(i,h);let c=s.Vector3.Dot(n,n),l=s.Vector3.Dot(n,o),p=s.Vector3.Dot(o,o),d=s.Vector3.Dot(n,h),f=s.Vector3.Dot(o,h),_=c*p-l*l,m,g=_,R,y=_;_<u._Smallnum?(m=0,g=1,R=f,y=p):(m=l*f-p*d,R=c*f-l*d,m<0?(m=0,R=f,y=p):m>g&&(m=g,R=f+l,y=p)),R<0?(R=0,0>-d?m=0:-d>c?m=g:(m=-d,g=c)):R>y&&(R=y,-d+l<0?m=0:-d+l>c?m=g:(m=-d+l,g=c));let S=Math.abs(m)<u._Smallnum?0:m/g,T=Math.abs(R)<u._Smallnum?0:R/y,P=s.TmpVectors.Vector3[4];o.scaleToRef(T,P);let M=s.TmpVectors.Vector3[5];n.scaleToRef(S,M),M.addInPlace(h);let b=s.TmpVectors.Vector3[6];return(M.subtractToRef(P,b),T>0&&T<=this.length&&b.lengthSquared()<r*r)?M.length():-1}update(e,t,r,i,n,a,o,h=!1){if(h){u._RayDistant||(u._RayDistant=u.Zero()),u._RayDistant.unprojectRayToRef(e,t,r,i,s.Matrix.IdentityReadOnly,a,o);let h=s.TmpVectors.Matrix[0];n.invertToRef(h),u.TransformToRef(u._RayDistant,h,this)}else this.unprojectRayToRef(e,t,r,i,n,a,o);return this}static Zero(){return new u(s.Vector3.Zero(),s.Vector3.Zero())}static CreateNew(e,t,r,i,s,n,a){return u.Zero().update(e,t,r,i,s,n,a)}static CreateNewFromTo(e,t,r=s.Matrix.IdentityReadOnly){let i=new u(new s.Vector3(0,0,0),new s.Vector3(0,0,0));return u.CreateFromToToRef(e,t,i,r)}static CreateFromToToRef(e,t,r,i=s.Matrix.IdentityReadOnly){r.origin.copyFrom(e);let n=t.subtractToRef(e,r.direction);return r.length=Math.sqrt(n.x*n.x+n.y*n.y+n.z*n.z),r.direction.normalize(),u.TransformToRef(r,i,r)}static Transform(e,t){let r=new u(new s.Vector3(0,0,0),new s.Vector3(0,0,0));return u.TransformToRef(e,t,r),r}static TransformToRef(e,t,r){s.Vector3.TransformCoordinatesToRef(e.origin,t,r.origin),s.Vector3.TransformNormalToRef(e.direction,t,r.direction),r.length=e.length,r.epsilon=e.epsilon;let i=r.direction,n=i.length();if(0!==n&&1!==n){let e=1/n;i.x*=e,i.y*=e,i.z*=e,r.length*=n}return r}unprojectRayToRef(e,t,r,i,n,a,o){let c=s.TmpVectors.Matrix[0];n.multiplyToRef(a,c),c.multiplyToRef(o,c),c.invert();let l=h.EngineStore.LastCreatedEngine,u=s.TmpVectors.Vector3[0];u.x=e/r*2-1,u.y=-(t/i*2-1),u.z=l?.useReverseDepthBuffer?1:l?.isNDCHalfZRange?0:-1;let p=s.TmpVectors.Vector3[1].copyFromFloats(u.x,u.y,1-1e-8),d=s.TmpVectors.Vector3[2],f=s.TmpVectors.Vector3[3];s.Vector3.TransformCoordinatesToRef(u,c,d),s.Vector3.TransformCoordinatesToRef(p,c,f),this.origin.copyFrom(d),f.subtractToRef(d,this.direction),this.direction.normalize()}}function p(e,t,r,i,s,n=!1){let a=u.Zero();return d(e,t,r,i,a,s,n),a}function d(e,t,r,i,n,a,o=!1,h=!1){let c=e.getEngine();if(!a&&!(a=e.activeCamera)&&!(a=e.cameraToUseForPointers))return e;let l=a.viewport,u=c.getRenderHeight(),{x:p,y:f,width:_,height:m}=l.toGlobal(c.getRenderWidth(),u),g=1/c.getHardwareScalingLevel();return t=t*g-p,r=r*g-(u-f-m),n.update(t,r,_,m,i||s.Matrix.IdentityReadOnly,o?s.Matrix.IdentityReadOnly:a.getViewMatrix(),a.getProjectionMatrix(),h),e}function f(e,t,r,i){let s=u.Zero();return _(e,t,r,s,i),s}function _(e,t,r,i,n){if(!o.PickingInfo)return e;let a=e.getEngine();if(!n&&!(n=e.activeCamera)&&!(n=e.cameraToUseForPointers))throw Error("Active camera not set");let h=n.viewport,c=a.getRenderHeight(),{x:l,y:u,width:p,height:d}=h.toGlobal(a.getRenderWidth(),c),f=s.Matrix.Identity(),_=1/a.getHardwareScalingLevel();return t=t*_-l,r=r*_-(c-u-d),i.update(t,r,p,d,f,f,n.getProjectionMatrix()),e}function m(e,t,r,i,s,n,a,o){let h=t(i,r.enableDistantPicking);return g(e,r,i,h,s,n,a,o)}function g(e,t,r,i,s,n,a,o){let h=t.intersects(i,s,a,n,r,o);return h&&h.hit&&(s||null==e||!(h.distance>=e.distance))?h:null}function R(e){let t=e.getClassName();if("GreasedLineMesh"===t)return{rawBoundingInfo:null,intersectionThreshold:0};let r=e.rawBoundingInfo;return{rawBoundingInfo:r,intersectionThreshold:r?"InstancedLinesMesh"===t||"LinesMesh"===t?e.intersectionThreshold:0:0}}function y(e,t,r,i,s){let n=e(r,t.enableDistantPicking);return n.intersectsSphere(i.boundingSphere,s)&&n.intersectsBox(i.boundingBox,s)?n:null}function S(e,t,r,i,n,a){let h=null,c=!!(e.activeCameras&&e.activeCameras.length>1&&e.cameraToUseForPointers!==e.activeCamera),u=e.cameraToUseForPointers||e.activeCamera,p=l.internalPickerForMesh||m,d=p===m;for(let o=0;o<e.meshes.length;o++){let l=e.meshes[o];if(r){if(!r(l,-1))continue}else if(!l.isEnabled()||!l.isVisible||!l.isPickable)continue;let f=c&&l.isWorldMatrixCameraDependent(),_=l.computeWorldMatrix(f,u);if(l.hasThinInstances&&l.thinInstanceEnablePicking){let e=p(h,t,l,_,!0,!0,a);if(e){if(n)return e;let{rawBoundingInfo:o,intersectionThreshold:c}=R(l),u=l._thinInstanceDataStorage.matrixData;if(u){let e=s.TmpVectors.Matrix[0],f=s.TmpVectors.Matrix[1],m=Math.min(l.thinInstanceCount,u.length>>4);for(let R=0;R<m;R++){if(r&&!r(l,R))continue;s.Matrix.FromArrayToRef(u,R<<4,e),e.multiplyToRef(_,f);let m=d&&o?y(t,l,f,o,c):null;if(d&&o&&!m)continue;let S=d&&m?g(h,l,f,m,i,n,a,!0):p(h,t,l,f,i,n,a,!0);if(S&&((h=S).thinInstanceIndex=R,i))return h}}}}else{let e=p(h,t,l,_,i,n,a);if(e&&(h=e,i))return h}}return h||new o.PickingInfo}function T(e,t,r,i){if(!o.PickingInfo)return null;let n=[],a=!!(e.activeCameras&&e.activeCameras.length>1&&e.cameraToUseForPointers!==e.activeCamera),h=e.cameraToUseForPointers||e.activeCamera,c=l.internalPickerForMesh||m,u=c===m;for(let o=0;o<e.meshes.length;o++){let l=e.meshes[o];if(r){if(!r(l,-1))continue}else if(!l.isEnabled()||!l.isVisible||!l.isPickable)continue;let p=a&&l.isWorldMatrixCameraDependent(),d=l.computeWorldMatrix(p,h);if(l.hasThinInstances&&l.thinInstanceEnablePicking){if(c(null,t,l,d,!0,!0,i)){let{rawBoundingInfo:e,intersectionThreshold:a}=R(l),o=l._thinInstanceDataStorage.matrixData;if(o){let h=s.TmpVectors.Matrix[0],p=s.TmpVectors.Matrix[1],f=Math.min(l.thinInstanceCount,o.length>>4);for(let _=0;_<f;_++){if(r&&!r(l,_))continue;s.Matrix.FromArrayToRef(o,_<<4,h),h.multiplyToRef(d,p);let f=u&&e?y(t,l,p,e,a):null;if(u&&e&&!f)continue;let m=u&&f?g(null,l,p,f,!1,!1,i,!0):c(null,t,l,p,!1,!1,i,!0);m&&(m.thinInstanceIndex=_,n.push(m))}}}}else{let e=c(null,t,l,d,!1,!1,i);e&&n.push(e)}}return n}function P(e,t,r,i,n,a){if(!o.PickingInfo)return null;let h=S(e,i=>(e._tempPickingRay||(e._tempPickingRay=u.Zero()),d(e,t,r,i,e._tempPickingRay,a||null),e._tempPickingRay),i,n,!0);return h&&(h.ray=p(e,t,r,s.Matrix.Identity(),a||null)),h}function M(e,t,r,i,n,a,o,h=!1){let c=S(e,(i,s)=>(e._tempPickingRay||(e._tempPickingRay=u.Zero()),d(e,t,r,i,e._tempPickingRay,a||null,!1,s),e._tempPickingRay),i,n,!1,o);return c&&(c.ray=p(e,t,r,s.Matrix.Identity(),a||null)),c}function b(e,t,r,i,n){let a=S(e,r=>(e._pickWithRayInverseMatrix||(e._pickWithRayInverseMatrix=s.Matrix.Identity()),r.invertToRef(e._pickWithRayInverseMatrix),e._cachedRayForTransform||(e._cachedRayForTransform=u.Zero()),u.TransformToRef(t,e._pickWithRayInverseMatrix,e._cachedRayForTransform),e._cachedRayForTransform),r,i,!1,n);return a&&(a.ray=t),a}function I(e,t,r,i,s,n){return T(e,i=>p(e,t,r,i,s||null),i,n)}function x(e,t,r,i){return T(e,r=>(e._pickWithRayInverseMatrix||(e._pickWithRayInverseMatrix=s.Matrix.Identity()),r.invertToRef(e._pickWithRayInverseMatrix),e._cachedRayForTransform||(e._cachedRayForTransform=u.Zero()),u.TransformToRef(t,e._pickWithRayInverseMatrix,e._cachedRayForTransform),e._cachedRayForTransform),r,i)}function C(e,t=100,r,i){return V(e,new u(s.Vector3.Zero(),s.Vector3.Zero(),t),t,r,i)}function V(e,t,r=100,i,n){i||(i=e.getWorldMatrix()),t.length=r,n?t.origin.copyFrom(n):t.origin.copyFrom(e.position);let a=s.TmpVectors.Vector3[2];a.set(0,0,e._scene.useRightHandedSystem?-1:1);let o=s.TmpVectors.Vector3[3];return s.Vector3.TransformNormalToRef(a,i,o),s.Vector3.NormalizeToRef(o,t.direction),t}function v(e,t){t&&(t.prototype.getForwardRay=function(e=100,t,r){return V(this,new u(s.Vector3.Zero(),s.Vector3.Zero(),e),e,t,r)},t.prototype.getForwardRayToRef=function(e,t=100,r,i){return V(this,e,t,r,i)}),e&&(c._ImportHelper._IsPickingAvailable=!0,e.prototype.createPickingRay=function(e,t,r,i,s=!1){return p(this,e,t,r,i,s)})}u._TmpVector3=(0,n.BuildArray)(6,s.Vector3.Zero),u._RayDistant=u.Zero(),u._Smallnum=1e-8,u._Rayl=1e9,e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,P,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u],8820);let F=!1;function k(){F||(F=!0,v(t.Scene,r.Camera),t.Scene.prototype.createPickingRayToRef=function(e,t,r,i,s,n=!1,a=!1){return d(this,e,t,r,i,s,n,a)},t.Scene.prototype.createPickingRayInCameraSpace=function(e,t,r){return f(this,e,t,r)},t.Scene.prototype.createPickingRayInCameraSpaceToRef=function(e,t,r,i){return _(this,e,t,r,i)},t.Scene.prototype.pickWithBoundingInfo=function(e,t,r,i,s){return P(this,e,t,r,i,s)},t.Scene.prototype.pick=function(e,t,r,i,s,n,a=!1){return M(this,e,t,r,i,s,n,a)},t.Scene.prototype.pickWithRay=function(e,t,r,i){return b(this,e,t,r,i)},t.Scene.prototype.multiPick=function(e,t,r,i,s){return I(this,e,t,r,i,s)},t.Scene.prototype.multiPickWithRay=function(e,t,r){return x(this,e,t,r)})}e.s(["RegisterRay",0,k],65893),k(),e.s([],57679),e.i(57679),e.i(65893),e.i(8820),e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,P,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u,"RegisterRay",0,k],70044),e.i(70044),e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,P,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u,"RegisterRay",0,k],85106)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,56054,e=>{"use strict";e.s(["HEAT_GRADIENT",0,"linear-gradient(to right, rgb(178,47,38), rgb(224,123,57), rgb(244,200,75))","heatRgb",0,function(e){let t=Math.max(0,Math.min(1,e)),s=[.878,.482,.224],r=(e,t,s)=>[e[0]+(t[0]-e[0])*s,e[1]+(t[1]-e[1])*s,e[2]+(t[2]-e[2])*s];return t<.5?r([.698,.184,.149],s,t/.5):r(s,[.957,.784,.294],(t-.5)/.5)},"percentileMax",0,function(e,t=.95){if(0===e.length)return 1;let s=[...e].sort((e,t)=>e-t),r=Math.max(0,Math.min(1,t))*(s.length-1),n=Math.floor(r),i=Math.ceil(r);return Math.max(1,n===i?s[n]:s[n]+(s[i]-s[n])*(r-n))}])},18637,e=>{"use strict";var t=e.i(28100),s=e.i(56054);e.s(["HeatLegend",0,function({title:e,lowLabel:r="low",highLabel:n="high",note:i}){return(0,t.jsxs)("div",{className:"pointer-events-none absolute bottom-3 left-3 rounded-md border border-edge bg-ink/80 px-3 py-2 text-fg backdrop-blur-sm",children:[(0,t.jsx)("div",{className:"mb-1 text-xs font-medium text-fg",children:e}),(0,t.jsx)("div",{className:"h-2 w-36 rounded-sm",style:{background:s.HEAT_GRADIENT}}),(0,t.jsxs)("div",{className:"mt-1 flex w-36 justify-between text-[10px] text-fg-muted",children:[(0,t.jsx)("span",{children:r}),(0,t.jsx)("span",{children:n})]}),i?(0,t.jsx)("div",{className:"mt-1 max-w-44 text-[10px] leading-tight text-fg-muted",children:i}):null]})}])},20880,e=>{"use strict";class t extends Error{status;constructor(e,t){super(e),this.status=t,this.name="ApiError"}}function s(e){return e.endsWith("/")?e:`${e}/`}e.s(["ApiError",0,t,"CollectorApi",0,class{baseUrl;apiKey;constructor(e,t){this.baseUrl=e,this.apiKey=t}async get(e,r={}){let n=new URL(e,s(this.baseUrl));for(let[e,t]of Object.entries(r))null!=t&&n.searchParams.set(e,String(t));let i=await fetch(n,{headers:{"x-api-key":this.apiKey},cache:"no-store"});if(!i.ok)throw new t(await i.text().catch(()=>"")||i.statusText,i.status);return await i.json()}sessions(e){return this.get("api/v1/sessions",e).then(e=>e.map(e=>({...e,events:Number(e.events)})))}pointerHeatmap(e){return this.get("api/v1/heatmaps/pointer",e)}meshUvHeatmap(e){return this.get("api/v1/heatmaps/mesh-uv",e)}cameraHeatmap(e){return this.get("api/v1/heatmaps/camera",e)}viewCoverageHistogram(e){return this.get("api/v1/coverage/view-histogram",e).then(e=>e.map(e=>({bucket:Number(e.bucket??0),sessions:Number(e.sessions??0)})))}topMeshes(e){return this.get("api/v1/meshes/top",e).then(e=>e.map(e=>({...e,count:Number(e.count)})))}meshBlindSpots(e){return this.get("api/v1/meshes/blind-spots",e).then(e=>e.map(e=>({mesh:String(e.mesh??""),visible_ms:Number(e.visible_ms??0),vis_samples:Number(e.vis_samples??0),interactions:Number(e.interactions??0),hover_ms:Number(e.hover_ms??0),hover_episodes:Number(e.hover_episodes??0)})))}meshKinds(e){return this.get("api/v1/meshes/kinds",e).then(e=>e.map(e=>({mesh:String(e.mesh??""),kind:String(e.kind??""),count:Number(e.count??0)})))}reachability(e){return this.get("api/v1/meshes/reachability",e).then(e=>e.map(e=>({mesh:String(e.mesh??""),bucket:Number(e.bucket??0),count:Number(e.count??0),avg_distance:Number(e.avg_distance??0)})))}topMeshesBySource(e){return this.get("api/v1/meshes/sources",e).then(e=>e.map(e=>({mesh:String(e.mesh??""),source:String(e.source??""),count:Number(e.count??0)})))}topMeshesTrend(e){return this.get("api/v1/meshes/trend",e).then(e=>e.map(e=>({mesh:String(e.mesh??""),bucket:Number(e.bucket??0),count:Number(e.count??0)})))}topInputActions(e){return this.get("api/v1/input-actions/top",e).then(e=>e.map(e=>({action:String(e.action??""),source:String(e.source??""),count:Number(e.count??0)})))}perf(e){return this.get("api/v1/perf",e).then(e=>({samples:Number(e.samples??0),avg_fps:Number(e.avg_fps??0),min_fps:Number(e.min_fps??0),p50_fps:Number(e.p50_fps??0)}))}renderScale(e){return this.get("api/v1/perf/render-scale",e).then(e=>{let t=e[0]??{},s=Number(t.downscaled_samples??0),r=Number(t.scale_samples??0);return{samples:Number(t.samples??0),avg_fps:Number(t.avg_fps??0),p50_fps:Number(t.p50_fps??0),avg_render_scale:Number(t.avg_render_scale??0),p50_render_scale:Number(t.p50_render_scale??0),downscaled_samples:s,scale_samples:r,downscaled_share:r>0?s/r:0}})}perfDistribution(e){return this.get("api/v1/perf/distribution",e).then(e=>{let t=e[0]??{};return{sessions:Number(t.sessions??0),samples:Number(t.samples??0),p05_fps:Number(t.p05_fps??0),p50_fps:Number(t.p50_fps??0),p95_fps:Number(t.p95_fps??0)}})}fpsHistogram(e){return this.get("api/v1/perf/fps-histogram",e).then(e=>e.map(e=>({bucket:Number(e.bucket??0),sessions:Number(e.sessions??0)})))}frameTimePercentiles(e){return this.get("api/v1/perf/frame-time",e).then(e=>{let t=e[0]??{};return{sessions:Number(t.sessions??0),samples:Number(t.samples??0),p50_ms:Number(t.p50_ms??0),p95_ms:Number(t.p95_ms??0)}})}jankRate(e){return this.get("api/v1/perf/jank",e).then(e=>{let t=e[0]??{};return{sessions:Number(t.sessions??0),total_long_frames:Number(t.total_long_frames??0),median_rate:Number(t.median_rate??0),worst_decile_rate:Number(t.worst_decile_rate??0)}})}perfChurn(e){return this.get("api/v1/perf/churn",e).then(e=>{let t=e[0]??{};return{sessions:Number(t.sessions??0),churn_sessions:Number(t.churn_sessions??0),fps_churn_sessions:Number(t.fps_churn_sessions??0),stall_churn_sessions:Number(t.stall_churn_sessions??0)}})}perfByDevice(e){return this.get("api/v1/perf/by-device",e).then(e=>e.map(e=>({engine:String(e.engine??""),is_mobile:String(e.is_mobile??""),renderer:String(e.renderer??""),browser:String(e.browser??""),os:String(e.os??""),sessions:Number(e.sessions??0),samples:Number(e.samples??0),p50_fps:Number(e.p50_fps??0)})))}perfByScene(e){return this.get("api/v1/perf/by-scene",e).then(e=>e.map(e=>({scene_id:String(e.scene_id??""),sessions:Number(e.sessions??0),samples:Number(e.samples??0),p50_fps:Number(e.p50_fps??0)})))}resourcePercentiles(e){return this.get("api/v1/perf/resource-percentiles",e).then(e=>{let t=e[0]??{};return{sessions:Number(t.sessions??0),samples:Number(t.samples??0),p50_js_heap_bytes:Number(t.p50_js_heap_bytes??0),p95_js_heap_bytes:Number(t.p95_js_heap_bytes??0),p50_texture_bytes:Number(t.p50_texture_bytes??0),p95_texture_bytes:Number(t.p95_texture_bytes??0),p50_triangles:Number(t.p50_triangles??0),p95_triangles:Number(t.p95_triangles??0)}})}stabilityCounts(e){return this.get("api/v1/perf/stability",e).then(e=>{let t=e[0]??{};return{context_losses:Number(t.context_losses??0),compile_stalls:Number(t.compile_stalls??0),incidents:Number(t.incidents??0)}})}graphicsDiagnosticCounts(e){return this.get("api/v1/graphics-diagnostics",e).then(e=>e.map(e=>({severity:String(e.severity??""),category:String(e.category??""),backend:String(e.backend??""),incidents:Number(e.incidents??0)})))}renderingTechnology(e){return this.get("api/v1/rendering-technology",e).then(e=>e.map(e=>({api:String(e.api??""),backend:String(e.backend??""),apiVersion:String(e.api_version??""),shadingLanguage:String(e.shading_language??""),sessions:Number(e.sessions??0)})))}worldHeatmap(e){return this.get("api/v1/heatmaps/world",e).then(e=>e.map(e=>({vx:Number(e.vx),vy:Number(e.vy),vz:Number(e.vz),count:Number(e.count)})))}gazeHeatmap(e){return this.get("api/v1/heatmaps/gaze",e).then(e=>e.map(e=>({vx:Number(e.vx),vy:Number(e.vy),vz:Number(e.vz),count:Number(e.count)})))}errorHeatmap(e){return this.get("api/v1/heatmaps/errors",e).then(e=>e.map(e=>({vx:Number(e.vx),vy:Number(e.vy),vz:Number(e.vz),count:Number(e.count)})))}worldHeatmapStats(e){return this.get("api/v1/heatmaps/world/stats",e).then(e=>({cellSize:Number(e.cellSize??0),cells:Number(e.cells??0),hits:Number(e.hits??0)}))}gazeHeatmapStats(e){return this.get("api/v1/heatmaps/gaze/stats",e).then(e=>({cellSize:Number(e.cellSize??0),cells:Number(e.cells??0),hits:Number(e.hits??0)}))}cameraPositionHeatmap(e){return this.get("api/v1/heatmaps/position",e).then(e=>e.map(e=>({gx:Number(e.gx),gz:Number(e.gz),avg_y:Number(e.avg_y??0),count:Number(e.count??0)})))}sessionTrajectory(e,t){return this.get(`api/v1/sessions/${encodeURIComponent(e)}/trajectory`,t).then(e=>e.map(e=>({ts:Number(e.ts),x:Number(e.x),y:Number(e.y),z:Number(e.z)})))}aggregatePaths(e){return this.get("api/v1/paths",e).then(e=>e.map(e=>({session_id:String(e.session_id??""),ts:Number(e.ts),gx:Number(e.gx),gz:Number(e.gz)})))}clickRays(e){return this.get("api/v1/heatmaps/click-rays",e).then(e=>e.map(e=>({camVoxel:[Number(e.cam_vx),Number(e.cam_vy),Number(e.cam_vz)],origin:[Number(e.origin_x),Number(e.origin_y),Number(e.origin_z)],hitVoxel:[Number(e.hit_vx),Number(e.hit_vy),Number(e.hit_vz)],hit:[Number(e.hit_x),Number(e.hit_y),Number(e.hit_z)],mesh:String(e.mesh??""),count:Number(e.count)})))}flowHeatmap(e){return this.get("api/v1/heatmaps/flow",e).then(e=>e.map(e=>{let t={azimuth_bin:Number(e.azimuth_bin),elevation_bin:Number(e.elevation_bin),mesh:String(e.mesh??""),count:Number(e.count)};return null!=e.origin_vx&&(t.originVoxel=[Number(e.origin_vx),Number(e.origin_vy),Number(e.origin_vz)],t.origin=[Number(e.origin_x),Number(e.origin_y),Number(e.origin_z)]),t}))}scenes(e){return this.get("api/v1/scenes",e).then(e=>e.map(e=>({...e,events:Number(e.events)})))}timeseries(e){return this.get("api/v1/timeseries",e).then(e=>e.map(e=>({bucket:Number(e.bucket),events:Number(e.events??0),avg_fps:Number(e.avg_fps??0)})))}eventCounts(e){return this.get("api/v1/event-counts",e).then(e=>e.map(e=>({event_type:String(e.event_type),count:Number(e.count??0)})))}funnel(e,t){return this.get("api/v1/funnel",{...t,steps:JSON.stringify(e)}).then(e=>e.map(e=>({step:Number(e.step),sessions:Number(e.sessions??0)})))}sceneRetention(e){return this.get("api/v1/scene-retention",e).then(e=>e.map(e=>({from:String(e.from_scene??""),to:String(e.to_scene??""),sessions:Number(e.sessions??0)})))}loadBounce(e){let{bands:t,...s}=e??{};return this.get("api/v1/load-bounce",{...s,...null!=t&&t.length>0?{bands:t.join(",")}:{}}).then(e=>e.map(e=>({band:Number(e.band??0),sessions:Number(e.sessions??0),bounced:Number(e.bounced??0)})))}variantLeaderboard(e={},t){return this.get("api/v1/variant-leaderboard",{...t,variant:e.variant?JSON.stringify(e.variant):void 0,conversion:e.conversion?JSON.stringify(e.conversion):void 0}).then(e=>e.map(e=>{let t=Number(e.sessions??0),s=Number(e.conversions??0);return{variant:String(e.variant),views:Number(e.views??0),sessions:t,conversions:s,avgDwellMs:Number(e.avg_dwell_ms??0),conversionRate:t>0?s/t:0}}))}coverage(e){return this.get("api/v1/coverage",e).then(e=>e.map(e=>({vx:Number(e.vx),vy:Number(e.vy),vz:Number(e.vz),count:Number(e.count??0)})))}perfHeatmap(e){return this.get("api/v1/heatmaps/perf",e).then(e=>e.map(e=>({vx:Number(e.vx),vy:Number(e.vy),vz:Number(e.vz),samples:Number(e.samples??0),avgFps:Number(e.avg_fps??0),minFps:Number(e.min_fps??0)})))}cameraDistance(e){return this.get("api/v1/camera/distance",e).then(e=>e.map(e=>({bucket:Number(e.bucket),count:Number(e.count??0)})))}navigation(e){return this.get("api/v1/navigation",e).then(e=>e.map(e=>({session_id:String(e.session_id??""),segments:Number(e.segments??0),total_distance:Number(e.total_distance??0),active_segments:Number(e.active_segments??0),active_distance:Number(e.active_distance??0)})))}backtrackRatio(e){return this.get("api/v1/backtrack",e).then(e=>e.map(e=>({scene:String(e.scene??""),sessions:Number(e.sessions??0),entries:Number(e.entries??0),revisits:Number(e.revisits??0),backtrack_ratio:Number(e.backtrack_ratio??0)})))}cameraGestures(e){return this.get("api/v1/camera-gestures",e).then(e=>e.map(e=>({kind:String(e.kind??""),gestures:Number(e.gestures??0),total_ms:Number(e.total_ms??0),avg_ms:Number(e.avg_ms??0),max_ms:Number(e.max_ms??0)})))}interactionsBySource(e){return this.get("api/v1/interactions/sources",e).then(e=>e.map(e=>({event_type:String(e.event_type??""),source:String(e.source??""),count:Number(e.count??0),sessions:Number(e.sessions??0)})))}xrLocomotion(e){return this.get("api/v1/xr/locomotion",e).then(e=>e.map(e=>({session_id:String(e.session_id??""),fly_gestures:Number(e.fly_gestures??0),navigate_gestures:Number(e.navigate_gestures??0),teleports:Number(e.teleports??0),locomotion_ms:Number(e.locomotion_ms??0),started_at:String(e.started_at??""),ended_at:String(e.ended_at??"")})))}sessionMeta(e){return this.get(`api/v1/sessions/${encodeURIComponent(e)}/meta`)}async sceneRepresentation(e){try{return await this.get(`api/v1/scenes/${encodeURIComponent(e)}/representation`)}catch(e){if(e instanceof t&&404===e.status)return null;throw e}}async liveToken(){let e=new URL("api/v1/live/token",s(this.baseUrl)),r=await fetch(e,{method:"POST",headers:{"x-api-key":this.apiKey},cache:"no-store"});if(!r.ok)throw new t(await r.text().catch(()=>"")||r.statusText,r.status);return await r.json()}livePresenceUrl(e){let t=new URL("api/v1/live/presence",s(this.baseUrl));return t.searchParams.set("token",e),t.toString()}liveStreamUrl(e,t){let r=new URL("api/v1/live/stream",s(this.baseUrl));return r.searchParams.set("token",e),t&&t.length>0&&r.searchParams.set("types",t.join(",")),r.toString()}liveSessionUrl(e,t){let r=new URL(`api/v1/live/sessions/${encodeURIComponent(t)}`,s(this.baseUrl));return r.searchParams.set("token",e),r.toString()}}])},37215,e=>{"use strict";var t=e.i(28100);let s=(0,t.jsxs)(t.Fragment,{children:["Each ",(0,t.jsx)("strong",{children:"source"})," is a camera ",(0,t.jsx)("em",{children:"gaze-direction bin"})," — a cell on the sphere of where viewers were looking (grouped by azimuth/elevation). Each ",(0,t.jsx)("strong",{children:"target"})," is a"," ",(0,t.jsx)("em",{children:"mesh that was clicked"}),". A ribbon's thickness is how many clicks on that mesh happened while viewers looked from that direction, so you can see which viewpoints drive interaction with which objects. When the scene reports ",(0,t.jsx)("em",{children:"standpoints"}),' (where the viewer stood, §7.8), pick one to gate the flow to clicks made from that vantage — a pin marks it in the scene. "All standpoints" is the aggregate view. Switch to ',(0,t.jsx)("strong",{children:"Two-stage"})," ","for a three-column ",(0,t.jsx)("em",{children:"standpoint → gaze sector → mesh"}),' flow with a birdview minimap; the busiest standpoints/meshes are kept and the tail folds into an "Other" node.']});e.s(["CAMERA_DOME_SUBTITLE",0,"Where the audience looked, mapped onto a sphere — drag to orbit, +/- to zoom, double-click to focus","CAMERA_DOME_TITLE",0,"View-direction dome (3D)","CLICK_RAYS_SUBTITLE",0,"Each click joined to the view it was made from — gate by viewpoint or focus a mesh; double-click to recenter","CLICK_RAYS_TITLE",0,"Click rays (3D)","ERROR_HEATMAP_SUBTITLE",0,"Where errors & engine diagnostics fired, voxel-binned by the camera position at the moment they hit — drag to orbit, double-click to focus","ERROR_HEATMAP_TITLE",0,"Error heatmap (3D)","FLOW_SANKEY_HELP",0,s,"FLOW_SANKEY_SUBTITLE",0,"Direction-bin → mesh links (aggregate), or standpoint → gaze → mesh (two-stage) — double-click to focus","FLOW_SANKEY_TITLE",0,"Flow Sankey (3D)","GAZE_CLICK_SUBTITLE",0,"Where viewers look (gaze) vs. where they act (clicks), voxel-binned in world space — double-click to focus","GAZE_CLICK_TITLE",0,"Gaze vs. click divergence","PERF_HEATMAP_SUBTITLE",0,"Where FPS is bad in your scene — frame_perf samples voxel-binned by camera position; hot = slow. Drag to orbit, +/- to zoom, double-click to focus","PERF_HEATMAP_TITLE",0,"Performance heatmap (3D)","WORLD_HEATMAP_SUBTITLE",0,"Pointer hit-points voxel-binned in world space — drag to orbit, +/- to zoom, double-click to focus","WORLD_HEATMAP_TITLE",0,"World heatmap (3D)"])},82665,e=>{"use strict";var t=e.i(37998);let s=!!t.default.env.NEXT_PUBLIC_COLLECTOR_URL,r=t.default.env.NEXT_PUBLIC_COLLECTOR_URL??"http://localhost:4318",n="1"===t.default.env.DASHBOARD_STATIC?"":t.default.env.NEXT_PUBLIC_API_KEY??"",i=t.default.env.NEXT_PUBLIC_PLAYGROUND_URL??"http://localhost:5173";e.s(["COLLECTOR_URL_IS_PINNED",0,s,"DEFAULT_API_KEY",0,n,"DEFAULT_COLLECTOR_URL",0,r,"DEFAULT_PLAYGROUND_URL",0,i])},60614,e=>{"use strict";async function t(e,t){let s=await e.scenes(t).catch(()=>[]);if(0===s.length)return[];let r=await Promise.all(s.map(t=>e.sceneRepresentation(t.scene_id).catch(()=>null))),n=new Set,i=[];for(let e of r)for(let t of e?.proxy?.meshes??[])n.has(t.name)||(n.add(t.name),i.push(t));return i}e.s(["mergeSceneProxies",0,t])},88725,e=>{"use strict";var t=e.i(11623);e.i(82665);var s=e.i(20880);function r(e,t,s,r){let n={cancelled:!1,source:null,timer:null},i=0,a=async()=>{let a;if(n.cancelled)return;r(0===i?"connecting":"reconnecting");try{let{token:s}=await e.liveToken();a=t(s)}catch{o();return}if(n.cancelled)return;let u=new EventSource(a);n.source=u,u.onopen=()=>{i=0,r("open")},u.onerror=()=>{u.close(),n.source===u&&(n.source=null),o()},s(u)},o=()=>{if(n.cancelled)return;r("reconnecting");let e=Math.min(1e3*2**i,15e3);i+=1,n.timer=setTimeout(()=>void a(),e)};return a(),()=>{n.cancelled=!0,n.timer&&clearTimeout(n.timer),n.source?.close(),n.source=null}}async function n(e,t,s){let r=e.getReader(),n=new TextDecoder,i="";for(t.addEventListener("abort",()=>void r.cancel().catch(()=>{}));;){let{done:e,value:t}=await r.read();if(e)return;let a=(i+=n.decode(t,{stream:!0})).indexOf("\n\n");for(;a>=0;){let e=i.slice(0,a);i=i.slice(a+2);let t="message",r=[];for(let s of e.split("\n"))!s.startsWith(":")&&(s.startsWith("event:")?t=s.slice(6).trim():s.startsWith("data:")&&r.push(s.slice(5).replace(/^ /,"")));"event"===t&&r.length>0&&s(r.join("\n")),a=i.indexOf("\n\n")}}}e.s(["useLivePresence",0,function(e,n,i){let[a,o]=(0,t.useState)(null),[u,c]=(0,t.useState)("idle");return(0,t.useEffect)(()=>{if(!i||!n||!e){c("idle"),o(null);return}let t=new s.CollectorApi(e,n);return r(t,e=>t.livePresenceUrl(e),e=>{e.addEventListener("presence",e=>{try{o(JSON.parse(e.data))}catch{}})},c)},[e,n,i]),{snapshot:a,status:u}},"useLiveSession",0,function(e,r,i,a,o,u){let[c,l]=(0,t.useState)("idle"),[m,h]=(0,t.useState)(!1),[p,b]=(0,t.useState)(0),d=(0,t.useRef)(o),g=(0,t.useRef)(u);return d.current=o,g.current=u,(0,t.useEffect)(()=>{if(!a||!r||!e||!i)return void l("idle");let t=new s.CollectorApi(e,r),o=!1,u=0,c=null,m=null;h(!1),b(0);let p=()=>{if(o)return;l("reconnecting");let e=Math.min(1e3*2**u,15e3);u+=1,m=setTimeout(()=>void v(),e)},v=async()=>{let e;if(!o){l(0===u?"connecting":"reconnecting"),g.current(),b(0);try{({token:e}=await t.liveToken())}catch{p();return}if(!o){c=new AbortController;try{let s=await fetch(t.liveSessionUrl(e,i),{headers:{accept:"text/event-stream"},cache:"no-store",signal:c.signal});if(403===s.status){h(!0),l("idle");return}if(!s.ok||!s.body)return void p();u=0,l("open"),await n(s.body,c.signal,e=>{try{d.current(JSON.parse(e)),b(e=>e+1)}catch{}}),o||p()}catch{o||p()}}}};return v(),()=>{o=!0,m&&clearTimeout(m),c?.abort()}},[e,r,i,a]),{status:c,gated:m,count:p}},"useLiveStream",0,function(e,n,i,a,o){let[u,c]=(0,t.useState)("idle"),l=(0,t.useRef)(a);l.current=a;let m=o&&o.length>0?[...o].sort().join(","):"";return(0,t.useEffect)(()=>{if(!i||!n||!e)return void c("idle");let t=new s.CollectorApi(e,n),a=m?m.split(","):void 0;return r(t,e=>t.liveStreamUrl(e,a),e=>{e.addEventListener("event",e=>{try{l.current(JSON.parse(e.data))}catch{}})},c)},[e,n,i,m]),{status:u}}])},93425,e=>{"use strict";var t=e.i(28100),s=e.i(11623);function r({children:e,label:s="More information"}){return(0,t.jsxs)("span",{className:"group relative inline-flex",children:[(0,t.jsx)("button",{type:"button","aria-label":s,className:"flex h-4 w-4 items-center justify-center rounded-full border border-edge text-[10px] font-bold leading-none text-fg-muted transition hover:border-amber hover:text-fg-hi focus:outline-none focus:ring-1 focus:ring-amber",children:"?"}),(0,t.jsx)("span",{role:"tooltip",className:"pointer-events-none absolute left-1/2 top-6 z-20 w-64 -translate-x-1/2 rounded-md border border-edge bg-ink/95 p-2.5 text-xs font-normal normal-case leading-relaxed tracking-normal text-fg opacity-0 shadow-lg shadow-black/40 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:e})]})}function n({label:e,onClick:s,active:r=!1,children:i}){return(0,t.jsx)("button",{type:"button","aria-label":e,title:e,onClick:s,"aria-pressed":r,className:`flex h-6 w-6 items-center justify-center rounded-md border text-sm leading-none transition focus:outline-none focus:ring-1 focus:ring-amber ${r?"border-amber text-amber":"border-edge text-fg-muted hover:border-amber hover:text-fg-hi"}`,children:i})}e.s(["Panel",0,function({title:e,subtitle:i,help:a,children:o,className:u="",collapsible:c=!1,defaultCollapsed:l=!1,onHide:m,settings:h}){let[p,b]=(0,s.useState)(c&&l),[d,g]=(0,s.useState)(!1),v=(0,t.jsxs)("header",{className:p?"":"mb-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold uppercase tracking-wide text-fg",children:e}),c?(0,t.jsx)("span",{"aria-hidden":"true",className:"text-xs text-fg-muted",children:p?"▸":"▾"}):null,a?(0,t.jsx)(r,{label:`About: ${e}`,children:a}):null]}),i?(0,t.jsx)("p",{className:"mt-0.5 text-xs text-fg-muted",children:i}):null]}),_=!!h||!!m;return(0,t.jsxs)("section",{className:`rounded-xl border border-edge bg-panel p-4 shadow-lg shadow-black/20 ${u}`,children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[c?(0,t.jsx)("button",{type:"button",onClick:()=>b(e=>!e),"aria-expanded":p?"false":"true",className:"min-w-0 flex-1 text-left",children:v}):(0,t.jsx)("div",{className:"min-w-0 flex-1",children:v}),_?(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[h?(0,t.jsx)(n,{label:`${e} settings`,active:d,onClick:()=>g(e=>!e),children:(0,t.jsx)("span",{"aria-hidden":"true",children:"⚙"})}):null,m?(0,t.jsx)(n,{label:`Hide ${e}`,onClick:m,children:(0,t.jsx)("span",{"aria-hidden":"true",children:"×"})}):null]}):null]}),h&&d?(0,t.jsx)("div",{className:"mb-3 rounded-lg border border-edge bg-ink/40 p-3",children:h}):null,p?null:o]})}])},78573,e=>{e.v(t=>Promise.all(["static/chunks/0k9-8s-jof_gw.js"].map(t=>e.l(t))).then(()=>t(48939)))},47410,e=>{e.v(t=>Promise.all(["static/chunks/259xlbe69b9tc.js"].map(t=>e.l(t))).then(()=>t(53993)))},70162,e=>{e.v(t=>Promise.all(["static/chunks/413o2v11bygt5.js"].map(t=>e.l(t))).then(()=>t(19399)))},21269,e=>{e.v(t=>Promise.all(["static/chunks/38wksra3d_k-4.js"].map(t=>e.l(t))).then(()=>t(39592)))},69091,e=>{e.v(t=>Promise.all(["static/chunks/06m_64ysu9kn0.js"].map(t=>e.l(t))).then(()=>t(12449)))},15867,e=>{e.v(t=>Promise.all(["static/chunks/3l6t8b3addlw7.js"].map(t=>e.l(t))).then(()=>t(94452)))}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,27116,r=>{"use strict";var e=r.i(82531),o=r.i(82350);let a="cachedOperationValue",t="cachedExecutionId";class l extends e.FlowGraphBlock{constructor(r,e){super(e),this.value=this.registerDataOutput("value",r),this.isValid=this.registerDataOutput("isValid",o.RichTypeBoolean)}_updateOutputs(r){let e=r._getExecutionVariable(this,t,-1),o=r._getExecutionVariable(this,a,null);if(null!=o&&e===r.executionId)this.isValid.setValue(!0,r),this.value.setValue(o,r);else try{let e=this._doOperation(r);if(null==e)return void this.isValid.setValue(!1,r);r._setExecutionVariable(this,a,e),r._setExecutionVariable(this,t,r.executionId),this.value.setValue(e,r),this.isValid.setValue(!0,r)}catch(e){this.isValid.setValue(!1,r)}}}r.s(["FlowGraphCachedOperationBlock",0,l])},86111,r=>{"use strict";var e=r.i(27116);class o extends e.FlowGraphCachedOperationBlock{constructor(r,e,o,a,t){super(e,t),this._operation=o,this._className=a,this.a=this.registerDataInput("a",r)}_doOperation(r){return this._operation(this.a.getValue(r))}getClassName(){return this._className}}r.s(["FlowGraphUnaryOperationBlock",0,o])},18024,r=>{"use strict";var e=r.i(27116);class o extends e.FlowGraphCachedOperationBlock{constructor(r,e,o,a,t,l){super(o,l),this._operation=a,this._className=t,this.a=this.registerDataInput("a",r),this.b=this.registerDataInput("b",e)}_doOperation(r){let e=this.a.getValue(r),o=this.b.getValue(r);return this._operation(e,o)}getClassName(){return this._className}}r.s(["FlowGraphBinaryOperationBlock",0,o])},79968,r=>{"use strict";var e=r.i(82350),o=r.i(18024),a=r.i(27116);class t extends a.FlowGraphCachedOperationBlock{constructor(r,e,o,a){super(r,a),this._operation=e,this._className=o}_doOperation(r){return this._operation(r)}getClassName(){return this._className}}var l=r.i(10534),p=r.i(86111),c=a;class s extends c.FlowGraphCachedOperationBlock{constructor(r,e,o,a,t,l,p){super(a,p),this._operation=t,this._className=l,this.a=this.registerDataInput("a",r),this.b=this.registerDataInput("b",e),this.c=this.registerDataInput("c",o)}_doOperation(r){return this._operation(this.a.getValue(r),this.b.getValue(r),this.c.getValue(r))}getClassName(){return this._className}}var i=r.i(14831),h=r.i(97678),n=r.i(87986),u=r.i(48477);class y extends o.FlowGraphBinaryOperationBlock{constructor(r){super((0,e.getRichTypeByFlowGraphType)(r?.type),(0,e.getRichTypeByFlowGraphType)(r?.type),(0,e.getRichTypeByFlowGraphType)(r?.type),(r,e)=>this._polymorphicAdd(r,e),"FlowGraphAddBlock",r)}_polymorphicAdd(r,e){let o=(0,n._GetClassNameOf)(r),a=(0,n._GetClassNameOf)(e);if((0,n._AreSameVectorOrQuaternionClass)(o,a)||(0,n._AreSameMatrixClass)(o,a)||(0,n._AreSameIntegerClass)(o,a))return r.add(e);if("Quaternion"===o||"Vector4"===a)return new l.Vector4(r.x,r.y,r.z,r.w).addInPlace(e);if("Vector4"===o||"Quaternion"===a)return r.add(e);if(this.config?.preventIntegerFloatArithmetic&&typeof r!=typeof e)throw Error("Cannot add different types of numbers.");return(0,n.getNumericValue)(r)+(0,n.getNumericValue)(e)}}class w extends o.FlowGraphBinaryOperationBlock{constructor(r){super((0,e.getRichTypeByFlowGraphType)(r?.type),(0,e.getRichTypeByFlowGraphType)(r?.type),(0,e.getRichTypeByFlowGraphType)(r?.type),(r,e)=>this._polymorphicSubtract(r,e),"FlowGraphSubtractBlock",r)}_polymorphicSubtract(r,e){let o=(0,n._GetClassNameOf)(r),a=(0,n._GetClassNameOf)(e);if((0,n._AreSameVectorOrQuaternionClass)(o,a)||(0,n._AreSameIntegerClass)(o,a)||(0,n._AreSameMatrixClass)(o,a))return r.subtract(e);if("Quaternion"===o||"Vector4"===a)return new l.Vector4(r.x,r.y,r.z,r.w).subtractInPlace(e);if("Vector4"===o||"Quaternion"===a)return r.subtract(e);if(this.config?.preventIntegerFloatArithmetic&&typeof r!=typeof e)throw Error("Cannot add different types of numbers.");return(0,n.getNumericValue)(r)-(0,n.getNumericValue)(e)}}class G extends o.FlowGraphBinaryOperationBlock{constructor(r){super((0,e.getRichTypeByFlowGraphType)(r?.type),(0,e.getRichTypeByFlowGraphType)(r?.type),(0,e.getRichTypeByFlowGraphType)(r?.type),(r,e)=>this._polymorphicMultiply(r,e),"FlowGraphMultiplyBlock",r)}_polymorphicMultiply(r,e){let o=(0,n._GetClassNameOf)(r),a=(0,n._GetClassNameOf)(e);if((0,n._AreSameVectorOrQuaternionClass)(o,a)||(0,n._AreSameIntegerClass)(o,a))return r.multiply(e);if("Quaternion"===o||"Vector4"===a)return new l.Vector4(r.x,r.y,r.z,r.w).multiplyInPlace(e);if("Vector4"===o||"Quaternion"===a)return r.multiply(e);if((0,n._AreSameMatrixClass)(o,a))if(!this.config?.useMatrixPerComponent)return e.multiply(r);else{let a=r.m;for(let r=0;r<a.length;r++)a[r]*=e.m[r];return"Matrix2D"===o?new h.FlowGraphMatrix2D(a):"Matrix3D"===o?new h.FlowGraphMatrix3D(a):l.Matrix.FromArray(a)}if(this.config?.preventIntegerFloatArithmetic&&typeof r!=typeof e)throw Error("Cannot add different types of numbers.");return(0,n.getNumericValue)(r)*(0,n.getNumericValue)(e)}}class F extends o.FlowGraphBinaryOperationBlock{constructor(r){super((0,e.getRichTypeByFlowGraphType)(r?.type),(0,e.getRichTypeByFlowGraphType)(r?.type),(0,e.getRichTypeByFlowGraphType)(r?.type),(r,e)=>this._polymorphicDivide(r,e),"FlowGraphDivideBlock",r)}_polymorphicDivide(r,e){let o=(0,n._GetClassNameOf)(r),a=(0,n._GetClassNameOf)(e);if((0,n._AreSameVectorOrQuaternionClass)(o,a)||(0,n._AreSameIntegerClass)(o,a))return r.divide(e);if("Quaternion"===o||"Quaternion"===a){let o=r.clone();return o.x/=e.x,o.y/=e.y,o.z/=e.z,o.w/=e.w,o}if("Quaternion"===o||"Vector4"===a)return new l.Vector4(r.x,r.y,r.z,r.w).divideInPlace(e);if("Vector4"===o||"Quaternion"===a)return r.divide(e);if((0,n._AreSameMatrixClass)(o,a))if(!this.config?.useMatrixPerComponent)return r.divide(e);else{let a=r.m;for(let r=0;r<a.length;r++)a[r]/=e.m[r];return"Matrix2D"===o?new h.FlowGraphMatrix2D(a):"Matrix3D"===o?new h.FlowGraphMatrix3D(a):l.Matrix.FromArray(a)}else{if(this.config?.preventIntegerFloatArithmetic&&typeof r!=typeof e)throw Error("Cannot add different types of numbers.");return(0,n.getNumericValue)(r)/(0,n.getNumericValue)(e)}}}class B extends t{constructor(r){super(e.RichTypeNumber,r=>this._random(r),"FlowGraphRandomBlock",r),this.min=this.registerDataInput("min",e.RichTypeNumber,r?.min??0),this.max=this.registerDataInput("max",e.RichTypeNumber,r?.max??1),r?.seed&&(this._seed=r.seed)}_isSeed(r=this._seed){return void 0!==r}_getRandomValue(){if(this._isSeed(this._seed)){let r=1e4*Math.sin(this._seed++);return r-Math.floor(r)}return Math.random()}_random(r){let e=this.min.getValue(r),o=this.max.getValue(r);return this._getRandomValue()*(o-e)+e}}class k extends t{constructor(r){super(e.RichTypeNumber,()=>Math.E,"FlowGraphEBlock",r)}}class m extends t{constructor(r){super(e.RichTypeNumber,()=>Math.PI,"FlowGraphPIBlock",r)}}class g extends t{constructor(r){super(e.RichTypeNumber,()=>1/0,"FlowGraphInfBlock",r)}}class R extends t{constructor(r){super(e.RichTypeNumber,()=>NaN,"FlowGraphNaNBlock",r)}}function T(r,e){switch((0,n._GetClassNameOf)(r)){case"FlowGraphInteger":return new i.FlowGraphInteger(e(r.value));case"Vector2":return new l.Vector2(e(r.x),e(r.y));case"Vector3":return new l.Vector3(e(r.x),e(r.y),e(r.z));case"Vector4":return new l.Vector4(e(r.x),e(r.y),e(r.z),e(r.w));case"Quaternion":return new l.Quaternion(e(r.x),e(r.y),e(r.z),e(r.w));case"Matrix":return l.Matrix.FromArray(r.m.map(e));case"Matrix2D":return new h.FlowGraphMatrix2D(r.m.map(e));case"Matrix3D":return new h.FlowGraphMatrix3D(r.m.map(e));default:return e(r)}}class d extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeNumber,e.RichTypeNumber,r=>this._polymorphicAbs(r),"FlowGraphAbsBlock",r)}_polymorphicAbs(r){return T(r,Math.abs)}}class _ extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeNumber,e.RichTypeNumber,r=>this._polymorphicSign(r),"FlowGraphSignBlock",r)}_polymorphicSign(r){return T(r,Math.sign)}}class x extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeNumber,e.RichTypeNumber,r=>this._polymorphicTrunc(r),"FlowGraphTruncBlock",r)}_polymorphicTrunc(r){return T(r,Math.trunc)}}class A extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeNumber,e.RichTypeNumber,r=>this._polymorphicFloor(r),"FlowGraphFloorBlock",r)}_polymorphicFloor(r){return T(r,Math.floor)}}class f extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,r=>this._polymorphicCeiling(r),"FlowGraphCeilBlock",r)}_polymorphicCeiling(r){return T(r,Math.ceil)}}class C extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,r=>this._polymorphicRound(r),"FlowGraphRoundBlock",r)}_polymorphicRound(r){return T(r,r=>r<0&&this.config?.roundHalfAwayFromZero?-Math.round(-r):Math.round(r))}}class N extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,r=>this._polymorphicFraction(r),"FlowGraphFractBlock",r)}_polymorphicFraction(r){return T(r,r=>r-Math.floor(r))}}class O extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,r=>this._polymorphicNeg(r),"FlowGraphNegationBlock",r)}_polymorphicNeg(r){return T(r,r=>-r)}}function M(r,e,o){switch((0,n._GetClassNameOf)(r)){case"FlowGraphInteger":return new i.FlowGraphInteger(o(r.value,e.value));case"Vector2":return new l.Vector2(o(r.x,e.x),o(r.y,e.y));case"Vector3":return new l.Vector3(o(r.x,e.x),o(r.y,e.y),o(r.z,e.z));case"Vector4":return new l.Vector4(o(r.x,e.x),o(r.y,e.y),o(r.z,e.z),o(r.w,e.w));case"Quaternion":return new l.Quaternion(o(r.x,e.x),o(r.y,e.y),o(r.z,e.z),o(r.w,e.w));case"Matrix":return l.Matrix.FromArray(r.m.map((r,a)=>o(r,e.m[a])));case"Matrix2D":return new h.FlowGraphMatrix2D(r.m.map((r,a)=>o(r,e.m[a])));case"Matrix3D":return new h.FlowGraphMatrix3D(r.m.map((r,a)=>o(r,e.m[a])));default:return o((0,n.getNumericValue)(r),(0,n.getNumericValue)(e))}}class b extends o.FlowGraphBinaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,e.RichTypeAny,(r,e)=>this._polymorphicRemainder(r,e),"FlowGraphModuloBlock",r)}_polymorphicRemainder(r,e){return M(r,e,(r,e)=>r%e)}}class I extends o.FlowGraphBinaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,e.RichTypeAny,(r,e)=>this._polymorphicMin(r,e),"FlowGraphMinBlock",r)}_polymorphicMin(r,e){return M(r,e,Math.min)}}class V extends o.FlowGraphBinaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,e.RichTypeAny,(r,e)=>this._polymorphicMax(r,e),"FlowGraphMaxBlock",r)}_polymorphicMax(r,e){return M(r,e,Math.max)}}function S(r,e,o){return Math.min(Math.max(r,Math.min(e,o)),Math.max(e,o))}function v(r,e,o,a){switch((0,n._GetClassNameOf)(r)){case"FlowGraphInteger":return new i.FlowGraphInteger(a(r.value,e.value,o.value));case"Vector2":return new l.Vector2(a(r.x,e.x,o.x),a(r.y,e.y,o.y));case"Vector3":return new l.Vector3(a(r.x,e.x,o.x),a(r.y,e.y,o.y),a(r.z,e.z,o.z));case"Vector4":return new l.Vector4(a(r.x,e.x,o.x),a(r.y,e.y,o.y),a(r.z,e.z,o.z),a(r.w,e.w,o.w));case"Quaternion":return new l.Quaternion(a(r.x,e.x,o.x),a(r.y,e.y,o.y),a(r.z,e.z,o.z),a(r.w,e.w,o.w));case"Matrix":return l.Matrix.FromArray(r.m.map((r,t)=>a(r,e.m[t],o.m[t])));case"Matrix2D":return new h.FlowGraphMatrix2D(r.m.map((r,t)=>a(r,e.m[t],o.m[t])));case"Matrix3D":return new h.FlowGraphMatrix3D(r.m.map((r,t)=>a(r,e.m[t],o.m[t])));default:return a((0,n.getNumericValue)(r),(0,n.getNumericValue)(e),(0,n.getNumericValue)(o))}}class D extends s{constructor(r){super(e.RichTypeAny,e.RichTypeAny,e.RichTypeAny,e.RichTypeAny,(r,e,o)=>this._polymorphicClamp(r,e,o),"FlowGraphClampBlock",r)}_polymorphicClamp(r,e,o){return v(r,e,o,S)}}function E(r){return Math.min(Math.max(r,0),1)}class L extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,r=>this._polymorphicSaturate(r),"FlowGraphSaturateBlock",r)}_polymorphicSaturate(r){return T(r,E)}}function U(r,e,o){return(1-o)*r+o*e}class q extends s{constructor(r){super(e.RichTypeAny,e.RichTypeAny,e.RichTypeAny,e.RichTypeAny,(r,e,o)=>this._polymorphicInterpolate(r,e,o),"FlowGraphMathInterpolationBlock",r)}_polymorphicInterpolate(r,e,o){return v(r,e,o,U)}}class z extends o.FlowGraphBinaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,e.RichTypeBoolean,(r,e)=>this._polymorphicEq(r,e),"FlowGraphEqualityBlock",r)}_polymorphicEq(r,e){let o=(0,n._GetClassNameOf)(r),a=(0,n._GetClassNameOf)(e);return typeof r==typeof e&&((0,n._AreSameVectorOrQuaternionClass)(o,a)||(0,n._AreSameMatrixClass)(o,a)||(0,n._AreSameIntegerClass)(o,a)?r.equals(e):r===e)}}function P(r,e,o){if((0,n.isNumeric)(r)&&(0,n.isNumeric)(e))return o((0,n.getNumericValue)(r),(0,n.getNumericValue)(e));throw Error(`Cannot compare ${r} and ${e}`)}class Q extends o.FlowGraphBinaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,e.RichTypeBoolean,(r,e)=>this._polymorphicLessThan(r,e),"FlowGraphLessThanBlock",r)}_polymorphicLessThan(r,e){return P(r,e,(r,e)=>r<e)}}class $ extends o.FlowGraphBinaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,e.RichTypeBoolean,(r,e)=>this._polymorphicLessThanOrEqual(r,e),"FlowGraphLessThanOrEqualBlock",r)}_polymorphicLessThanOrEqual(r,e){return P(r,e,(r,e)=>r<=e)}}class Z extends o.FlowGraphBinaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,e.RichTypeBoolean,(r,e)=>this._polymorphicGreaterThan(r,e),"FlowGraphGreaterThanBlock",r)}_polymorphicGreaterThan(r,e){return P(r,e,(r,e)=>r>e)}}class j extends o.FlowGraphBinaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,e.RichTypeBoolean,(r,e)=>this._polymorphicGreaterThanOrEqual(r,e),"FlowGraphGreaterThanOrEqualBlock",r)}_polymorphicGreaterThanOrEqual(r,e){return P(r,e,(r,e)=>r>=e)}}class X extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeBoolean,r=>this._polymorphicIsNan(r),"FlowGraphIsNaNBlock",r)}_polymorphicIsNan(r){if((0,n.isNumeric)(r,!0))return isNaN((0,n.getNumericValue)(r));throw Error(`Cannot get NaN of ${r}`)}}class K extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeBoolean,r=>this._polymorphicIsInf(r),"FlowGraphIsInfBlock",r)}_polymorphicIsInf(r){if((0,n.isNumeric)(r))return!isFinite((0,n.getNumericValue)(r));throw Error(`Cannot get isInf of ${r}`)}}class H extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,r=>this._polymorphicDegToRad(r),"FlowGraphDegToRadBlock",r)}_degToRad(r){return r*Math.PI/180}_polymorphicDegToRad(r){return T(r,this._degToRad)}}class J extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,r=>this._polymorphicRadToDeg(r),"FlowGraphRadToDegBlock",r)}_radToDeg(r){return 180*r/Math.PI}_polymorphicRadToDeg(r){return T(r,this._radToDeg)}}class W extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeNumber,e.RichTypeNumber,r=>this._polymorphicSin(r),"FlowGraphSinBlock",r)}_polymorphicSin(r){return T(r,Math.sin)}}class Y extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeNumber,e.RichTypeNumber,r=>this._polymorphicCos(r),"FlowGraphCosBlock",r)}_polymorphicCos(r){return T(r,Math.cos)}}class rr extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeNumber,e.RichTypeNumber,r=>this._polymorphicTan(r),"FlowGraphTanBlock",r)}_polymorphicTan(r){return T(r,Math.tan)}}class re extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeNumber,e.RichTypeNumber,r=>this._polymorphicAsin(r),"FlowGraphASinBlock",r)}_polymorphicAsin(r){return T(r,Math.asin)}}class ro extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeNumber,e.RichTypeNumber,r=>this._polymorphicAcos(r),"FlowGraphACosBlock",r)}_polymorphicAcos(r){return T(r,Math.acos)}}class ra extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeNumber,e.RichTypeNumber,r=>this._polymorphicAtan(r),"FlowGraphATanBlock",r)}_polymorphicAtan(r){return T(r,Math.atan)}}class rt extends o.FlowGraphBinaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,e.RichTypeAny,(r,e)=>this._polymorphicAtan2(r,e),"FlowGraphATan2Block",r)}_polymorphicAtan2(r,e){return M(r,e,Math.atan2)}}class rl extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,r=>this._polymorphicSinh(r),"FlowGraphSinhBlock",r)}_polymorphicSinh(r){return T(r,Math.sinh)}}class rp extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,r=>this._polymorphicCosh(r),"FlowGraphCoshBlock",r)}_polymorphicCosh(r){return T(r,Math.cosh)}}class rc extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeAny,r=>this._polymorphicTanh(r),"FlowGraphTanhBlock",r)}_polymorphicTanh(r){return T(r,Math.tanh)}}class rs extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeNumber,r=>this._polymorphicAsinh(r),"FlowGraphASinhBlock",r)}_polymorphicAsinh(r){return T(r,Math.asinh)}}class ri extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeNumber,r=>this._polymorphicAcosh(r),"FlowGraphACoshBlock",r)}_polymorphicAcosh(r){return T(r,Math.acosh)}}class rh extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeNumber,r=>this._polymorphicAtanh(r),"FlowGraphATanhBlock",r)}_polymorphicAtanh(r){return T(r,Math.atanh)}}class rn extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeNumber,r=>this._polymorphicExp(r),"FlowGraphExponentialBlock",r)}_polymorphicExp(r){return T(r,Math.exp)}}class ru extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeNumber,r=>this._polymorphicLog(r),"FlowGraphLogBlock",r)}_polymorphicLog(r){return T(r,Math.log)}}class ry extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeNumber,r=>this._polymorphicLog2(r),"FlowGraphLog2Block",r)}_polymorphicLog2(r){return T(r,Math.log2)}}class rw extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeNumber,r=>this._polymorphicLog10(r),"FlowGraphLog10Block",r)}_polymorphicLog10(r){return T(r,Math.log10)}}class rG extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeNumber,r=>this._polymorphicSqrt(r),"FlowGraphSquareRootBlock",r)}_polymorphicSqrt(r){return T(r,Math.sqrt)}}class rF extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeNumber,r=>this._polymorphicCubeRoot(r),"FlowGraphCubeRootBlock",r)}_polymorphicCubeRoot(r){return T(r,Math.cbrt)}}class rB extends o.FlowGraphBinaryOperationBlock{constructor(r){super(e.RichTypeAny,e.RichTypeNumber,e.RichTypeNumber,(r,e)=>this._polymorphicPow(r,e),"FlowGraphPowerBlock",r)}_polymorphicPow(r,e){return M(r,e,Math.pow)}}class rk extends p.FlowGraphUnaryOperationBlock{constructor(r){super((0,e.getRichTypeByFlowGraphType)(r?.valueType||"FlowGraphInteger"),(0,e.getRichTypeByFlowGraphType)(r?.valueType||"FlowGraphInteger"),r=>"boolean"==typeof r?!r:"number"==typeof r?~r:new i.FlowGraphInteger(~r.value),"FlowGraphBitwiseNotBlock",r)}}class rm extends o.FlowGraphBinaryOperationBlock{constructor(r){super((0,e.getRichTypeByFlowGraphType)(r?.valueType||"FlowGraphInteger"),(0,e.getRichTypeByFlowGraphType)(r?.valueType||"FlowGraphInteger"),(0,e.getRichTypeByFlowGraphType)(r?.valueType||"FlowGraphInteger"),(r,e)=>{if("boolean"==typeof r&&"boolean"==typeof e)return r&&e;if("number"==typeof r&&"number"==typeof e)return r&e;if("object"==typeof r&&"object"==typeof e)return new i.FlowGraphInteger(r.value&e.value);throw Error(`Cannot perform bitwise AND on ${r} and ${e}`)},"FlowGraphBitwiseAndBlock",r)}}class rg extends o.FlowGraphBinaryOperationBlock{constructor(r){super((0,e.getRichTypeByFlowGraphType)(r?.valueType||"FlowGraphInteger"),(0,e.getRichTypeByFlowGraphType)(r?.valueType||"FlowGraphInteger"),(0,e.getRichTypeByFlowGraphType)(r?.valueType||"FlowGraphInteger"),(r,e)=>{if("boolean"==typeof r&&"boolean"==typeof e)return r||e;if("number"==typeof r&&"number"==typeof e)return r|e;if("object"==typeof r&&"object"==typeof e)return new i.FlowGraphInteger(r.value|e.value);throw Error(`Cannot perform bitwise OR on ${r} and ${e}`)},"FlowGraphBitwiseOrBlock",r)}}class rR extends o.FlowGraphBinaryOperationBlock{constructor(r){super((0,e.getRichTypeByFlowGraphType)(r?.valueType||"FlowGraphInteger"),(0,e.getRichTypeByFlowGraphType)(r?.valueType||"FlowGraphInteger"),(0,e.getRichTypeByFlowGraphType)(r?.valueType||"FlowGraphInteger"),(r,e)=>{if("boolean"==typeof r&&"boolean"==typeof e)return r!==e;if("number"==typeof r&&"number"==typeof e)return r^e;if("object"==typeof r&&"object"==typeof e)return new i.FlowGraphInteger(r.value^e.value);throw Error(`Cannot perform bitwise XOR on ${r} and ${e}`)},"FlowGraphBitwiseXorBlock",r)}}class rT extends o.FlowGraphBinaryOperationBlock{constructor(r){super(e.RichTypeFlowGraphInteger,e.RichTypeFlowGraphInteger,e.RichTypeFlowGraphInteger,(r,e)=>new i.FlowGraphInteger(r.value<<e.value),"FlowGraphBitwiseLeftShiftBlock",r)}}class rd extends o.FlowGraphBinaryOperationBlock{constructor(r){super(e.RichTypeFlowGraphInteger,e.RichTypeFlowGraphInteger,e.RichTypeFlowGraphInteger,(r,e)=>new i.FlowGraphInteger(r.value>>e.value),"FlowGraphBitwiseRightShiftBlock",r)}}class r_ extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeFlowGraphInteger,e.RichTypeFlowGraphInteger,r=>new i.FlowGraphInteger(Math.clz32(r.value)),"FlowGraphLeadingZerosBlock",r)}}class rx extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeFlowGraphInteger,e.RichTypeFlowGraphInteger,r=>new i.FlowGraphInteger(r.value?31-Math.clz32(r.value&-r.value):32),"FlowGraphTrailingZerosBlock",r)}}class rA extends p.FlowGraphUnaryOperationBlock{constructor(r){super(e.RichTypeFlowGraphInteger,e.RichTypeFlowGraphInteger,r=>new i.FlowGraphInteger(function(r){let e=0;for(;r;)e+=1&r,r>>=1;return e}(r.value)),"FlowGraphOneBitsCounterBlock",r)}}let rf=!1;function rC(){rf||(rf=!0,(0,u.RegisterClass)("FlowGraphAddBlock",y),(0,u.RegisterClass)("FlowGraphSubtractBlock",w),(0,u.RegisterClass)("FlowGraphMultiplyBlock",G),(0,u.RegisterClass)("FlowGraphDivideBlock",F),(0,u.RegisterClass)("FlowGraphRandomBlock",B),(0,u.RegisterClass)("FlowGraphEBlock",k),(0,u.RegisterClass)("FlowGraphPIBlock",m),(0,u.RegisterClass)("FlowGraphInfBlock",g),(0,u.RegisterClass)("FlowGraphNaNBlock",R),(0,u.RegisterClass)("FlowGraphAbsBlock",d),(0,u.RegisterClass)("FlowGraphSignBlock",_),(0,u.RegisterClass)("FlowGraphTruncBlock",x),(0,u.RegisterClass)("FlowGraphFloorBlock",A),(0,u.RegisterClass)("FlowGraphCeilBlock",f),(0,u.RegisterClass)("FlowGraphRoundBlock",C),(0,u.RegisterClass)("FlowGraphFractBlock",N),(0,u.RegisterClass)("FlowGraphNegationBlock",O),(0,u.RegisterClass)("FlowGraphModuloBlock",b),(0,u.RegisterClass)("FlowGraphMinBlock",I),(0,u.RegisterClass)("FlowGraphMaxBlock",V),(0,u.RegisterClass)("FlowGraphClampBlock",D),(0,u.RegisterClass)("FlowGraphSaturateBlock",L),(0,u.RegisterClass)("FlowGraphMathInterpolationBlock",q),(0,u.RegisterClass)("FlowGraphEqualityBlock",z),(0,u.RegisterClass)("FlowGraphLessThanBlock",Q),(0,u.RegisterClass)("FlowGraphLessThanOrEqualBlock",$),(0,u.RegisterClass)("FlowGraphGreaterThanBlock",Z),(0,u.RegisterClass)("FlowGraphGreaterThanOrEqualBlock",j),(0,u.RegisterClass)("FlowGraphIsNaNBlock",X),(0,u.RegisterClass)("FlowGraphIsInfBlock",K),(0,u.RegisterClass)("FlowGraphDegToRadBlock",H),(0,u.RegisterClass)("FlowGraphRadToDegBlock",J),(0,u.RegisterClass)("FlowGraphASinBlock",re),(0,u.RegisterClass)("FlowGraphACosBlock",ro),(0,u.RegisterClass)("FlowGraphATanBlock",ra),(0,u.RegisterClass)("FlowGraphATan2Block",rt),(0,u.RegisterClass)("FlowGraphSinhBlock",rl),(0,u.RegisterClass)("FlowGraphCoshBlock",rp),(0,u.RegisterClass)("FlowGraphTanhBlock",rc),(0,u.RegisterClass)("FlowGraphASinhBlock",rs),(0,u.RegisterClass)("FlowGraphACoshBlock",ri),(0,u.RegisterClass)("FlowGraphATanhBlock",rh),(0,u.RegisterClass)("FlowGraphExponentialBlock",rn),(0,u.RegisterClass)("FlowGraphLogBlock",ru),(0,u.RegisterClass)("FlowGraphLog2Block",ry),(0,u.RegisterClass)("FlowGraphLog10Block",rw),(0,u.RegisterClass)("FlowGraphSquareRootBlock",rG),(0,u.RegisterClass)("FlowGraphCubeRootBlock",rF),(0,u.RegisterClass)("FlowGraphPowerBlock",rB),(0,u.RegisterClass)("FlowGraphBitwiseNotBlock",rk),(0,u.RegisterClass)("FlowGraphBitwiseAndBlock",rm),(0,u.RegisterClass)("FlowGraphBitwiseOrBlock",rg),(0,u.RegisterClass)("FlowGraphBitwiseXorBlock",rR),(0,u.RegisterClass)("FlowGraphBitwiseLeftShiftBlock",rT),(0,u.RegisterClass)("FlowGraphBitwiseRightShiftBlock",rd),(0,u.RegisterClass)("FlowGraphLeadingZerosBlock",r_),(0,u.RegisterClass)("FlowGraphTrailingZerosBlock",rx),(0,u.RegisterClass)("FlowGraphOneBitsCounterBlock",rA))}r.s(["FlowGraphAbsBlock",0,d,"FlowGraphAcosBlock",0,ro,"FlowGraphAcoshBlock",0,ri,"FlowGraphAddBlock",0,y,"FlowGraphAsinBlock",0,re,"FlowGraphAsinhBlock",0,rs,"FlowGraphAtan2Block",0,rt,"FlowGraphAtanBlock",0,ra,"FlowGraphAtanhBlock",0,rh,"FlowGraphBitwiseAndBlock",0,rm,"FlowGraphBitwiseLeftShiftBlock",0,rT,"FlowGraphBitwiseNotBlock",0,rk,"FlowGraphBitwiseOrBlock",0,rg,"FlowGraphBitwiseRightShiftBlock",0,rd,"FlowGraphBitwiseXorBlock",0,rR,"FlowGraphCeilBlock",0,f,"FlowGraphClampBlock",0,D,"FlowGraphCosBlock",0,Y,"FlowGraphCoshBlock",0,rp,"FlowGraphCubeRootBlock",0,rF,"FlowGraphDegToRadBlock",0,H,"FlowGraphDivideBlock",0,F,"FlowGraphEBlock",0,k,"FlowGraphEqualityBlock",0,z,"FlowGraphExpBlock",0,rn,"FlowGraphFloorBlock",0,A,"FlowGraphFractionBlock",0,N,"FlowGraphGreaterThanBlock",0,Z,"FlowGraphGreaterThanOrEqualBlock",0,j,"FlowGraphInfBlock",0,g,"FlowGraphIsInfinityBlock",0,K,"FlowGraphIsNanBlock",0,X,"FlowGraphLeadingZerosBlock",0,r_,"FlowGraphLessThanBlock",0,Q,"FlowGraphLessThanOrEqualBlock",0,$,"FlowGraphLog10Block",0,rw,"FlowGraphLog2Block",0,ry,"FlowGraphLogBlock",0,ru,"FlowGraphMathInterpolationBlock",0,q,"FlowGraphMaxBlock",0,V,"FlowGraphMinBlock",0,I,"FlowGraphModuloBlock",0,b,"FlowGraphMultiplyBlock",0,G,"FlowGraphNaNBlock",0,R,"FlowGraphNegationBlock",0,O,"FlowGraphOneBitsCounterBlock",0,rA,"FlowGraphPiBlock",0,m,"FlowGraphPowerBlock",0,rB,"FlowGraphRadToDegBlock",0,J,"FlowGraphRandomBlock",0,B,"FlowGraphRoundBlock",0,C,"FlowGraphSaturateBlock",0,L,"FlowGraphSignBlock",0,_,"FlowGraphSinBlock",0,W,"FlowGraphSinhBlock",0,rl,"FlowGraphSquareRootBlock",0,rG,"FlowGraphSubtractBlock",0,w,"FlowGraphTanBlock",0,rr,"FlowGraphTanhBlock",0,rc,"FlowGraphTrailingZerosBlock",0,rx,"FlowGraphTruncBlock",0,x,"RegisterFlowGraphMathBlocks",0,rC],38176),rC(),r.s([],54798),r.i(54798),r.i(38176),r.s(["FlowGraphAbsBlock",0,d,"FlowGraphAcosBlock",0,ro,"FlowGraphAcoshBlock",0,ri,"FlowGraphAddBlock",0,y,"FlowGraphAsinBlock",0,re,"FlowGraphAsinhBlock",0,rs,"FlowGraphAtan2Block",0,rt,"FlowGraphAtanBlock",0,ra,"FlowGraphAtanhBlock",0,rh,"FlowGraphBitwiseAndBlock",0,rm,"FlowGraphBitwiseLeftShiftBlock",0,rT,"FlowGraphBitwiseNotBlock",0,rk,"FlowGraphBitwiseOrBlock",0,rg,"FlowGraphBitwiseRightShiftBlock",0,rd,"FlowGraphBitwiseXorBlock",0,rR,"FlowGraphCeilBlock",0,f,"FlowGraphClampBlock",0,D,"FlowGraphCosBlock",0,Y,"FlowGraphCoshBlock",0,rp,"FlowGraphCubeRootBlock",0,rF,"FlowGraphDegToRadBlock",0,H,"FlowGraphDivideBlock",0,F,"FlowGraphEBlock",0,k,"FlowGraphEqualityBlock",0,z,"FlowGraphExpBlock",0,rn,"FlowGraphFloorBlock",0,A,"FlowGraphFractionBlock",0,N,"FlowGraphGreaterThanBlock",0,Z,"FlowGraphGreaterThanOrEqualBlock",0,j,"FlowGraphInfBlock",0,g,"FlowGraphIsInfinityBlock",0,K,"FlowGraphIsNanBlock",0,X,"FlowGraphLeadingZerosBlock",0,r_,"FlowGraphLessThanBlock",0,Q,"FlowGraphLessThanOrEqualBlock",0,$,"FlowGraphLog10Block",0,rw,"FlowGraphLog2Block",0,ry,"FlowGraphLogBlock",0,ru,"FlowGraphMathInterpolationBlock",0,q,"FlowGraphMaxBlock",0,V,"FlowGraphMinBlock",0,I,"FlowGraphModuloBlock",0,b,"FlowGraphMultiplyBlock",0,G,"FlowGraphNaNBlock",0,R,"FlowGraphNegationBlock",0,O,"FlowGraphOneBitsCounterBlock",0,rA,"FlowGraphPiBlock",0,m,"FlowGraphPowerBlock",0,rB,"FlowGraphRadToDegBlock",0,J,"FlowGraphRandomBlock",0,B,"FlowGraphRoundBlock",0,C,"FlowGraphSaturateBlock",0,L,"FlowGraphSignBlock",0,_,"FlowGraphSinBlock",0,W,"FlowGraphSinhBlock",0,rl,"FlowGraphSquareRootBlock",0,rG,"FlowGraphSubtractBlock",0,w,"FlowGraphTanBlock",0,rr,"FlowGraphTanhBlock",0,rc,"FlowGraphTrailingZerosBlock",0,rx,"FlowGraphTruncBlock",0,x],79968)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88638,t=>{"use strict";var e=t.i(82531),s=t.i(48477);t.i(557);var i=t.i(82350);class h extends e.FlowGraphBlock{constructor(t){super(t),this.key=this.registerDataInput("key",i.RichTypeString),this.withShift=this.registerDataInput("withShift",i.RichTypeBoolean),this.withCtrl=this.registerDataInput("withCtrl",i.RichTypeBoolean),this.withAlt=this.registerDataInput("withAlt",i.RichTypeBoolean),this.withMeta=this.registerDataInput("withMeta",i.RichTypeBoolean),this.withCommandOrCtrl=this.registerDataInput("withCommandOrCtrl",i.RichTypeBoolean),this.isPressed=this.registerDataOutput("isPressed",i.RichTypeBoolean)}_updateOutputs(t){let e=t.configuration.sceneEventCoordinator;if(!e)return void this.isPressed.setValue(!1,t);let s=e.pressedKeys,i=this.key.getValue(t),h=!i||s.has(i);h&&this.withShift.getValue(t)&&(h=s.has("ShiftLeft")||s.has("ShiftRight")),h&&this.withCtrl.getValue(t)&&(h=s.has("ControlLeft")||s.has("ControlRight")),h&&this.withAlt.getValue(t)&&(h=s.has("AltLeft")||s.has("AltRight")),h&&this.withMeta.getValue(t)&&(h=s.has("MetaLeft")||s.has("MetaRight")),h&&this.withCommandOrCtrl.getValue(t)&&(h=s.has("CommandOrControl")),this.isPressed.setValue(h,t)}getClassName(){return"FlowGraphIsKeyPressedBlock"}}(0,s.RegisterClass)("FlowGraphIsKeyPressedBlock",h),t.s(["FlowGraphIsKeyPressedBlock",0,h])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38677,e=>{"use strict";var t=e.i(10534);class i{constructor(e,i,r,a){this.normal=new t.Vector3(e,i,r),this.d=a}asArray(){return[this.normal.x,this.normal.y,this.normal.z,this.d]}clone(){return new i(this.normal.x,this.normal.y,this.normal.z,this.d)}getClassName(){return"Plane"}getHashCode(){let e=this.normal.getHashCode();return 397*e^this.d}normalize(){let e=Math.sqrt(this.normal.x*this.normal.x+this.normal.y*this.normal.y+this.normal.z*this.normal.z),t=0;return 0!==e&&(t=1/e),this.normal.x*=t,this.normal.y*=t,this.normal.z*=t,this.d*=t,this}transform(e){let t=i._TmpMatrix;e.invertToRef(t);let r=t.m,a=this.normal.x,s=this.normal.y,n=this.normal.z,o=this.d;return new i(a*r[0]+s*r[1]+n*r[2]+o*r[3],a*r[4]+s*r[5]+n*r[6]+o*r[7],a*r[8]+s*r[9]+n*r[10]+o*r[11],a*r[12]+s*r[13]+n*r[14]+o*r[15])}dotCoordinate(e){return this.normal.x*e.x+this.normal.y*e.y+this.normal.z*e.z+this.d}copyFromPoints(e,t,i){let r,a=t.x-e.x,s=t.y-e.y,n=t.z-e.z,o=i.x-e.x,l=i.y-e.y,h=i.z-e.z,c=s*h-n*l,d=n*o-a*h,u=a*l-s*o,_=Math.sqrt(c*c+d*d+u*u);return r=0!==_?1/_:0,this.normal.x=c*r,this.normal.y=d*r,this.normal.z=u*r,this.d=-(this.normal.x*e.x+this.normal.y*e.y+this.normal.z*e.z),this}isFrontFacingTo(e,i){return t.Vector3.Dot(this.normal,e)<=i}signedDistanceTo(e){return t.Vector3.Dot(e,this.normal)+this.d}static FromArray(e){return new i(e[0],e[1],e[2],e[3])}static FromPoints(e,t,r){let a=new i(0,0,0,0);return a.copyFromPoints(e,t,r),a}static FromPositionAndNormal(e,t){let r=new i(0,0,0,0);return this.FromPositionAndNormalToRef(e,t,r)}static FromPositionAndNormalToRef(e,t,i){return i.normal.copyFrom(t),i.normal.normalize(),i.d=-e.dot(i.normal),i}static SignedDistanceToPlaneFromPositionAndNormal(e,i,r){let a=-(i.x*e.x+i.y*e.y+i.z*e.z);return t.Vector3.Dot(r,i)+a}}i._TmpMatrix=t.Matrix.Identity(),e.s(["Plane",0,i])},21834,e=>{"use strict";e.s(["useOpenGLOrientationForUV",()=>!1])},67374,30649,e=>{"use strict";var t=e.i(16147),i=e.i(40220),r=e.i(57554),a=e.i(10534),s=e.i(68061),n=e.i(48477),o=e.i(54670),l=e.i(4775),h=e.i(58279),c=e.i(38677),d=e.i(61023);function u(e,t,i=!1){let r=t.width,a=t.height;if(e instanceof Float32Array){let t=e.byteLength/e.BYTES_PER_ELEMENT,i=new Uint8Array(t);for(;--t>=0;){let r=e[t];r<0?r=0:r>1&&(r=1),i[t]=255*r}e=i}let s=document.createElement("canvas");s.width=r,s.height=a;let n=s.getContext("2d");if(!n)return null;let o=n.createImageData(r,a);if(o.data.set(e),n.putImageData(o,0,0),i){let e=document.createElement("canvas");e.width=r,e.height=a;let t=e.getContext("2d");return t?(t.translate(0,a),t.scale(1,-1),t.drawImage(s,0,0),e.toDataURL("image/png")):null}return s.toDataURL("image/png")}function _(e,t=0,i=0){let r=e.getInternalTexture();if(!r)return null;let a=e._readPixelsSync(t,i);return a?u(a,e.getSize(),r.invertY):null}async function f(e,t=0,i=0){let r=e.getInternalTexture();if(!r)return null;let a=await e.readPixels(t,i);return a?u(a,e.getSize(),r.invertY):null}e.s(["GenerateBase64StringFromTexture",0,_,"GenerateBase64StringFromTextureAsync",0,f],30649);var m=e.i(21834),T=e.i(95397);class p extends s.BaseTexture{static _CreateVideoTexture(e,t,i,r=!1,a=!1,s=p.TRILINEAR_SAMPLINGMODE,n={},l,h=5){throw(0,o._WarnImport)("VideoTexture")}get noMipmap(){return this._noMipmap}get mimeType(){return this._mimeType}set isBlocking(e){this._isBlocking=e}get isBlocking(){return this._isBlocking}get invertY(){return this._invertY}constructor(e,t,i,a,s=p.TRILINEAR_SAMPLINGMODE,n=null,o=null,h=null,c=!1,d,u,_,f,T){let g;super(t),this.url=null,this.uOffset=0,this.vOffset=0,this.uScale=1,this.vScale=1,this.uAng=0,this.vAng=0,this.wAng=0,this.uRotationCenter=.5,this.vRotationCenter=.5,this.wRotationCenter=.5,this.homogeneousRotationInUVTransform=!1,this.inspectableCustomProperties=null,this._noMipmap=!1,this._invertY=!1,this._rowGenerationMatrix=null,this._cachedTextureMatrix=null,this._projectionModeMatrix=null,this._t0=null,this._t1=null,this._t2=null,this._cachedUOffset=-1,this._cachedVOffset=-1,this._cachedUScale=0,this._cachedVScale=0,this._cachedUAng=-1,this._cachedVAng=-1,this._cachedWAng=-1,this._cachedReflectionProjectionMatrixId=-1,this._cachedURotationCenter=-1,this._cachedVRotationCenter=-1,this._cachedWRotationCenter=-1,this._cachedHomogeneousRotationInUVTransform=!1,this._cachedIdentity3x2=!0,this._cachedReflectionTextureMatrix=null,this._cachedReflectionUOffset=-1,this._cachedReflectionVOffset=-1,this._cachedReflectionUScale=0,this._cachedReflectionVScale=0,this._cachedReflectionCoordinatesMode=-1,this._buffer=null,this._deleteBuffer=!1,this._format=null,this._delayedOnLoad=null,this._delayedOnError=null,this.onLoadObservable=new r.Observable,this._isBlocking=!0,this.name=e||"",this.url=e;let R=!1,x=null,M=!0;"object"==typeof i&&null!==i?(g=i.noMipmap??!1,a=i.invertY??!m.useOpenGLOrientationForUV,s=i.samplingMode??p.TRILINEAR_SAMPLINGMODE,n=i.onLoad??null,o=i.onError??null,h=i.buffer??null,c=i.deleteBuffer??!1,d=i.format,u=i.mimeType,_=i.loaderOptions,f=i.creationFlags,R=i.useSRGBBuffer??!1,x=i.internalTexture??null,M=i.gammaSpace??M,T=i.forcedExtension??T):g=!!i,this._gammaSpace=M,this._noMipmap=g,this._invertY=void 0===a?!m.useOpenGLOrientationForUV:a,this._initialSamplingMode=s,this._buffer=h,this._deleteBuffer=c,this._mimeType=u,this._loaderOptions=_,this._creationFlags=f,this._useSRGBBuffer=R,this._forcedExtension=T,void 0!==d&&(this._format=d);const A=this.getScene(),S=this._getEngine();if(!S)return;S.onBeforeTextureInitObservable.notifyObservers(this);const E=()=>{this._texture&&(this._texture._invertVScale&&(this.vScale*=-1,this.vOffset+=1),null!==this._texture._cachedWrapU&&(this.wrapU=this._texture._cachedWrapU,this._texture._cachedWrapU=null),null!==this._texture._cachedWrapV&&(this.wrapV=this._texture._cachedWrapV,this._texture._cachedWrapV=null),null!==this._texture._cachedWrapR&&(this.wrapR=this._texture._cachedWrapR,this._texture._cachedWrapR=null)),this.onLoadObservable.hasObservers()&&this.onLoadObservable.notifyObservers(this),n&&n(),!this.isBlocking&&A&&A.resetCachedMaterial()},y=(e,t)=>{this._loadingError=!0,this._errorObject={message:e,exception:t},o&&o(e,t),p.OnTextureLoadErrorObservable.notifyObservers(this)};if(!this.url&&!x){this._delayedOnLoad=E,this._delayedOnError=y;return}if(this._texture=x??this._getFromCache(this.url,g,s,this._invertY,R,this.isCube),this._texture)if(this._texture.isReady)l.TimingTools.SetImmediate(()=>E());else{const e=this._texture.onLoadedObservable.add(E);this._texture.onErrorObservable.add(t=>{y(t.message,t.exception),this._texture?.onLoadedObservable.remove(e)})}else if(A&&A.useDelayedTextureLoading)this.delayLoadState=4,this._delayedOnLoad=E,this._delayedOnError=y;else{try{this._texture=S.createTexture(this.url,g,this._invertY,A,s,E,y,this._buffer,void 0,this._format,this._forcedExtension,u,_,f,R)}catch(e){throw y("error loading",e),e}c&&(this._buffer=null)}}updateURL(e,t=null,i,r){this.url&&(this.releaseInternalTexture(),this.getScene().markAllMaterialsAsDirty(1,e=>e.hasTexture(this))),(!this.name||this.name.startsWith("data:"))&&(this.name=e),this.url=e,this._buffer=t,this._forcedExtension=r,this.delayLoadState=4;let a=this._delayedOnLoad,s=()=>{a?a():this.onLoadObservable.hasObservers()&&this.onLoadObservable.notifyObservers(this),i&&i()};this._delayedOnLoad=s,this.delayLoad()}delayLoad(){if(4!==this.delayLoadState)return;let e=this.getScene();if(!e)return;let t=this.url;!t&&(this.name.indexOf("://")>0||this.name.startsWith("data:"))&&(t=this.name),this.delayLoadState=1,this._texture=this._getFromCache(t,this._noMipmap,this.samplingMode,this._invertY,this._useSRGBBuffer,this.isCube),this._texture?this._delayedOnLoad&&(this._texture.isReady?l.TimingTools.SetImmediate(this._delayedOnLoad):this._texture.onLoadedObservable.add(this._delayedOnLoad)):(this._texture=e.getEngine().createTexture(t,this._noMipmap,this._invertY,e,this.samplingMode,this._delayedOnLoad,this._delayedOnError,this._buffer,null,this._format,this._forcedExtension,this._mimeType,this._loaderOptions,this._creationFlags,this._useSRGBBuffer),this._deleteBuffer&&(this._buffer=null)),this._delayedOnLoad=null,this._delayedOnError=null}_prepareRowForTextureGeneration(e,t,i,r){e*=this._cachedUScale,t*=this._cachedVScale,e-=this.uRotationCenter*this._cachedUScale,t-=this.vRotationCenter*this._cachedVScale,i-=this.wRotationCenter,a.Vector3.TransformCoordinatesFromFloatsToRef(e,t,i,this._rowGenerationMatrix,r),r.x+=this.uRotationCenter*this._cachedUScale+this._cachedUOffset,r.y+=this.vRotationCenter*this._cachedVScale+this._cachedVOffset,r.z+=this.wRotationCenter}getTextureMatrix(e=1){if(this.uOffset===this._cachedUOffset&&this.vOffset===this._cachedVOffset&&this.uScale*e===this._cachedUScale&&this.vScale===this._cachedVScale&&this.uAng===this._cachedUAng&&this.vAng===this._cachedVAng&&this.wAng===this._cachedWAng&&this.uRotationCenter===this._cachedURotationCenter&&this.vRotationCenter===this._cachedVRotationCenter&&this.wRotationCenter===this._cachedWRotationCenter&&this.homogeneousRotationInUVTransform===this._cachedHomogeneousRotationInUVTransform)return this._cachedTextureMatrix;this._cachedUOffset=this.uOffset,this._cachedVOffset=this.vOffset,this._cachedUScale=this.uScale*e,this._cachedVScale=this.vScale,this._cachedUAng=this.uAng,this._cachedVAng=this.vAng,this._cachedWAng=this.wAng,this._cachedURotationCenter=this.uRotationCenter,this._cachedVRotationCenter=this.vRotationCenter,this._cachedWRotationCenter=this.wRotationCenter,this._cachedHomogeneousRotationInUVTransform=this.homogeneousRotationInUVTransform,this._cachedTextureMatrix&&this._rowGenerationMatrix||(this._cachedTextureMatrix=a.Matrix.Zero(),this._rowGenerationMatrix=new a.Matrix,this._t0=a.Vector3.Zero(),this._t1=a.Vector3.Zero(),this._t2=a.Vector3.Zero()),a.Matrix.RotationYawPitchRollToRef(this.vAng,this.uAng,this.wAng,this._rowGenerationMatrix),this.homogeneousRotationInUVTransform?(a.Matrix.TranslationToRef(-this._cachedURotationCenter,-this._cachedVRotationCenter,-this._cachedWRotationCenter,a.TmpVectors.Matrix[0]),a.Matrix.TranslationToRef(this._cachedURotationCenter,this._cachedVRotationCenter,this._cachedWRotationCenter,a.TmpVectors.Matrix[1]),a.Matrix.ScalingToRef(this._cachedUScale,this._cachedVScale,0,a.TmpVectors.Matrix[2]),a.Matrix.TranslationToRef(this._cachedUOffset,this._cachedVOffset,0,a.TmpVectors.Matrix[3]),a.TmpVectors.Matrix[0].multiplyToRef(this._rowGenerationMatrix,this._cachedTextureMatrix),this._cachedTextureMatrix.multiplyToRef(a.TmpVectors.Matrix[1],this._cachedTextureMatrix),this._cachedTextureMatrix.multiplyToRef(a.TmpVectors.Matrix[2],this._cachedTextureMatrix),this._cachedTextureMatrix.multiplyToRef(a.TmpVectors.Matrix[3],this._cachedTextureMatrix),this._cachedTextureMatrix.setRowFromFloats(2,this._cachedTextureMatrix.m[12],this._cachedTextureMatrix.m[13],this._cachedTextureMatrix.m[14],1)):(this._prepareRowForTextureGeneration(0,0,0,this._t0),this._prepareRowForTextureGeneration(1,0,0,this._t1),this._prepareRowForTextureGeneration(0,1,0,this._t2),this._t1.subtractInPlace(this._t0),this._t2.subtractInPlace(this._t0),a.Matrix.FromValuesToRef(this._t1.x,this._t1.y,this._t1.z,0,this._t2.x,this._t2.y,this._t2.z,0,this._t0.x,this._t0.y,this._t0.z,0,0,0,0,1,this._cachedTextureMatrix));let t=this.getScene();if(!t)return this._cachedTextureMatrix;let i=this._cachedIdentity3x2;return this._cachedIdentity3x2=this._cachedTextureMatrix.isIdentityAs3x2(),this.optimizeUVAllocation&&i!==this._cachedIdentity3x2&&t.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)),this._cachedTextureMatrix}getReflectionTextureMatrix(){let e=this.getScene();if(!e)return this._cachedReflectionTextureMatrix;if(this.uOffset===this._cachedReflectionUOffset&&this.vOffset===this._cachedReflectionVOffset&&this.uScale===this._cachedReflectionUScale&&this.vScale===this._cachedReflectionVScale&&this.coordinatesMode===this._cachedReflectionCoordinatesMode){if(this.coordinatesMode!==p.PROJECTION_MODE)return this._cachedReflectionTextureMatrix;else if(this._cachedReflectionProjectionMatrixId===e.getProjectionMatrix().updateFlag)return this._cachedReflectionTextureMatrix}this._cachedReflectionTextureMatrix||(this._cachedReflectionTextureMatrix=a.Matrix.Zero()),this._projectionModeMatrix||(this._projectionModeMatrix=a.Matrix.Zero());let t=this._cachedReflectionCoordinatesMode!==this.coordinatesMode;switch(this._cachedReflectionUOffset=this.uOffset,this._cachedReflectionVOffset=this.vOffset,this._cachedReflectionUScale=this.uScale,this._cachedReflectionVScale=this.vScale,this._cachedReflectionCoordinatesMode=this.coordinatesMode,this.coordinatesMode){case p.PLANAR_MODE:a.Matrix.IdentityToRef(this._cachedReflectionTextureMatrix),this._cachedReflectionTextureMatrix[0]=this.uScale,this._cachedReflectionTextureMatrix[5]=this.vScale,this._cachedReflectionTextureMatrix[12]=this.uOffset,this._cachedReflectionTextureMatrix[13]=this.vOffset;break;case p.PROJECTION_MODE:{a.Matrix.FromValuesToRef(.5,0,0,0,0,-.5,0,0,0,0,0,0,.5,.5,1,1,this._projectionModeMatrix);let t=e.getProjectionMatrix();this._cachedReflectionProjectionMatrixId=t.updateFlag,t.multiplyToRef(this._projectionModeMatrix,this._cachedReflectionTextureMatrix);break}default:a.Matrix.IdentityToRef(this._cachedReflectionTextureMatrix)}return t&&e.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)),this._cachedReflectionTextureMatrix}clone(){let e={noMipmap:this._noMipmap,invertY:this._invertY,samplingMode:this.samplingMode,onLoad:void 0,onError:void 0,buffer:this._texture?this._texture._buffer:void 0,deleteBuffer:this._deleteBuffer,format:this.textureFormat,mimeType:this.mimeType,loaderOptions:this._loaderOptions,creationFlags:this._creationFlags,useSRGBBuffer:this._useSRGBBuffer};return T.SerializationHelper.Clone(()=>new p(this._texture?this._texture.url:null,this.getScene(),e),this)}serialize(){let e=this.name;!p.SerializeBuffers&&this.name.startsWith("data:")&&(this.name=""),this.name.startsWith("data:")&&this.url===this.name&&(this.url="");let t=super.serialize(p._SerializeInternalTextureUniqueId);if(!t)return null;if(p.SerializeBuffers||p.ForceSerializeBuffers)if("string"==typeof this._buffer&&this._buffer.startsWith("data:"))t.base64String=this._buffer,t.name=t.name.replace("data:","");else if(this.url&&this.url.startsWith("data:")&&this._buffer instanceof Uint8Array){let e=this.mimeType||"image/png";t.base64String=`data:${e};base64,${(0,d.EncodeArrayBufferToBase64)(this._buffer)}`}else(p.ForceSerializeBuffers||this.url&&this.url.startsWith("blob:")||this._forceSerialize)&&(t.base64String=!this._engine||this._engine._features.supportSyncTextureRead?_(this):f(this));return t.invertY=this._invertY,t.samplingMode=this.samplingMode,t._creationFlags=this._creationFlags,t._useSRGBBuffer=this._useSRGBBuffer,p._SerializeInternalTextureUniqueId&&(t.internalTextureUniqueId=this._texture?.uniqueId),t.internalTextureLabel=this._texture?.label,t.noMipmap=this._noMipmap,this.name=e,t}getClassName(){return"Texture"}dispose(){super.dispose(),this.onLoadObservable.clear(),this._delayedOnLoad=null,this._delayedOnError=null,this._buffer=null}static Parse(e,t,i){let r;if(e.customType){let r=h.InstantiationTools.Instantiate(e.customType).Parse(e,t,i);return e.samplingMode&&r.updateSamplingMode&&r._samplingMode&&r._samplingMode!==e.samplingMode&&r.updateSamplingMode(e.samplingMode),r}if(e.isCube&&!e.isRenderTarget)return p._CubeTextureParser(e,t,i);let a=void 0!==e.internalTextureUniqueId;if(!e.name&&!e.isRenderTarget&&!a)return null;if(a){for(let i of t.getEngine().getLoadedTexturesCache())if(i.uniqueId===e.internalTextureUniqueId){r=i;break}}let s=t=>{if(t&&t._texture&&(t._texture._cachedWrapU=null,t._texture._cachedWrapV=null,t._texture._cachedWrapR=null),e.samplingMode){let i=e.samplingMode;t&&t.samplingMode!==i&&t.updateSamplingMode(i)}if(t&&e.animations)for(let i=0;i<e.animations.length;i++){let r=e.animations[i],a=(0,n.GetClass)("BABYLON.Animation");a&&t.animations.push(a.Parse(r))}t&&t._texture&&(a&&!r&&t._texture._setUniqueId(e.internalTextureUniqueId),t._texture.label=e.internalTextureLabel)};return T.SerializationHelper.Parse(()=>{let a=!0;if(e.noMipmap&&(a=!1),e.mirrorPlane){let i=p._CreateMirror(e.name,e.renderTargetSize,t,a);return i._waitingRenderList=e.renderList,i.mirrorPlane=c.Plane.FromArray(e.mirrorPlane),s(i),i}if(e.isRenderTarget&&!e.base64String){let i=null;if(e.isCube){if(t.reflectionProbes)for(let i=0;i<t.reflectionProbes.length;i++){let r=t.reflectionProbes[i];if(r.name===e.name)return r.cubeTexture}}else(i=p._CreateRenderTargetTexture(e.name,e.renderTargetSize,t,a,e._creationFlags??0))._waitingRenderList=e.renderList;return s(i),i}if(e.isVideo){let r=p._CreateVideoTexture(i+(e.url||e.name),i+(e.src||e.url),t,a,e.invertY,e.samplingMode,e.settings||{});return s(r),r}{let n;if("string"==typeof e.base64String&&e.base64String&&!r){let i={buffer:e.base64String,noMipmap:!a,invertY:e.invertY,samplingMode:e.samplingMode,useSRGBBuffer:e._useSRGBBuffer??!1,creationFlags:e._creationFlags??0,onLoad:()=>{s(n)}},r=e.base64String,o=r.startsWith("data:")?r.substring(5):r;(n=p.CreateFromBase64String("",o,t,i)).name=e.name}else{let o;o=e.name&&(e.name.indexOf("://")>0||e.name.startsWith("data:"))?e.name:i+e.name,e.url&&(e.url.startsWith("data:")||p.UseSerializedUrlIfAny)&&(o=e.url),n=new p(o,t,{noMipmap:!a,invertY:e.invertY,samplingMode:e.samplingMode,useSRGBBuffer:e._useSRGBBuffer??!1,creationFlags:e._creationFlags??0,onLoad:()=>{s(n)},internalTexture:r})}return n}},e,t)}static CreateFromBase64String(e,t,i,r,a,s=p.TRILINEAR_SAMPLINGMODE,n=null,o=null,l=5,h,c){return new p("data:"+t,i,r,a,s,n,o,e,!1,l,void 0,void 0,h,c)}static LoadFromDataString(e,t,i,r=!1,a,s=!0,n=p.TRILINEAR_SAMPLINGMODE,o=null,l=null,h=5,c,d){return"data:"!==e.substring(0,5)&&(e="data:"+e),new p(e,i,a,s,n,o,l,t,r,h,void 0,void 0,c,d)}}p.SerializeBuffers=!0,p.ForceSerializeBuffers=!1,p.OnTextureLoadErrorObservable=new r.Observable,p._SerializeInternalTextureUniqueId=!1,p._CubeTextureParser=(e,t,i)=>{throw(0,o._WarnImport)("CubeTexture")},p._CreateMirror=(e,t,i,r)=>{throw(0,o._WarnImport)("MirrorTexture")},p._CreateRenderTargetTexture=(e,t,i,r,a)=>{throw(0,o._WarnImport)("RenderTargetTexture")},p.NEAREST_SAMPLINGMODE=1,p.NEAREST_NEAREST_MIPLINEAR=8,p.BILINEAR_SAMPLINGMODE=2,p.LINEAR_LINEAR_MIPNEAREST=11,p.TRILINEAR_SAMPLINGMODE=3,p.LINEAR_LINEAR_MIPLINEAR=3,p.NEAREST_NEAREST_MIPNEAREST=4,p.NEAREST_LINEAR_MIPNEAREST=5,p.NEAREST_LINEAR_MIPLINEAR=6,p.NEAREST_LINEAR=7,p.NEAREST_NEAREST=1,p.LINEAR_NEAREST_MIPNEAREST=9,p.LINEAR_NEAREST_MIPLINEAR=10,p.LINEAR_LINEAR=2,p.LINEAR_NEAREST=12,p.EXPLICIT_MODE=0,p.SPHERICAL_MODE=1,p.PLANAR_MODE=2,p.CUBIC_MODE=3,p.PROJECTION_MODE=4,p.SKYBOX_MODE=5,p.INVCUBIC_MODE=6,p.EQUIRECTANGULAR_MODE=7,p.FIXED_EQUIRECTANGULAR_MODE=8,p.FIXED_EQUIRECTANGULAR_MIRRORED_MODE=9,p.CLAMP_ADDRESSMODE=0,p.WRAP_ADDRESSMODE=1,p.MIRROR_ADDRESSMODE=2,p.UseSerializedUrlIfAny=!1,(0,t.__decorate)([(0,i.serialize)()],p.prototype,"url",void 0),(0,t.__decorate)([(0,i.serialize)()],p.prototype,"uOffset",void 0),(0,t.__decorate)([(0,i.serialize)()],p.prototype,"vOffset",void 0),(0,t.__decorate)([(0,i.serialize)()],p.prototype,"uScale",void 0),(0,t.__decorate)([(0,i.serialize)()],p.prototype,"vScale",void 0),(0,t.__decorate)([(0,i.serialize)()],p.prototype,"uAng",void 0),(0,t.__decorate)([(0,i.serialize)()],p.prototype,"vAng",void 0),(0,t.__decorate)([(0,i.serialize)()],p.prototype,"wAng",void 0),(0,t.__decorate)([(0,i.serialize)()],p.prototype,"uRotationCenter",void 0),(0,t.__decorate)([(0,i.serialize)()],p.prototype,"vRotationCenter",void 0),(0,t.__decorate)([(0,i.serialize)()],p.prototype,"wRotationCenter",void 0),(0,t.__decorate)([(0,i.serialize)()],p.prototype,"homogeneousRotationInUVTransform",void 0),(0,t.__decorate)([(0,i.serialize)()],p.prototype,"isBlocking",null);let g=!1;e.s(["RegisterTexture",0,function(){g||(g=!0,(0,n.RegisterClass)("BABYLON.Texture",p),T.SerializationHelper._TextureParser=p.Parse)},"Texture",0,p],67374)},13313,e=>{"use strict";var t,i,r=e.i(29711),a=e.i(83464),s=e.i(67374),n=e.i(58727);function o(){let e=null;onmessage=t=>{if("init"===t.data.action){if(t.data.url)try{importScripts(t.data.url)}catch(e){postMessage({action:"error",error:e})}e||(e=BASIS({wasmBinary:t.data.wasmBinary})),null!==e&&e.then(e=>{BASIS=e,e.initializeBasis(),postMessage({action:"init"})})}else if("transcode"===t.data.action){var i,r;let e,a=t.data.config,s=t.data.imageData,n=new BASIS.BasisFile(s),o=function(e){let t=e.getHasAlpha(),i=e.getNumImages(),r=[];for(let t=0;t<i;t++){let i={levels:[]},a=e.getNumLevels(t);for(let r=0;r<a;r++){let a={width:e.getImageWidth(t,r),height:e.getImageHeight(t,r)};i.levels.push(a)}r.push(i)}return{hasAlpha:t,images:r}}(n),l=t.data.ignoreSupportedFormats?null:(i=t.data.config,r=o,e=null,i.supportedCompressionFormats&&(e=i.supportedCompressionFormats.astc?10:i.supportedCompressionFormats.bc7?6:i.supportedCompressionFormats.s3tc?r.hasAlpha?3:2:i.supportedCompressionFormats.pvrtc?r.hasAlpha?9:8:i.supportedCompressionFormats.etc2?1:14*!i.supportedCompressionFormats.etc1),e),h=!1;null===l&&(h=!0,l=o.hasAlpha?3:2);let c=!0;n.startTranscoding()||(c=!1);let d=[];for(let e=0;e<o.images.length&&c;e++){let t=o.images[e];if(void 0===a.loadSingleImage||a.loadSingleImage===e){let i=t.levels.length;!1===a.loadMipmapLevels&&(i=1);for(let r=0;r<i;r++){let i=t.levels[r],a=function(e,t,i,r,a){let s=new Uint8Array(e.getImageTranscodedSizeInBytes(t,i,r));return e.transcodeImage(s,t,i,r,1,0)?(a&&(s=function(e,t,i){let r=new Uint16Array(4),a=new Uint16Array(t*i),s=t/4,n=i/4;for(let i=0;i<n;i++)for(let n=0;n<s;n++){let o=0+8*(i*s+n);r[0]=e[o]|e[o+1]<<8,r[1]=e[o+2]|e[o+3]<<8,r[2]=(2*(31&r[0])+ +(31&r[1]))/3|(2*(2016&r[0])+ +(2016&r[1]))/3&2016|(2*(63488&r[0])+ +(63488&r[1]))/3&63488,r[3]=(2*(31&r[1])+ +(31&r[0]))/3|(2*(2016&r[1])+ +(2016&r[0]))/3&2016|(2*(63488&r[1])+ +(63488&r[0]))/3&63488;for(let s=0;s<4;s++){let l=e[o+4+s],h=(4*i+s)*t+4*n;a[h++]=r[3&l],a[h++]=r[l>>2&3],a[h++]=r[l>>4&3],a[h]=r[l>>6&3]}}return a}(s,e.getImageWidth(t,i)+3&-4,e.getImageHeight(t,i)+3&-4)),s):null}(n,e,r,l,h);if(!a){c=!1;break}i.transcodedPixels=a,d.push(i.transcodedPixels.buffer)}}}n.close(),n.delete(),h&&(l=-1),c?postMessage({action:"transcode",success:c,id:t.data.id,fileInfo:o,format:l},d):postMessage({action:"transcode",success:c,id:t.data.id})}}}async function l(e,t,i){return await new Promise((a,s)=>{let n=t=>{"init"===t.data.action?(e.removeEventListener("message",n),a(e)):"error"===t.data.action&&s(t.data.error||"error initializing worker")};e.addEventListener("message",n),e.postMessage({action:"init",url:i?r.Tools.GetBabylonScriptURL(i):void 0,wasmBinary:t},[t])})}(t=i||(i={}))[t.cTFETC1=0]="cTFETC1",t[t.cTFETC2=1]="cTFETC2",t[t.cTFBC1=2]="cTFBC1",t[t.cTFBC3=3]="cTFBC3",t[t.cTFBC4=4]="cTFBC4",t[t.cTFBC5=5]="cTFBC5",t[t.cTFBC7=6]="cTFBC7",t[t.cTFPVRTC1_4_RGB=8]="cTFPVRTC1_4_RGB",t[t.cTFPVRTC1_4_RGBA=9]="cTFPVRTC1_4_RGBA",t[t.cTFASTC_4x4=10]="cTFASTC_4x4",t[t.cTFATC_RGB=11]="cTFATC_RGB",t[t.cTFATC_RGBA_INTERPOLATED_ALPHA=12]="cTFATC_RGBA_INTERPOLATED_ALPHA",t[t.cTFRGBA32=13]="cTFRGBA32",t[t.cTFRGB565=14]="cTFRGB565",t[t.cTFBGR565=15]="cTFBGR565",t[t.cTFRGBA4444=16]="cTFRGBA4444",t[t.cTFFXT1_RGB=17]="cTFFXT1_RGB",t[t.cTFPVRTC2_4_RGB=18]="cTFPVRTC2_4_RGB",t[t.cTFPVRTC2_4_RGBA=19]="cTFPVRTC2_4_RGBA",t[t.cTFETC2_EAC_R11=20]="cTFETC2_EAC_R11",t[t.cTFETC2_EAC_RG11=21]="cTFETC2_EAC_RG11";let h={JSModuleURL:`${r.Tools._DefaultCdnUrl}/basisTranscoder/1/basis_transcoder.js`,WasmModuleURL:`${r.Tools._DefaultCdnUrl}/basisTranscoder/1/basis_transcoder.wasm`},c=null,d=null,u=0,_=async()=>(c||(c=new Promise((e,t)=>{d?e(d):r.Tools.LoadFileAsync(r.Tools.GetBabylonScriptURL(h.WasmModuleURL)).then(i=>{if("function"!=typeof URL)return t("Basis transcoder requires an environment with a URL constructor");l(d=new Worker(URL.createObjectURL(new Blob([`(${o})()`],{type:"application/javascript"}))),i,h.JSModuleURL).then(e,t)}).catch(t)})),await c),f=async(e,t)=>{let i=e instanceof ArrayBuffer?new Uint8Array(e):e;return await new Promise((e,r)=>{_().then(()=>{let a=u++,s=t=>{"transcode"===t.data.action&&t.data.id===a&&(d.removeEventListener("message",s),t.data.success?e(t.data):r("Transcode is not supported on this device"))};d.addEventListener("message",s);let n=new Uint8Array(i.byteLength);n.set(new Uint8Array(i.buffer,i.byteOffset,i.byteLength)),d.postMessage({action:"transcode",id:a,imageData:n,config:t,ignoreSupportedFormats:!1},[n.buffer])},e=>{r(e)})})},m=(e,t)=>{let i=t._gl?.TEXTURE_2D;e.isCube&&(i=t._gl?.TEXTURE_CUBE_MAP),t._bindTextureDirectly(i,e,!0)},T=(e,t)=>{let r=e.getEngine();for(let o=0;o<t.fileInfo.images.length;o++){let l=t.fileInfo.images[o].levels[0];if(e._invertVScale=e.invertY,-1===t.format||t.format===i.cTFRGB565)if(e.type=10,e.format=4,r._features.basisNeedsPOT&&(Math.log2(l.width)%1!=0||Math.log2(l.height)%1!=0)){let t=new n.InternalTexture(r,2);e._invertVScale=e.invertY,t.type=10,t.format=4,t.width=l.width+3&-4,t.height=l.height+3&-4,m(t,r),r._uploadDataToTextureDirectly(t,new Uint16Array(l.transcodedPixels.buffer),o,0,4,!0),r._rescaleTexture(t,e,r.scenes[0],r._getInternalFormat(4),()=>{r._releaseTexture(t),m(e,r)})}else e._invertVScale=!e.invertY,e.width=l.width+3&-4,e.height=l.height+3&-4,e.samplingMode=2,m(e,r),r._uploadDataToTextureDirectly(e,new Uint16Array(l.transcodedPixels.buffer),o,0,4,!0);else{e.width=l.width,e.height=l.height,e.generateMipMaps=t.fileInfo.images[o].levels.length>1;let i=p.GetInternalFormatFromBasisFormat(t.format,r);e.format=i,m(e,r);let n=t.fileInfo.images[o].levels;for(let t=0;t<n.length;t++){let a=n[t];r._uploadCompressedDataToTextureDirectly(e,i,a.width,a.height,a.transcodedPixels,o,t)}r._features.basisNeedsPOT&&(Math.log2(e.width)%1!=0||Math.log2(e.height)%1!=0)&&(a.Logger.Warn("Loaded .basis texture width and height are not a power of two. Texture wrapping will be set to Texture.CLAMP_ADDRESSMODE as other modes are not supported with non power of two dimensions in webGL 1."),e._cachedWrapU=s.Texture.CLAMP_ADDRESSMODE,e._cachedWrapV=s.Texture.CLAMP_ADDRESSMODE)}}},p={JSModuleURL:h.JSModuleURL,WasmModuleURL:h.WasmModuleURL,GetInternalFormatFromBasisFormat:(e,t)=>{let r;switch(e){case i.cTFETC1:r=36196;break;case i.cTFBC1:r=33776;break;case i.cTFBC4:r=33779;break;case i.cTFASTC_4x4:r=37808;break;case i.cTFETC2:r=37496;break;case i.cTFBC7:r=36492}if(void 0===r)throw"The chosen Basis transcoder format is not currently supported";return r},TranscodeAsync:f,LoadTextureFromTranscodeResult:T};e.s(["_BasisTextureLoader",0,class{constructor(){this.supportCascades=!1}loadCubeData(e,t,i,a,s){if(Array.isArray(e))return;let n=t.getEngine().getCaps();f(e,{supportedCompressionFormats:{etc1:!!n.etc1,s3tc:!!n.s3tc,pvrtc:!!n.pvrtc,etc2:!!n.etc2,astc:!!n.astc,bc7:!!n.bptc}}).then(e=>{let i=e.fileInfo.images[0].levels.length>1&&t.generateMipMaps;T(t,e),t.getEngine()._setCubeMapTextureParams(t,i),t.isReady=!0,t.onLoadedObservable.notifyObservers(t),t.onLoadedObservable.clear(),a&&a()}).catch(e=>{r.Tools.Warn("Failed to transcode Basis file, transcoding may not be supported on this device"),t.isReady=!0,s&&s(e)})}loadData(e,t,i){let a=t.getEngine().getCaps();f(e,{supportedCompressionFormats:{etc1:!!a.etc1,s3tc:!!a.s3tc,pvrtc:!!a.pvrtc,etc2:!!a.etc2,astc:!!a.astc,bc7:!!a.bptc}}).then(e=>{let r=e.fileInfo.images[0].levels[0],a=e.fileInfo.images[0].levels.length>1&&t.generateMipMaps;i(r.width,r.height,a,-1!==e.format,()=>{T(t,e)})}).catch(e=>{r.Tools.Warn("Failed to transcode Basis file, transcoding may not be supported on this device"),r.Tools.Warn(`Failed to transcode Basis file: ${e}`),i(0,0,!1,!1,()=>{},!0)})}}],13313)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1733,e=>{"use strict";var t,s;(s=t||(t={})).Animation="Animation",s.AnimationGroup="AnimationGroup",s.Mesh="Mesh",s.Material="Material",s.Camera="Camera",s.Light="Light",e.s(["GetFlowGraphAssetWithType",0,function(e,t,s,i){switch(t){case"Animation":return i?e.animations.find(e=>e.uniqueId===s)??null:e.animations[s]??null;case"AnimationGroup":return i?e.animationGroups.find(e=>e.uniqueId===s)??null:e.animationGroups[s]??null;case"Mesh":return i?e.meshes.find(e=>e.uniqueId===s)??null:e.meshes[s]??null;case"Material":return i?e.materials.find(e=>e.uniqueId===s)??null:e.materials[s]??null;case"Camera":return i?e.cameras.find(e=>e.uniqueId===s)??null:e.cameras[s]??null;case"Light":return i?e.lights.find(e=>e.uniqueId===s)??null:e.lights[s]??null;default:return null}}])},21439,e=>{"use strict";var t,s,i,n,o,r,a=e.i(57554),l=e.i(16147),h=e.i(40220),c=e.i(53477),d=e.i(34032),u=e.i(1733),_=e.i(83464);(t=n||(n={})).ExecuteBlock="ExecuteBlock",t.ExecuteEvent="ExecuteEvent",t.TriggerConnection="TriggerConnection",t.ContextVariableSet="ContextVariableSet",t.GlobalVariableSet="GlobalVariableSet",t.GlobalVariableDelete="GlobalVariableDelete",t.GlobalVariableGet="GlobalVariableGet",t.AddConnection="AddConnection",t.GetConnectionValue="GetConnectionValue",t.SetConnectionValue="SetConnectionValue",t.ActivateSignal="ActivateSignal",t.ContextVariableGet="ContextVariableGet";class g{constructor(){this.logToConsole=!1,this.log=[]}addLogItem(e){if(e.time||(e.time=Date.now()),this.log.push(e),this.logToConsole){let t=e.payload?.value;"object"==typeof t&&t.getClassName?_.Logger.Log(`[FGLog] ${e.className}:${e.uniqueId.split("-")[0]} ${e.action} - ${JSON.stringify(t.getClassName())}: ${t.toString()}`):_.Logger.Log(`[FGLog] ${e.className}:${e.uniqueId.split("-")[0]} ${e.action} - ${JSON.stringify(e.payload)}`)}}getItemsOfType(e){return this.log.filter(t=>t.action===e)}}class p{get enableLogging(){return this._enableLogging}set enableLogging(e){this._enableLogging!==e&&(this._enableLogging=e,this._enableLogging?(this.logger=new g,this.logger.logToConsole=!0):this.logger=null)}constructor(e){this.uniqueId=(0,c.RandomGUID)(),this.name="",this._userVariables={},this._variableTypes={},this._executionVariables={},this._globalContextVariables={},this._connectionValues={},this._pendingBlocks=[],this._executionId=0,this.onNodeExecutedObservable=new a.Observable,this.onBreakpointHitObservable=new a.Observable,this.breakpointPredicate=null,this._pendingActivation=null,this._stepMode=!1,this._skipBreakpointForBlockId=null,this.treatDataAsRightHanded=!1,this._enableLogging=!1,this._configuration=e,this.assetsContext=e.assetsContext??e.scene}hasVariable(e){return e in this._userVariables}setVariable(e,t){this._userVariables[e]=t,this.logger?.addLogItem({time:Date.now(),className:this.getClassName(),uniqueId:this.uniqueId,action:"ContextVariableSet",payload:{name:e,value:t}})}getAsset(e,t){return(0,u.GetFlowGraphAssetWithType)(this.assetsContext,e,t)}getVariable(e){return this.logger?.addLogItem({time:Date.now(),className:this.getClassName(),uniqueId:this.uniqueId,action:"ContextVariableGet",payload:{name:e,value:this._userVariables[e]}}),this._userVariables[e]}get userVariables(){return this._userVariables}setVariableType(e,t){this._variableTypes[e]=t}getVariableType(e){return this._variableTypes[e]}get variableTypes(){return this._variableTypes}getScene(){return this._configuration.scene}_getUniqueIdPrefixedName(e,t){return`${e.uniqueId}_${t}`}_getGlobalContextVariable(e,t){return(this.logger?.addLogItem({time:Date.now(),className:this.getClassName(),uniqueId:this.uniqueId,action:"GlobalVariableGet",payload:{name:e,defaultValue:t,possibleValue:this._globalContextVariables[e]}}),this._hasGlobalContextVariable(e))?this._globalContextVariables[e]:t}_setGlobalContextVariable(e,t){this.logger?.addLogItem({time:Date.now(),className:this.getClassName(),uniqueId:this.uniqueId,action:"GlobalVariableSet",payload:{name:e,value:t}}),this._globalContextVariables[e]=t}_deleteGlobalContextVariable(e){this.logger?.addLogItem({time:Date.now(),className:this.getClassName(),uniqueId:this.uniqueId,action:"GlobalVariableDelete",payload:{name:e}}),delete this._globalContextVariables[e]}_hasGlobalContextVariable(e){return e in this._globalContextVariables}_setExecutionVariable(e,t,s){this._executionVariables[this._getUniqueIdPrefixedName(e,t)]=s}_getExecutionVariable(e,t,s){return this._hasExecutionVariable(e,t)?this._executionVariables[this._getUniqueIdPrefixedName(e,t)]:s}_deleteExecutionVariable(e,t){delete this._executionVariables[this._getUniqueIdPrefixedName(e,t)]}_hasExecutionVariable(e,t){return this._getUniqueIdPrefixedName(e,t)in this._executionVariables}_hasConnectionValue(e){return e.uniqueId in this._connectionValues}_setConnectionValue(e,t){this._connectionValues[e.uniqueId]=t,this.logger?.addLogItem({time:Date.now(),className:this.getClassName(),uniqueId:this.uniqueId,action:"SetConnectionValue",payload:{connectionPointId:e.uniqueId,value:t}})}_setConnectionValueByKey(e,t){this._connectionValues[e]=t}_getConnectionValue(e){return this.logger?.addLogItem({time:Date.now(),className:this.getClassName(),uniqueId:this.uniqueId,action:"GetConnectionValue",payload:{connectionPointId:e.uniqueId,value:this._connectionValues[e.uniqueId]}}),this._connectionValues[e.uniqueId]}get configuration(){return this._configuration}get hasPendingBlocks(){return this._pendingBlocks.length>0}_addPendingBlock(e){this._pendingBlocks.includes(e)||(this._pendingBlocks.push(e),this._pendingBlocks.sort((e,t)=>e.priority-t.priority))}_removePendingBlock(e){let t=this._pendingBlocks.indexOf(e);-1!==t&&this._pendingBlocks.splice(t,1)}_clearPendingBlocks(){for(let e of this._pendingBlocks)e._cancelPendingTasks(this);this._pendingBlocks.length=0}_notifyExecuteNode(e){this.onNodeExecutedObservable.notifyObservers(e),this.logger?.addLogItem({time:Date.now(),className:e.getClassName(),uniqueId:e.uniqueId,action:"ExecuteBlock"})}_notifyOnTick(e){for(let t of(this._setGlobalContextVariable("timeSinceStart",e.timeSinceStart),this._setGlobalContextVariable("deltaTime",e.deltaTime),this._pendingBlocks))t._executeOnTick?.(this)}_increaseExecutionId(){this._executionId++}get executionId(){return this._executionId}_shouldBreak(e,t){return this._skipBreakpointForBlockId===e.uniqueId?(this._skipBreakpointForBlockId=null,!1):!!this._pendingActivation||(this._stepMode?(this._stepMode=!1,this._pendingActivation={block:e,context:this,signal:t},this.onBreakpointHitObservable.notifyObservers(this._pendingActivation),!0):!!(this.breakpointPredicate&&this.breakpointPredicate(e))&&(this._pendingActivation={block:e,context:this,signal:t},this.onBreakpointHitObservable.notifyObservers(this._pendingActivation),!0))}get pendingActivation(){return this._pendingActivation}continueExecution(){let e=this._pendingActivation;e&&(this._pendingActivation=null,this._skipBreakpointForBlockId=e.block.uniqueId,e.signal._activateSignal(this),this._skipBreakpointForBlockId=null)}stepExecution(){let e=this._pendingActivation;e&&(this._pendingActivation=null,this._stepMode=!0,this._skipBreakpointForBlockId=e.block.uniqueId,e.signal._activateSignal(this),this._stepMode=!1,this._skipBreakpointForBlockId=null)}_clearPendingActivation(){this._pendingActivation=null,this._stepMode=!1,this._skipBreakpointForBlockId=null}serialize(e={},t=d.defaultValueSerializationFunction){for(let s in e.uniqueId=this.uniqueId,e.name=this.name,e._userVariables={},this._userVariables)t(s,this._userVariables[s],e._userVariables);for(let s in Object.keys(this._variableTypes).length>0&&(e._variableTypes={...this._variableTypes}),e._connectionValues={},this._connectionValues)t(s,this._connectionValues[s],e._connectionValues);this.assetsContext!==this.getScene()&&(e._assetsContext={meshes:this.assetsContext.meshes.map(e=>e.id),materials:this.assetsContext.materials.map(e=>e.id),textures:this.assetsContext.textures.map(e=>e.name),animations:this.assetsContext.animations.map(e=>e.name),lights:this.assetsContext.lights.map(e=>e.id),cameras:this.assetsContext.cameras.map(e=>e.id),sounds:this.assetsContext.sounds?.map(e=>e.name),skeletons:this.assetsContext.skeletons.map(e=>e.id),particleSystems:this.assetsContext.particleSystems.map(e=>e.name),geometries:this.assetsContext.geometries.map(e=>e.id),multiMaterials:this.assetsContext.multiMaterials.map(e=>e.id),transformNodes:this.assetsContext.transformNodes.map(e=>e.id)})}getClassName(){return"FlowGraphContext"}}(0,l.__decorate)([(0,h.serialize)()],p.prototype,"uniqueId",void 0),(0,l.__decorate)([(0,h.serialize)()],p.prototype,"name",void 0);var v=e.i(82721),b=e.i(42561),f=e.i(11437),m=e.i(70463),y=e.i(87986);class x{constructor(e){this.onEventTriggeredObservable=new a.Observable,this.sceneReadyTriggered=!1,this._pointerUnderMeshState={},this._onBlurHandler=null,this.pressedKeys=new Set,this._startingTime=0,this._scene=e,this._initialize()}_initialize(){this._sceneReadyObserver=this._scene.onReadyObservable.addOnce(()=>{this.sceneReadyTriggered||(this.onEventTriggeredObservable.notifyObservers({type:"SceneReady"}),this.sceneReadyTriggered=!0)}),this._sceneDisposeObserver=this._scene.onDisposeObservable.add(()=>{this.onEventTriggeredObservable.notifyObservers({type:"SceneDispose"})}),this._sceneOnBeforeRenderObserver=this._scene.onBeforeRenderObservable.add(()=>{let e=this._scene.getEngine().getDeltaTime()/1e3;this.onEventTriggeredObservable.notifyObservers({type:"SceneBeforeRender",payload:{timeSinceStart:this._startingTime,deltaTime:e}}),this._startingTime+=e}),this._meshPickedObserver=this._scene.onPointerObservable.add(e=>{this.onEventTriggeredObservable.notifyObservers({type:"MeshPick",payload:e})},f.PointerEventTypes.POINTERPICK),this._pointerDownObserver=this._scene.onPointerObservable.add(e=>{this.onEventTriggeredObservable.notifyObservers({type:"PointerDown",payload:e})},f.PointerEventTypes.POINTERDOWN),this._pointerUpObserver=this._scene.onPointerObservable.add(e=>{this.onEventTriggeredObservable.notifyObservers({type:"PointerUp",payload:e})},f.PointerEventTypes.POINTERUP),this._pointerMoveObserver=this._scene.onPointerObservable.add(e=>{this.onEventTriggeredObservable.notifyObservers({type:"PointerMove",payload:e})},f.PointerEventTypes.POINTERMOVE),this._meshUnderPointerObserver=this._scene.onMeshUnderPointerUpdatedObservable.add(e=>{let t=e.pointerId,s=e.mesh,i=this._pointerUnderMeshState[t];!i&&s?this.onEventTriggeredObservable.notifyObservers({type:"PointerOver",payload:{pointerId:t,mesh:s}}):i&&!s?this.onEventTriggeredObservable.notifyObservers({type:"PointerOut",payload:{pointerId:t,mesh:i}}):i&&s&&i!==s&&(this.onEventTriggeredObservable.notifyObservers({type:"PointerOut",payload:{pointerId:t,mesh:i,over:s}}),this.onEventTriggeredObservable.notifyObservers({type:"PointerOver",payload:{pointerId:t,mesh:s,out:i}})),this._pointerUnderMeshState[t]=s},f.PointerEventTypes.POINTERMOVE),this._keyDownObserver=this._scene.onKeyboardObservable.add(e=>{let t=e.event.code;this.pressedKeys.add(t),x._COMMAND_OR_CTRL_CODES.has(t)&&this.pressedKeys.add("CommandOrControl"),this.onEventTriggeredObservable.notifyObservers({type:"KeyDown",payload:e})},m.KeyboardEventTypes.KEYDOWN),this._keyUpObserver=this._scene.onKeyboardObservable.add(e=>{let t=e.event.code;if(this.pressedKeys.delete(t),x._COMMAND_OR_CTRL_CODES.has(t)){let e=!1;for(let s of Array.from(x._COMMAND_OR_CTRL_CODES))if(s!==t&&this.pressedKeys.has(s)){e=!0;break}e||this.pressedKeys.delete("CommandOrControl")}this.onEventTriggeredObservable.notifyObservers({type:"KeyUp",payload:e})},m.KeyboardEventTypes.KEYUP);let e=this._scene.getEngine().getRenderingCanvas();e&&(this._onBlurHandler=()=>this.pressedKeys.clear(),e.addEventListener("blur",this._onBlurHandler))}dispose(){if(this._sceneDisposeObserver?.remove(),this._sceneReadyObserver?.remove(),this._sceneOnBeforeRenderObserver?.remove(),this._meshPickedObserver?.remove(),this._meshUnderPointerObserver?.remove(),this._pointerDownObserver?.remove(),this._pointerUpObserver?.remove(),this._pointerMoveObserver?.remove(),this._keyDownObserver?.remove(),this._keyUpObserver?.remove(),this._onBlurHandler){let e=this._scene.getEngine().getRenderingCanvas();e?.removeEventListener("blur",this._onBlurHandler),this._onBlurHandler=null}this.pressedKeys.clear(),this.onEventTriggeredObservable.clear()}}x._COMMAND_OR_CTRL_CODES=new Set(y._IsMacPlatform?["MetaLeft","MetaRight"]:["ControlLeft","ControlRight"]);var C=e.i(92719);(s=o||(o={}))[s.Error=0]="Error",s[s.Warning=1]="Warning";let O=new Set(["number","FlowGraphInteger","boolean"]),k=new Set(["Vector4","Quaternion"]),E=new Set(["Color3","Color4"]);function I(e){return e instanceof C.FlowGraphEventBlock}(i=r||(r={}))[i.Stopped=0]="Stopped",i[i.Started=1]="Started",i[i.Paused=2]="Paused";class B{get scene(){return this._scene}get coordinator(){return this._coordinator}get sceneEventCoordinator(){return this._sceneEventCoordinator}get state(){return this._state}set state(e){this._state=e,this.onStateChangedObservable.notifyObservers(e)}constructor(e){this.onStateChangedObservable=new a.Observable,this._eventBlocks={SceneReady:[],SceneDispose:[],SceneBeforeRender:[],MeshPick:[],PointerDown:[],PointerUp:[],PointerMove:[],PointerOver:[],PointerOut:[],KeyDown:[],KeyUp:[],SceneAfterRender:[],NoTrigger:[]},this._allBlocks=[],this._executionContexts=[],this._state=0,this._scene=e.scene,this._sceneEventCoordinator=new x(this._scene),this._coordinator=e.coordinator,this.name=e.name??"Graph",this.uniqueId=e.uniqueId??(0,c.RandomGUID)()}_attachEventObserver(){this._eventObserver||(this._eventObserver=this._sceneEventCoordinator.onEventTriggeredObservable.add(e=>{if("SceneDispose"===e.type)return void this.dispose();if(1===this.state){for(let t of this._executionContexts)for(let s of this._getContextualOrder(e.type,t))if(!s._executeEvent(t,e.payload))break;switch(e.type){case"SceneReady":this._sceneEventCoordinator.sceneReadyTriggered=!0;break;case"SceneBeforeRender":for(let t of this._executionContexts)t._notifyOnTick(e.payload)}}}))}_detachEventObserver(){this._eventObserver?.remove(),this._eventObserver=null}setScene(e){if(e!==this._scene){for(let t of(1===this.state&&this.stop(),this._detachEventObserver(),this._sceneEventCoordinator.dispose(),this._executionContexts.length=0,this._scene=e,this._scene.constantlyUpdateMeshUnderPointer=!0,this._allBlocks))for(let s of t.dataInputs)s._reresolveDefaultValueForScene(e);this._sceneEventCoordinator=new x(this._scene),this._attachEventObserver()}}createContext(){let e=new p({scene:this._scene,coordinator:this._coordinator,sceneEventCoordinator:this._sceneEventCoordinator});return this._executionContexts.push(e),e}getContext(e){return this._executionContexts[e]}get contextCount(){return this._executionContexts.length}removeContext(e){if(e<0||e>=this._executionContexts.length)return;let[t]=this._executionContexts.splice(e,1);return t._clearPendingBlocks(),t}getAllBlocks(){return this._allBlocks}addBlock(e){-1===this._allBlocks.indexOf(e)&&this._allBlocks.push(e)}removeBlock(e){let t=this._allBlocks.indexOf(e);if(-1!==t&&this._allBlocks.splice(t,1),e instanceof v.FlowGraphExecutionBlock&&"type"in e){let t=this._eventBlocks[e.type];if(t){let s=t.indexOf(e);-1!==s&&t.splice(s,1)}}if(e instanceof b.FlowGraphAsyncExecutionBlock)for(let t of this._executionContexts)e._cancelPendingTasks(t),e._resetAfterCanceled(t);for(let t of e.dataInputs)t.disconnectFromAll();for(let t of e.dataOutputs)t.disconnectFromAll();if(e instanceof v.FlowGraphExecutionBlock){for(let t of e.signalInputs)t.disconnectFromAll();for(let t of e.signalOutputs)t.disconnectFromAll()}}addEventBlock(e){if(this.addBlock(e),("PointerOver"===e.type||"PointerOut"===e.type)&&(this._scene.constantlyUpdateMeshUnderPointer=!0),this._eventBlocks[e.type].push(e),1===this.state)for(let t of this._executionContexts)e._startPendingTasks(t);else this.onStateChangedObservable.addOnce(t=>{if(1===t)for(let t of this._executionContexts)e._startPendingTasks(t)})}stop(){if(0!==this.state){for(let e of(this._detachEventObserver(),this.state=0,this._executionContexts))e._clearPendingBlocks(),e._clearPendingActivation();this._executionContexts.length=0}}pause(){if(1===this.state)for(let e of(this._detachEventObserver(),this.state=2,this._executionContexts))e._clearPendingBlocks()}start(){if(1===this.state)return;let e=2===this.state;0===this._executionContexts.length&&this.createContext(),this._attachEventObserver(),this.state=1,this._startPendingEvents(),e||(this._sceneEventCoordinator.sceneReadyTriggered=!1,this._scene.isReady(!0)?(this._sceneEventCoordinator.sceneReadyTriggered=!0,this._sceneEventCoordinator.onEventTriggeredObservable.notifyObservers({type:"SceneReady"})):this._scene.executeWhenReady(()=>{1!==this.state||this._sceneEventCoordinator.sceneReadyTriggered||(this._sceneEventCoordinator.sceneReadyTriggered=!0,this._sceneEventCoordinator.onEventTriggeredObservable.notifyObservers({type:"SceneReady"}))},!0))}_startPendingEvents(){for(let e of this._executionContexts)for(let t in this._eventBlocks)for(let s of this._getContextualOrder(t,e))s._startPendingTasks(e)}_getContextualOrder(e,t){let s=this._eventBlocks[e].sort((e,t)=>t.initPriority-e.initPriority);if("MeshPick"===e){let e=[];for(let i of s){let n=i.asset.getValue(t),o=0;for(;o<s.length;o++){let e=s[o].asset.getValue(t);if(n&&e&&(0,y._IsDescendantOf)(n,e))break}e.splice(o,0,i)}return e}return s}dispose(){if(0!==this.state){for(let e of(this.state=0,this._executionContexts))e._clearPendingBlocks(),e._clearPendingActivation();for(let e in this._executionContexts.length=0,this._eventBlocks)this._eventBlocks[e].length=0;this._allBlocks.length=0,this._detachEventObserver(),this._sceneEventCoordinator.dispose()}}visitAllBlocks(e){let t=[],s=new Set;for(let e in this._eventBlocks)for(let i of this._eventBlocks[e])t.push(i),s.add(i.uniqueId);for(;t.length>0;){let i=t.pop();for(let n of(e(i),i.dataInputs))for(let e of n._connectedPoint)s.has(e._ownerBlock.uniqueId)||(t.push(e._ownerBlock),s.add(e._ownerBlock.uniqueId));if(i instanceof v.FlowGraphExecutionBlock)for(let e of i.signalOutputs)for(let i of e._connectedPoint)s.has(i._ownerBlock.uniqueId)||(t.push(i._ownerBlock),s.add(i._ownerBlock.uniqueId))}}validate(){return function(e,t){let s=function(e){let t=[],s=new Map,i=e=>{if(t.push(e),e.block){let t=s.get(e.block.uniqueId);t||(t=[],s.set(e.block.uniqueId,t)),t.push(e)}},n=[];for(let t of(e.visitAllBlocks(e=>{n.push(e)}),0===function(e){let t=[];for(let s in e._eventBlocks)for(let i of e._eventBlocks[s])t.push(i);return t}(e).length&&i({severity:0,message:"Graph has no event blocks — nothing will trigger execution."}),n))for(let e of t.dataInputs)e.optional||e.isDisabled||e.isConnected()||i({severity:1,message:`"${e.name}" is not connected and will use its default value.`,block:t,connectionName:e.name});for(let e of n)if(e instanceof v.FlowGraphExecutionBlock){if(I(e))continue;let t=e.signalInputs.find(e=>"in"===e.name);t&&!t.isConnected()&&i({severity:0,message:"Execution block has no incoming signal — it will never execute.",block:e,connectionName:"in"})}for(let e of n)for(let t of e.dataInputs){if(!t.isConnected())continue;let s=t._connectedPoint[0],n=s.richType?.typeName,o=t.richType?.typeName;if(n&&o&&!(n===o||"any"===n||"any"===o||O.has(n)&&O.has(o)||k.has(n)&&k.has(o)||E.has(n)&&E.has(o))){if(void 0!==s.richType.typeTransformer||void 0!==t.richType.typeTransformer)continue;i({severity:1,message:`Type mismatch: "${s._ownerBlock.name}.${s.name}" (${n}) → "${e.name}.${t.name}" (${o}).`,block:e,connectionName:t.name})}}let o=new Set;return e.visitAllBlocks(e=>{o.add(e.uniqueId)}),function(e,t){let s=new Map;for(let t of e)s.set(t.uniqueId,0);let i=new Map;for(let t of e)i.set(t.uniqueId,t);let n=new Set;for(let i of e)0===s.get(i.uniqueId)&&function e(i){for(let o of(s.set(i.uniqueId,1),i.dataInputs))if(o.isConnected())for(let r of o._connectedPoint){let o=r._ownerBlock;if(o instanceof v.FlowGraphExecutionBlock)continue;let a=s.get(o.uniqueId);if(1===a)return n.has(i.uniqueId)||(n.add(i.uniqueId),t({severity:0,message:"Data dependency cycle detected — getValue() will recurse infinitely.",block:i})),n.has(o.uniqueId)||(n.add(o.uniqueId),t({severity:0,message:"Data dependency cycle detected — getValue() will recurse infinitely.",block:o})),!0;0===a&&e(o)}return s.set(i.uniqueId,2),!1}(i)}(n,i),t.sort((e,t)=>e.severity-t.severity),{isValid:t.every(e=>0!==e.severity),issues:t,errorCount:t.filter(e=>0===e.severity).length,warningCount:t.filter(e=>1===e.severity).length,issuesByBlock:s}}(e),i=new Set;for(let n of(e.visitAllBlocks(e=>{i.add(e.uniqueId)}),t))if(!i.has(n.uniqueId)){let e={severity:1,message:"Block is unreachable from any event block.",block:n};s.issues.push(e),s.warningCount++;let t=s.issuesByBlock.get(n.uniqueId);for(let i of(t||(t=[],s.issuesByBlock.set(n.uniqueId,t)),t.push(e),n.dataInputs))if(!i.optional&&!i.isDisabled&&!i.isConnected()){let e={severity:1,message:`"${i.name}" is not connected and will use its default value.`,block:n,connectionName:i.name};s.issues.push(e),s.warningCount++,t.push(e)}if(n instanceof v.FlowGraphExecutionBlock&&!I(n)){let e=n.signalInputs.find(e=>"in"===e.name);if(e&&!e.isConnected()){let e={severity:0,message:"Execution block has no incoming signal — it will never execute.",block:n,connectionName:"in"};s.issues.push(e),s.errorCount++,t.push(e)}}}return s.isValid=s.issues.every(e=>0!==e.severity),s.issues.sort((e,t)=>e.severity-t.severity),s}(this,this._allBlocks)}serialize(e={},t){e.name=this.name,e.uniqueId=this.uniqueId,e.allBlocks=[];let s=new Set,i=t=>{if(s.has(t.uniqueId))return;s.add(t.uniqueId);let i={};t.serialize(i),e.allBlocks.push(i)};for(let e of(this.visitAllBlocks(i),this._allBlocks))i(e);for(let s of(e.executionContexts=[],this._executionContexts)){let i={};s.serialize(i,t),e.executionContexts.push(i)}}}class T{constructor(e){this.config=e,this.dispatchEventsSynchronously=!0,this._flowGraphs=[],this._customEventsMap=new Map,this._eventExecutionCounter=new Map,this._executeOnNextFrame=[],this._eventUniqueId=0,this._disposeObserver=this.config.scene.onDisposeObservable.add(()=>{this.dispose()}),this._onBeforeRenderObserver=this.config.scene.onBeforeRenderObservable.add(()=>{this._eventExecutionCounter.clear();let e=this._executeOnNextFrame.slice(0);if(e.length)for(let t of e){this.notifyCustomEvent(t.id,t.data,!1);let e=this._executeOnNextFrame.findIndex(e=>e.uniqueId===t.uniqueId);-1!==e&&this._executeOnNextFrame.splice(e,1)}});let t=T.SceneCoordinators.get(this.config.scene);t||(t=[],T.SceneCoordinators.set(this.config.scene,t)),t.push(this)}createGraph(e){let t=e??`Graph ${this._flowGraphs.length+1}`,s=new B({scene:this.config.scene,coordinator:this,name:t});return this._flowGraphs.push(s),s}removeGraph(e){let t=this._flowGraphs.indexOf(e);-1!==t&&(e.dispose(),this._flowGraphs.splice(t,1))}start(){for(let e of this._flowGraphs)e.start()}dispose(){for(let e of this._flowGraphs)e.dispose();this._flowGraphs.length=0,this._disposeObserver?.remove(),this._onBeforeRenderObserver?.remove();let e=T.SceneCoordinators.get(this.config.scene)??[],t=e.indexOf(this);-1!==t&&e.splice(t,1)}serialize(e,t){for(let s of(e._flowGraphs=[],this._flowGraphs)){let i={};s.serialize(i,t),e._flowGraphs.push(i)}e.dispatchEventsSynchronously=this.dispatchEventsSynchronously}get flowGraphs(){return this._flowGraphs}getCustomEventObservable(e){let t=this._customEventsMap.get(e);return t||(t=new a.Observable,this._customEventsMap.set(e,t)),t}notifyCustomEvent(e,t,s=!this.dispatchEventsSynchronously){if(s)return void this._executeOnNextFrame.push({id:e,data:t,uniqueId:this._eventUniqueId++});if(this._eventExecutionCounter.has(e)){let t=this._eventExecutionCounter.get(e);if(this._eventExecutionCounter.set(e,t+1),t>=T.MaxEventTypeExecutionPerFrame){t===T.MaxEventTypeExecutionPerFrame&&_.Logger.Warn(`FlowGraphCoordinator: Too many executions of event "${e}".`);return}}else this._eventExecutionCounter.set(e,1);let i=this._customEventsMap.get(e);i&&i.notifyObservers(t)}}T.MaxEventsPerType=30,T.MaxEventTypeExecutionPerFrame=30,T.SceneCoordinators=new Map,e.s(["FlowGraphCoordinator",0,T],21439)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37150,t=>{"use strict";var e=t.i(58667),i=t.i(57554),n=t.i(47867),a=t.i(55250),s=t.i(5382);class o{getClassName(){return"TargetedAnimation"}constructor(t){this.parent=t,this.uniqueId=s.UniqueIdGenerator.UniqueId}serialize(){let t={};return t.animation=this.animation.serialize(),t.targetId=this.target.id,t.targetUniqueId=this.target.uniqueId,t}}class r{get mask(){return this._mask}set mask(t){this._mask!==t&&(this._mask=t,this.syncWithMask(!0))}syncWithMask(t=!1){if(!this.mask&&!t){this._numActiveAnimatables=this._targetedAnimations.length;return}this._numActiveAnimatables=0;for(let t=0;t<this._animatables.length;++t){let e=this._animatables[t];!this.mask||this.mask.disabled||this.mask.retainsTarget(e.target.name)?(this._numActiveAnimatables++,e.paused&&e.restart()):e.paused||e.pause()}}removeUnmaskedAnimations(){if(this.mask&&!this.mask.disabled){for(let t=0;t<this._animatables.length;++t){let e=this._animatables[t];!this.mask.retainsTarget(e.target.name)&&(e.stop(),this._animatables.splice(t,1),--t)}for(let t=0;t<this._targetedAnimations.length;t++){let e=this._targetedAnimations[t];!this.mask.retainsTarget(e.target.name)&&(this._targetedAnimations.splice(t,1),--t)}}}get from(){return this._from}set from(t){if(this._from!==t){this._from=t;for(let t=0;t<this._animatables.length;t++)this._animatables[t].fromFrame=this._from}}get to(){return this._to}set to(t){if(this._to!==t){this._to=t;for(let t=0;t<this._animatables.length;t++)this._animatables[t].toFrame=this._to}}get isStarted(){return this._isStarted}get isPlaying(){return this._isStarted&&!this._isPaused}get speedRatio(){return this._speedRatio}set speedRatio(t){if(this._speedRatio!==t){this._speedRatio=t;for(let t=0;t<this._animatables.length;t++)this._animatables[t].speedRatio=this._speedRatio}}get loopAnimation(){return this._loopAnimation}set loopAnimation(t){if(this._loopAnimation!==t){this._loopAnimation=t;for(let t=0;t<this._animatables.length;t++)this._animatables[t].loopAnimation=this._loopAnimation}}get isAdditive(){return this._isAdditive}set isAdditive(t){if(this._isAdditive!==t){this._isAdditive=t;for(let t=0;t<this._animatables.length;t++)this._animatables[t].isAdditive=this._isAdditive}}get weight(){return this._weight}set weight(t){this._weight!==t&&(this._weight=t,this.setWeightForAllAnimatables(this._weight))}get targetedAnimations(){return this._targetedAnimations}get animatables(){return this._animatables}get children(){return this._targetedAnimations}get playOrder(){return this._playOrder}set playOrder(t){if(this._playOrder!==t&&(this._playOrder=t,this._animatables.length>0)){for(let t=0;t<this._animatables.length;t++)this._animatables[t].playOrder=this._playOrder;this._scene.sortActiveAnimatables()}}get enableBlending(){return this._enableBlending}set enableBlending(t){if(this._enableBlending!==t&&(this._enableBlending=t,null!==t))for(let e=0;e<this._targetedAnimations.length;++e)this._targetedAnimations[e].animation.enableBlending=t}get blendingSpeed(){return this._blendingSpeed}set blendingSpeed(t){if(this._blendingSpeed!==t&&(this._blendingSpeed=t,null!==t))for(let e=0;e<this._targetedAnimations.length;++e)this._targetedAnimations[e].animation.blendingSpeed=t}getLength(t,e){t=t??this._from,e=e??this._to;let i=this.targetedAnimations[0].animation.framePerSecond*this._speedRatio;return(e-t)/i}getScene(){return this._scene}constructor(t,e=null,a=-1,s=0){this.name=t,this._targetedAnimations=[],this._animatables=[],this._from=Number.MAX_VALUE,this._to=-Number.MAX_VALUE,this._speedRatio=1,this._loopAnimation=!1,this._isAdditive=!1,this._weight=-1,this._playOrder=0,this._enableBlending=null,this._blendingSpeed=null,this._numActiveAnimatables=0,this._shouldStart=!0,this._parentContainer=null,this.onAnimationEndObservable=new i.Observable,this.onAnimationLoopObservable=new i.Observable,this.onAnimationGroupLoopObservable=new i.Observable,this.onAnimationGroupEndObservable=new i.Observable,this.onAnimationGroupPauseObservable=new i.Observable,this.onAnimationGroupPlayObservable=new i.Observable,this.metadata=null,this._mask=null,this._animationLoopFlags=[],this._scene=e||n.EngineStore.LastCreatedScene,this._weight=a,this._playOrder=s,this.uniqueId=this._scene.getUniqueId(),this._scene.addAnimationGroup(this)}addTargetedAnimation(t,e){let i=new o(this);i.animation=t,i.target=e;let n=t.getKeys();return this._from>n[0].frame&&(this._from=n[0].frame),this._to<n[n.length-1].frame&&(this._to=n[n.length-1].frame),null!==this._enableBlending&&(t.enableBlending=this._enableBlending),null!==this._blendingSpeed&&(t.blendingSpeed=this._blendingSpeed),this._targetedAnimations.push(i),this._shouldStart=!0,i}removeTargetedAnimation(t){for(let e=this._targetedAnimations.length-1;e>-1;e--)this._targetedAnimations[e].animation===t&&this._targetedAnimations.splice(e,1)}normalize(t=null,e=null){null==t&&(t=this._from),null==e&&(e=this._to);for(let i=0;i<this._targetedAnimations.length;i++){let n=this._targetedAnimations[i].animation.getKeys(),a=n[0],s=n[n.length-1];if(a.frame>t){let e={frame:t,value:a.value,inTangent:a.inTangent,outTangent:a.outTangent,interpolation:a.interpolation};n.splice(0,0,e)}if(s.frame<e){let t={frame:e,value:s.value,inTangent:s.inTangent,outTangent:s.outTangent,interpolation:s.interpolation};n.push(t)}}return this._from=t,this._to=e,this}_processLoop(t,e,i){t.onAnimationLoop=()=>{this.onAnimationLoopObservable.notifyObservers(e),this._animationLoopFlags[i]||(this._animationLoopFlags[i]=!0,this._animationLoopCount++,this._animationLoopCount===this._numActiveAnimatables&&(this.onAnimationGroupLoopObservable.notifyObservers(this),this._animationLoopCount=0,this._animationLoopFlags.length=0))}}start(t=!1,e=1,i,n,a){if(this._isStarted||0===this._targetedAnimations.length)return this;this._loopAnimation=t,this._shouldStart=!1,this._animationLoopCount=0,this._animationLoopFlags.length=0;for(let s=0;s<this._targetedAnimations.length;s++){let o=this._targetedAnimations[s],r=this._scene.beginDirectAnimation(o.target,[o.animation],void 0!==i?i:this._from,void 0!==n?n:this._to,t,e,void 0,void 0,void 0!==a?a:this._isAdditive);r.weight=this._weight,r.playOrder=this._playOrder,r.onAnimationEnd=()=>{this.onAnimationEndObservable.notifyObservers(o),this._checkAnimationGroupEnded(r)},this._processLoop(r,o,s),this._animatables.push(r)}return this.syncWithMask(),this._scene.sortActiveAnimatables(),this._speedRatio=e,this._isStarted=!0,this._isPaused=!1,this.onAnimationGroupPlayObservable.notifyObservers(this),this}pause(){if(!this._isStarted)return this;this._isPaused=!0;for(let t=0;t<this._animatables.length;t++)this._animatables[t].pause();return this.onAnimationGroupPauseObservable.notifyObservers(this),this}play(t){return this.isStarted&&this._animatables.length&&!this._shouldStart?(void 0!==t&&(this.loopAnimation=t),this.restart()):(this.stop(),this.start(t,this._speedRatio)),this}reset(){if(!this._isStarted)return this.play(),this.goToFrame(0),this.stop(!0),this;for(let t=0;t<this._animatables.length;t++)this._animatables[t].reset();return this}restart(){if(!this._isStarted)return this;for(let t=0;t<this._animatables.length;t++)this._animatables[t].restart();return this.syncWithMask(),this._isPaused=!1,this.onAnimationGroupPlayObservable.notifyObservers(this),this}stop(t=!1){if(!this._isStarted)return this;let e=this._animatables.slice();for(let i=0;i<e.length;i++)e[i].stop(void 0,void 0,!0,t);let i=0;for(let e=0;e<this._scene._activeAnimatables.length;e++){let n=this._scene._activeAnimatables[e];n._runtimeAnimations.length>0?this._scene._activeAnimatables[i++]=n:t&&this._checkAnimationGroupEnded(n,t)}return this._scene._activeAnimatables.length=i,this._isStarted=!1,this}setWeightForAllAnimatables(t){for(let e=0;e<this._animatables.length;e++)this._animatables[e].weight=t;return this}syncAllAnimationsWith(t){for(let e=0;e<this._animatables.length;e++)this._animatables[e].syncWith(t);return this}goToFrame(t,e=!1){if(!this._isStarted)return this;for(let i=0;i<this._animatables.length;i++)this._animatables[i].goToFrame(t,e);return this}getCurrentFrame(){return this.animatables[0]?.masterFrame||0}dispose(){if(this.isStarted&&this.stop(),this._targetedAnimations.length=0,this._animatables.length=0,this._scene.removeAnimationGroup(this),this._parentContainer){let t=this._parentContainer.animationGroups.indexOf(this);t>-1&&this._parentContainer.animationGroups.splice(t,1),this._parentContainer=null}this.onAnimationEndObservable.clear(),this.onAnimationGroupEndObservable.clear(),this.onAnimationGroupPauseObservable.clear(),this.onAnimationGroupPlayObservable.clear(),this.onAnimationLoopObservable.clear(),this.onAnimationGroupLoopObservable.clear()}_checkAnimationGroupEnded(t,e=!1){let i=this._animatables.indexOf(t);i>-1&&this._animatables.splice(i,1),this._animatables.length===this._targetedAnimations.length-this._numActiveAnimatables&&(this._isStarted=!1,e||this.onAnimationGroupEndObservable.notifyObservers(this),this._animatables.length=0)}clone(t,e,i=!1,n=!1){let a=new r(t||this.name,this._scene,this._weight,this._playOrder);for(let t of(a._from=this.from,a._to=this.to,a._speedRatio=this.speedRatio,a._loopAnimation=this.loopAnimation,a._isAdditive=this.isAdditive,a._enableBlending=this.enableBlending,a._blendingSpeed=this.blendingSpeed,a.metadata=this.metadata,a.mask=this.mask,this._targetedAnimations))a.addTargetedAnimation(i?t.animation.clone(n):t.animation,e?e(t.target):t.target);return a}serialize(){let t={};t.name=this.name,t.from=this.from,t.to=this.to,t.speedRatio=this.speedRatio,t.loopAnimation=this.loopAnimation,t.isAdditive=this.isAdditive,t.weight=this.weight,t.playOrder=this.playOrder,t.enableBlending=this.enableBlending,t.blendingSpeed=this.blendingSpeed,t.targetedAnimations=[];for(let e=0;e<this.targetedAnimations.length;e++){let i=this.targetedAnimations[e];t.targetedAnimations[e]=i.serialize()}return a.Tags&&a.Tags.HasTags(this)&&(t.tags=a.Tags.GetTags(this)),this.metadata&&(t.metadata=this.metadata),t}getClassName(){return"AnimationGroup"}toString(t){let e="Name: "+this.name;return e+=", type: "+this.getClassName(),t&&(e+=", from: "+this._from+", to: "+this._to+", isStarted: "+this._isStarted+", speedRatio: "+this._speedRatio+", targetedAnimations length: "+this._targetedAnimations.length+", animatables length: "+this._animatables.length),e}}function l(t,e=!0,i=!1,n){if(0===t.length)return null;n=n??t[0].weight;let a=Number.MAX_VALUE,s=-Number.MAX_VALUE;if(i)for(let e of t)e.from<a&&(a=e.from),e.to>s&&(s=e.to);let o=new r(t[0].name+"_merged",t[0].getScene(),n);for(let n of t){for(let t of(i&&n.normalize(a,s),n.targetedAnimations))o.addTargetedAnimation(t.animation,t.target);e&&n.dispose()}return o}function h(t,i,n){let s=new r(t.name,i,t.weight,t.playOrder);for(let a=0;a<t.targetedAnimations.length;a++){let o=t.targetedAnimations[a],r=(0,e.AnimationParse)(o.animation),l=n?n(o):"influence"===o.animation.property?i.getMorphTargetById(o.targetId):i.getNodeById(o.targetId);l&&s.addTargetedAnimation(r,l)}return a.Tags&&a.Tags.AddTagsTo(s,t.tags),null!==t.from&&null!==t.to&&s.normalize(t.from,t.to),void 0!==t.speedRatio&&(s._speedRatio=t.speedRatio),void 0!==t.loopAnimation&&(s._loopAnimation=t.loopAnimation),void 0!==t.isAdditive&&(s._isAdditive=t.isAdditive),void 0!==t.weight&&(s._weight=t.weight),void 0!==t.playOrder&&(s._playOrder=t.playOrder),void 0!==t.enableBlending&&(s._enableBlending=t.enableBlending),void 0!==t.blendingSpeed&&(s._blendingSpeed=t.blendingSpeed),void 0!==t.metadata&&(s.metadata=t.metadata),s}function m(t,i,n,a=!1,s){let o,r=t;(o="object"==typeof i?i:{referenceFrame:i,range:n,cloneOriginalAnimationGroup:a,clonedAnimationName:s}).cloneOriginalAnimationGroup&&(r=t.clone(o.clonedAnimationGroupName||r.name));let l=r.targetedAnimations;for(let t=0;t<l.length;t++){let i=l[t];i.animation=(0,e.AnimationMakeAnimationAdditive)(i.animation,o)}if(r.isAdditive=!0,o.clipKeys){let t=Number.MAX_VALUE,e=-Number.MAX_VALUE,i=r.targetedAnimations;for(let n=0;n<i.length;n++){let a=i[n].animation.getKeys();t>a[0].frame&&(t=a[0].frame),e<a[a.length-1].frame&&(e=a[a.length-1].frame)}let n=r;n._from=t,n._to=e}return r}function _(t,e,i,n,a){return g(t.clone(n||t.name),e,i,a)}function g(t,e,i,n){return p(t,e,i,n,!1)}function u(t,e,i,n,a){return d(t.clone(n||t.name),e,i,a)}function d(t,e,i,n){return p(t,e,i,n,!0)}function p(t,e,i,n,a=!1){let s=Number.MAX_VALUE,o=-Number.MAX_VALUE,r=t.targetedAnimations;for(let t=0;t<r.length;t++){let l=r[t],h=n?l.animation:l.animation.clone();a&&(h.createKeyForFrame(e),h.createKeyForFrame(i));let m=h.getKeys(),_=[],g=Number.MAX_VALUE;for(let t=0;t<m.length;t++){let n=m[t];if(!a&&t>=e&&t<=i||a&&n.frame>=e&&n.frame<=i){let t={frame:n.frame,value:n.value.clone?n.value.clone():n.value,inTangent:n.inTangent,outTangent:n.outTangent,interpolation:n.interpolation,lockedTangent:n.lockedTangent};g===Number.MAX_VALUE&&(g=t.frame),t.frame-=g,_.push(t)}}if(0===_.length){r.splice(t,1),t--;continue}s>_[0].frame&&(s=_[0].frame),o<_[_.length-1].frame&&(o=_[_.length-1].frame),h.setKeys(_,!0),l.animation=h}return t._from=s,t._to=o,t}let A=!1;t.s(["AnimationGroup",0,r,"AnimationGroupClipFrames",0,u,"AnimationGroupClipFramesInPlace",0,d,"AnimationGroupClipInPlace",0,p,"AnimationGroupClipKeys",0,_,"AnimationGroupClipKeysInPlace",0,g,"AnimationGroupMakeAnimationAdditive",0,m,"AnimationGroupMergeAnimationGroups",0,l,"AnimationGroupParse",0,h,"RegisterAnimationGroup",0,function(){A||(A=!0,r.MergeAnimationGroups=l,r.Parse=h,r.MakeAnimationAdditive=m,r.ClipKeys=_,r.ClipKeysInPlace=g,r.ClipFrames=u,r.ClipFramesInPlace=d,r.ClipInPlace=p)},"TargetedAnimation",0,o])},78652,t=>{"use strict";t.s([])},45959,t=>{"use strict";t.i(78652);var e,i,n=t.i(37150),a=t.i(57554),s=t.i(10534),o=t.i(58667);class r{get currentFrame(){return this._currentFrame}get weight(){return this._weight}get currentValue(){return this._currentValue}get targetPath(){return this._targetPath}get target(){return this._currentActiveTarget}get isAdditive(){return this._host&&this._host.isAdditive}constructor(t,e,i,n){if(this._events=[],this._currentFrame=0,this._originalValue=[],this._originalBlendValue=null,this._offsetsCache={},this._highLimitsCache={},this._stopped=!1,this._blendingFactor=0,this._currentValue=null,this._currentActiveTarget=null,this._directTarget=null,this._targetPath="",this._weight=1,this._absoluteFrameOffset=0,this._previousElapsedTime=0,this._yoyoDirection=1,this._previousAbsoluteFrame=0,this._targetIsArray=!1,this._coreRuntimeAnimation=null,this._animation=e,this._target=t,this._scene=i,this._host=n,this._activeTargets=[],e._runtimeAnimations.push(this),this._animationState={key:0,repeatCount:0,loopMode:this._getCorrectLoopMode()},this._animation.dataType===o.Animation.ANIMATIONTYPE_MATRIX&&(this._animationState.workValue=s.Matrix.Zero()),this._keys=this._animation.getKeys(),this._minFrame=this._keys[0].frame,this._maxFrame=this._keys[this._keys.length-1].frame,0!==this._minFrame){const t={frame:0,value:this._keys[0].value};this._keys.splice(0,0,t)}if(this._target instanceof Array){let t=0;for(const e of this._target)this._preparePath(e,t),this._getOriginalValues(t),t++;this._targetIsArray=!0}else this._preparePath(this._target),this._getOriginalValues(),this._targetIsArray=!1,this._directTarget=this._activeTargets[0];const a=e.getEvents();if(a&&a.length>0)for(const t of a)this._events.push(t._clone());this._enableBlending=t&&t.animationPropertiesOverride?t.animationPropertiesOverride.enableBlending:this._animation.enableBlending}_preparePath(t,e=0){let i=this._animation.targetPropertyPath;if(i.length>1){let n=t;for(let t=0;t<i.length-1;t++){let e=i[t];if(void 0===(n=n[e]))throw Error(`Invalid property (${e}) in property path (${i.join(".")})`)}this._targetPath=i[i.length-1],this._activeTargets[e]=n}else this._targetPath=i[0],this._activeTargets[e]=t;if(void 0===this._activeTargets[e][this._targetPath])throw Error(`Invalid property (${this._targetPath}) in property path (${i.join(".")})`)}get animation(){return this._animation}reset(t=!1){if(t)if(this._target instanceof Array){let t=0;for(let e of this._target)void 0!==this._originalValue[t]&&this._setValue(e,this._activeTargets[t],this._originalValue[t],-1,t),t++}else void 0!==this._originalValue[0]&&this._setValue(this._target,this._directTarget,this._originalValue[0],-1,0);this._offsetsCache={},this._highLimitsCache={},this._currentFrame=0,this._blendingFactor=0;for(let t=0;t<this._events.length;t++)this._events[t].isDone=!1}isStopped(){return this._stopped}dispose(){let t=this._animation.runtimeAnimations.indexOf(this);t>-1&&this._animation.runtimeAnimations.splice(t,1)}setValue(t,e){if(this._targetIsArray){for(let i=0;i<this._target.length;i++){let n=this._target[i];this._setValue(n,this._activeTargets[i],t,e,i)}return}this._setValue(this._target,this._directTarget,t,e,0)}_getOriginalValues(t=0){let e,i=this._activeTargets[t];if(o.Animation.InheritOriginalValueFromActiveAnimations){let e=this._scene._activeAnimatables;for(let n=0;n<e.length;n++){let a=e[n]._runtimeAnimations;for(let e=0;e<a.length;e++){let n=a[e];if(n!==this&&n._targetPath===this._targetPath){for(let e=0;e<n._activeTargets.length;e++)if(n._activeTargets[e]===i&&void 0!==n._originalValue[e])return void(n._originalValue[e]&&n._originalValue[e].clone?this._originalValue[t]=n._originalValue[e].clone():this._originalValue[t]=n._originalValue[e])}}}}(e=i.getLocalMatrix&&"_matrix"===this._targetPath?i.getLocalMatrix():i[this._targetPath])&&e.clone?this._originalValue[t]=e.clone():this._originalValue[t]=e}_registerTargetForLateAnimationBinding(t,e){let i=t.target;this._scene._registeredForLateAnimationBindings.pushNoDuplicate(i),i._lateAnimationHolders||(i._lateAnimationHolders={}),i._lateAnimationHolders[t.targetPath]||(i._lateAnimationHolders[t.targetPath]={totalWeight:0,totalAdditiveWeight:0,animations:[],additiveAnimations:[],originalValue:e}),t.isAdditive?(i._lateAnimationHolders[t.targetPath].additiveAnimations.push(t),i._lateAnimationHolders[t.targetPath].totalAdditiveWeight+=t.weight):(i._lateAnimationHolders[t.targetPath].animations.push(t),i._lateAnimationHolders[t.targetPath].totalWeight+=t.weight)}_setValue(t,e,i,n,a){if(this._currentActiveTarget=e,this._weight=n,this._enableBlending&&this._blendingFactor<=1){if(!this._originalBlendValue){let t=e[this._targetPath];t.clone?this._originalBlendValue=t.clone():this._originalBlendValue=t}this._originalBlendValue.m?o.Animation.AllowMatrixDecomposeForInterpolation?this._currentValue?s.Matrix.DecomposeLerpToRef(this._originalBlendValue,i,this._blendingFactor,this._currentValue):this._currentValue=s.Matrix.DecomposeLerp(this._originalBlendValue,i,this._blendingFactor):this._currentValue?s.Matrix.LerpToRef(this._originalBlendValue,i,this._blendingFactor,this._currentValue):this._currentValue=s.Matrix.Lerp(this._originalBlendValue,i,this._blendingFactor):this._currentValue=o.Animation._UniversalLerp(this._originalBlendValue,i,this._blendingFactor);let n=t&&t.animationPropertiesOverride?t.animationPropertiesOverride.blendingSpeed:this._animation.blendingSpeed;this._blendingFactor+=n}else this._currentValue?this._currentValue.copyFrom?this._currentValue.copyFrom(i):this._currentValue=i:i?.clone?this._currentValue=i.clone():this._currentValue=i;-1!==n?this._registerTargetForLateAnimationBinding(this,this._originalValue[a]):this._animationState.loopMode===o.Animation.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT?this._currentValue.addToRef?this._currentValue.addToRef(this._originalValue[a],e[this._targetPath]):e[this._targetPath]=this._originalValue[a]+this._currentValue:e[this._targetPath]=this._currentValue,t.markAsDirty&&t.markAsDirty(this._animation.targetProperty)}_getCorrectLoopMode(){return this._target&&this._target.animationPropertiesOverride?this._target.getClassName?.()==="MorphTarget"&&null==this._target._animationPropertiesOverride?this._animation.loopMode:this._target.animationPropertiesOverride.loopMode:this._animation.loopMode}goToFrame(t,e=-1){let i=this._animation.getKeys();t<i[0].frame?t=i[0].frame:t>i[i.length-1].frame&&(t=i[i.length-1].frame);let n=this._events;if(n.length)for(let e=0;e<n.length;e++)n[e].onlyOnce||(n[e].isDone=n[e].frame<t);this._currentFrame=t;let a=this._animation._interpolate(t,this._animationState);this.setValue(a,e)}_prepareForSpeedRatioChange(t){let e=this._previousElapsedTime*(this._animation.framePerSecond*t)/1e3;this._absoluteFrameOffset=this._previousAbsoluteFrame-e}animate(t,e,i,n,a,s=-1){let r,l,h=this._animation,m=h.targetPropertyPath;if(!m||m.length<1)return this._stopped=!0,!1;let _=!0,g=this._events;if(this._coreRuntimeAnimation)l=i-e,r=this._coreRuntimeAnimation.currentFrame,this._currentFrame=r,this._animationState.repeatCount=this._coreRuntimeAnimation._animationState.repeatCount,this._animationState.highLimitValue=this._coreRuntimeAnimation._animationState.highLimitValue,this._animationState.offsetValue=this._coreRuntimeAnimation._animationState.offsetValue;else{let s;(e<this._minFrame||e>this._maxFrame)&&(e=this._minFrame),(i<this._minFrame||i>this._maxFrame)&&(i=this._maxFrame),l=i-e;let m=t*(h.framePerSecond*a)/1e3+this._absoluteFrameOffset,u=0,d=!1,p=n&&this._animationState.loopMode===o.Animation.ANIMATIONLOOPMODE_YOYO;if(p){let t=Math.sin((m-e)/l*Math.PI);m=Math.abs(t)*l+e;let i=t>=0?1:-1;this._yoyoDirection!==i&&(d=!0),this._yoyoDirection=i}if(this._previousElapsedTime=t,this._previousAbsoluteFrame=m,!n&&i>=e&&(m>=l&&a>0||m<=0&&a<0))_=!1,u=h.evaluate(i);else if(!n&&e>=i&&(m<=l&&a<0||m>=0&&a>0))_=!1,u=h.evaluate(e);else if(this._animationState.loopMode!==o.Animation.ANIMATIONLOOPMODE_CYCLE){let t=i.toString()+e.toString();if(!this._offsetsCache[t]){this._animationState.repeatCount=0,this._animationState.loopMode=o.Animation.ANIMATIONLOOPMODE_CYCLE;let n=h._interpolate(e,this._animationState),a=h._interpolate(i,this._animationState);switch(this._animationState.loopMode=this._getCorrectLoopMode(),h.dataType){case o.Animation.ANIMATIONTYPE_FLOAT:this._offsetsCache[t]=a-n;break;case o.Animation.ANIMATIONTYPE_QUATERNION:case o.Animation.ANIMATIONTYPE_VECTOR3:case o.Animation.ANIMATIONTYPE_VECTOR2:case o.Animation.ANIMATIONTYPE_SIZE:case o.Animation.ANIMATIONTYPE_COLOR3:this._offsetsCache[t]=a.subtract(n)}this._highLimitsCache[t]=a}u=this._highLimitsCache[t],s=this._offsetsCache[t]}if(void 0===s)switch(h.dataType){case o.Animation.ANIMATIONTYPE_FLOAT:s=0;break;case o.Animation.ANIMATIONTYPE_QUATERNION:s=o._StaticOffsetValueQuaternion;break;case o.Animation.ANIMATIONTYPE_VECTOR3:s=o._StaticOffsetValueVector3;break;case o.Animation.ANIMATIONTYPE_VECTOR2:s=o._StaticOffsetValueVector2;break;case o.Animation.ANIMATIONTYPE_SIZE:s=o._StaticOffsetValueSize;break;case o.Animation.ANIMATIONTYPE_COLOR3:s=o._StaticOffsetValueColor3;break;case o.Animation.ANIMATIONTYPE_COLOR4:s=o._StaticOffsetValueColor4}if(this._host&&this._host.syncRoot){let t=this._host.syncRoot,i=(t.masterFrame-t.fromFrame)/(t.toFrame-t.fromFrame);r=e+l*i}else r=m>0&&e>i||m<0&&e<i?_&&0!==l?i+m%l:e:_&&0!==l?e+m%l:i;if(!p&&(a>0&&this.currentFrame>r||a<0&&this.currentFrame<r)||p&&d){this._onLoop();for(let t=0;t<g.length;t++)g[t].onlyOnce||(g[t].isDone=!1);this._animationState.key=a>0?0:h.getKeys().length-1}this._currentFrame=r,this._animationState.repeatCount=0===l?0:m/l|0,this._animationState.highLimitValue=u,this._animationState.offsetValue=s}let u=h._interpolate(r,this._animationState);if(this.setValue(u,s),g.length){for(let t=0;t<g.length;t++)if(l>=0&&r>=g[t].frame&&g[t].frame>=e||l<0&&r<=g[t].frame&&g[t].frame<=e){let e=g[t];e.isDone||(e.onlyOnce&&(g.splice(t,1),t--),e.isDone=!0,e.action(r))}}return _||(this._stopped=!0),_}}var l=t.i(85240);class h{get syncRoot(){return this._syncRoot}get masterFrame(){return 0===this._runtimeAnimations.length?0:this._runtimeAnimations[0].currentFrame}get weight(){return this._weight}set weight(t){if(-1===t){this._weight=-1;return}this._weight=Math.min(Math.max(t,0),1)}get speedRatio(){return this._speedRatio}set speedRatio(t){for(let e=0;e<this._runtimeAnimations.length;e++)this._runtimeAnimations[e]._prepareForSpeedRatioChange(t);this._speedRatio=t,null!==this._goToFrame&&this.goToFrame(this._goToFrame)}get elapsedTime(){return null===this._localDelayOffset?0:this._scene._animationTime-this._localDelayOffset}constructor(t,e,i=0,n=100,s=!1,o=1,r,l,h,m=!1,_=0){this.target=e,this.fromFrame=i,this.toFrame=n,this.loopAnimation=s,this.onAnimationEnd=r,this.onAnimationLoop=h,this.isAdditive=m,this.playOrder=_,this._localDelayOffset=null,this._pausedDelay=null,this._manualJumpDelay=null,this._runtimeAnimations=[],this._paused=!1,this._speedRatio=1,this._weight=-1,this._previousWeight=-1,this._syncRoot=null,this._frameToSyncFromJump=null,this._goToFrame=null,this.disposeOnEnd=!0,this.animationStarted=!1,this.onAnimationEndObservable=new a.Observable,this.onAnimationLoopObservable=new a.Observable,this._scene=t,l&&this.appendAnimations(e,l),this._speedRatio=o,t._activeAnimatables.push(this)}syncWith(t){if(this._syncRoot=t,t){let t=this._scene._activeAnimatables.indexOf(this);t>-1&&(this._scene._activeAnimatables.splice(t,1),this._scene._activeAnimatables.push(this))}return this}getAnimations(){return this._runtimeAnimations}appendAnimations(t,e){for(let i=0;i<e.length;i++){let n=new r(t,e[i],this._scene,this);n._onLoop=()=>{this.onAnimationLoopObservable.notifyObservers(this),this.onAnimationLoop&&this.onAnimationLoop()},this._runtimeAnimations.push(n)}}getAnimationByTargetProperty(t){let e=this._runtimeAnimations;for(let i=0;i<e.length;i++)if(e[i].animation.targetProperty===t)return e[i].animation;return null}getRuntimeAnimationByTargetProperty(t){let e=this._runtimeAnimations;for(let i=0;i<e.length;i++)if(e[i].animation.targetProperty===t)return e[i];return null}reset(){let t=this._runtimeAnimations;for(let e=0;e<t.length;e++)t[e].reset(!0);this._localDelayOffset=null,this._pausedDelay=null}enableBlending(t){let e=this._runtimeAnimations;for(let i=0;i<e.length;i++)e[i].animation.enableBlending=!0,e[i].animation.blendingSpeed=t}disableBlending(){let t=this._runtimeAnimations;for(let e=0;e<t.length;e++)t[e].animation.enableBlending=!1}goToFrame(t,e=!1){let i=this._runtimeAnimations;if(i[0]){let e=i[0].animation.framePerSecond;this._frameToSyncFromJump=this._frameToSyncFromJump??i[0].currentFrame;let n=0===this.speedRatio?0:(t-this._frameToSyncFromJump)/e*1e3/this.speedRatio;this._manualJumpDelay=-n}for(let n=0;n<i.length;n++)i[n].goToFrame(t,e?this._weight:-1);this._goToFrame=t}get paused(){return this._paused}pause(){this._paused||(this._paused=!0)}restart(){this._paused=!1}_raiseOnAnimationEnd(){this.onAnimationEnd&&this.onAnimationEnd(),this.onAnimationEndObservable.notifyObservers(this)}stop(t,e,i=!1,n=!1){if(t||e){let a=this._scene._activeAnimatables.indexOf(this);if(a>-1){let s=this._runtimeAnimations;for(let i=s.length-1;i>=0;i--){let n=s[i];(!t||n.animation.name==t)&&(!e||e(n.target))&&(n.dispose(),s.splice(i,1))}0==s.length&&(i||this._scene._activeAnimatables.splice(a,1),n||this._raiseOnAnimationEnd())}}else{let t=this._scene._activeAnimatables.indexOf(this);if(t>-1){i||this._scene._activeAnimatables.splice(t,1);let e=this._runtimeAnimations;for(let t=0;t<e.length;t++)e[t].dispose();this._runtimeAnimations.length=0,n||this._raiseOnAnimationEnd()}}}async waitAsync(){return await new Promise(t=>{this.onAnimationEndObservable.add(()=>{t(this)},void 0,void 0,this,!0)})}_animate(t){let e;if(this._paused)return this.animationStarted=!1,null===this._pausedDelay&&(this._pausedDelay=t),!0;if(null===this._localDelayOffset?(this._localDelayOffset=t,this._pausedDelay=null):null!==this._pausedDelay&&(this._localDelayOffset+=t-this._pausedDelay,this._pausedDelay=null),null!==this._manualJumpDelay&&(this._localDelayOffset+=this.speedRatio<0?-this._manualJumpDelay:this._manualJumpDelay,this._manualJumpDelay=null,this._frameToSyncFromJump=null),this._goToFrame=null,!h.ProcessPausedAnimatables&&0===this._weight&&0===this._previousWeight)return!0;this._previousWeight=this._weight;let i=!1,n=this._runtimeAnimations;for(e=0;e<n.length;e++){let a=n[e].animate(t-this._localDelayOffset,this.fromFrame,this.toFrame,this.loopAnimation,this._speedRatio,this._weight);i=i||a}if(this.animationStarted=i,!i){if(this.disposeOnEnd)for(e=this._scene._activeAnimatables.indexOf(this),this._scene._activeAnimatables.splice(e,1),e=0;e<n.length;e++)n[e].dispose();this._raiseOnAnimationEnd(),this.disposeOnEnd&&(this.onAnimationEnd=null,this.onAnimationLoop=null,this.onAnimationLoopObservable.clear(),this.onAnimationEndObservable.clear())}return i}}h.ProcessPausedAnimatables=!1;var m=t.i(14975),_=t.i(56770);let g=!1;g=!0,e=_.Scene,(i=m.Bone)&&(i.prototype.copyAnimationRange=function(t,e,i,n=!1,a=null){let s,r,l;0===this.animations.length&&(this.animations.push(new o.Animation(this.name,"_matrix",t.animations[0].framePerSecond,o.Animation.ANIMATIONTYPE_MATRIX,0)),this.animations[0].setKeys([]));let h=t.animations[0].getRange(e);if(!h)return!1;let m=h.from,_=h.to,g=t.animations[0].getKeys(),u=t.length,d=t.getParent(),p=this.getParent(),A=n&&d&&u&&this.length&&u!==this.length,c=A&&p&&d?p.length/d.length:1,f=n&&!p&&a&&(1!==a.x||1!==a.y||1!==a.z),b=this.animations[0].getKeys();for(let t=0,e=g.length;t<e;t++)(s=g[t]).frame>=m&&s.frame<=_&&(n?(l=s.value.clone(),A?(r=l.getTranslation(),l.setTranslation(r.scaleInPlace(c))):f&&a?(r=l.getTranslation(),l.setTranslation(r.multiplyInPlace(a))):l=s.value):l=s.value,b.push({frame:s.frame+i,value:l}));return this.animations[0].createRange(e,m+i,_+i),!0}),e&&(e.prototype._animate=function(t){if(!this.animationsEnabled)return;let e=l.PrecisionDate.Now;if(!this._animationTimeLast){if(this._pendingData.length>0)return;this._animationTimeLast=e}this.deltaTime=void 0!==t?t:this.useConstantAnimationDeltaTime?16:(e-this._animationTimeLast)*this.animationTimeScale,this._animationTimeLast=e;let i=this._activeAnimatables;if(0===i.length)return;this._animationTime+=this.deltaTime;let n=this._animationTime;for(let t=0;t<i.length;t++){let e=i[t];!e._animate(n)&&e.disposeOnEnd&&t--}!function(t){if(t._registeredForLateAnimationBindings.length){for(let e=0;e<t._registeredForLateAnimationBindings.length;e++){let i=t._registeredForLateAnimationBindings.data[e];for(let t in i._lateAnimationHolders){let e=i._lateAnimationHolders[t],n=e.animations[0],a=e.originalValue;if(null==a)continue;let r=o.Animation.AllowMatrixDecomposeForInterpolation&&a.m,l=i[t];if(r)l=function(t){let e;if(0===t.totalWeight&&0===t.totalAdditiveWeight)return t.originalValue;let i=1,n=s.TmpVectors.Vector3[0],a=s.TmpVectors.Vector3[1],o=s.TmpVectors.Quaternion[0],r=0,l=t.animations[0],h=t.originalValue,m=!1;if(t.totalWeight<1)e=1-t.totalWeight,h.decompose(a,o,n);else{if(r=1,i=t.totalWeight,1==(e=l.weight/i))if(!t.totalAdditiveWeight)return l.currentValue;else m=!0;l.currentValue.decompose(a,o,n)}if(!m){a.scaleInPlace(e),n.scaleInPlace(e),o.scaleInPlace(e);for(let l=r;l<t.animations.length;l++){let r=t.animations[l];if(0===r.weight)continue;e=r.weight/i;let h=s.TmpVectors.Vector3[2],m=s.TmpVectors.Vector3[3],_=s.TmpVectors.Quaternion[1];r.currentValue.decompose(m,_,h),m.scaleAndAddToRef(e,a),_.scaleAndAddToRef(s.Quaternion.Dot(o,_)>0?e:-e,o),h.scaleAndAddToRef(e,n)}o.normalize()}for(let e=0;e<t.additiveAnimations.length;e++){let i=t.additiveAnimations[e];if(0===i.weight)continue;let r=s.TmpVectors.Vector3[2],l=s.TmpVectors.Vector3[3],h=s.TmpVectors.Quaternion[1];i.currentValue.decompose(l,h,r),l.multiplyToRef(a,l),s.Vector3.LerpToRef(a,l,i.weight,a),o.multiplyToRef(h,h),s.Quaternion.SlerpToRef(o,h,i.weight,o),r.scaleAndAddToRef(i.weight,n)}let _=l?l._animationState.workValue:s.TmpVectors.Matrix[0].clone();return s.Matrix.ComposeToRef(a,o,n,_),_}(e);else if(void 0!==a.w)l=function(t,e){if(0===t.totalWeight&&0===t.totalAdditiveWeight)return e;let i=t.animations[0],n=t.originalValue,a=e;if(0===t.totalWeight&&t.totalAdditiveWeight>0)a.copyFrom(n);else if(1===t.animations.length){if(s.Quaternion.SlerpToRef(n,i.currentValue,Math.min(1,t.totalWeight),a),0===t.totalAdditiveWeight)return a}else if(t.animations.length>1){let i,o,r=1;if(t.totalWeight<1){let e=1-t.totalWeight;o=[],(i=[]).push(n),o.push(e)}else{if(2===t.animations.length&&(s.Quaternion.SlerpToRef(t.animations[0].currentValue,t.animations[1].currentValue,t.animations[1].weight/t.totalWeight,e),0===t.totalAdditiveWeight))return e;i=[],o=[],r=t.totalWeight}for(let e=0;e<t.animations.length;e++){let n=t.animations[e];i.push(n.currentValue),o.push(n.weight/r)}let l=0;for(let t=0;t<i.length;){if(!t){s.Quaternion.SlerpToRef(i[t],i[t+1],o[t+1]/(o[t]+o[t+1]),e),a=e,l=o[t]+o[t+1],t+=2;continue}l+=o[t],s.Quaternion.SlerpToRef(a,i[t],o[t]/l,a),t++}}for(let e=0;e<t.additiveAnimations.length;e++){let i=t.additiveAnimations[e];0!==i.weight&&(a.multiplyToRef(i.currentValue,s.TmpVectors.Quaternion[0]),s.Quaternion.SlerpToRef(a,s.TmpVectors.Quaternion[0],i.weight,a))}return a}(e,l||s.Quaternion.Identity());else{let t=0,i=1,s=n&&n._animationState.loopMode===o.Animation.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT;if(e.totalWeight<1)l=s?a.clone?a.clone():a:n&&a.scale?a.scale(1-e.totalWeight):n?a*(1-e.totalWeight):a.clone?a.clone():a;else if(n){i=e.totalWeight;let o=n.weight/i;l=1!==o?n.currentValue.scale?n.currentValue.scale(o):n.currentValue*o:n.currentValue,s&&(l.addToRef?l.addToRef(a,l):l+=a),t=1}for(let n=t;n<e.animations.length;n++){let t=e.animations[n],a=t.weight/i;a&&(t.currentValue.scaleAndAddToRef?t.currentValue.scaleAndAddToRef(a,l):l+=t.currentValue*a)}for(let t=0;t<e.additiveAnimations.length;t++){let i=e.additiveAnimations[t],n=i.weight;n&&(i.currentValue.scaleAndAddToRef?i.currentValue.scaleAndAddToRef(n,l):l+=i.currentValue*n)}}i[t]=l}i._lateAnimationHolders={}}t._registeredForLateAnimationBindings.reset()}}(this)},e.prototype.sortActiveAnimatables=function(){this._activeAnimatables.sort((t,e)=>t.playOrder-e.playOrder)},e.prototype.beginWeightedAnimation=function(t,e,i,n=1,a,s=1,o,r,l,h,m=!1){let _=this.beginAnimation(t,e,i,a,s,o,r,!1,l,h,m);return _.weight=n,_},e.prototype.beginAnimation=function(t,e,i,n,a=1,s,o,r=!0,l,m,_=!1){if(a<0){let t=e;e=i,i=t,a=-a}e>i&&(a=-a),r&&this.stopAnimation(t,void 0,l),o||(o=new h(this,t,e,i,n,a,s,void 0,m,_));let g=!l||l(t);if(t.animations&&g&&o.appendAnimations(t,t.animations),t.getAnimatables){let h=t.getAnimatables();for(let t=0;t<h.length;t++)this.beginAnimation(h[t],e,i,n,a,s,o,r,l,m)}return o.reset(),o},e.prototype.beginHierarchyAnimation=function(t,e,i,n,a,s=1,o,r,l=!0,h,m,_=!1){let g=t.getDescendants(e),u=[];for(let e of(u.push(this.beginAnimation(t,i,n,a,s,o,r,l,h,void 0,_)),g))u.push(this.beginAnimation(e,i,n,a,s,o,r,l,h,void 0,_));return u},e.prototype.beginDirectAnimation=function(t,e,i,n,a,s=1,o,r,l=!1){if(s<0){let t=i;i=n,n=t,s=-s}return i>n&&(s=-s),new h(this,t,i,n,a,s,o,e,r,l)},e.prototype.beginDirectHierarchyAnimation=function(t,e,i,n,a,s,o,r,l,h=!1){let m=t.getDescendants(e),_=[];for(let e of(_.push(this.beginDirectAnimation(t,i,n,a,s,o,r,l,h)),m))_.push(this.beginDirectAnimation(e,i,n,a,s,o,r,l,h));return _},e.prototype.getAnimatableByTarget=function(t){for(let e=0;e<this._activeAnimatables.length;e++)if(this._activeAnimatables[e].target===t)return this._activeAnimatables[e];return null},e.prototype.getAllAnimatablesByTarget=function(t){let e=[];for(let i=0;i<this._activeAnimatables.length;i++)this._activeAnimatables[i].target===t&&e.push(this._activeAnimatables[i]);return e},e.prototype.stopAnimation=function(t,e,i){for(let n of this.getAllAnimatablesByTarget(t))n.stop(e,i)},e.prototype.stopAllAnimations=function(){if(this._activeAnimatables){for(let t=0;t<this._activeAnimatables.length;t++)this._activeAnimatables[t].stop(void 0,void 0,!0);this._activeAnimatables.length=0}for(let t of this.animationGroups)t.stop()}),(0,n.RegisterAnimationGroup)(),t.s([],45959)}]);
|