@epigraph/solutions 0.31.0 → 0.32.0
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/dist/epigraph-solutions.js +71 -63
- package/package.json +1 -1
|
@@ -3634,7 +3634,7 @@ void main() {
|
|
|
3634
3634
|
#include <tonemapping_fragment>
|
|
3635
3635
|
#include <colorspace_fragment>
|
|
3636
3636
|
#include <fog_fragment>
|
|
3637
|
-
}`,ut={alphahash_fragment:h2,alphahash_pars_fragment:u2,alphamap_fragment:d2,alphamap_pars_fragment:f2,alphatest_fragment:p2,alphatest_pars_fragment:g2,aomap_fragment:m2,aomap_pars_fragment:A2,batching_pars_vertex:_2,batching_vertex:y2,begin_vertex:b2,beginnormal_vertex:v2,bsdfs:w2,iridescence_fragment:E2,bumpmap_pars_fragment:x2,clipping_planes_fragment:S2,clipping_planes_pars_fragment:C2,clipping_planes_pars_vertex:T2,clipping_planes_vertex:I2,color_fragment:M2,color_pars_fragment:R2,color_pars_vertex:B2,color_vertex:P2,common:L2,cube_uv_reflection_fragment:D2,defaultnormal_vertex:N2,displacementmap_pars_vertex:O2,displacementmap_vertex:k2,emissivemap_fragment:U2,emissivemap_pars_fragment:F2,colorspace_fragment:$2,colorspace_pars_fragment:z2,envmap_fragment:G2,envmap_common_pars_fragment:H2,envmap_pars_fragment:V2,envmap_pars_vertex:Q2,envmap_physical_pars_fragment:iB,envmap_vertex:q2,fog_vertex:j2,fog_pars_vertex:W2,fog_fragment:Y2,fog_pars_fragment:X2,gradientmap_pars_fragment:K2,lightmap_pars_fragment:J2,lights_lambert_fragment:Z2,lights_lambert_pars_fragment:eB,lights_pars_begin:tB,lights_toon_fragment:nB,lights_toon_pars_fragment:sB,lights_phong_fragment:rB,lights_phong_pars_fragment:aB,lights_physical_fragment:oB,lights_physical_pars_fragment:lB,lights_fragment_begin:cB,lights_fragment_maps:hB,lights_fragment_end:uB,logdepthbuf_fragment:dB,logdepthbuf_pars_fragment:fB,logdepthbuf_pars_vertex:pB,logdepthbuf_vertex:gB,map_fragment:mB,map_pars_fragment:AB,map_particle_fragment:_B,map_particle_pars_fragment:yB,metalnessmap_fragment:bB,metalnessmap_pars_fragment:vB,morphinstance_vertex:wB,morphcolor_vertex:EB,morphnormal_vertex:xB,morphtarget_pars_vertex:SB,morphtarget_vertex:CB,normal_fragment_begin:TB,normal_fragment_maps:IB,normal_pars_fragment:MB,normal_pars_vertex:RB,normal_vertex:BB,normalmap_pars_fragment:PB,clearcoat_normal_fragment_begin:LB,clearcoat_normal_fragment_maps:DB,clearcoat_pars_fragment:NB,iridescence_pars_fragment:OB,opaque_fragment:kB,packing:UB,premultiplied_alpha_fragment:FB,project_vertex:$B,dithering_fragment:zB,dithering_pars_fragment:GB,roughnessmap_fragment:HB,roughnessmap_pars_fragment:VB,shadowmap_pars_fragment:QB,shadowmap_pars_vertex:qB,shadowmap_vertex:jB,shadowmask_pars_fragment:WB,skinbase_vertex:YB,skinning_pars_vertex:XB,skinning_vertex:KB,skinnormal_vertex:JB,specularmap_fragment:ZB,specularmap_pars_fragment:eP,tonemapping_fragment:tP,tonemapping_pars_fragment:iP,transmission_fragment:nP,transmission_pars_fragment:sP,uv_pars_fragment:rP,uv_pars_vertex:aP,uv_vertex:oP,worldpos_vertex:lP,background_vert:cP,background_frag:hP,backgroundCube_vert:uP,backgroundCube_frag:dP,cube_vert:fP,cube_frag:pP,depth_vert:gP,depth_frag:mP,distanceRGBA_vert:AP,distanceRGBA_frag:_P,equirect_vert:yP,equirect_frag:bP,linedashed_vert:vP,linedashed_frag:wP,meshbasic_vert:EP,meshbasic_frag:xP,meshlambert_vert:SP,meshlambert_frag:CP,meshmatcap_vert:TP,meshmatcap_frag:IP,meshnormal_vert:MP,meshnormal_frag:RP,meshphong_vert:BP,meshphong_frag:PP,meshphysical_vert:LP,meshphysical_frag:DP,meshtoon_vert:NP,meshtoon_frag:OP,points_vert:kP,points_frag:UP,shadow_vert:FP,shadow_frag:$P,sprite_vert:zP,sprite_frag:GP},Fe={common:{diffuse:{value:new je(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new lt},alphaMap:{value:null},alphaMapTransform:{value:new lt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new lt}},envmap:{envMap:{value:null},envMapRotation:{value:new lt},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new lt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new lt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new lt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new lt},normalScale:{value:new He(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new lt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new lt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new lt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new lt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new je(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new je(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new lt},alphaTest:{value:0},uvTransform:{value:new lt}},sprite:{diffuse:{value:new je(16777215)},opacity:{value:1},center:{value:new He(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new lt},alphaMap:{value:null},alphaMapTransform:{value:new lt},alphaTest:{value:0}}},vs={basic:{uniforms:an([Fe.common,Fe.specularmap,Fe.envmap,Fe.aomap,Fe.lightmap,Fe.fog]),vertexShader:ut.meshbasic_vert,fragmentShader:ut.meshbasic_frag},lambert:{uniforms:an([Fe.common,Fe.specularmap,Fe.envmap,Fe.aomap,Fe.lightmap,Fe.emissivemap,Fe.bumpmap,Fe.normalmap,Fe.displacementmap,Fe.fog,Fe.lights,{emissive:{value:new je(0)}}]),vertexShader:ut.meshlambert_vert,fragmentShader:ut.meshlambert_frag},phong:{uniforms:an([Fe.common,Fe.specularmap,Fe.envmap,Fe.aomap,Fe.lightmap,Fe.emissivemap,Fe.bumpmap,Fe.normalmap,Fe.displacementmap,Fe.fog,Fe.lights,{emissive:{value:new je(0)},specular:{value:new je(1118481)},shininess:{value:30}}]),vertexShader:ut.meshphong_vert,fragmentShader:ut.meshphong_frag},standard:{uniforms:an([Fe.common,Fe.envmap,Fe.aomap,Fe.lightmap,Fe.emissivemap,Fe.bumpmap,Fe.normalmap,Fe.displacementmap,Fe.roughnessmap,Fe.metalnessmap,Fe.fog,Fe.lights,{emissive:{value:new je(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:ut.meshphysical_vert,fragmentShader:ut.meshphysical_frag},toon:{uniforms:an([Fe.common,Fe.aomap,Fe.lightmap,Fe.emissivemap,Fe.bumpmap,Fe.normalmap,Fe.displacementmap,Fe.gradientmap,Fe.fog,Fe.lights,{emissive:{value:new je(0)}}]),vertexShader:ut.meshtoon_vert,fragmentShader:ut.meshtoon_frag},matcap:{uniforms:an([Fe.common,Fe.bumpmap,Fe.normalmap,Fe.displacementmap,Fe.fog,{matcap:{value:null}}]),vertexShader:ut.meshmatcap_vert,fragmentShader:ut.meshmatcap_frag},points:{uniforms:an([Fe.points,Fe.fog]),vertexShader:ut.points_vert,fragmentShader:ut.points_frag},dashed:{uniforms:an([Fe.common,Fe.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:ut.linedashed_vert,fragmentShader:ut.linedashed_frag},depth:{uniforms:an([Fe.common,Fe.displacementmap]),vertexShader:ut.depth_vert,fragmentShader:ut.depth_frag},normal:{uniforms:an([Fe.common,Fe.bumpmap,Fe.normalmap,Fe.displacementmap,{opacity:{value:1}}]),vertexShader:ut.meshnormal_vert,fragmentShader:ut.meshnormal_frag},sprite:{uniforms:an([Fe.sprite,Fe.fog]),vertexShader:ut.sprite_vert,fragmentShader:ut.sprite_frag},background:{uniforms:{uvTransform:{value:new lt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:ut.background_vert,fragmentShader:ut.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new lt}},vertexShader:ut.backgroundCube_vert,fragmentShader:ut.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:ut.cube_vert,fragmentShader:ut.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:ut.equirect_vert,fragmentShader:ut.equirect_frag},distanceRGBA:{uniforms:an([Fe.common,Fe.displacementmap,{referencePosition:{value:new se},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:ut.distanceRGBA_vert,fragmentShader:ut.distanceRGBA_frag},shadow:{uniforms:an([Fe.lights,Fe.fog,{color:{value:new je(0)},opacity:{value:1}}]),vertexShader:ut.shadow_vert,fragmentShader:ut.shadow_frag}};vs.physical={uniforms:an([vs.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new lt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new lt},clearcoatNormalScale:{value:new He(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new lt},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new lt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new lt},sheen:{value:0},sheenColor:{value:new je(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new lt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new lt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new lt},transmissionSamplerSize:{value:new He},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new lt},attenuationDistance:{value:0},attenuationColor:{value:new je(0)},specularColor:{value:new je(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new lt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new lt},anisotropyVector:{value:new He},anisotropyMap:{value:null},anisotropyMapTransform:{value:new lt}}]),vertexShader:ut.meshphysical_vert,fragmentShader:ut.meshphysical_frag};const Ou={r:0,b:0,g:0},ca=new bn,HP=new tt;function VP(o,e,t,i,a,l,h){const d=new je(0);let p=l===!0?0:1,g,A,_=null,b=0,w=null;function E(M){let R=M.isScene===!0?M.background:null;return R&&R.isTexture&&(R=(M.backgroundBlurriness>0?t:e).get(R)),R}function C(M){let R=!1;const D=E(M);D===null?x(d,p):D&&D.isColor&&(x(D,1),R=!0);const G=o.xr.getEnvironmentBlendMode();G==="additive"?i.buffers.color.setClear(0,0,0,1,h):G==="alpha-blend"&&i.buffers.color.setClear(0,0,0,0,h),(o.autoClear||R)&&(i.buffers.depth.setTest(!0),i.buffers.depth.setMask(!0),i.buffers.color.setMask(!0),o.clear(o.autoClearColor,o.autoClearDepth,o.autoClearStencil))}function T(M,R){const D=E(R);D&&(D.isCubeTexture||D.mapping===Ff)?(A===void 0&&(A=new ot(new Wn(1,1,1),new Ni({name:"BackgroundCubeMaterial",uniforms:Tl(vs.backgroundCube.uniforms),vertexShader:vs.backgroundCube.vertexShader,fragmentShader:vs.backgroundCube.fragmentShader,side:$i,depthTest:!1,depthWrite:!1,fog:!1})),A.geometry.deleteAttribute("normal"),A.geometry.deleteAttribute("uv"),A.onBeforeRender=function(G,U,H){this.matrixWorld.copyPosition(H.matrixWorld)},Object.defineProperty(A.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),a.update(A)),ca.copy(R.backgroundRotation),ca.x*=-1,ca.y*=-1,ca.z*=-1,D.isCubeTexture&&D.isRenderTargetTexture===!1&&(ca.y*=-1,ca.z*=-1),A.material.uniforms.envMap.value=D,A.material.uniforms.flipEnvMap.value=D.isCubeTexture&&D.isRenderTargetTexture===!1?-1:1,A.material.uniforms.backgroundBlurriness.value=R.backgroundBlurriness,A.material.uniforms.backgroundIntensity.value=R.backgroundIntensity,A.material.uniforms.backgroundRotation.value.setFromMatrix4(HP.makeRotationFromEuler(ca)),A.material.toneMapped=xt.getTransfer(D.colorSpace)!==Ht,(_!==D||b!==D.version||w!==o.toneMapping)&&(A.material.needsUpdate=!0,_=D,b=D.version,w=o.toneMapping),A.layers.enableAll(),M.unshift(A,A.geometry,A.material,0,0,null)):D&&D.isTexture&&(g===void 0&&(g=new ot(new gs(2,2),new Ni({name:"BackgroundMaterial",uniforms:Tl(vs.background.uniforms),vertexShader:vs.background.vertexShader,fragmentShader:vs.background.fragmentShader,side:ds,depthTest:!1,depthWrite:!1,fog:!1})),g.geometry.deleteAttribute("normal"),Object.defineProperty(g.material,"map",{get:function(){return this.uniforms.t2D.value}}),a.update(g)),g.material.uniforms.t2D.value=D,g.material.uniforms.backgroundIntensity.value=R.backgroundIntensity,g.material.toneMapped=xt.getTransfer(D.colorSpace)!==Ht,D.matrixAutoUpdate===!0&&D.updateMatrix(),g.material.uniforms.uvTransform.value.copy(D.matrix),(_!==D||b!==D.version||w!==o.toneMapping)&&(g.material.needsUpdate=!0,_=D,b=D.version,w=o.toneMapping),g.layers.enableAll(),M.unshift(g,g.geometry,g.material,0,0,null))}function x(M,R){M.getRGB(Ou,zS(o)),i.buffers.color.setClear(Ou.r,Ou.g,Ou.b,R,h)}function P(){A!==void 0&&(A.geometry.dispose(),A.material.dispose()),g!==void 0&&(g.geometry.dispose(),g.material.dispose())}return{getClearColor:function(){return d},setClearColor:function(M,R=1){d.set(M),p=R,x(d,p)},getClearAlpha:function(){return p},setClearAlpha:function(M){p=M,x(d,p)},render:C,addToRenderList:T,dispose:P}}function QP(o,e){const t=o.getParameter(o.MAX_VERTEX_ATTRIBS),i={},a=b(null);let l=a,h=!1;function d($,Q,Z,X,s){let V=!1;const y=_(X,Z,Q);l!==y&&(l=y,g(l.object)),V=w($,X,Z,s),V&&E($,X,Z,s),s!==null&&e.update(s,o.ELEMENT_ARRAY_BUFFER),(V||h)&&(h=!1,R($,Q,Z,X),s!==null&&o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,e.get(s).buffer))}function p(){return o.createVertexArray()}function g($){return o.bindVertexArray($)}function A($){return o.deleteVertexArray($)}function _($,Q,Z){const X=Z.wireframe===!0;let s=i[$.id];s===void 0&&(s={},i[$.id]=s);let V=s[Q.id];V===void 0&&(V={},s[Q.id]=V);let y=V[X];return y===void 0&&(y=b(p()),V[X]=y),y}function b($){const Q=[],Z=[],X=[];for(let s=0;s<t;s++)Q[s]=0,Z[s]=0,X[s]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:Q,enabledAttributes:Z,attributeDivisors:X,object:$,attributes:{},index:null}}function w($,Q,Z,X){const s=l.attributes,V=Q.attributes;let y=0;const ee=Z.getAttributes();for(const I in ee)if(ee[I].location>=0){const Ae=s[I];let N=V[I];if(N===void 0&&(I==="instanceMatrix"&&$.instanceMatrix&&(N=$.instanceMatrix),I==="instanceColor"&&$.instanceColor&&(N=$.instanceColor)),Ae===void 0||Ae.attribute!==N||N&&Ae.data!==N.data)return!0;y++}return l.attributesNum!==y||l.index!==X}function E($,Q,Z,X){const s={},V=Q.attributes;let y=0;const ee=Z.getAttributes();for(const I in ee)if(ee[I].location>=0){let Ae=V[I];Ae===void 0&&(I==="instanceMatrix"&&$.instanceMatrix&&(Ae=$.instanceMatrix),I==="instanceColor"&&$.instanceColor&&(Ae=$.instanceColor));const N={};N.attribute=Ae,Ae&&Ae.data&&(N.data=Ae.data),s[I]=N,y++}l.attributes=s,l.attributesNum=y,l.index=X}function C(){const $=l.newAttributes;for(let Q=0,Z=$.length;Q<Z;Q++)$[Q]=0}function T($){x($,0)}function x($,Q){const Z=l.newAttributes,X=l.enabledAttributes,s=l.attributeDivisors;Z[$]=1,X[$]===0&&(o.enableVertexAttribArray($),X[$]=1),s[$]!==Q&&(o.vertexAttribDivisor($,Q),s[$]=Q)}function P(){const $=l.newAttributes,Q=l.enabledAttributes;for(let Z=0,X=Q.length;Z<X;Z++)Q[Z]!==$[Z]&&(o.disableVertexAttribArray(Z),Q[Z]=0)}function M($,Q,Z,X,s,V,y){y===!0?o.vertexAttribIPointer($,Q,Z,s,V):o.vertexAttribPointer($,Q,Z,X,s,V)}function R($,Q,Z,X){C();const s=X.attributes,V=Z.getAttributes(),y=Q.defaultAttributeValues;for(const ee in V){const I=V[ee];if(I.location>=0){let re=s[ee];if(re===void 0&&(ee==="instanceMatrix"&&$.instanceMatrix&&(re=$.instanceMatrix),ee==="instanceColor"&&$.instanceColor&&(re=$.instanceColor)),re!==void 0){const Ae=re.normalized,N=re.itemSize,n=e.get(re);if(n===void 0)continue;const r=n.buffer,c=n.type,u=n.bytesPerElement,f=c===o.INT||c===o.UNSIGNED_INT||re.gpuType===$f;if(re.isInterleavedBufferAttribute){const m=re.data,v=m.stride,S=re.offset;if(m.isInstancedInterleavedBuffer){for(let B=0;B<I.locationSize;B++)x(I.location+B,m.meshPerAttribute);$.isInstancedMesh!==!0&&X._maxInstanceCount===void 0&&(X._maxInstanceCount=m.meshPerAttribute*m.count)}else for(let B=0;B<I.locationSize;B++)T(I.location+B);o.bindBuffer(o.ARRAY_BUFFER,r);for(let B=0;B<I.locationSize;B++)M(I.location+B,N/I.locationSize,c,Ae,v*u,(S+N/I.locationSize*B)*u,f)}else{if(re.isInstancedBufferAttribute){for(let m=0;m<I.locationSize;m++)x(I.location+m,re.meshPerAttribute);$.isInstancedMesh!==!0&&X._maxInstanceCount===void 0&&(X._maxInstanceCount=re.meshPerAttribute*re.count)}else for(let m=0;m<I.locationSize;m++)T(I.location+m);o.bindBuffer(o.ARRAY_BUFFER,r);for(let m=0;m<I.locationSize;m++)M(I.location+m,N/I.locationSize,c,Ae,N*u,N/I.locationSize*m*u,f)}}else if(y!==void 0){const Ae=y[ee];if(Ae!==void 0)switch(Ae.length){case 2:o.vertexAttrib2fv(I.location,Ae);break;case 3:o.vertexAttrib3fv(I.location,Ae);break;case 4:o.vertexAttrib4fv(I.location,Ae);break;default:o.vertexAttrib1fv(I.location,Ae)}}}}P()}function D(){H();for(const $ in i){const Q=i[$];for(const Z in Q){const X=Q[Z];for(const s in X)A(X[s].object),delete X[s];delete Q[Z]}delete i[$]}}function G($){if(i[$.id]===void 0)return;const Q=i[$.id];for(const Z in Q){const X=Q[Z];for(const s in X)A(X[s].object),delete X[s];delete Q[Z]}delete i[$.id]}function U($){for(const Q in i){const Z=i[Q];if(Z[$.id]===void 0)continue;const X=Z[$.id];for(const s in X)A(X[s].object),delete X[s];delete Z[$.id]}}function H(){k(),h=!0,l!==a&&(l=a,g(l.object))}function k(){a.geometry=null,a.program=null,a.wireframe=!1}return{setup:d,reset:H,resetDefaultState:k,dispose:D,releaseStatesOfGeometry:G,releaseStatesOfProgram:U,initAttributes:C,enableAttribute:T,disableUnusedAttributes:P}}function qP(o,e,t){let i;function a(g){i=g}function l(g,A){o.drawArrays(i,g,A),t.update(A,i,1)}function h(g,A,_){_!==0&&(o.drawArraysInstanced(i,g,A,_),t.update(A,i,_))}function d(g,A,_){if(_===0)return;e.get("WEBGL_multi_draw").multiDrawArraysWEBGL(i,g,0,A,0,_);let w=0;for(let E=0;E<_;E++)w+=A[E];t.update(w,i,1)}function p(g,A,_,b){if(_===0)return;const w=e.get("WEBGL_multi_draw");if(w===null)for(let E=0;E<g.length;E++)h(g[E],A[E],b[E]);else{w.multiDrawArraysInstancedWEBGL(i,g,0,A,0,b,0,_);let E=0;for(let C=0;C<_;C++)E+=A[C]*b[C];t.update(E,i,1)}}this.setMode=a,this.render=l,this.renderInstances=h,this.renderMultiDraw=d,this.renderMultiDrawInstances=p}function jP(o,e,t,i){let a;function l(){if(a!==void 0)return a;if(e.has("EXT_texture_filter_anisotropic")===!0){const U=e.get("EXT_texture_filter_anisotropic");a=o.getParameter(U.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else a=0;return a}function h(U){return!(U!==Xt&&i.convert(U)!==o.getParameter(o.IMPLEMENTATION_COLOR_READ_FORMAT))}function d(U){const H=U===hi&&(e.has("EXT_color_buffer_half_float")||e.has("EXT_color_buffer_float"));return!(U!==pi&&i.convert(U)!==o.getParameter(o.IMPLEMENTATION_COLOR_READ_TYPE)&&U!==ri&&!H)}function p(U){if(U==="highp"){if(o.getShaderPrecisionFormat(o.VERTEX_SHADER,o.HIGH_FLOAT).precision>0&&o.getShaderPrecisionFormat(o.FRAGMENT_SHADER,o.HIGH_FLOAT).precision>0)return"highp";U="mediump"}return U==="mediump"&&o.getShaderPrecisionFormat(o.VERTEX_SHADER,o.MEDIUM_FLOAT).precision>0&&o.getShaderPrecisionFormat(o.FRAGMENT_SHADER,o.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let g=t.precision!==void 0?t.precision:"highp";const A=p(g);A!==g&&(console.warn("THREE.WebGLRenderer:",g,"not supported, using",A,"instead."),g=A);const _=t.logarithmicDepthBuffer===!0,b=t.reverseDepthBuffer===!0&&e.has("EXT_clip_control"),w=o.getParameter(o.MAX_TEXTURE_IMAGE_UNITS),E=o.getParameter(o.MAX_VERTEX_TEXTURE_IMAGE_UNITS),C=o.getParameter(o.MAX_TEXTURE_SIZE),T=o.getParameter(o.MAX_CUBE_MAP_TEXTURE_SIZE),x=o.getParameter(o.MAX_VERTEX_ATTRIBS),P=o.getParameter(o.MAX_VERTEX_UNIFORM_VECTORS),M=o.getParameter(o.MAX_VARYING_VECTORS),R=o.getParameter(o.MAX_FRAGMENT_UNIFORM_VECTORS),D=E>0,G=o.getParameter(o.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:l,getMaxPrecision:p,textureFormatReadable:h,textureTypeReadable:d,precision:g,logarithmicDepthBuffer:_,reverseDepthBuffer:b,maxTextures:w,maxVertexTextures:E,maxTextureSize:C,maxCubemapSize:T,maxAttributes:x,maxVertexUniforms:P,maxVaryings:M,maxFragmentUniforms:R,vertexTextures:D,maxSamples:G}}function WP(o){const e=this;let t=null,i=0,a=!1,l=!1;const h=new ba,d=new lt,p={value:null,needsUpdate:!1};this.uniform=p,this.numPlanes=0,this.numIntersection=0,this.init=function(_,b){const w=_.length!==0||b||i!==0||a;return a=b,i=_.length,w},this.beginShadows=function(){l=!0,A(null)},this.endShadows=function(){l=!1},this.setGlobalState=function(_,b){t=A(_,b,0)},this.setState=function(_,b,w){const E=_.clippingPlanes,C=_.clipIntersection,T=_.clipShadows,x=o.get(_);if(!a||E===null||E.length===0||l&&!T)l?A(null):g();else{const P=l?0:i,M=P*4;let R=x.clippingState||null;p.value=R,R=A(E,b,M,w);for(let D=0;D!==M;++D)R[D]=t[D];x.clippingState=R,this.numIntersection=C?this.numPlanes:0,this.numPlanes+=P}};function g(){p.value!==t&&(p.value=t,p.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function A(_,b,w,E){const C=_!==null?_.length:0;let T=null;if(C!==0){if(T=p.value,E!==!0||T===null){const x=w+C*4,P=b.matrixWorldInverse;d.getNormalMatrix(P),(T===null||T.length<x)&&(T=new Float32Array(x));for(let M=0,R=w;M!==C;++M,R+=4)h.copy(_[M]).applyMatrix4(P,d),h.normal.toArray(T,R),T[R+3]=h.constant}p.value=T,p.needsUpdate=!0}return e.numPlanes=C,e.numIntersection=0,T}}function YP(o){let e=new WeakMap;function t(h,d){return d===Ch?h.mapping=Ya:d===cA&&(h.mapping=bl),h}function i(h){if(h&&h.isTexture){const d=h.mapping;if(d===Ch||d===cA)if(e.has(h)){const p=e.get(h).texture;return t(p,h.mapping)}else{const p=h.image;if(p&&p.height>0){const g=new Y0(p.height);return g.fromEquirectangularTexture(o,h),e.set(h,g),h.addEventListener("dispose",a),t(g.texture,h.mapping)}else return null}}return h}function a(h){const d=h.target;d.removeEventListener("dispose",a);const p=e.get(d);p!==void 0&&(e.delete(d),p.dispose())}function l(){e=new WeakMap}return{get:i,dispose:l}}const el=4,tb=[.125,.215,.35,.446,.526,.582],Pa=20,Hp=new ea,ib=new je;let Vp=null,Qp=0,qp=0,jp=!1;const va=(1+Math.sqrt(5))/2,Co=1/va,nb=[new se(-va,Co,0),new se(va,Co,0),new se(-Co,0,va),new se(Co,0,va),new se(0,va,-Co),new se(0,va,Co),new se(-1,1,-1),new se(1,1,-1),new se(-1,1,1),new se(1,1,1)];class sb{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,i=.1,a=100){Vp=this._renderer.getRenderTarget(),Qp=this._renderer.getActiveCubeFace(),qp=this._renderer.getActiveMipmapLevel(),jp=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const l=this._allocateTargets();return l.depthBuffer=!0,this._sceneToCubeUV(e,i,a,l),t>0&&this._blur(l,0,0,t),this._applyPMREM(l),this._cleanup(l),l}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=ob(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=ab(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(Vp,Qp,qp),this._renderer.xr.enabled=jp,e.scissorTest=!1,ku(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===Ya||e.mapping===bl?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),Vp=this._renderer.getRenderTarget(),Qp=this._renderer.getActiveCubeFace(),qp=this._renderer.getActiveMipmapLevel(),jp=this._renderer.xr.enabled,this._renderer.xr.enabled=!1;const i=t||this._allocateTargets();return this._textureToCubeUV(e,i),this._applyPMREM(i),this._cleanup(i),i}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,i={magFilter:St,minFilter:St,generateMipmaps:!1,type:hi,format:Xt,colorSpace:jt,depthBuffer:!1},a=rb(e,t,i);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=rb(e,t,i);const{_lodMax:l}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=XP(l)),this._blurMaterial=KP(l,e,t)}return a}_compileMaterial(e){const t=new ot(this._lodPlanes[0],e);this._renderer.compile(t,Hp)}_sceneToCubeUV(e,t,i,a){const d=new bi(90,1,t,i),p=[1,-1,1,1,1,1],g=[1,1,1,-1,-1,-1],A=this._renderer,_=A.autoClear,b=A.toneMapping;A.getClearColor(ib),A.toneMapping=Ts,A.autoClear=!1;const w=new wi({name:"PMREM.Background",side:$i,depthWrite:!1,depthTest:!1}),E=new ot(new Wn,w);let C=!1;const T=e.background;T?T.isColor&&(w.color.copy(T),e.background=null,C=!0):(w.color.copy(ib),C=!0);for(let x=0;x<6;x++){const P=x%3;P===0?(d.up.set(0,p[x],0),d.lookAt(g[x],0,0)):P===1?(d.up.set(0,0,p[x]),d.lookAt(0,g[x],0)):(d.up.set(0,p[x],0),d.lookAt(0,0,g[x]));const M=this._cubeSize;ku(a,P*M,x>2?M:0,M,M),A.setRenderTarget(a),C&&A.render(E,d),A.render(e,d)}E.geometry.dispose(),E.material.dispose(),A.toneMapping=b,A.autoClear=_,e.background=T}_textureToCubeUV(e,t){const i=this._renderer,a=e.mapping===Ya||e.mapping===bl;a?(this._cubemapMaterial===null&&(this._cubemapMaterial=ob()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=ab());const l=a?this._cubemapMaterial:this._equirectMaterial,h=new ot(this._lodPlanes[0],l),d=l.uniforms;d.envMap.value=e;const p=this._cubeSize;ku(t,0,0,3*p,2*p),i.setRenderTarget(t),i.render(h,Hp)}_applyPMREM(e){const t=this._renderer,i=t.autoClear;t.autoClear=!1;const a=this._lodPlanes.length;for(let l=1;l<a;l++){const h=Math.sqrt(this._sigmas[l]*this._sigmas[l]-this._sigmas[l-1]*this._sigmas[l-1]),d=nb[(a-l-1)%nb.length];this._blur(e,l-1,l,h,d)}t.autoClear=i}_blur(e,t,i,a,l){const h=this._pingPongRenderTarget;this._halfBlur(e,h,t,i,a,"latitudinal",l),this._halfBlur(h,e,i,i,a,"longitudinal",l)}_halfBlur(e,t,i,a,l,h,d){const p=this._renderer,g=this._blurMaterial;h!=="latitudinal"&&h!=="longitudinal"&&console.error("blur direction must be either latitudinal or longitudinal!");const A=3,_=new ot(this._lodPlanes[a],g),b=g.uniforms,w=this._sizeLods[i]-1,E=isFinite(l)?Math.PI/(2*w):2*Math.PI/(2*Pa-1),C=l/E,T=isFinite(l)?1+Math.floor(A*C):Pa;T>Pa&&console.warn(`sigmaRadians, ${l}, is too large and will clip, as it requested ${T} samples when the maximum is set to ${Pa}`);const x=[];let P=0;for(let U=0;U<Pa;++U){const H=U/C,k=Math.exp(-H*H/2);x.push(k),U===0?P+=k:U<T&&(P+=2*k)}for(let U=0;U<x.length;U++)x[U]=x[U]/P;b.envMap.value=e.texture,b.samples.value=T,b.weights.value=x,b.latitudinal.value=h==="latitudinal",d&&(b.poleAxis.value=d);const{_lodMax:M}=this;b.dTheta.value=E,b.mipInt.value=M-i;const R=this._sizeLods[a],D=3*R*(a>M-el?a-M+el:0),G=4*(this._cubeSize-R);ku(t,D,G,3*R,2*R),p.setRenderTarget(t),p.render(_,Hp)}}function XP(o){const e=[],t=[],i=[];let a=o;const l=o-el+1+tb.length;for(let h=0;h<l;h++){const d=Math.pow(2,a);t.push(d);let p=1/d;h>o-el?p=tb[h-o+el-1]:h===0&&(p=0),i.push(p);const g=1/(d-2),A=-g,_=1+g,b=[A,A,_,A,_,_,A,A,_,_,A,_],w=6,E=6,C=3,T=2,x=1,P=new Float32Array(C*E*w),M=new Float32Array(T*E*w),R=new Float32Array(x*E*w);for(let G=0;G<w;G++){const U=G%3*2/3-1,H=G>2?0:-1,k=[U,H,0,U+2/3,H,0,U+2/3,H+1,0,U,H,0,U+2/3,H+1,0,U,H+1,0];P.set(k,C*E*G),M.set(b,T*E*G);const $=[G,G,G,G,G,G];R.set($,x*E*G)}const D=new yi;D.setAttribute("position",new qt(P,C)),D.setAttribute("uv",new qt(M,T)),D.setAttribute("faceIndex",new qt(R,x)),e.push(D),a>el&&a--}return{lodPlanes:e,sizeLods:t,sigmas:i}}function rb(o,e,t){const i=new Gi(o,e,t);return i.texture.mapping=Ff,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function ku(o,e,t,i,a){o.viewport.set(e,t,i,a),o.scissor.set(e,t,i,a)}function KP(o,e,t){const i=new Float32Array(Pa),a=new se(0,1,0);return new Ni({name:"SphericalGaussianBlur",defines:{n:Pa,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${o}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:a}},vertexShader:l_(),fragmentShader:`
|
|
3637
|
+
}`,ut={alphahash_fragment:h2,alphahash_pars_fragment:u2,alphamap_fragment:d2,alphamap_pars_fragment:f2,alphatest_fragment:p2,alphatest_pars_fragment:g2,aomap_fragment:m2,aomap_pars_fragment:A2,batching_pars_vertex:_2,batching_vertex:y2,begin_vertex:b2,beginnormal_vertex:v2,bsdfs:w2,iridescence_fragment:E2,bumpmap_pars_fragment:x2,clipping_planes_fragment:S2,clipping_planes_pars_fragment:C2,clipping_planes_pars_vertex:T2,clipping_planes_vertex:I2,color_fragment:M2,color_pars_fragment:R2,color_pars_vertex:B2,color_vertex:P2,common:L2,cube_uv_reflection_fragment:D2,defaultnormal_vertex:N2,displacementmap_pars_vertex:O2,displacementmap_vertex:k2,emissivemap_fragment:U2,emissivemap_pars_fragment:F2,colorspace_fragment:$2,colorspace_pars_fragment:z2,envmap_fragment:G2,envmap_common_pars_fragment:H2,envmap_pars_fragment:V2,envmap_pars_vertex:Q2,envmap_physical_pars_fragment:iB,envmap_vertex:q2,fog_vertex:j2,fog_pars_vertex:W2,fog_fragment:Y2,fog_pars_fragment:X2,gradientmap_pars_fragment:K2,lightmap_pars_fragment:J2,lights_lambert_fragment:Z2,lights_lambert_pars_fragment:eB,lights_pars_begin:tB,lights_toon_fragment:nB,lights_toon_pars_fragment:sB,lights_phong_fragment:rB,lights_phong_pars_fragment:aB,lights_physical_fragment:oB,lights_physical_pars_fragment:lB,lights_fragment_begin:cB,lights_fragment_maps:hB,lights_fragment_end:uB,logdepthbuf_fragment:dB,logdepthbuf_pars_fragment:fB,logdepthbuf_pars_vertex:pB,logdepthbuf_vertex:gB,map_fragment:mB,map_pars_fragment:AB,map_particle_fragment:_B,map_particle_pars_fragment:yB,metalnessmap_fragment:bB,metalnessmap_pars_fragment:vB,morphinstance_vertex:wB,morphcolor_vertex:EB,morphnormal_vertex:xB,morphtarget_pars_vertex:SB,morphtarget_vertex:CB,normal_fragment_begin:TB,normal_fragment_maps:IB,normal_pars_fragment:MB,normal_pars_vertex:RB,normal_vertex:BB,normalmap_pars_fragment:PB,clearcoat_normal_fragment_begin:LB,clearcoat_normal_fragment_maps:DB,clearcoat_pars_fragment:NB,iridescence_pars_fragment:OB,opaque_fragment:kB,packing:UB,premultiplied_alpha_fragment:FB,project_vertex:$B,dithering_fragment:zB,dithering_pars_fragment:GB,roughnessmap_fragment:HB,roughnessmap_pars_fragment:VB,shadowmap_pars_fragment:QB,shadowmap_pars_vertex:qB,shadowmap_vertex:jB,shadowmask_pars_fragment:WB,skinbase_vertex:YB,skinning_pars_vertex:XB,skinning_vertex:KB,skinnormal_vertex:JB,specularmap_fragment:ZB,specularmap_pars_fragment:eP,tonemapping_fragment:tP,tonemapping_pars_fragment:iP,transmission_fragment:nP,transmission_pars_fragment:sP,uv_pars_fragment:rP,uv_pars_vertex:aP,uv_vertex:oP,worldpos_vertex:lP,background_vert:cP,background_frag:hP,backgroundCube_vert:uP,backgroundCube_frag:dP,cube_vert:fP,cube_frag:pP,depth_vert:gP,depth_frag:mP,distanceRGBA_vert:AP,distanceRGBA_frag:_P,equirect_vert:yP,equirect_frag:bP,linedashed_vert:vP,linedashed_frag:wP,meshbasic_vert:EP,meshbasic_frag:xP,meshlambert_vert:SP,meshlambert_frag:CP,meshmatcap_vert:TP,meshmatcap_frag:IP,meshnormal_vert:MP,meshnormal_frag:RP,meshphong_vert:BP,meshphong_frag:PP,meshphysical_vert:LP,meshphysical_frag:DP,meshtoon_vert:NP,meshtoon_frag:OP,points_vert:kP,points_frag:UP,shadow_vert:FP,shadow_frag:$P,sprite_vert:zP,sprite_frag:GP},$e={common:{diffuse:{value:new je(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new lt},alphaMap:{value:null},alphaMapTransform:{value:new lt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new lt}},envmap:{envMap:{value:null},envMapRotation:{value:new lt},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new lt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new lt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new lt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new lt},normalScale:{value:new He(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new lt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new lt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new lt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new lt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new je(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new je(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new lt},alphaTest:{value:0},uvTransform:{value:new lt}},sprite:{diffuse:{value:new je(16777215)},opacity:{value:1},center:{value:new He(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new lt},alphaMap:{value:null},alphaMapTransform:{value:new lt},alphaTest:{value:0}}},vs={basic:{uniforms:an([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.fog]),vertexShader:ut.meshbasic_vert,fragmentShader:ut.meshbasic_frag},lambert:{uniforms:an([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,$e.lights,{emissive:{value:new je(0)}}]),vertexShader:ut.meshlambert_vert,fragmentShader:ut.meshlambert_frag},phong:{uniforms:an([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,$e.lights,{emissive:{value:new je(0)},specular:{value:new je(1118481)},shininess:{value:30}}]),vertexShader:ut.meshphong_vert,fragmentShader:ut.meshphong_frag},standard:{uniforms:an([$e.common,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.roughnessmap,$e.metalnessmap,$e.fog,$e.lights,{emissive:{value:new je(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:ut.meshphysical_vert,fragmentShader:ut.meshphysical_frag},toon:{uniforms:an([$e.common,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.gradientmap,$e.fog,$e.lights,{emissive:{value:new je(0)}}]),vertexShader:ut.meshtoon_vert,fragmentShader:ut.meshtoon_frag},matcap:{uniforms:an([$e.common,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,{matcap:{value:null}}]),vertexShader:ut.meshmatcap_vert,fragmentShader:ut.meshmatcap_frag},points:{uniforms:an([$e.points,$e.fog]),vertexShader:ut.points_vert,fragmentShader:ut.points_frag},dashed:{uniforms:an([$e.common,$e.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:ut.linedashed_vert,fragmentShader:ut.linedashed_frag},depth:{uniforms:an([$e.common,$e.displacementmap]),vertexShader:ut.depth_vert,fragmentShader:ut.depth_frag},normal:{uniforms:an([$e.common,$e.bumpmap,$e.normalmap,$e.displacementmap,{opacity:{value:1}}]),vertexShader:ut.meshnormal_vert,fragmentShader:ut.meshnormal_frag},sprite:{uniforms:an([$e.sprite,$e.fog]),vertexShader:ut.sprite_vert,fragmentShader:ut.sprite_frag},background:{uniforms:{uvTransform:{value:new lt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:ut.background_vert,fragmentShader:ut.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new lt}},vertexShader:ut.backgroundCube_vert,fragmentShader:ut.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:ut.cube_vert,fragmentShader:ut.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:ut.equirect_vert,fragmentShader:ut.equirect_frag},distanceRGBA:{uniforms:an([$e.common,$e.displacementmap,{referencePosition:{value:new se},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:ut.distanceRGBA_vert,fragmentShader:ut.distanceRGBA_frag},shadow:{uniforms:an([$e.lights,$e.fog,{color:{value:new je(0)},opacity:{value:1}}]),vertexShader:ut.shadow_vert,fragmentShader:ut.shadow_frag}};vs.physical={uniforms:an([vs.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new lt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new lt},clearcoatNormalScale:{value:new He(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new lt},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new lt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new lt},sheen:{value:0},sheenColor:{value:new je(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new lt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new lt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new lt},transmissionSamplerSize:{value:new He},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new lt},attenuationDistance:{value:0},attenuationColor:{value:new je(0)},specularColor:{value:new je(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new lt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new lt},anisotropyVector:{value:new He},anisotropyMap:{value:null},anisotropyMapTransform:{value:new lt}}]),vertexShader:ut.meshphysical_vert,fragmentShader:ut.meshphysical_frag};const Ou={r:0,b:0,g:0},ca=new bn,HP=new tt;function VP(o,e,t,i,a,l,h){const d=new je(0);let p=l===!0?0:1,g,A,_=null,b=0,w=null;function E(M){let R=M.isScene===!0?M.background:null;return R&&R.isTexture&&(R=(M.backgroundBlurriness>0?t:e).get(R)),R}function C(M){let R=!1;const D=E(M);D===null?x(d,p):D&&D.isColor&&(x(D,1),R=!0);const G=o.xr.getEnvironmentBlendMode();G==="additive"?i.buffers.color.setClear(0,0,0,1,h):G==="alpha-blend"&&i.buffers.color.setClear(0,0,0,0,h),(o.autoClear||R)&&(i.buffers.depth.setTest(!0),i.buffers.depth.setMask(!0),i.buffers.color.setMask(!0),o.clear(o.autoClearColor,o.autoClearDepth,o.autoClearStencil))}function T(M,R){const D=E(R);D&&(D.isCubeTexture||D.mapping===Ff)?(A===void 0&&(A=new ot(new Wn(1,1,1),new Ni({name:"BackgroundCubeMaterial",uniforms:Tl(vs.backgroundCube.uniforms),vertexShader:vs.backgroundCube.vertexShader,fragmentShader:vs.backgroundCube.fragmentShader,side:$i,depthTest:!1,depthWrite:!1,fog:!1})),A.geometry.deleteAttribute("normal"),A.geometry.deleteAttribute("uv"),A.onBeforeRender=function(G,U,H){this.matrixWorld.copyPosition(H.matrixWorld)},Object.defineProperty(A.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),a.update(A)),ca.copy(R.backgroundRotation),ca.x*=-1,ca.y*=-1,ca.z*=-1,D.isCubeTexture&&D.isRenderTargetTexture===!1&&(ca.y*=-1,ca.z*=-1),A.material.uniforms.envMap.value=D,A.material.uniforms.flipEnvMap.value=D.isCubeTexture&&D.isRenderTargetTexture===!1?-1:1,A.material.uniforms.backgroundBlurriness.value=R.backgroundBlurriness,A.material.uniforms.backgroundIntensity.value=R.backgroundIntensity,A.material.uniforms.backgroundRotation.value.setFromMatrix4(HP.makeRotationFromEuler(ca)),A.material.toneMapped=xt.getTransfer(D.colorSpace)!==Ht,(_!==D||b!==D.version||w!==o.toneMapping)&&(A.material.needsUpdate=!0,_=D,b=D.version,w=o.toneMapping),A.layers.enableAll(),M.unshift(A,A.geometry,A.material,0,0,null)):D&&D.isTexture&&(g===void 0&&(g=new ot(new gs(2,2),new Ni({name:"BackgroundMaterial",uniforms:Tl(vs.background.uniforms),vertexShader:vs.background.vertexShader,fragmentShader:vs.background.fragmentShader,side:ds,depthTest:!1,depthWrite:!1,fog:!1})),g.geometry.deleteAttribute("normal"),Object.defineProperty(g.material,"map",{get:function(){return this.uniforms.t2D.value}}),a.update(g)),g.material.uniforms.t2D.value=D,g.material.uniforms.backgroundIntensity.value=R.backgroundIntensity,g.material.toneMapped=xt.getTransfer(D.colorSpace)!==Ht,D.matrixAutoUpdate===!0&&D.updateMatrix(),g.material.uniforms.uvTransform.value.copy(D.matrix),(_!==D||b!==D.version||w!==o.toneMapping)&&(g.material.needsUpdate=!0,_=D,b=D.version,w=o.toneMapping),g.layers.enableAll(),M.unshift(g,g.geometry,g.material,0,0,null))}function x(M,R){M.getRGB(Ou,zS(o)),i.buffers.color.setClear(Ou.r,Ou.g,Ou.b,R,h)}function P(){A!==void 0&&(A.geometry.dispose(),A.material.dispose()),g!==void 0&&(g.geometry.dispose(),g.material.dispose())}return{getClearColor:function(){return d},setClearColor:function(M,R=1){d.set(M),p=R,x(d,p)},getClearAlpha:function(){return p},setClearAlpha:function(M){p=M,x(d,p)},render:C,addToRenderList:T,dispose:P}}function QP(o,e){const t=o.getParameter(o.MAX_VERTEX_ATTRIBS),i={},a=b(null);let l=a,h=!1;function d($,Q,Z,X,s){let V=!1;const y=_(X,Z,Q);l!==y&&(l=y,g(l.object)),V=w($,X,Z,s),V&&E($,X,Z,s),s!==null&&e.update(s,o.ELEMENT_ARRAY_BUFFER),(V||h)&&(h=!1,R($,Q,Z,X),s!==null&&o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,e.get(s).buffer))}function p(){return o.createVertexArray()}function g($){return o.bindVertexArray($)}function A($){return o.deleteVertexArray($)}function _($,Q,Z){const X=Z.wireframe===!0;let s=i[$.id];s===void 0&&(s={},i[$.id]=s);let V=s[Q.id];V===void 0&&(V={},s[Q.id]=V);let y=V[X];return y===void 0&&(y=b(p()),V[X]=y),y}function b($){const Q=[],Z=[],X=[];for(let s=0;s<t;s++)Q[s]=0,Z[s]=0,X[s]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:Q,enabledAttributes:Z,attributeDivisors:X,object:$,attributes:{},index:null}}function w($,Q,Z,X){const s=l.attributes,V=Q.attributes;let y=0;const ee=Z.getAttributes();for(const I in ee)if(ee[I].location>=0){const Ae=s[I];let N=V[I];if(N===void 0&&(I==="instanceMatrix"&&$.instanceMatrix&&(N=$.instanceMatrix),I==="instanceColor"&&$.instanceColor&&(N=$.instanceColor)),Ae===void 0||Ae.attribute!==N||N&&Ae.data!==N.data)return!0;y++}return l.attributesNum!==y||l.index!==X}function E($,Q,Z,X){const s={},V=Q.attributes;let y=0;const ee=Z.getAttributes();for(const I in ee)if(ee[I].location>=0){let Ae=V[I];Ae===void 0&&(I==="instanceMatrix"&&$.instanceMatrix&&(Ae=$.instanceMatrix),I==="instanceColor"&&$.instanceColor&&(Ae=$.instanceColor));const N={};N.attribute=Ae,Ae&&Ae.data&&(N.data=Ae.data),s[I]=N,y++}l.attributes=s,l.attributesNum=y,l.index=X}function C(){const $=l.newAttributes;for(let Q=0,Z=$.length;Q<Z;Q++)$[Q]=0}function T($){x($,0)}function x($,Q){const Z=l.newAttributes,X=l.enabledAttributes,s=l.attributeDivisors;Z[$]=1,X[$]===0&&(o.enableVertexAttribArray($),X[$]=1),s[$]!==Q&&(o.vertexAttribDivisor($,Q),s[$]=Q)}function P(){const $=l.newAttributes,Q=l.enabledAttributes;for(let Z=0,X=Q.length;Z<X;Z++)Q[Z]!==$[Z]&&(o.disableVertexAttribArray(Z),Q[Z]=0)}function M($,Q,Z,X,s,V,y){y===!0?o.vertexAttribIPointer($,Q,Z,s,V):o.vertexAttribPointer($,Q,Z,X,s,V)}function R($,Q,Z,X){C();const s=X.attributes,V=Z.getAttributes(),y=Q.defaultAttributeValues;for(const ee in V){const I=V[ee];if(I.location>=0){let re=s[ee];if(re===void 0&&(ee==="instanceMatrix"&&$.instanceMatrix&&(re=$.instanceMatrix),ee==="instanceColor"&&$.instanceColor&&(re=$.instanceColor)),re!==void 0){const Ae=re.normalized,N=re.itemSize,n=e.get(re);if(n===void 0)continue;const r=n.buffer,c=n.type,u=n.bytesPerElement,f=c===o.INT||c===o.UNSIGNED_INT||re.gpuType===$f;if(re.isInterleavedBufferAttribute){const m=re.data,v=m.stride,S=re.offset;if(m.isInstancedInterleavedBuffer){for(let B=0;B<I.locationSize;B++)x(I.location+B,m.meshPerAttribute);$.isInstancedMesh!==!0&&X._maxInstanceCount===void 0&&(X._maxInstanceCount=m.meshPerAttribute*m.count)}else for(let B=0;B<I.locationSize;B++)T(I.location+B);o.bindBuffer(o.ARRAY_BUFFER,r);for(let B=0;B<I.locationSize;B++)M(I.location+B,N/I.locationSize,c,Ae,v*u,(S+N/I.locationSize*B)*u,f)}else{if(re.isInstancedBufferAttribute){for(let m=0;m<I.locationSize;m++)x(I.location+m,re.meshPerAttribute);$.isInstancedMesh!==!0&&X._maxInstanceCount===void 0&&(X._maxInstanceCount=re.meshPerAttribute*re.count)}else for(let m=0;m<I.locationSize;m++)T(I.location+m);o.bindBuffer(o.ARRAY_BUFFER,r);for(let m=0;m<I.locationSize;m++)M(I.location+m,N/I.locationSize,c,Ae,N*u,N/I.locationSize*m*u,f)}}else if(y!==void 0){const Ae=y[ee];if(Ae!==void 0)switch(Ae.length){case 2:o.vertexAttrib2fv(I.location,Ae);break;case 3:o.vertexAttrib3fv(I.location,Ae);break;case 4:o.vertexAttrib4fv(I.location,Ae);break;default:o.vertexAttrib1fv(I.location,Ae)}}}}P()}function D(){H();for(const $ in i){const Q=i[$];for(const Z in Q){const X=Q[Z];for(const s in X)A(X[s].object),delete X[s];delete Q[Z]}delete i[$]}}function G($){if(i[$.id]===void 0)return;const Q=i[$.id];for(const Z in Q){const X=Q[Z];for(const s in X)A(X[s].object),delete X[s];delete Q[Z]}delete i[$.id]}function U($){for(const Q in i){const Z=i[Q];if(Z[$.id]===void 0)continue;const X=Z[$.id];for(const s in X)A(X[s].object),delete X[s];delete Z[$.id]}}function H(){k(),h=!0,l!==a&&(l=a,g(l.object))}function k(){a.geometry=null,a.program=null,a.wireframe=!1}return{setup:d,reset:H,resetDefaultState:k,dispose:D,releaseStatesOfGeometry:G,releaseStatesOfProgram:U,initAttributes:C,enableAttribute:T,disableUnusedAttributes:P}}function qP(o,e,t){let i;function a(g){i=g}function l(g,A){o.drawArrays(i,g,A),t.update(A,i,1)}function h(g,A,_){_!==0&&(o.drawArraysInstanced(i,g,A,_),t.update(A,i,_))}function d(g,A,_){if(_===0)return;e.get("WEBGL_multi_draw").multiDrawArraysWEBGL(i,g,0,A,0,_);let w=0;for(let E=0;E<_;E++)w+=A[E];t.update(w,i,1)}function p(g,A,_,b){if(_===0)return;const w=e.get("WEBGL_multi_draw");if(w===null)for(let E=0;E<g.length;E++)h(g[E],A[E],b[E]);else{w.multiDrawArraysInstancedWEBGL(i,g,0,A,0,b,0,_);let E=0;for(let C=0;C<_;C++)E+=A[C]*b[C];t.update(E,i,1)}}this.setMode=a,this.render=l,this.renderInstances=h,this.renderMultiDraw=d,this.renderMultiDrawInstances=p}function jP(o,e,t,i){let a;function l(){if(a!==void 0)return a;if(e.has("EXT_texture_filter_anisotropic")===!0){const U=e.get("EXT_texture_filter_anisotropic");a=o.getParameter(U.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else a=0;return a}function h(U){return!(U!==Xt&&i.convert(U)!==o.getParameter(o.IMPLEMENTATION_COLOR_READ_FORMAT))}function d(U){const H=U===hi&&(e.has("EXT_color_buffer_half_float")||e.has("EXT_color_buffer_float"));return!(U!==pi&&i.convert(U)!==o.getParameter(o.IMPLEMENTATION_COLOR_READ_TYPE)&&U!==ri&&!H)}function p(U){if(U==="highp"){if(o.getShaderPrecisionFormat(o.VERTEX_SHADER,o.HIGH_FLOAT).precision>0&&o.getShaderPrecisionFormat(o.FRAGMENT_SHADER,o.HIGH_FLOAT).precision>0)return"highp";U="mediump"}return U==="mediump"&&o.getShaderPrecisionFormat(o.VERTEX_SHADER,o.MEDIUM_FLOAT).precision>0&&o.getShaderPrecisionFormat(o.FRAGMENT_SHADER,o.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let g=t.precision!==void 0?t.precision:"highp";const A=p(g);A!==g&&(console.warn("THREE.WebGLRenderer:",g,"not supported, using",A,"instead."),g=A);const _=t.logarithmicDepthBuffer===!0,b=t.reverseDepthBuffer===!0&&e.has("EXT_clip_control"),w=o.getParameter(o.MAX_TEXTURE_IMAGE_UNITS),E=o.getParameter(o.MAX_VERTEX_TEXTURE_IMAGE_UNITS),C=o.getParameter(o.MAX_TEXTURE_SIZE),T=o.getParameter(o.MAX_CUBE_MAP_TEXTURE_SIZE),x=o.getParameter(o.MAX_VERTEX_ATTRIBS),P=o.getParameter(o.MAX_VERTEX_UNIFORM_VECTORS),M=o.getParameter(o.MAX_VARYING_VECTORS),R=o.getParameter(o.MAX_FRAGMENT_UNIFORM_VECTORS),D=E>0,G=o.getParameter(o.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:l,getMaxPrecision:p,textureFormatReadable:h,textureTypeReadable:d,precision:g,logarithmicDepthBuffer:_,reverseDepthBuffer:b,maxTextures:w,maxVertexTextures:E,maxTextureSize:C,maxCubemapSize:T,maxAttributes:x,maxVertexUniforms:P,maxVaryings:M,maxFragmentUniforms:R,vertexTextures:D,maxSamples:G}}function WP(o){const e=this;let t=null,i=0,a=!1,l=!1;const h=new ba,d=new lt,p={value:null,needsUpdate:!1};this.uniform=p,this.numPlanes=0,this.numIntersection=0,this.init=function(_,b){const w=_.length!==0||b||i!==0||a;return a=b,i=_.length,w},this.beginShadows=function(){l=!0,A(null)},this.endShadows=function(){l=!1},this.setGlobalState=function(_,b){t=A(_,b,0)},this.setState=function(_,b,w){const E=_.clippingPlanes,C=_.clipIntersection,T=_.clipShadows,x=o.get(_);if(!a||E===null||E.length===0||l&&!T)l?A(null):g();else{const P=l?0:i,M=P*4;let R=x.clippingState||null;p.value=R,R=A(E,b,M,w);for(let D=0;D!==M;++D)R[D]=t[D];x.clippingState=R,this.numIntersection=C?this.numPlanes:0,this.numPlanes+=P}};function g(){p.value!==t&&(p.value=t,p.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function A(_,b,w,E){const C=_!==null?_.length:0;let T=null;if(C!==0){if(T=p.value,E!==!0||T===null){const x=w+C*4,P=b.matrixWorldInverse;d.getNormalMatrix(P),(T===null||T.length<x)&&(T=new Float32Array(x));for(let M=0,R=w;M!==C;++M,R+=4)h.copy(_[M]).applyMatrix4(P,d),h.normal.toArray(T,R),T[R+3]=h.constant}p.value=T,p.needsUpdate=!0}return e.numPlanes=C,e.numIntersection=0,T}}function YP(o){let e=new WeakMap;function t(h,d){return d===Ch?h.mapping=Ya:d===cA&&(h.mapping=bl),h}function i(h){if(h&&h.isTexture){const d=h.mapping;if(d===Ch||d===cA)if(e.has(h)){const p=e.get(h).texture;return t(p,h.mapping)}else{const p=h.image;if(p&&p.height>0){const g=new Y0(p.height);return g.fromEquirectangularTexture(o,h),e.set(h,g),h.addEventListener("dispose",a),t(g.texture,h.mapping)}else return null}}return h}function a(h){const d=h.target;d.removeEventListener("dispose",a);const p=e.get(d);p!==void 0&&(e.delete(d),p.dispose())}function l(){e=new WeakMap}return{get:i,dispose:l}}const el=4,tb=[.125,.215,.35,.446,.526,.582],Pa=20,Hp=new ea,ib=new je;let Vp=null,Qp=0,qp=0,jp=!1;const va=(1+Math.sqrt(5))/2,Co=1/va,nb=[new se(-va,Co,0),new se(va,Co,0),new se(-Co,0,va),new se(Co,0,va),new se(0,va,-Co),new se(0,va,Co),new se(-1,1,-1),new se(1,1,-1),new se(-1,1,1),new se(1,1,1)];class sb{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,i=.1,a=100){Vp=this._renderer.getRenderTarget(),Qp=this._renderer.getActiveCubeFace(),qp=this._renderer.getActiveMipmapLevel(),jp=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const l=this._allocateTargets();return l.depthBuffer=!0,this._sceneToCubeUV(e,i,a,l),t>0&&this._blur(l,0,0,t),this._applyPMREM(l),this._cleanup(l),l}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=ob(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=ab(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(Vp,Qp,qp),this._renderer.xr.enabled=jp,e.scissorTest=!1,ku(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===Ya||e.mapping===bl?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),Vp=this._renderer.getRenderTarget(),Qp=this._renderer.getActiveCubeFace(),qp=this._renderer.getActiveMipmapLevel(),jp=this._renderer.xr.enabled,this._renderer.xr.enabled=!1;const i=t||this._allocateTargets();return this._textureToCubeUV(e,i),this._applyPMREM(i),this._cleanup(i),i}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,i={magFilter:St,minFilter:St,generateMipmaps:!1,type:hi,format:Xt,colorSpace:jt,depthBuffer:!1},a=rb(e,t,i);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=rb(e,t,i);const{_lodMax:l}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=XP(l)),this._blurMaterial=KP(l,e,t)}return a}_compileMaterial(e){const t=new ot(this._lodPlanes[0],e);this._renderer.compile(t,Hp)}_sceneToCubeUV(e,t,i,a){const d=new bi(90,1,t,i),p=[1,-1,1,1,1,1],g=[1,1,1,-1,-1,-1],A=this._renderer,_=A.autoClear,b=A.toneMapping;A.getClearColor(ib),A.toneMapping=Ts,A.autoClear=!1;const w=new wi({name:"PMREM.Background",side:$i,depthWrite:!1,depthTest:!1}),E=new ot(new Wn,w);let C=!1;const T=e.background;T?T.isColor&&(w.color.copy(T),e.background=null,C=!0):(w.color.copy(ib),C=!0);for(let x=0;x<6;x++){const P=x%3;P===0?(d.up.set(0,p[x],0),d.lookAt(g[x],0,0)):P===1?(d.up.set(0,0,p[x]),d.lookAt(0,g[x],0)):(d.up.set(0,p[x],0),d.lookAt(0,0,g[x]));const M=this._cubeSize;ku(a,P*M,x>2?M:0,M,M),A.setRenderTarget(a),C&&A.render(E,d),A.render(e,d)}E.geometry.dispose(),E.material.dispose(),A.toneMapping=b,A.autoClear=_,e.background=T}_textureToCubeUV(e,t){const i=this._renderer,a=e.mapping===Ya||e.mapping===bl;a?(this._cubemapMaterial===null&&(this._cubemapMaterial=ob()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=ab());const l=a?this._cubemapMaterial:this._equirectMaterial,h=new ot(this._lodPlanes[0],l),d=l.uniforms;d.envMap.value=e;const p=this._cubeSize;ku(t,0,0,3*p,2*p),i.setRenderTarget(t),i.render(h,Hp)}_applyPMREM(e){const t=this._renderer,i=t.autoClear;t.autoClear=!1;const a=this._lodPlanes.length;for(let l=1;l<a;l++){const h=Math.sqrt(this._sigmas[l]*this._sigmas[l]-this._sigmas[l-1]*this._sigmas[l-1]),d=nb[(a-l-1)%nb.length];this._blur(e,l-1,l,h,d)}t.autoClear=i}_blur(e,t,i,a,l){const h=this._pingPongRenderTarget;this._halfBlur(e,h,t,i,a,"latitudinal",l),this._halfBlur(h,e,i,i,a,"longitudinal",l)}_halfBlur(e,t,i,a,l,h,d){const p=this._renderer,g=this._blurMaterial;h!=="latitudinal"&&h!=="longitudinal"&&console.error("blur direction must be either latitudinal or longitudinal!");const A=3,_=new ot(this._lodPlanes[a],g),b=g.uniforms,w=this._sizeLods[i]-1,E=isFinite(l)?Math.PI/(2*w):2*Math.PI/(2*Pa-1),C=l/E,T=isFinite(l)?1+Math.floor(A*C):Pa;T>Pa&&console.warn(`sigmaRadians, ${l}, is too large and will clip, as it requested ${T} samples when the maximum is set to ${Pa}`);const x=[];let P=0;for(let U=0;U<Pa;++U){const H=U/C,k=Math.exp(-H*H/2);x.push(k),U===0?P+=k:U<T&&(P+=2*k)}for(let U=0;U<x.length;U++)x[U]=x[U]/P;b.envMap.value=e.texture,b.samples.value=T,b.weights.value=x,b.latitudinal.value=h==="latitudinal",d&&(b.poleAxis.value=d);const{_lodMax:M}=this;b.dTheta.value=E,b.mipInt.value=M-i;const R=this._sizeLods[a],D=3*R*(a>M-el?a-M+el:0),G=4*(this._cubeSize-R);ku(t,D,G,3*R,2*R),p.setRenderTarget(t),p.render(_,Hp)}}function XP(o){const e=[],t=[],i=[];let a=o;const l=o-el+1+tb.length;for(let h=0;h<l;h++){const d=Math.pow(2,a);t.push(d);let p=1/d;h>o-el?p=tb[h-o+el-1]:h===0&&(p=0),i.push(p);const g=1/(d-2),A=-g,_=1+g,b=[A,A,_,A,_,_,A,A,_,_,A,_],w=6,E=6,C=3,T=2,x=1,P=new Float32Array(C*E*w),M=new Float32Array(T*E*w),R=new Float32Array(x*E*w);for(let G=0;G<w;G++){const U=G%3*2/3-1,H=G>2?0:-1,k=[U,H,0,U+2/3,H,0,U+2/3,H+1,0,U,H,0,U+2/3,H+1,0,U,H+1,0];P.set(k,C*E*G),M.set(b,T*E*G);const $=[G,G,G,G,G,G];R.set($,x*E*G)}const D=new yi;D.setAttribute("position",new qt(P,C)),D.setAttribute("uv",new qt(M,T)),D.setAttribute("faceIndex",new qt(R,x)),e.push(D),a>el&&a--}return{lodPlanes:e,sizeLods:t,sigmas:i}}function rb(o,e,t){const i=new Gi(o,e,t);return i.texture.mapping=Ff,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function ku(o,e,t,i,a){o.viewport.set(e,t,i,a),o.scissor.set(e,t,i,a)}function KP(o,e,t){const i=new Float32Array(Pa),a=new se(0,1,0);return new Ni({name:"SphericalGaussianBlur",defines:{n:Pa,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${o}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:a}},vertexShader:l_(),fragmentShader:`
|
|
3638
3638
|
|
|
3639
3639
|
precision mediump float;
|
|
3640
3640
|
precision mediump int;
|
|
@@ -3835,7 +3835,7 @@ Material Type: `+Q.type+`
|
|
|
3835
3835
|
|
|
3836
3836
|
Program Info Log: `+Z+`
|
|
3837
3837
|
`+ee+`
|
|
3838
|
-
`+I)}else Z!==""?console.warn("THREE.WebGLProgram: Program Info Log:",Z):(X===""||s==="")&&(y=!1);y&&(Q.diagnostics={runnable:V,programLog:Z,vertexShader:{log:X,prefix:T},fragmentShader:{log:s,prefix:x}})}a.deleteShader(D),a.deleteShader(G),H=new Pd(a,C),k=sD(a,C)}let H;this.getUniforms=function(){return H===void 0&&U(this),H};let k;this.getAttributes=function(){return k===void 0&&U(this),k};let $=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return $===!1&&($=a.getProgramParameter(C,YL)),$},this.destroy=function(){i.releaseStatesOfProgram(this),a.deleteProgram(C),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=XL++,this.cacheKey=e,this.usedTimes=1,this.program=C,this.vertexShader=D,this.fragmentShader=G,this}let mD=0;class AD{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,i=e.fragmentShader,a=this._getShaderStage(t),l=this._getShaderStage(i),h=this._getShaderCacheForMaterial(e);return h.has(a)===!1&&(h.add(a),a.usedTimes++),h.has(l)===!1&&(h.add(l),l.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const i of t)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let i=t.get(e);return i===void 0&&(i=new Set,t.set(e,i)),i}_getShaderStage(e){const t=this.shaderCache;let i=t.get(e);return i===void 0&&(i=new _D(e),t.set(e,i)),i}}class _D{constructor(e){this.id=mD++,this.code=e,this.usedTimes=0}}function yD(o,e,t,i,a,l,h){const d=new j0,p=new AD,g=new Set,A=[],_=a.logarithmicDepthBuffer,b=a.vertexTextures;let w=a.precision;const E={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function C(k){return g.add(k),k===0?"uv":`uv${k}`}function T(k,$,Q,Z,X){const s=Z.fog,V=X.geometry,y=k.isMeshStandardMaterial?Z.environment:null,ee=(k.isMeshStandardMaterial?t:e).get(k.envMap||y),I=ee&&ee.mapping===Ff?ee.image.height:null,re=E[k.type];k.precision!==null&&(w=a.getMaxPrecision(k.precision),w!==k.precision&&console.warn("THREE.WebGLProgram.getParameters:",k.precision,"not supported, using",w,"instead."));const Ae=V.morphAttributes.position||V.morphAttributes.normal||V.morphAttributes.color,N=Ae!==void 0?Ae.length:0;let n=0;V.morphAttributes.position!==void 0&&(n=1),V.morphAttributes.normal!==void 0&&(n=2),V.morphAttributes.color!==void 0&&(n=3);let r,c,u,f;if(re){const It=vs[re];r=It.vertexShader,c=It.fragmentShader}else r=k.vertexShader,c=k.fragmentShader,p.update(k),u=p.getVertexShaderID(k),f=p.getFragmentShaderID(k);const m=o.getRenderTarget(),v=o.state.buffers.depth.getReversed(),S=X.isInstancedMesh===!0,B=X.isBatchedMesh===!0,L=!!k.map,F=!!k.matcap,z=!!ee,O=!!k.aoMap,W=!!k.lightMap,Y=!!k.bumpMap,te=!!k.normalMap,K=!!k.displacementMap,ie=!!k.emissiveMap,de=!!k.metalnessMap,j=!!k.roughnessMap,q=k.anisotropy>0,ae=k.clearcoat>0,me=k.dispersion>0,fe=k.iridescence>0,he=k.sheen>0,ve=k.transmission>0,Re=q&&!!k.anisotropyMap,Le=ae&&!!k.clearcoatMap,Xe=ae&&!!k.clearcoatNormalMap,xe=ae&&!!k.clearcoatRoughnessMap,Pe=fe&&!!k.iridescenceMap,Ie=fe&&!!k.iridescenceThicknessMap,Ue=he&&!!k.sheenColorMap,Ne=he&&!!k.sheenRoughnessMap,et=!!k.specularMap,Ke=!!k.specularColorMap,gt=!!k.specularIntensityMap,ne=ve&&!!k.transmissionMap,Oe=ve&&!!k.thicknessMap,ye=!!k.gradientMap,we=!!k.alphaMap,Ge=k.alphaTest>0,ze=!!k.alphaHash,We=!!k.extensions;let Ft=Ts;k.toneMapped&&(m===null||m.isXRRenderTarget===!0)&&(Ft=o.toneMapping);const Si={shaderID:re,shaderType:k.type,shaderName:k.name,vertexShader:r,fragmentShader:c,defines:k.defines,customVertexShaderID:u,customFragmentShaderID:f,isRawShaderMaterial:k.isRawShaderMaterial===!0,glslVersion:k.glslVersion,precision:w,batching:B,batchingColor:B&&X._colorsTexture!==null,instancing:S,instancingColor:S&&X.instanceColor!==null,instancingMorph:S&&X.morphTexture!==null,supportsVertexTextures:b,outputColorSpace:m===null?o.outputColorSpace:m.isXRRenderTarget===!0?m.texture.colorSpace:jt,alphaToCoverage:!!k.alphaToCoverage,map:L,matcap:F,envMap:z,envMapMode:z&&ee.mapping,envMapCubeUVHeight:I,aoMap:O,lightMap:W,bumpMap:Y,normalMap:te,displacementMap:b&&K,emissiveMap:ie,normalMapObjectSpace:te&&k.normalMapType===yM,normalMapTangentSpace:te&&k.normalMapType===V0,metalnessMap:de,roughnessMap:j,anisotropy:q,anisotropyMap:Re,clearcoat:ae,clearcoatMap:Le,clearcoatNormalMap:Xe,clearcoatRoughnessMap:xe,dispersion:me,iridescence:fe,iridescenceMap:Pe,iridescenceThicknessMap:Ie,sheen:he,sheenColorMap:Ue,sheenRoughnessMap:Ne,specularMap:et,specularColorMap:Ke,specularIntensityMap:gt,transmission:ve,transmissionMap:ne,thicknessMap:Oe,gradientMap:ye,opaque:k.transparent===!1&&k.blending===ol&&k.alphaToCoverage===!1,alphaMap:we,alphaTest:Ge,alphaHash:ze,combine:k.combine,mapUv:L&&C(k.map.channel),aoMapUv:O&&C(k.aoMap.channel),lightMapUv:W&&C(k.lightMap.channel),bumpMapUv:Y&&C(k.bumpMap.channel),normalMapUv:te&&C(k.normalMap.channel),displacementMapUv:K&&C(k.displacementMap.channel),emissiveMapUv:ie&&C(k.emissiveMap.channel),metalnessMapUv:de&&C(k.metalnessMap.channel),roughnessMapUv:j&&C(k.roughnessMap.channel),anisotropyMapUv:Re&&C(k.anisotropyMap.channel),clearcoatMapUv:Le&&C(k.clearcoatMap.channel),clearcoatNormalMapUv:Xe&&C(k.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:xe&&C(k.clearcoatRoughnessMap.channel),iridescenceMapUv:Pe&&C(k.iridescenceMap.channel),iridescenceThicknessMapUv:Ie&&C(k.iridescenceThicknessMap.channel),sheenColorMapUv:Ue&&C(k.sheenColorMap.channel),sheenRoughnessMapUv:Ne&&C(k.sheenRoughnessMap.channel),specularMapUv:et&&C(k.specularMap.channel),specularColorMapUv:Ke&&C(k.specularColorMap.channel),specularIntensityMapUv:gt&&C(k.specularIntensityMap.channel),transmissionMapUv:ne&&C(k.transmissionMap.channel),thicknessMapUv:Oe&&C(k.thicknessMap.channel),alphaMapUv:we&&C(k.alphaMap.channel),vertexTangents:!!V.attributes.tangent&&(te||q),vertexColors:k.vertexColors,vertexAlphas:k.vertexColors===!0&&!!V.attributes.color&&V.attributes.color.itemSize===4,pointsUvs:X.isPoints===!0&&!!V.attributes.uv&&(L||we),fog:!!s,useFog:k.fog===!0,fogExp2:!!s&&s.isFogExp2,flatShading:k.flatShading===!0,sizeAttenuation:k.sizeAttenuation===!0,logarithmicDepthBuffer:_,reverseDepthBuffer:v,skinning:X.isSkinnedMesh===!0,morphTargets:V.morphAttributes.position!==void 0,morphNormals:V.morphAttributes.normal!==void 0,morphColors:V.morphAttributes.color!==void 0,morphTargetsCount:N,morphTextureStride:n,numDirLights:$.directional.length,numPointLights:$.point.length,numSpotLights:$.spot.length,numSpotLightMaps:$.spotLightMap.length,numRectAreaLights:$.rectArea.length,numHemiLights:$.hemi.length,numDirLightShadows:$.directionalShadowMap.length,numPointLightShadows:$.pointShadowMap.length,numSpotLightShadows:$.spotShadowMap.length,numSpotLightShadowsWithMaps:$.numSpotLightShadowsWithMaps,numLightProbes:$.numLightProbes,numClippingPlanes:h.numPlanes,numClipIntersection:h.numIntersection,dithering:k.dithering,shadowMapEnabled:o.shadowMap.enabled&&Q.length>0,shadowMapType:o.shadowMap.type,toneMapping:Ft,decodeVideoTexture:L&&k.map.isVideoTexture===!0&&xt.getTransfer(k.map.colorSpace)===Ht,decodeVideoTextureEmissive:ie&&k.emissiveMap.isVideoTexture===!0&&xt.getTransfer(k.emissiveMap.colorSpace)===Ht,premultipliedAlpha:k.premultipliedAlpha,doubleSided:k.side===Pi,flipSided:k.side===$i,useDepthPacking:k.depthPacking>=0,depthPacking:k.depthPacking||0,index0AttributeName:k.index0AttributeName,extensionClipCullDistance:We&&k.extensions.clipCullDistance===!0&&i.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(We&&k.extensions.multiDraw===!0||B)&&i.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:k.customProgramCacheKey()};return Si.vertexUv1s=g.has(1),Si.vertexUv2s=g.has(2),Si.vertexUv3s=g.has(3),g.clear(),Si}function x(k){const $=[];if(k.shaderID?$.push(k.shaderID):($.push(k.customVertexShaderID),$.push(k.customFragmentShaderID)),k.defines!==void 0)for(const Q in k.defines)$.push(Q),$.push(k.defines[Q]);return k.isRawShaderMaterial===!1&&(P($,k),M($,k),$.push(o.outputColorSpace)),$.push(k.customProgramCacheKey),$.join()}function P(k,$){k.push($.precision),k.push($.outputColorSpace),k.push($.envMapMode),k.push($.envMapCubeUVHeight),k.push($.mapUv),k.push($.alphaMapUv),k.push($.lightMapUv),k.push($.aoMapUv),k.push($.bumpMapUv),k.push($.normalMapUv),k.push($.displacementMapUv),k.push($.emissiveMapUv),k.push($.metalnessMapUv),k.push($.roughnessMapUv),k.push($.anisotropyMapUv),k.push($.clearcoatMapUv),k.push($.clearcoatNormalMapUv),k.push($.clearcoatRoughnessMapUv),k.push($.iridescenceMapUv),k.push($.iridescenceThicknessMapUv),k.push($.sheenColorMapUv),k.push($.sheenRoughnessMapUv),k.push($.specularMapUv),k.push($.specularColorMapUv),k.push($.specularIntensityMapUv),k.push($.transmissionMapUv),k.push($.thicknessMapUv),k.push($.combine),k.push($.fogExp2),k.push($.sizeAttenuation),k.push($.morphTargetsCount),k.push($.morphAttributeCount),k.push($.numDirLights),k.push($.numPointLights),k.push($.numSpotLights),k.push($.numSpotLightMaps),k.push($.numHemiLights),k.push($.numRectAreaLights),k.push($.numDirLightShadows),k.push($.numPointLightShadows),k.push($.numSpotLightShadows),k.push($.numSpotLightShadowsWithMaps),k.push($.numLightProbes),k.push($.shadowMapType),k.push($.toneMapping),k.push($.numClippingPlanes),k.push($.numClipIntersection),k.push($.depthPacking)}function M(k,$){d.disableAll(),$.supportsVertexTextures&&d.enable(0),$.instancing&&d.enable(1),$.instancingColor&&d.enable(2),$.instancingMorph&&d.enable(3),$.matcap&&d.enable(4),$.envMap&&d.enable(5),$.normalMapObjectSpace&&d.enable(6),$.normalMapTangentSpace&&d.enable(7),$.clearcoat&&d.enable(8),$.iridescence&&d.enable(9),$.alphaTest&&d.enable(10),$.vertexColors&&d.enable(11),$.vertexAlphas&&d.enable(12),$.vertexUv1s&&d.enable(13),$.vertexUv2s&&d.enable(14),$.vertexUv3s&&d.enable(15),$.vertexTangents&&d.enable(16),$.anisotropy&&d.enable(17),$.alphaHash&&d.enable(18),$.batching&&d.enable(19),$.dispersion&&d.enable(20),$.batchingColor&&d.enable(21),k.push(d.mask),d.disableAll(),$.fog&&d.enable(0),$.useFog&&d.enable(1),$.flatShading&&d.enable(2),$.logarithmicDepthBuffer&&d.enable(3),$.reverseDepthBuffer&&d.enable(4),$.skinning&&d.enable(5),$.morphTargets&&d.enable(6),$.morphNormals&&d.enable(7),$.morphColors&&d.enable(8),$.premultipliedAlpha&&d.enable(9),$.shadowMapEnabled&&d.enable(10),$.doubleSided&&d.enable(11),$.flipSided&&d.enable(12),$.useDepthPacking&&d.enable(13),$.dithering&&d.enable(14),$.transmission&&d.enable(15),$.sheen&&d.enable(16),$.opaque&&d.enable(17),$.pointsUvs&&d.enable(18),$.decodeVideoTexture&&d.enable(19),$.decodeVideoTextureEmissive&&d.enable(20),$.alphaToCoverage&&d.enable(21),k.push(d.mask)}function R(k){const $=E[k.type];let Q;if($){const Z=vs[$];Q=W0.clone(Z.uniforms)}else Q=k.uniforms;return Q}function D(k,$){let Q;for(let Z=0,X=A.length;Z<X;Z++){const s=A[Z];if(s.cacheKey===$){Q=s,++Q.usedTimes;break}}return Q===void 0&&(Q=new gD(o,$,k,l),A.push(Q)),Q}function G(k){if(--k.usedTimes===0){const $=A.indexOf(k);A[$]=A[A.length-1],A.pop(),k.destroy()}}function U(k){p.remove(k)}function H(){p.dispose()}return{getParameters:T,getProgramCacheKey:x,getUniforms:R,acquireProgram:D,releaseProgram:G,releaseShaderCache:U,programs:A,dispose:H}}function bD(){let o=new WeakMap;function e(h){return o.has(h)}function t(h){let d=o.get(h);return d===void 0&&(d={},o.set(h,d)),d}function i(h){o.delete(h)}function a(h,d,p){o.get(h)[d]=p}function l(){o=new WeakMap}return{has:e,get:t,remove:i,update:a,dispose:l}}function vD(o,e){return o.groupOrder!==e.groupOrder?o.groupOrder-e.groupOrder:o.renderOrder!==e.renderOrder?o.renderOrder-e.renderOrder:o.material.id!==e.material.id?o.material.id-e.material.id:o.z!==e.z?o.z-e.z:o.id-e.id}function wb(o,e){return o.groupOrder!==e.groupOrder?o.groupOrder-e.groupOrder:o.renderOrder!==e.renderOrder?o.renderOrder-e.renderOrder:o.z!==e.z?e.z-o.z:o.id-e.id}function Eb(){const o=[];let e=0;const t=[],i=[],a=[];function l(){e=0,t.length=0,i.length=0,a.length=0}function h(_,b,w,E,C,T){let x=o[e];return x===void 0?(x={id:_.id,object:_,geometry:b,material:w,groupOrder:E,renderOrder:_.renderOrder,z:C,group:T},o[e]=x):(x.id=_.id,x.object=_,x.geometry=b,x.material=w,x.groupOrder=E,x.renderOrder=_.renderOrder,x.z=C,x.group=T),e++,x}function d(_,b,w,E,C,T){const x=h(_,b,w,E,C,T);w.transmission>0?i.push(x):w.transparent===!0?a.push(x):t.push(x)}function p(_,b,w,E,C,T){const x=h(_,b,w,E,C,T);w.transmission>0?i.unshift(x):w.transparent===!0?a.unshift(x):t.unshift(x)}function g(_,b){t.length>1&&t.sort(_||vD),i.length>1&&i.sort(b||wb),a.length>1&&a.sort(b||wb)}function A(){for(let _=e,b=o.length;_<b;_++){const w=o[_];if(w.id===null)break;w.id=null,w.object=null,w.geometry=null,w.material=null,w.group=null}}return{opaque:t,transmissive:i,transparent:a,init:l,push:d,unshift:p,finish:A,sort:g}}function wD(){let o=new WeakMap;function e(i,a){const l=o.get(i);let h;return l===void 0?(h=new Eb,o.set(i,[h])):a>=l.length?(h=new Eb,l.push(h)):h=l[a],h}function t(){o=new WeakMap}return{get:e,dispose:t}}function ED(){const o={};return{get:function(e){if(o[e.id]!==void 0)return o[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new se,color:new je};break;case"SpotLight":t={position:new se,direction:new se,color:new je,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new se,color:new je,distance:0,decay:0};break;case"HemisphereLight":t={direction:new se,skyColor:new je,groundColor:new je};break;case"RectAreaLight":t={color:new je,position:new se,halfWidth:new se,halfHeight:new se};break}return o[e.id]=t,t}}}function xD(){const o={};return{get:function(e){if(o[e.id]!==void 0)return o[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new He};break;case"SpotLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new He};break;case"PointLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new He,shadowCameraNear:1,shadowCameraFar:1e3};break}return o[e.id]=t,t}}}let SD=0;function CD(o,e){return(e.castShadow?2:0)-(o.castShadow?2:0)+(e.map?1:0)-(o.map?1:0)}function TD(o){const e=new ED,t=xD(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let g=0;g<9;g++)i.probe.push(new se);const a=new se,l=new tt,h=new tt;function d(g){let A=0,_=0,b=0;for(let k=0;k<9;k++)i.probe[k].set(0,0,0);let w=0,E=0,C=0,T=0,x=0,P=0,M=0,R=0,D=0,G=0,U=0;g.sort(CD);for(let k=0,$=g.length;k<$;k++){const Q=g[k],Z=Q.color,X=Q.intensity,s=Q.distance,V=Q.shadow&&Q.shadow.map?Q.shadow.map.texture:null;if(Q.isAmbientLight)A+=Z.r*X,_+=Z.g*X,b+=Z.b*X;else if(Q.isLightProbe){for(let y=0;y<9;y++)i.probe[y].addScaledVector(Q.sh.coefficients[y],X);U++}else if(Q.isDirectionalLight){const y=e.get(Q);if(y.color.copy(Q.color).multiplyScalar(Q.intensity),Q.castShadow){const ee=Q.shadow,I=t.get(Q);I.shadowIntensity=ee.intensity,I.shadowBias=ee.bias,I.shadowNormalBias=ee.normalBias,I.shadowRadius=ee.radius,I.shadowMapSize=ee.mapSize,i.directionalShadow[w]=I,i.directionalShadowMap[w]=V,i.directionalShadowMatrix[w]=Q.shadow.matrix,P++}i.directional[w]=y,w++}else if(Q.isSpotLight){const y=e.get(Q);y.position.setFromMatrixPosition(Q.matrixWorld),y.color.copy(Z).multiplyScalar(X),y.distance=s,y.coneCos=Math.cos(Q.angle),y.penumbraCos=Math.cos(Q.angle*(1-Q.penumbra)),y.decay=Q.decay,i.spot[C]=y;const ee=Q.shadow;if(Q.map&&(i.spotLightMap[D]=Q.map,D++,ee.updateMatrices(Q),Q.castShadow&&G++),i.spotLightMatrix[C]=ee.matrix,Q.castShadow){const I=t.get(Q);I.shadowIntensity=ee.intensity,I.shadowBias=ee.bias,I.shadowNormalBias=ee.normalBias,I.shadowRadius=ee.radius,I.shadowMapSize=ee.mapSize,i.spotShadow[C]=I,i.spotShadowMap[C]=V,R++}C++}else if(Q.isRectAreaLight){const y=e.get(Q);y.color.copy(Z).multiplyScalar(X),y.halfWidth.set(Q.width*.5,0,0),y.halfHeight.set(0,Q.height*.5,0),i.rectArea[T]=y,T++}else if(Q.isPointLight){const y=e.get(Q);if(y.color.copy(Q.color).multiplyScalar(Q.intensity),y.distance=Q.distance,y.decay=Q.decay,Q.castShadow){const ee=Q.shadow,I=t.get(Q);I.shadowIntensity=ee.intensity,I.shadowBias=ee.bias,I.shadowNormalBias=ee.normalBias,I.shadowRadius=ee.radius,I.shadowMapSize=ee.mapSize,I.shadowCameraNear=ee.camera.near,I.shadowCameraFar=ee.camera.far,i.pointShadow[E]=I,i.pointShadowMap[E]=V,i.pointShadowMatrix[E]=Q.shadow.matrix,M++}i.point[E]=y,E++}else if(Q.isHemisphereLight){const y=e.get(Q);y.skyColor.copy(Q.color).multiplyScalar(X),y.groundColor.copy(Q.groundColor).multiplyScalar(X),i.hemi[x]=y,x++}}T>0&&(o.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=Fe.LTC_FLOAT_1,i.rectAreaLTC2=Fe.LTC_FLOAT_2):(i.rectAreaLTC1=Fe.LTC_HALF_1,i.rectAreaLTC2=Fe.LTC_HALF_2)),i.ambient[0]=A,i.ambient[1]=_,i.ambient[2]=b;const H=i.hash;(H.directionalLength!==w||H.pointLength!==E||H.spotLength!==C||H.rectAreaLength!==T||H.hemiLength!==x||H.numDirectionalShadows!==P||H.numPointShadows!==M||H.numSpotShadows!==R||H.numSpotMaps!==D||H.numLightProbes!==U)&&(i.directional.length=w,i.spot.length=C,i.rectArea.length=T,i.point.length=E,i.hemi.length=x,i.directionalShadow.length=P,i.directionalShadowMap.length=P,i.pointShadow.length=M,i.pointShadowMap.length=M,i.spotShadow.length=R,i.spotShadowMap.length=R,i.directionalShadowMatrix.length=P,i.pointShadowMatrix.length=M,i.spotLightMatrix.length=R+D-G,i.spotLightMap.length=D,i.numSpotLightShadowsWithMaps=G,i.numLightProbes=U,H.directionalLength=w,H.pointLength=E,H.spotLength=C,H.rectAreaLength=T,H.hemiLength=x,H.numDirectionalShadows=P,H.numPointShadows=M,H.numSpotShadows=R,H.numSpotMaps=D,H.numLightProbes=U,i.version=SD++)}function p(g,A){let _=0,b=0,w=0,E=0,C=0;const T=A.matrixWorldInverse;for(let x=0,P=g.length;x<P;x++){const M=g[x];if(M.isDirectionalLight){const R=i.directional[_];R.direction.setFromMatrixPosition(M.matrixWorld),a.setFromMatrixPosition(M.target.matrixWorld),R.direction.sub(a),R.direction.transformDirection(T),_++}else if(M.isSpotLight){const R=i.spot[w];R.position.setFromMatrixPosition(M.matrixWorld),R.position.applyMatrix4(T),R.direction.setFromMatrixPosition(M.matrixWorld),a.setFromMatrixPosition(M.target.matrixWorld),R.direction.sub(a),R.direction.transformDirection(T),w++}else if(M.isRectAreaLight){const R=i.rectArea[E];R.position.setFromMatrixPosition(M.matrixWorld),R.position.applyMatrix4(T),h.identity(),l.copy(M.matrixWorld),l.premultiply(T),h.extractRotation(l),R.halfWidth.set(M.width*.5,0,0),R.halfHeight.set(0,M.height*.5,0),R.halfWidth.applyMatrix4(h),R.halfHeight.applyMatrix4(h),E++}else if(M.isPointLight){const R=i.point[b];R.position.setFromMatrixPosition(M.matrixWorld),R.position.applyMatrix4(T),b++}else if(M.isHemisphereLight){const R=i.hemi[C];R.direction.setFromMatrixPosition(M.matrixWorld),R.direction.transformDirection(T),C++}}}return{setup:d,setupView:p,state:i}}function xb(o){const e=new TD(o),t=[],i=[];function a(A){g.camera=A,t.length=0,i.length=0}function l(A){t.push(A)}function h(A){i.push(A)}function d(){e.setup(t)}function p(A){e.setupView(t,A)}const g={lightsArray:t,shadowsArray:i,camera:null,lights:e,transmissionRenderTarget:{}};return{init:a,state:g,setupLights:d,setupLightsView:p,pushLight:l,pushShadow:h}}function ID(o){let e=new WeakMap;function t(a,l=0){const h=e.get(a);let d;return h===void 0?(d=new xb(o),e.set(a,[d])):l>=h.length?(d=new xb(o),h.push(d)):d=h[l],d}function i(){e=new WeakMap}return{get:t,dispose:i}}const MD=`void main() {
|
|
3838
|
+
`+I)}else Z!==""?console.warn("THREE.WebGLProgram: Program Info Log:",Z):(X===""||s==="")&&(y=!1);y&&(Q.diagnostics={runnable:V,programLog:Z,vertexShader:{log:X,prefix:T},fragmentShader:{log:s,prefix:x}})}a.deleteShader(D),a.deleteShader(G),H=new Pd(a,C),k=sD(a,C)}let H;this.getUniforms=function(){return H===void 0&&U(this),H};let k;this.getAttributes=function(){return k===void 0&&U(this),k};let $=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return $===!1&&($=a.getProgramParameter(C,YL)),$},this.destroy=function(){i.releaseStatesOfProgram(this),a.deleteProgram(C),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=XL++,this.cacheKey=e,this.usedTimes=1,this.program=C,this.vertexShader=D,this.fragmentShader=G,this}let mD=0;class AD{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,i=e.fragmentShader,a=this._getShaderStage(t),l=this._getShaderStage(i),h=this._getShaderCacheForMaterial(e);return h.has(a)===!1&&(h.add(a),a.usedTimes++),h.has(l)===!1&&(h.add(l),l.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const i of t)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let i=t.get(e);return i===void 0&&(i=new Set,t.set(e,i)),i}_getShaderStage(e){const t=this.shaderCache;let i=t.get(e);return i===void 0&&(i=new _D(e),t.set(e,i)),i}}class _D{constructor(e){this.id=mD++,this.code=e,this.usedTimes=0}}function yD(o,e,t,i,a,l,h){const d=new j0,p=new AD,g=new Set,A=[],_=a.logarithmicDepthBuffer,b=a.vertexTextures;let w=a.precision;const E={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function C(k){return g.add(k),k===0?"uv":`uv${k}`}function T(k,$,Q,Z,X){const s=Z.fog,V=X.geometry,y=k.isMeshStandardMaterial?Z.environment:null,ee=(k.isMeshStandardMaterial?t:e).get(k.envMap||y),I=ee&&ee.mapping===Ff?ee.image.height:null,re=E[k.type];k.precision!==null&&(w=a.getMaxPrecision(k.precision),w!==k.precision&&console.warn("THREE.WebGLProgram.getParameters:",k.precision,"not supported, using",w,"instead."));const Ae=V.morphAttributes.position||V.morphAttributes.normal||V.morphAttributes.color,N=Ae!==void 0?Ae.length:0;let n=0;V.morphAttributes.position!==void 0&&(n=1),V.morphAttributes.normal!==void 0&&(n=2),V.morphAttributes.color!==void 0&&(n=3);let r,c,u,f;if(re){const It=vs[re];r=It.vertexShader,c=It.fragmentShader}else r=k.vertexShader,c=k.fragmentShader,p.update(k),u=p.getVertexShaderID(k),f=p.getFragmentShaderID(k);const m=o.getRenderTarget(),v=o.state.buffers.depth.getReversed(),S=X.isInstancedMesh===!0,B=X.isBatchedMesh===!0,L=!!k.map,F=!!k.matcap,z=!!ee,O=!!k.aoMap,W=!!k.lightMap,Y=!!k.bumpMap,te=!!k.normalMap,K=!!k.displacementMap,ie=!!k.emissiveMap,de=!!k.metalnessMap,j=!!k.roughnessMap,q=k.anisotropy>0,ae=k.clearcoat>0,me=k.dispersion>0,fe=k.iridescence>0,he=k.sheen>0,ve=k.transmission>0,Re=q&&!!k.anisotropyMap,Le=ae&&!!k.clearcoatMap,Xe=ae&&!!k.clearcoatNormalMap,xe=ae&&!!k.clearcoatRoughnessMap,Pe=fe&&!!k.iridescenceMap,Ie=fe&&!!k.iridescenceThicknessMap,Fe=he&&!!k.sheenColorMap,Ne=he&&!!k.sheenRoughnessMap,et=!!k.specularMap,Ke=!!k.specularColorMap,gt=!!k.specularIntensityMap,ne=ve&&!!k.transmissionMap,Oe=ve&&!!k.thicknessMap,ye=!!k.gradientMap,we=!!k.alphaMap,Ge=k.alphaTest>0,ze=!!k.alphaHash,We=!!k.extensions;let Ft=Ts;k.toneMapped&&(m===null||m.isXRRenderTarget===!0)&&(Ft=o.toneMapping);const Si={shaderID:re,shaderType:k.type,shaderName:k.name,vertexShader:r,fragmentShader:c,defines:k.defines,customVertexShaderID:u,customFragmentShaderID:f,isRawShaderMaterial:k.isRawShaderMaterial===!0,glslVersion:k.glslVersion,precision:w,batching:B,batchingColor:B&&X._colorsTexture!==null,instancing:S,instancingColor:S&&X.instanceColor!==null,instancingMorph:S&&X.morphTexture!==null,supportsVertexTextures:b,outputColorSpace:m===null?o.outputColorSpace:m.isXRRenderTarget===!0?m.texture.colorSpace:jt,alphaToCoverage:!!k.alphaToCoverage,map:L,matcap:F,envMap:z,envMapMode:z&&ee.mapping,envMapCubeUVHeight:I,aoMap:O,lightMap:W,bumpMap:Y,normalMap:te,displacementMap:b&&K,emissiveMap:ie,normalMapObjectSpace:te&&k.normalMapType===yM,normalMapTangentSpace:te&&k.normalMapType===V0,metalnessMap:de,roughnessMap:j,anisotropy:q,anisotropyMap:Re,clearcoat:ae,clearcoatMap:Le,clearcoatNormalMap:Xe,clearcoatRoughnessMap:xe,dispersion:me,iridescence:fe,iridescenceMap:Pe,iridescenceThicknessMap:Ie,sheen:he,sheenColorMap:Fe,sheenRoughnessMap:Ne,specularMap:et,specularColorMap:Ke,specularIntensityMap:gt,transmission:ve,transmissionMap:ne,thicknessMap:Oe,gradientMap:ye,opaque:k.transparent===!1&&k.blending===ol&&k.alphaToCoverage===!1,alphaMap:we,alphaTest:Ge,alphaHash:ze,combine:k.combine,mapUv:L&&C(k.map.channel),aoMapUv:O&&C(k.aoMap.channel),lightMapUv:W&&C(k.lightMap.channel),bumpMapUv:Y&&C(k.bumpMap.channel),normalMapUv:te&&C(k.normalMap.channel),displacementMapUv:K&&C(k.displacementMap.channel),emissiveMapUv:ie&&C(k.emissiveMap.channel),metalnessMapUv:de&&C(k.metalnessMap.channel),roughnessMapUv:j&&C(k.roughnessMap.channel),anisotropyMapUv:Re&&C(k.anisotropyMap.channel),clearcoatMapUv:Le&&C(k.clearcoatMap.channel),clearcoatNormalMapUv:Xe&&C(k.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:xe&&C(k.clearcoatRoughnessMap.channel),iridescenceMapUv:Pe&&C(k.iridescenceMap.channel),iridescenceThicknessMapUv:Ie&&C(k.iridescenceThicknessMap.channel),sheenColorMapUv:Fe&&C(k.sheenColorMap.channel),sheenRoughnessMapUv:Ne&&C(k.sheenRoughnessMap.channel),specularMapUv:et&&C(k.specularMap.channel),specularColorMapUv:Ke&&C(k.specularColorMap.channel),specularIntensityMapUv:gt&&C(k.specularIntensityMap.channel),transmissionMapUv:ne&&C(k.transmissionMap.channel),thicknessMapUv:Oe&&C(k.thicknessMap.channel),alphaMapUv:we&&C(k.alphaMap.channel),vertexTangents:!!V.attributes.tangent&&(te||q),vertexColors:k.vertexColors,vertexAlphas:k.vertexColors===!0&&!!V.attributes.color&&V.attributes.color.itemSize===4,pointsUvs:X.isPoints===!0&&!!V.attributes.uv&&(L||we),fog:!!s,useFog:k.fog===!0,fogExp2:!!s&&s.isFogExp2,flatShading:k.flatShading===!0,sizeAttenuation:k.sizeAttenuation===!0,logarithmicDepthBuffer:_,reverseDepthBuffer:v,skinning:X.isSkinnedMesh===!0,morphTargets:V.morphAttributes.position!==void 0,morphNormals:V.morphAttributes.normal!==void 0,morphColors:V.morphAttributes.color!==void 0,morphTargetsCount:N,morphTextureStride:n,numDirLights:$.directional.length,numPointLights:$.point.length,numSpotLights:$.spot.length,numSpotLightMaps:$.spotLightMap.length,numRectAreaLights:$.rectArea.length,numHemiLights:$.hemi.length,numDirLightShadows:$.directionalShadowMap.length,numPointLightShadows:$.pointShadowMap.length,numSpotLightShadows:$.spotShadowMap.length,numSpotLightShadowsWithMaps:$.numSpotLightShadowsWithMaps,numLightProbes:$.numLightProbes,numClippingPlanes:h.numPlanes,numClipIntersection:h.numIntersection,dithering:k.dithering,shadowMapEnabled:o.shadowMap.enabled&&Q.length>0,shadowMapType:o.shadowMap.type,toneMapping:Ft,decodeVideoTexture:L&&k.map.isVideoTexture===!0&&xt.getTransfer(k.map.colorSpace)===Ht,decodeVideoTextureEmissive:ie&&k.emissiveMap.isVideoTexture===!0&&xt.getTransfer(k.emissiveMap.colorSpace)===Ht,premultipliedAlpha:k.premultipliedAlpha,doubleSided:k.side===Pi,flipSided:k.side===$i,useDepthPacking:k.depthPacking>=0,depthPacking:k.depthPacking||0,index0AttributeName:k.index0AttributeName,extensionClipCullDistance:We&&k.extensions.clipCullDistance===!0&&i.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(We&&k.extensions.multiDraw===!0||B)&&i.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:k.customProgramCacheKey()};return Si.vertexUv1s=g.has(1),Si.vertexUv2s=g.has(2),Si.vertexUv3s=g.has(3),g.clear(),Si}function x(k){const $=[];if(k.shaderID?$.push(k.shaderID):($.push(k.customVertexShaderID),$.push(k.customFragmentShaderID)),k.defines!==void 0)for(const Q in k.defines)$.push(Q),$.push(k.defines[Q]);return k.isRawShaderMaterial===!1&&(P($,k),M($,k),$.push(o.outputColorSpace)),$.push(k.customProgramCacheKey),$.join()}function P(k,$){k.push($.precision),k.push($.outputColorSpace),k.push($.envMapMode),k.push($.envMapCubeUVHeight),k.push($.mapUv),k.push($.alphaMapUv),k.push($.lightMapUv),k.push($.aoMapUv),k.push($.bumpMapUv),k.push($.normalMapUv),k.push($.displacementMapUv),k.push($.emissiveMapUv),k.push($.metalnessMapUv),k.push($.roughnessMapUv),k.push($.anisotropyMapUv),k.push($.clearcoatMapUv),k.push($.clearcoatNormalMapUv),k.push($.clearcoatRoughnessMapUv),k.push($.iridescenceMapUv),k.push($.iridescenceThicknessMapUv),k.push($.sheenColorMapUv),k.push($.sheenRoughnessMapUv),k.push($.specularMapUv),k.push($.specularColorMapUv),k.push($.specularIntensityMapUv),k.push($.transmissionMapUv),k.push($.thicknessMapUv),k.push($.combine),k.push($.fogExp2),k.push($.sizeAttenuation),k.push($.morphTargetsCount),k.push($.morphAttributeCount),k.push($.numDirLights),k.push($.numPointLights),k.push($.numSpotLights),k.push($.numSpotLightMaps),k.push($.numHemiLights),k.push($.numRectAreaLights),k.push($.numDirLightShadows),k.push($.numPointLightShadows),k.push($.numSpotLightShadows),k.push($.numSpotLightShadowsWithMaps),k.push($.numLightProbes),k.push($.shadowMapType),k.push($.toneMapping),k.push($.numClippingPlanes),k.push($.numClipIntersection),k.push($.depthPacking)}function M(k,$){d.disableAll(),$.supportsVertexTextures&&d.enable(0),$.instancing&&d.enable(1),$.instancingColor&&d.enable(2),$.instancingMorph&&d.enable(3),$.matcap&&d.enable(4),$.envMap&&d.enable(5),$.normalMapObjectSpace&&d.enable(6),$.normalMapTangentSpace&&d.enable(7),$.clearcoat&&d.enable(8),$.iridescence&&d.enable(9),$.alphaTest&&d.enable(10),$.vertexColors&&d.enable(11),$.vertexAlphas&&d.enable(12),$.vertexUv1s&&d.enable(13),$.vertexUv2s&&d.enable(14),$.vertexUv3s&&d.enable(15),$.vertexTangents&&d.enable(16),$.anisotropy&&d.enable(17),$.alphaHash&&d.enable(18),$.batching&&d.enable(19),$.dispersion&&d.enable(20),$.batchingColor&&d.enable(21),k.push(d.mask),d.disableAll(),$.fog&&d.enable(0),$.useFog&&d.enable(1),$.flatShading&&d.enable(2),$.logarithmicDepthBuffer&&d.enable(3),$.reverseDepthBuffer&&d.enable(4),$.skinning&&d.enable(5),$.morphTargets&&d.enable(6),$.morphNormals&&d.enable(7),$.morphColors&&d.enable(8),$.premultipliedAlpha&&d.enable(9),$.shadowMapEnabled&&d.enable(10),$.doubleSided&&d.enable(11),$.flipSided&&d.enable(12),$.useDepthPacking&&d.enable(13),$.dithering&&d.enable(14),$.transmission&&d.enable(15),$.sheen&&d.enable(16),$.opaque&&d.enable(17),$.pointsUvs&&d.enable(18),$.decodeVideoTexture&&d.enable(19),$.decodeVideoTextureEmissive&&d.enable(20),$.alphaToCoverage&&d.enable(21),k.push(d.mask)}function R(k){const $=E[k.type];let Q;if($){const Z=vs[$];Q=W0.clone(Z.uniforms)}else Q=k.uniforms;return Q}function D(k,$){let Q;for(let Z=0,X=A.length;Z<X;Z++){const s=A[Z];if(s.cacheKey===$){Q=s,++Q.usedTimes;break}}return Q===void 0&&(Q=new gD(o,$,k,l),A.push(Q)),Q}function G(k){if(--k.usedTimes===0){const $=A.indexOf(k);A[$]=A[A.length-1],A.pop(),k.destroy()}}function U(k){p.remove(k)}function H(){p.dispose()}return{getParameters:T,getProgramCacheKey:x,getUniforms:R,acquireProgram:D,releaseProgram:G,releaseShaderCache:U,programs:A,dispose:H}}function bD(){let o=new WeakMap;function e(h){return o.has(h)}function t(h){let d=o.get(h);return d===void 0&&(d={},o.set(h,d)),d}function i(h){o.delete(h)}function a(h,d,p){o.get(h)[d]=p}function l(){o=new WeakMap}return{has:e,get:t,remove:i,update:a,dispose:l}}function vD(o,e){return o.groupOrder!==e.groupOrder?o.groupOrder-e.groupOrder:o.renderOrder!==e.renderOrder?o.renderOrder-e.renderOrder:o.material.id!==e.material.id?o.material.id-e.material.id:o.z!==e.z?o.z-e.z:o.id-e.id}function wb(o,e){return o.groupOrder!==e.groupOrder?o.groupOrder-e.groupOrder:o.renderOrder!==e.renderOrder?o.renderOrder-e.renderOrder:o.z!==e.z?e.z-o.z:o.id-e.id}function Eb(){const o=[];let e=0;const t=[],i=[],a=[];function l(){e=0,t.length=0,i.length=0,a.length=0}function h(_,b,w,E,C,T){let x=o[e];return x===void 0?(x={id:_.id,object:_,geometry:b,material:w,groupOrder:E,renderOrder:_.renderOrder,z:C,group:T},o[e]=x):(x.id=_.id,x.object=_,x.geometry=b,x.material=w,x.groupOrder=E,x.renderOrder=_.renderOrder,x.z=C,x.group=T),e++,x}function d(_,b,w,E,C,T){const x=h(_,b,w,E,C,T);w.transmission>0?i.push(x):w.transparent===!0?a.push(x):t.push(x)}function p(_,b,w,E,C,T){const x=h(_,b,w,E,C,T);w.transmission>0?i.unshift(x):w.transparent===!0?a.unshift(x):t.unshift(x)}function g(_,b){t.length>1&&t.sort(_||vD),i.length>1&&i.sort(b||wb),a.length>1&&a.sort(b||wb)}function A(){for(let _=e,b=o.length;_<b;_++){const w=o[_];if(w.id===null)break;w.id=null,w.object=null,w.geometry=null,w.material=null,w.group=null}}return{opaque:t,transmissive:i,transparent:a,init:l,push:d,unshift:p,finish:A,sort:g}}function wD(){let o=new WeakMap;function e(i,a){const l=o.get(i);let h;return l===void 0?(h=new Eb,o.set(i,[h])):a>=l.length?(h=new Eb,l.push(h)):h=l[a],h}function t(){o=new WeakMap}return{get:e,dispose:t}}function ED(){const o={};return{get:function(e){if(o[e.id]!==void 0)return o[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new se,color:new je};break;case"SpotLight":t={position:new se,direction:new se,color:new je,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new se,color:new je,distance:0,decay:0};break;case"HemisphereLight":t={direction:new se,skyColor:new je,groundColor:new je};break;case"RectAreaLight":t={color:new je,position:new se,halfWidth:new se,halfHeight:new se};break}return o[e.id]=t,t}}}function xD(){const o={};return{get:function(e){if(o[e.id]!==void 0)return o[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new He};break;case"SpotLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new He};break;case"PointLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new He,shadowCameraNear:1,shadowCameraFar:1e3};break}return o[e.id]=t,t}}}let SD=0;function CD(o,e){return(e.castShadow?2:0)-(o.castShadow?2:0)+(e.map?1:0)-(o.map?1:0)}function TD(o){const e=new ED,t=xD(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let g=0;g<9;g++)i.probe.push(new se);const a=new se,l=new tt,h=new tt;function d(g){let A=0,_=0,b=0;for(let k=0;k<9;k++)i.probe[k].set(0,0,0);let w=0,E=0,C=0,T=0,x=0,P=0,M=0,R=0,D=0,G=0,U=0;g.sort(CD);for(let k=0,$=g.length;k<$;k++){const Q=g[k],Z=Q.color,X=Q.intensity,s=Q.distance,V=Q.shadow&&Q.shadow.map?Q.shadow.map.texture:null;if(Q.isAmbientLight)A+=Z.r*X,_+=Z.g*X,b+=Z.b*X;else if(Q.isLightProbe){for(let y=0;y<9;y++)i.probe[y].addScaledVector(Q.sh.coefficients[y],X);U++}else if(Q.isDirectionalLight){const y=e.get(Q);if(y.color.copy(Q.color).multiplyScalar(Q.intensity),Q.castShadow){const ee=Q.shadow,I=t.get(Q);I.shadowIntensity=ee.intensity,I.shadowBias=ee.bias,I.shadowNormalBias=ee.normalBias,I.shadowRadius=ee.radius,I.shadowMapSize=ee.mapSize,i.directionalShadow[w]=I,i.directionalShadowMap[w]=V,i.directionalShadowMatrix[w]=Q.shadow.matrix,P++}i.directional[w]=y,w++}else if(Q.isSpotLight){const y=e.get(Q);y.position.setFromMatrixPosition(Q.matrixWorld),y.color.copy(Z).multiplyScalar(X),y.distance=s,y.coneCos=Math.cos(Q.angle),y.penumbraCos=Math.cos(Q.angle*(1-Q.penumbra)),y.decay=Q.decay,i.spot[C]=y;const ee=Q.shadow;if(Q.map&&(i.spotLightMap[D]=Q.map,D++,ee.updateMatrices(Q),Q.castShadow&&G++),i.spotLightMatrix[C]=ee.matrix,Q.castShadow){const I=t.get(Q);I.shadowIntensity=ee.intensity,I.shadowBias=ee.bias,I.shadowNormalBias=ee.normalBias,I.shadowRadius=ee.radius,I.shadowMapSize=ee.mapSize,i.spotShadow[C]=I,i.spotShadowMap[C]=V,R++}C++}else if(Q.isRectAreaLight){const y=e.get(Q);y.color.copy(Z).multiplyScalar(X),y.halfWidth.set(Q.width*.5,0,0),y.halfHeight.set(0,Q.height*.5,0),i.rectArea[T]=y,T++}else if(Q.isPointLight){const y=e.get(Q);if(y.color.copy(Q.color).multiplyScalar(Q.intensity),y.distance=Q.distance,y.decay=Q.decay,Q.castShadow){const ee=Q.shadow,I=t.get(Q);I.shadowIntensity=ee.intensity,I.shadowBias=ee.bias,I.shadowNormalBias=ee.normalBias,I.shadowRadius=ee.radius,I.shadowMapSize=ee.mapSize,I.shadowCameraNear=ee.camera.near,I.shadowCameraFar=ee.camera.far,i.pointShadow[E]=I,i.pointShadowMap[E]=V,i.pointShadowMatrix[E]=Q.shadow.matrix,M++}i.point[E]=y,E++}else if(Q.isHemisphereLight){const y=e.get(Q);y.skyColor.copy(Q.color).multiplyScalar(X),y.groundColor.copy(Q.groundColor).multiplyScalar(X),i.hemi[x]=y,x++}}T>0&&(o.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=$e.LTC_FLOAT_1,i.rectAreaLTC2=$e.LTC_FLOAT_2):(i.rectAreaLTC1=$e.LTC_HALF_1,i.rectAreaLTC2=$e.LTC_HALF_2)),i.ambient[0]=A,i.ambient[1]=_,i.ambient[2]=b;const H=i.hash;(H.directionalLength!==w||H.pointLength!==E||H.spotLength!==C||H.rectAreaLength!==T||H.hemiLength!==x||H.numDirectionalShadows!==P||H.numPointShadows!==M||H.numSpotShadows!==R||H.numSpotMaps!==D||H.numLightProbes!==U)&&(i.directional.length=w,i.spot.length=C,i.rectArea.length=T,i.point.length=E,i.hemi.length=x,i.directionalShadow.length=P,i.directionalShadowMap.length=P,i.pointShadow.length=M,i.pointShadowMap.length=M,i.spotShadow.length=R,i.spotShadowMap.length=R,i.directionalShadowMatrix.length=P,i.pointShadowMatrix.length=M,i.spotLightMatrix.length=R+D-G,i.spotLightMap.length=D,i.numSpotLightShadowsWithMaps=G,i.numLightProbes=U,H.directionalLength=w,H.pointLength=E,H.spotLength=C,H.rectAreaLength=T,H.hemiLength=x,H.numDirectionalShadows=P,H.numPointShadows=M,H.numSpotShadows=R,H.numSpotMaps=D,H.numLightProbes=U,i.version=SD++)}function p(g,A){let _=0,b=0,w=0,E=0,C=0;const T=A.matrixWorldInverse;for(let x=0,P=g.length;x<P;x++){const M=g[x];if(M.isDirectionalLight){const R=i.directional[_];R.direction.setFromMatrixPosition(M.matrixWorld),a.setFromMatrixPosition(M.target.matrixWorld),R.direction.sub(a),R.direction.transformDirection(T),_++}else if(M.isSpotLight){const R=i.spot[w];R.position.setFromMatrixPosition(M.matrixWorld),R.position.applyMatrix4(T),R.direction.setFromMatrixPosition(M.matrixWorld),a.setFromMatrixPosition(M.target.matrixWorld),R.direction.sub(a),R.direction.transformDirection(T),w++}else if(M.isRectAreaLight){const R=i.rectArea[E];R.position.setFromMatrixPosition(M.matrixWorld),R.position.applyMatrix4(T),h.identity(),l.copy(M.matrixWorld),l.premultiply(T),h.extractRotation(l),R.halfWidth.set(M.width*.5,0,0),R.halfHeight.set(0,M.height*.5,0),R.halfWidth.applyMatrix4(h),R.halfHeight.applyMatrix4(h),E++}else if(M.isPointLight){const R=i.point[b];R.position.setFromMatrixPosition(M.matrixWorld),R.position.applyMatrix4(T),b++}else if(M.isHemisphereLight){const R=i.hemi[C];R.direction.setFromMatrixPosition(M.matrixWorld),R.direction.transformDirection(T),C++}}}return{setup:d,setupView:p,state:i}}function xb(o){const e=new TD(o),t=[],i=[];function a(A){g.camera=A,t.length=0,i.length=0}function l(A){t.push(A)}function h(A){i.push(A)}function d(){e.setup(t)}function p(A){e.setupView(t,A)}const g={lightsArray:t,shadowsArray:i,camera:null,lights:e,transmissionRenderTarget:{}};return{init:a,state:g,setupLights:d,setupLightsView:p,pushLight:l,pushShadow:h}}function ID(o){let e=new WeakMap;function t(a,l=0){const h=e.get(a);let d;return h===void 0?(d=new xb(o),e.set(a,[d])):l>=h.length?(d=new xb(o),h.push(d)):d=h[l],d}function i(){e=new WeakMap}return{get:t,dispose:i}}const MD=`void main() {
|
|
3839
3839
|
gl_Position = vec4( position, 1.0 );
|
|
3840
3840
|
}`,RD=`uniform sampler2D shadow_pass;
|
|
3841
3841
|
uniform vec2 resolution;
|
|
@@ -3863,7 +3863,7 @@ void main() {
|
|
|
3863
3863
|
squared_mean = squared_mean / samples;
|
|
3864
3864
|
float std_dev = sqrt( squared_mean - mean * mean );
|
|
3865
3865
|
gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );
|
|
3866
|
-
}`;function BD(o,e,t){let i=new J0;const a=new He,l=new He,h=new Bt,d=new t_({depthPacking:_M}),p=new MR,g={},A=t.maxTextureSize,_={[ds]:$i,[$i]:ds,[Pi]:Pi},b=new Ni({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new He},radius:{value:4}},vertexShader:MD,fragmentShader:RD}),w=b.clone();w.defines.HORIZONTAL_PASS=1;const E=new yi;E.setAttribute("position",new qt(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const C=new ot(E,b),T=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=L0;let x=this.type;this.render=function(G,U,H){if(T.enabled===!1||T.autoUpdate===!1&&T.needsUpdate===!1||G.length===0)return;const k=o.getRenderTarget(),$=o.getActiveCubeFace(),Q=o.getActiveMipmapLevel(),Z=o.state;Z.setBlending(hs),Z.buffers.color.setClear(1,1,1,1),Z.buffers.depth.setTest(!0),Z.setScissorTest(!1);const X=x!==Js&&this.type===Js,s=x===Js&&this.type!==Js;for(let V=0,y=G.length;V<y;V++){const ee=G[V],I=ee.shadow;if(I===void 0){console.warn("THREE.WebGLShadowMap:",ee,"has no shadow.");continue}if(I.autoUpdate===!1&&I.needsUpdate===!1)continue;a.copy(I.mapSize);const re=I.getFrameExtents();if(a.multiply(re),l.copy(I.mapSize),(a.x>A||a.y>A)&&(a.x>A&&(l.x=Math.floor(A/re.x),a.x=l.x*re.x,I.mapSize.x=l.x),a.y>A&&(l.y=Math.floor(A/re.y),a.y=l.y*re.y,I.mapSize.y=l.y)),I.map===null||X===!0||s===!0){const N=this.type!==Js?{minFilter:_i,magFilter:_i}:{};I.map!==null&&I.map.dispose(),I.map=new Gi(a.x,a.y,N),I.map.texture.name=ee.name+".shadowMap",I.camera.updateProjectionMatrix()}o.setRenderTarget(I.map),o.clear();const Ae=I.getViewportCount();for(let N=0;N<Ae;N++){const n=I.getViewport(N);h.set(l.x*n.x,l.y*n.y,l.x*n.z,l.y*n.w),Z.viewport(h),I.updateMatrices(ee,N),i=I.getFrustum(),R(U,H,I.camera,ee,this.type)}I.isPointLightShadow!==!0&&this.type===Js&&P(I,H),I.needsUpdate=!1}x=this.type,T.needsUpdate=!1,o.setRenderTarget(k,$,Q)};function P(G,U){const H=e.update(C);b.defines.VSM_SAMPLES!==G.blurSamples&&(b.defines.VSM_SAMPLES=G.blurSamples,w.defines.VSM_SAMPLES=G.blurSamples,b.needsUpdate=!0,w.needsUpdate=!0),G.mapPass===null&&(G.mapPass=new Gi(a.x,a.y)),b.uniforms.shadow_pass.value=G.map.texture,b.uniforms.resolution.value=G.mapSize,b.uniforms.radius.value=G.radius,o.setRenderTarget(G.mapPass),o.clear(),o.renderBufferDirect(U,null,H,b,C,null),w.uniforms.shadow_pass.value=G.mapPass.texture,w.uniforms.resolution.value=G.mapSize,w.uniforms.radius.value=G.radius,o.setRenderTarget(G.map),o.clear(),o.renderBufferDirect(U,null,H,w,C,null)}function M(G,U,H,k){let $=null;const Q=H.isPointLight===!0?G.customDistanceMaterial:G.customDepthMaterial;if(Q!==void 0)$=Q;else if($=H.isPointLight===!0?p:d,o.localClippingEnabled&&U.clipShadows===!0&&Array.isArray(U.clippingPlanes)&&U.clippingPlanes.length!==0||U.displacementMap&&U.displacementScale!==0||U.alphaMap&&U.alphaTest>0||U.map&&U.alphaTest>0){const Z=$.uuid,X=U.uuid;let s=g[Z];s===void 0&&(s={},g[Z]=s);let V=s[X];V===void 0&&(V=$.clone(),s[X]=V,U.addEventListener("dispose",D)),$=V}if($.visible=U.visible,$.wireframe=U.wireframe,k===Js?$.side=U.shadowSide!==null?U.shadowSide:U.side:$.side=U.shadowSide!==null?U.shadowSide:_[U.side],$.alphaMap=U.alphaMap,$.alphaTest=U.alphaTest,$.map=U.map,$.clipShadows=U.clipShadows,$.clippingPlanes=U.clippingPlanes,$.clipIntersection=U.clipIntersection,$.displacementMap=U.displacementMap,$.displacementScale=U.displacementScale,$.displacementBias=U.displacementBias,$.wireframeLinewidth=U.wireframeLinewidth,$.linewidth=U.linewidth,H.isPointLight===!0&&$.isMeshDistanceMaterial===!0){const Z=o.properties.get($);Z.light=H}return $}function R(G,U,H,k,$){if(G.visible===!1)return;if(G.layers.test(U.layers)&&(G.isMesh||G.isLine||G.isPoints)&&(G.castShadow||G.receiveShadow&&$===Js)&&(!G.frustumCulled||i.intersectsObject(G))){G.modelViewMatrix.multiplyMatrices(H.matrixWorldInverse,G.matrixWorld);const X=e.update(G),s=G.material;if(Array.isArray(s)){const V=X.groups;for(let y=0,ee=V.length;y<ee;y++){const I=V[y],re=s[I.materialIndex];if(re&&re.visible){const Ae=M(G,re,k,$);G.onBeforeShadow(o,G,U,H,X,Ae,I),o.renderBufferDirect(H,null,X,Ae,G,I),G.onAfterShadow(o,G,U,H,X,Ae,I)}}}else if(s.visible){const V=M(G,s,k,$);G.onBeforeShadow(o,G,U,H,X,V,null),o.renderBufferDirect(H,null,X,V,G,null),G.onAfterShadow(o,G,U,H,X,V,null)}}const Z=G.children;for(let X=0,s=Z.length;X<s;X++)R(Z[X],U,H,k,$)}function D(G){G.target.removeEventListener("dispose",D);for(const H in g){const k=g[H],$=G.target.uuid;$ in k&&(k[$].dispose(),delete k[$])}}}const PD={[iA]:nA,[sA]:oA,[rA]:lA,[_l]:aA,[nA]:iA,[oA]:sA,[lA]:rA,[aA]:_l};function LD(o,e){function t(){let ne=!1;const Oe=new Bt;let ye=null;const we=new Bt(0,0,0,0);return{setMask:function(Ge){ye!==Ge&&!ne&&(o.colorMask(Ge,Ge,Ge,Ge),ye=Ge)},setLocked:function(Ge){ne=Ge},setClear:function(Ge,ze,We,Ft,Si){Si===!0&&(Ge*=Ft,ze*=Ft,We*=Ft),Oe.set(Ge,ze,We,Ft),we.equals(Oe)===!1&&(o.clearColor(Ge,ze,We,Ft),we.copy(Oe))},reset:function(){ne=!1,ye=null,we.set(-1,0,0,0)}}}function i(){let ne=!1,Oe=!1,ye=null,we=null,Ge=null;return{setReversed:function(ze){if(Oe!==ze){const We=e.get("EXT_clip_control");Oe?We.clipControlEXT(We.LOWER_LEFT_EXT,We.ZERO_TO_ONE_EXT):We.clipControlEXT(We.LOWER_LEFT_EXT,We.NEGATIVE_ONE_TO_ONE_EXT);const Ft=Ge;Ge=null,this.setClear(Ft)}Oe=ze},getReversed:function(){return Oe},setTest:function(ze){ze?m(o.DEPTH_TEST):v(o.DEPTH_TEST)},setMask:function(ze){ye!==ze&&!ne&&(o.depthMask(ze),ye=ze)},setFunc:function(ze){if(Oe&&(ze=PD[ze]),we!==ze){switch(ze){case iA:o.depthFunc(o.NEVER);break;case nA:o.depthFunc(o.ALWAYS);break;case sA:o.depthFunc(o.LESS);break;case _l:o.depthFunc(o.LEQUAL);break;case rA:o.depthFunc(o.EQUAL);break;case aA:o.depthFunc(o.GEQUAL);break;case oA:o.depthFunc(o.GREATER);break;case lA:o.depthFunc(o.NOTEQUAL);break;default:o.depthFunc(o.LEQUAL)}we=ze}},setLocked:function(ze){ne=ze},setClear:function(ze){Ge!==ze&&(Oe&&(ze=1-ze),o.clearDepth(ze),Ge=ze)},reset:function(){ne=!1,ye=null,we=null,Ge=null,Oe=!1}}}function a(){let ne=!1,Oe=null,ye=null,we=null,Ge=null,ze=null,We=null,Ft=null,Si=null;return{setTest:function(It){ne||(It?m(o.STENCIL_TEST):v(o.STENCIL_TEST))},setMask:function(It){Oe!==It&&!ne&&(o.stencilMask(It),Oe=It)},setFunc:function(It,Zi,kn){(ye!==It||we!==Zi||Ge!==kn)&&(o.stencilFunc(It,Zi,kn),ye=It,we=Zi,Ge=kn)},setOp:function(It,Zi,kn){(ze!==It||We!==Zi||Ft!==kn)&&(o.stencilOp(It,Zi,kn),ze=It,We=Zi,Ft=kn)},setLocked:function(It){ne=It},setClear:function(It){Si!==It&&(o.clearStencil(It),Si=It)},reset:function(){ne=!1,Oe=null,ye=null,we=null,Ge=null,ze=null,We=null,Ft=null,Si=null}}}const l=new t,h=new i,d=new a,p=new WeakMap,g=new WeakMap;let A={},_={},b=new WeakMap,w=[],E=null,C=!1,T=null,x=null,P=null,M=null,R=null,D=null,G=null,U=new je(0,0,0),H=0,k=!1,$=null,Q=null,Z=null,X=null,s=null;const V=o.getParameter(o.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let y=!1,ee=0;const I=o.getParameter(o.VERSION);I.indexOf("WebGL")!==-1?(ee=parseFloat(/^WebGL (\d)/.exec(I)[1]),y=ee>=1):I.indexOf("OpenGL ES")!==-1&&(ee=parseFloat(/^OpenGL ES (\d)/.exec(I)[1]),y=ee>=2);let re=null,Ae={};const N=o.getParameter(o.SCISSOR_BOX),n=o.getParameter(o.VIEWPORT),r=new Bt().fromArray(N),c=new Bt().fromArray(n);function u(ne,Oe,ye,we){const Ge=new Uint8Array(4),ze=o.createTexture();o.bindTexture(ne,ze),o.texParameteri(ne,o.TEXTURE_MIN_FILTER,o.NEAREST),o.texParameteri(ne,o.TEXTURE_MAG_FILTER,o.NEAREST);for(let We=0;We<ye;We++)ne===o.TEXTURE_3D||ne===o.TEXTURE_2D_ARRAY?o.texImage3D(Oe,0,o.RGBA,1,1,we,0,o.RGBA,o.UNSIGNED_BYTE,Ge):o.texImage2D(Oe+We,0,o.RGBA,1,1,0,o.RGBA,o.UNSIGNED_BYTE,Ge);return ze}const f={};f[o.TEXTURE_2D]=u(o.TEXTURE_2D,o.TEXTURE_2D,1),f[o.TEXTURE_CUBE_MAP]=u(o.TEXTURE_CUBE_MAP,o.TEXTURE_CUBE_MAP_POSITIVE_X,6),f[o.TEXTURE_2D_ARRAY]=u(o.TEXTURE_2D_ARRAY,o.TEXTURE_2D_ARRAY,1,1),f[o.TEXTURE_3D]=u(o.TEXTURE_3D,o.TEXTURE_3D,1,1),l.setClear(0,0,0,1),h.setClear(1),d.setClear(0),m(o.DEPTH_TEST),h.setFunc(_l),Y(!1),te(ay),m(o.CULL_FACE),O(hs);function m(ne){A[ne]!==!0&&(o.enable(ne),A[ne]=!0)}function v(ne){A[ne]!==!1&&(o.disable(ne),A[ne]=!1)}function S(ne,Oe){return _[ne]!==Oe?(o.bindFramebuffer(ne,Oe),_[ne]=Oe,ne===o.DRAW_FRAMEBUFFER&&(_[o.FRAMEBUFFER]=Oe),ne===o.FRAMEBUFFER&&(_[o.DRAW_FRAMEBUFFER]=Oe),!0):!1}function B(ne,Oe){let ye=w,we=!1;if(ne){ye=b.get(Oe),ye===void 0&&(ye=[],b.set(Oe,ye));const Ge=ne.textures;if(ye.length!==Ge.length||ye[0]!==o.COLOR_ATTACHMENT0){for(let ze=0,We=Ge.length;ze<We;ze++)ye[ze]=o.COLOR_ATTACHMENT0+ze;ye.length=Ge.length,we=!0}}else ye[0]!==o.BACK&&(ye[0]=o.BACK,we=!0);we&&o.drawBuffers(ye)}function L(ne){return E!==ne?(o.useProgram(ne),E=ne,!0):!1}const F={[Ba]:o.FUNC_ADD,[WI]:o.FUNC_SUBTRACT,[YI]:o.FUNC_REVERSE_SUBTRACT};F[XI]=o.MIN,F[KI]=o.MAX;const z={[JI]:o.ZERO,[ZI]:o.ONE,[eM]:o.SRC_COLOR,[eA]:o.SRC_ALPHA,[aM]:o.SRC_ALPHA_SATURATE,[sM]:o.DST_COLOR,[iM]:o.DST_ALPHA,[tM]:o.ONE_MINUS_SRC_COLOR,[tA]:o.ONE_MINUS_SRC_ALPHA,[rM]:o.ONE_MINUS_DST_COLOR,[nM]:o.ONE_MINUS_DST_ALPHA,[oM]:o.CONSTANT_COLOR,[lM]:o.ONE_MINUS_CONSTANT_COLOR,[cM]:o.CONSTANT_ALPHA,[hM]:o.ONE_MINUS_CONSTANT_ALPHA};function O(ne,Oe,ye,we,Ge,ze,We,Ft,Si,It){if(ne===hs){C===!0&&(v(o.BLEND),C=!1);return}if(C===!1&&(m(o.BLEND),C=!0),ne!==jI){if(ne!==T||It!==k){if((x!==Ba||R!==Ba)&&(o.blendEquation(o.FUNC_ADD),x=Ba,R=Ba),It)switch(ne){case ol:o.blendFuncSeparate(o.ONE,o.ONE_MINUS_SRC_ALPHA,o.ONE,o.ONE_MINUS_SRC_ALPHA);break;case oy:o.blendFunc(o.ONE,o.ONE);break;case ly:o.blendFuncSeparate(o.ZERO,o.ONE_MINUS_SRC_COLOR,o.ZERO,o.ONE);break;case cy:o.blendFuncSeparate(o.ZERO,o.SRC_COLOR,o.ZERO,o.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",ne);break}else switch(ne){case ol:o.blendFuncSeparate(o.SRC_ALPHA,o.ONE_MINUS_SRC_ALPHA,o.ONE,o.ONE_MINUS_SRC_ALPHA);break;case oy:o.blendFunc(o.SRC_ALPHA,o.ONE);break;case ly:o.blendFuncSeparate(o.ZERO,o.ONE_MINUS_SRC_COLOR,o.ZERO,o.ONE);break;case cy:o.blendFunc(o.ZERO,o.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",ne);break}P=null,M=null,D=null,G=null,U.set(0,0,0),H=0,T=ne,k=It}return}Ge=Ge||Oe,ze=ze||ye,We=We||we,(Oe!==x||Ge!==R)&&(o.blendEquationSeparate(F[Oe],F[Ge]),x=Oe,R=Ge),(ye!==P||we!==M||ze!==D||We!==G)&&(o.blendFuncSeparate(z[ye],z[we],z[ze],z[We]),P=ye,M=we,D=ze,G=We),(Ft.equals(U)===!1||Si!==H)&&(o.blendColor(Ft.r,Ft.g,Ft.b,Si),U.copy(Ft),H=Si),T=ne,k=!1}function W(ne,Oe){ne.side===Pi?v(o.CULL_FACE):m(o.CULL_FACE);let ye=ne.side===$i;Oe&&(ye=!ye),Y(ye),ne.blending===ol&&ne.transparent===!1?O(hs):O(ne.blending,ne.blendEquation,ne.blendSrc,ne.blendDst,ne.blendEquationAlpha,ne.blendSrcAlpha,ne.blendDstAlpha,ne.blendColor,ne.blendAlpha,ne.premultipliedAlpha),h.setFunc(ne.depthFunc),h.setTest(ne.depthTest),h.setMask(ne.depthWrite),l.setMask(ne.colorWrite);const we=ne.stencilWrite;d.setTest(we),we&&(d.setMask(ne.stencilWriteMask),d.setFunc(ne.stencilFunc,ne.stencilRef,ne.stencilFuncMask),d.setOp(ne.stencilFail,ne.stencilZFail,ne.stencilZPass)),ie(ne.polygonOffset,ne.polygonOffsetFactor,ne.polygonOffsetUnits),ne.alphaToCoverage===!0?m(o.SAMPLE_ALPHA_TO_COVERAGE):v(o.SAMPLE_ALPHA_TO_COVERAGE)}function Y(ne){$!==ne&&(ne?o.frontFace(o.CW):o.frontFace(o.CCW),$=ne)}function te(ne){ne!==QI?(m(o.CULL_FACE),ne!==Q&&(ne===ay?o.cullFace(o.BACK):ne===qI?o.cullFace(o.FRONT):o.cullFace(o.FRONT_AND_BACK))):v(o.CULL_FACE),Q=ne}function K(ne){ne!==Z&&(y&&o.lineWidth(ne),Z=ne)}function ie(ne,Oe,ye){ne?(m(o.POLYGON_OFFSET_FILL),(X!==Oe||s!==ye)&&(o.polygonOffset(Oe,ye),X=Oe,s=ye)):v(o.POLYGON_OFFSET_FILL)}function de(ne){ne?m(o.SCISSOR_TEST):v(o.SCISSOR_TEST)}function j(ne){ne===void 0&&(ne=o.TEXTURE0+V-1),re!==ne&&(o.activeTexture(ne),re=ne)}function q(ne,Oe,ye){ye===void 0&&(re===null?ye=o.TEXTURE0+V-1:ye=re);let we=Ae[ye];we===void 0&&(we={type:void 0,texture:void 0},Ae[ye]=we),(we.type!==ne||we.texture!==Oe)&&(re!==ye&&(o.activeTexture(ye),re=ye),o.bindTexture(ne,Oe||f[ne]),we.type=ne,we.texture=Oe)}function ae(){const ne=Ae[re];ne!==void 0&&ne.type!==void 0&&(o.bindTexture(ne.type,null),ne.type=void 0,ne.texture=void 0)}function me(){try{o.compressedTexImage2D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function fe(){try{o.compressedTexImage3D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function he(){try{o.texSubImage2D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function ve(){try{o.texSubImage3D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function Re(){try{o.compressedTexSubImage2D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function Le(){try{o.compressedTexSubImage3D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function Xe(){try{o.texStorage2D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function xe(){try{o.texStorage3D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function Pe(){try{o.texImage2D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function Ie(){try{o.texImage3D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function Ue(ne){r.equals(ne)===!1&&(o.scissor(ne.x,ne.y,ne.z,ne.w),r.copy(ne))}function Ne(ne){c.equals(ne)===!1&&(o.viewport(ne.x,ne.y,ne.z,ne.w),c.copy(ne))}function et(ne,Oe){let ye=g.get(Oe);ye===void 0&&(ye=new WeakMap,g.set(Oe,ye));let we=ye.get(ne);we===void 0&&(we=o.getUniformBlockIndex(Oe,ne.name),ye.set(ne,we))}function Ke(ne,Oe){const we=g.get(Oe).get(ne);p.get(Oe)!==we&&(o.uniformBlockBinding(Oe,we,ne.__bindingPointIndex),p.set(Oe,we))}function gt(){o.disable(o.BLEND),o.disable(o.CULL_FACE),o.disable(o.DEPTH_TEST),o.disable(o.POLYGON_OFFSET_FILL),o.disable(o.SCISSOR_TEST),o.disable(o.STENCIL_TEST),o.disable(o.SAMPLE_ALPHA_TO_COVERAGE),o.blendEquation(o.FUNC_ADD),o.blendFunc(o.ONE,o.ZERO),o.blendFuncSeparate(o.ONE,o.ZERO,o.ONE,o.ZERO),o.blendColor(0,0,0,0),o.colorMask(!0,!0,!0,!0),o.clearColor(0,0,0,0),o.depthMask(!0),o.depthFunc(o.LESS),h.setReversed(!1),o.clearDepth(1),o.stencilMask(4294967295),o.stencilFunc(o.ALWAYS,0,4294967295),o.stencilOp(o.KEEP,o.KEEP,o.KEEP),o.clearStencil(0),o.cullFace(o.BACK),o.frontFace(o.CCW),o.polygonOffset(0,0),o.activeTexture(o.TEXTURE0),o.bindFramebuffer(o.FRAMEBUFFER,null),o.bindFramebuffer(o.DRAW_FRAMEBUFFER,null),o.bindFramebuffer(o.READ_FRAMEBUFFER,null),o.useProgram(null),o.lineWidth(1),o.scissor(0,0,o.canvas.width,o.canvas.height),o.viewport(0,0,o.canvas.width,o.canvas.height),A={},re=null,Ae={},_={},b=new WeakMap,w=[],E=null,C=!1,T=null,x=null,P=null,M=null,R=null,D=null,G=null,U=new je(0,0,0),H=0,k=!1,$=null,Q=null,Z=null,X=null,s=null,r.set(0,0,o.canvas.width,o.canvas.height),c.set(0,0,o.canvas.width,o.canvas.height),l.reset(),h.reset(),d.reset()}return{buffers:{color:l,depth:h,stencil:d},enable:m,disable:v,bindFramebuffer:S,drawBuffers:B,useProgram:L,setBlending:O,setMaterial:W,setFlipSided:Y,setCullFace:te,setLineWidth:K,setPolygonOffset:ie,setScissorTest:de,activeTexture:j,bindTexture:q,unbindTexture:ae,compressedTexImage2D:me,compressedTexImage3D:fe,texImage2D:Pe,texImage3D:Ie,updateUBOMapping:et,uniformBlockBinding:Ke,texStorage2D:Xe,texStorage3D:xe,texSubImage2D:he,texSubImage3D:ve,compressedTexSubImage2D:Re,compressedTexSubImage3D:Le,scissor:Ue,viewport:Ne,reset:gt}}function DD(o,e,t,i,a,l,h){const d=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,p=typeof navigator>"u"?!1:/OculusBrowser/g.test(navigator.userAgent),g=new He,A=new WeakMap;let _;const b=new WeakMap;let w=!1;try{w=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function E(j,q){return w?new OffscreenCanvas(j,q):Rh("canvas")}function C(j,q,ae){let me=1;const fe=de(j);if((fe.width>ae||fe.height>ae)&&(me=ae/Math.max(fe.width,fe.height)),me<1)if(typeof HTMLImageElement<"u"&&j instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&j instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&j instanceof ImageBitmap||typeof VideoFrame<"u"&&j instanceof VideoFrame){const he=Math.floor(me*fe.width),ve=Math.floor(me*fe.height);_===void 0&&(_=E(he,ve));const Re=q?E(he,ve):_;return Re.width=he,Re.height=ve,Re.getContext("2d").drawImage(j,0,0,he,ve),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+fe.width+"x"+fe.height+") to ("+he+"x"+ve+")."),Re}else return"data"in j&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+fe.width+"x"+fe.height+")."),j;return j}function T(j){return j.generateMipmaps}function x(j){o.generateMipmap(j)}function P(j){return j.isWebGLCubeRenderTarget?o.TEXTURE_CUBE_MAP:j.isWebGL3DRenderTarget?o.TEXTURE_3D:j.isWebGLArrayRenderTarget||j.isCompressedArrayTexture?o.TEXTURE_2D_ARRAY:o.TEXTURE_2D}function M(j,q,ae,me,fe=!1){if(j!==null){if(o[j]!==void 0)return o[j];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+j+"'")}let he=q;if(q===o.RED&&(ae===o.FLOAT&&(he=o.R32F),ae===o.HALF_FLOAT&&(he=o.R16F),ae===o.UNSIGNED_BYTE&&(he=o.R8)),q===o.RED_INTEGER&&(ae===o.UNSIGNED_BYTE&&(he=o.R8UI),ae===o.UNSIGNED_SHORT&&(he=o.R16UI),ae===o.UNSIGNED_INT&&(he=o.R32UI),ae===o.BYTE&&(he=o.R8I),ae===o.SHORT&&(he=o.R16I),ae===o.INT&&(he=o.R32I)),q===o.RG&&(ae===o.FLOAT&&(he=o.RG32F),ae===o.HALF_FLOAT&&(he=o.RG16F),ae===o.UNSIGNED_BYTE&&(he=o.RG8)),q===o.RG_INTEGER&&(ae===o.UNSIGNED_BYTE&&(he=o.RG8UI),ae===o.UNSIGNED_SHORT&&(he=o.RG16UI),ae===o.UNSIGNED_INT&&(he=o.RG32UI),ae===o.BYTE&&(he=o.RG8I),ae===o.SHORT&&(he=o.RG16I),ae===o.INT&&(he=o.RG32I)),q===o.RGB_INTEGER&&(ae===o.UNSIGNED_BYTE&&(he=o.RGB8UI),ae===o.UNSIGNED_SHORT&&(he=o.RGB16UI),ae===o.UNSIGNED_INT&&(he=o.RGB32UI),ae===o.BYTE&&(he=o.RGB8I),ae===o.SHORT&&(he=o.RGB16I),ae===o.INT&&(he=o.RGB32I)),q===o.RGBA_INTEGER&&(ae===o.UNSIGNED_BYTE&&(he=o.RGBA8UI),ae===o.UNSIGNED_SHORT&&(he=o.RGBA16UI),ae===o.UNSIGNED_INT&&(he=o.RGBA32UI),ae===o.BYTE&&(he=o.RGBA8I),ae===o.SHORT&&(he=o.RGBA16I),ae===o.INT&&(he=o.RGBA32I)),q===o.RGB&&ae===o.UNSIGNED_INT_5_9_9_9_REV&&(he=o.RGB9_E5),q===o.RGBA){const ve=fe?of:xt.getTransfer(me);ae===o.FLOAT&&(he=o.RGBA32F),ae===o.HALF_FLOAT&&(he=o.RGBA16F),ae===o.UNSIGNED_BYTE&&(he=ve===Ht?o.SRGB8_ALPHA8:o.RGBA8),ae===o.UNSIGNED_SHORT_4_4_4_4&&(he=o.RGBA4),ae===o.UNSIGNED_SHORT_5_5_5_1&&(he=o.RGB5_A1)}return(he===o.R16F||he===o.R32F||he===o.RG16F||he===o.RG32F||he===o.RGBA16F||he===o.RGBA32F)&&e.get("EXT_color_buffer_float"),he}function R(j,q){let ae;return j?q===null||q===Wr||q===vl?ae=o.DEPTH24_STENCIL8:q===ri?ae=o.DEPTH32F_STENCIL8:q===Th&&(ae=o.DEPTH24_STENCIL8,console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):q===null||q===Wr||q===vl?ae=o.DEPTH_COMPONENT24:q===ri?ae=o.DEPTH_COMPONENT32F:q===Th&&(ae=o.DEPTH_COMPONENT16),ae}function D(j,q){return T(j)===!0||j.isFramebufferTexture&&j.minFilter!==_i&&j.minFilter!==St?Math.log2(Math.max(q.width,q.height))+1:j.mipmaps!==void 0&&j.mipmaps.length>0?j.mipmaps.length:j.isCompressedTexture&&Array.isArray(j.image)?q.mipmaps.length:1}function G(j){const q=j.target;q.removeEventListener("dispose",G),H(q),q.isVideoTexture&&A.delete(q)}function U(j){const q=j.target;q.removeEventListener("dispose",U),$(q)}function H(j){const q=i.get(j);if(q.__webglInit===void 0)return;const ae=j.source,me=b.get(ae);if(me){const fe=me[q.__cacheKey];fe.usedTimes--,fe.usedTimes===0&&k(j),Object.keys(me).length===0&&b.delete(ae)}i.remove(j)}function k(j){const q=i.get(j);o.deleteTexture(q.__webglTexture);const ae=j.source,me=b.get(ae);delete me[q.__cacheKey],h.memory.textures--}function $(j){const q=i.get(j);if(j.depthTexture&&(j.depthTexture.dispose(),i.remove(j.depthTexture)),j.isWebGLCubeRenderTarget)for(let me=0;me<6;me++){if(Array.isArray(q.__webglFramebuffer[me]))for(let fe=0;fe<q.__webglFramebuffer[me].length;fe++)o.deleteFramebuffer(q.__webglFramebuffer[me][fe]);else o.deleteFramebuffer(q.__webglFramebuffer[me]);q.__webglDepthbuffer&&o.deleteRenderbuffer(q.__webglDepthbuffer[me])}else{if(Array.isArray(q.__webglFramebuffer))for(let me=0;me<q.__webglFramebuffer.length;me++)o.deleteFramebuffer(q.__webglFramebuffer[me]);else o.deleteFramebuffer(q.__webglFramebuffer);if(q.__webglDepthbuffer&&o.deleteRenderbuffer(q.__webglDepthbuffer),q.__webglMultisampledFramebuffer&&o.deleteFramebuffer(q.__webglMultisampledFramebuffer),q.__webglColorRenderbuffer)for(let me=0;me<q.__webglColorRenderbuffer.length;me++)q.__webglColorRenderbuffer[me]&&o.deleteRenderbuffer(q.__webglColorRenderbuffer[me]);q.__webglDepthRenderbuffer&&o.deleteRenderbuffer(q.__webglDepthRenderbuffer)}const ae=j.textures;for(let me=0,fe=ae.length;me<fe;me++){const he=i.get(ae[me]);he.__webglTexture&&(o.deleteTexture(he.__webglTexture),h.memory.textures--),i.remove(ae[me])}i.remove(j)}let Q=0;function Z(){Q=0}function X(){const j=Q;return j>=a.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+j+" texture units while this GPU supports only "+a.maxTextures),Q+=1,j}function s(j){const q=[];return q.push(j.wrapS),q.push(j.wrapT),q.push(j.wrapR||0),q.push(j.magFilter),q.push(j.minFilter),q.push(j.anisotropy),q.push(j.internalFormat),q.push(j.format),q.push(j.type),q.push(j.generateMipmaps),q.push(j.premultiplyAlpha),q.push(j.flipY),q.push(j.unpackAlignment),q.push(j.colorSpace),q.join()}function V(j,q){const ae=i.get(j);if(j.isVideoTexture&&K(j),j.isRenderTargetTexture===!1&&j.version>0&&ae.__version!==j.version){const me=j.image;if(me===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(me.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{c(ae,j,q);return}}t.bindTexture(o.TEXTURE_2D,ae.__webglTexture,o.TEXTURE0+q)}function y(j,q){const ae=i.get(j);if(j.version>0&&ae.__version!==j.version){c(ae,j,q);return}t.bindTexture(o.TEXTURE_2D_ARRAY,ae.__webglTexture,o.TEXTURE0+q)}function ee(j,q){const ae=i.get(j);if(j.version>0&&ae.__version!==j.version){c(ae,j,q);return}t.bindTexture(o.TEXTURE_3D,ae.__webglTexture,o.TEXTURE0+q)}function I(j,q){const ae=i.get(j);if(j.version>0&&ae.__version!==j.version){u(ae,j,q);return}t.bindTexture(o.TEXTURE_CUBE_MAP,ae.__webglTexture,o.TEXTURE0+q)}const re={[fs]:o.REPEAT,[ci]:o.CLAMP_TO_EDGE,[Xa]:o.MIRRORED_REPEAT},Ae={[_i]:o.NEAREST,[Vh]:o.NEAREST_MIPMAP_NEAREST,[kr]:o.NEAREST_MIPMAP_LINEAR,[St]:o.LINEAR,[Fa]:o.LINEAR_MIPMAP_NEAREST,[dn]:o.LINEAR_MIPMAP_LINEAR},N={[bM]:o.NEVER,[CM]:o.ALWAYS,[vM]:o.LESS,[DS]:o.LEQUAL,[wM]:o.EQUAL,[SM]:o.GEQUAL,[EM]:o.GREATER,[xM]:o.NOTEQUAL};function n(j,q){if(q.type===ri&&e.has("OES_texture_float_linear")===!1&&(q.magFilter===St||q.magFilter===Fa||q.magFilter===kr||q.magFilter===dn||q.minFilter===St||q.minFilter===Fa||q.minFilter===kr||q.minFilter===dn)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),o.texParameteri(j,o.TEXTURE_WRAP_S,re[q.wrapS]),o.texParameteri(j,o.TEXTURE_WRAP_T,re[q.wrapT]),(j===o.TEXTURE_3D||j===o.TEXTURE_2D_ARRAY)&&o.texParameteri(j,o.TEXTURE_WRAP_R,re[q.wrapR]),o.texParameteri(j,o.TEXTURE_MAG_FILTER,Ae[q.magFilter]),o.texParameteri(j,o.TEXTURE_MIN_FILTER,Ae[q.minFilter]),q.compareFunction&&(o.texParameteri(j,o.TEXTURE_COMPARE_MODE,o.COMPARE_REF_TO_TEXTURE),o.texParameteri(j,o.TEXTURE_COMPARE_FUNC,N[q.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(q.magFilter===_i||q.minFilter!==kr&&q.minFilter!==dn||q.type===ri&&e.has("OES_texture_float_linear")===!1)return;if(q.anisotropy>1||i.get(q).__currentAnisotropy){const ae=e.get("EXT_texture_filter_anisotropic");o.texParameterf(j,ae.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(q.anisotropy,a.getMaxAnisotropy())),i.get(q).__currentAnisotropy=q.anisotropy}}}function r(j,q){let ae=!1;j.__webglInit===void 0&&(j.__webglInit=!0,q.addEventListener("dispose",G));const me=q.source;let fe=b.get(me);fe===void 0&&(fe={},b.set(me,fe));const he=s(q);if(he!==j.__cacheKey){fe[he]===void 0&&(fe[he]={texture:o.createTexture(),usedTimes:0},h.memory.textures++,ae=!0),fe[he].usedTimes++;const ve=fe[j.__cacheKey];ve!==void 0&&(fe[j.__cacheKey].usedTimes--,ve.usedTimes===0&&k(q)),j.__cacheKey=he,j.__webglTexture=fe[he].texture}return ae}function c(j,q,ae){let me=o.TEXTURE_2D;(q.isDataArrayTexture||q.isCompressedArrayTexture)&&(me=o.TEXTURE_2D_ARRAY),q.isData3DTexture&&(me=o.TEXTURE_3D);const fe=r(j,q),he=q.source;t.bindTexture(me,j.__webglTexture,o.TEXTURE0+ae);const ve=i.get(he);if(he.version!==ve.__version||fe===!0){t.activeTexture(o.TEXTURE0+ae);const Re=xt.getPrimaries(xt.workingColorSpace),Le=q.colorSpace===Vn?null:xt.getPrimaries(q.colorSpace),Xe=q.colorSpace===Vn||Re===Le?o.NONE:o.BROWSER_DEFAULT_WEBGL;o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,q.flipY),o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,q.premultiplyAlpha),o.pixelStorei(o.UNPACK_ALIGNMENT,q.unpackAlignment),o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,Xe);let xe=C(q.image,!1,a.maxTextureSize);xe=ie(q,xe);const Pe=l.convert(q.format,q.colorSpace),Ie=l.convert(q.type);let Ue=M(q.internalFormat,Pe,Ie,q.colorSpace,q.isVideoTexture);n(me,q);let Ne;const et=q.mipmaps,Ke=q.isVideoTexture!==!0,gt=ve.__version===void 0||fe===!0,ne=he.dataReady,Oe=D(q,xe);if(q.isDepthTexture)Ue=R(q.format===wl,q.type),gt&&(Ke?t.texStorage2D(o.TEXTURE_2D,1,Ue,xe.width,xe.height):t.texImage2D(o.TEXTURE_2D,0,Ue,xe.width,xe.height,0,Pe,Ie,null));else if(q.isDataTexture)if(et.length>0){Ke&>&&t.texStorage2D(o.TEXTURE_2D,Oe,Ue,et[0].width,et[0].height);for(let ye=0,we=et.length;ye<we;ye++)Ne=et[ye],Ke?ne&&t.texSubImage2D(o.TEXTURE_2D,ye,0,0,Ne.width,Ne.height,Pe,Ie,Ne.data):t.texImage2D(o.TEXTURE_2D,ye,Ue,Ne.width,Ne.height,0,Pe,Ie,Ne.data);q.generateMipmaps=!1}else Ke?(gt&&t.texStorage2D(o.TEXTURE_2D,Oe,Ue,xe.width,xe.height),ne&&t.texSubImage2D(o.TEXTURE_2D,0,0,0,xe.width,xe.height,Pe,Ie,xe.data)):t.texImage2D(o.TEXTURE_2D,0,Ue,xe.width,xe.height,0,Pe,Ie,xe.data);else if(q.isCompressedTexture)if(q.isCompressedArrayTexture){Ke&>&&t.texStorage3D(o.TEXTURE_2D_ARRAY,Oe,Ue,et[0].width,et[0].height,xe.depth);for(let ye=0,we=et.length;ye<we;ye++)if(Ne=et[ye],q.format!==Xt)if(Pe!==null)if(Ke){if(ne)if(q.layerUpdates.size>0){const Ge=eb(Ne.width,Ne.height,q.format,q.type);for(const ze of q.layerUpdates){const We=Ne.data.subarray(ze*Ge/Ne.data.BYTES_PER_ELEMENT,(ze+1)*Ge/Ne.data.BYTES_PER_ELEMENT);t.compressedTexSubImage3D(o.TEXTURE_2D_ARRAY,ye,0,0,ze,Ne.width,Ne.height,1,Pe,We)}q.clearLayerUpdates()}else t.compressedTexSubImage3D(o.TEXTURE_2D_ARRAY,ye,0,0,0,Ne.width,Ne.height,xe.depth,Pe,Ne.data)}else t.compressedTexImage3D(o.TEXTURE_2D_ARRAY,ye,Ue,Ne.width,Ne.height,xe.depth,0,Ne.data,0,0);else console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else Ke?ne&&t.texSubImage3D(o.TEXTURE_2D_ARRAY,ye,0,0,0,Ne.width,Ne.height,xe.depth,Pe,Ie,Ne.data):t.texImage3D(o.TEXTURE_2D_ARRAY,ye,Ue,Ne.width,Ne.height,xe.depth,0,Pe,Ie,Ne.data)}else{Ke&>&&t.texStorage2D(o.TEXTURE_2D,Oe,Ue,et[0].width,et[0].height);for(let ye=0,we=et.length;ye<we;ye++)Ne=et[ye],q.format!==Xt?Pe!==null?Ke?ne&&t.compressedTexSubImage2D(o.TEXTURE_2D,ye,0,0,Ne.width,Ne.height,Pe,Ne.data):t.compressedTexImage2D(o.TEXTURE_2D,ye,Ue,Ne.width,Ne.height,0,Ne.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):Ke?ne&&t.texSubImage2D(o.TEXTURE_2D,ye,0,0,Ne.width,Ne.height,Pe,Ie,Ne.data):t.texImage2D(o.TEXTURE_2D,ye,Ue,Ne.width,Ne.height,0,Pe,Ie,Ne.data)}else if(q.isDataArrayTexture)if(Ke){if(gt&&t.texStorage3D(o.TEXTURE_2D_ARRAY,Oe,Ue,xe.width,xe.height,xe.depth),ne)if(q.layerUpdates.size>0){const ye=eb(xe.width,xe.height,q.format,q.type);for(const we of q.layerUpdates){const Ge=xe.data.subarray(we*ye/xe.data.BYTES_PER_ELEMENT,(we+1)*ye/xe.data.BYTES_PER_ELEMENT);t.texSubImage3D(o.TEXTURE_2D_ARRAY,0,0,0,we,xe.width,xe.height,1,Pe,Ie,Ge)}q.clearLayerUpdates()}else t.texSubImage3D(o.TEXTURE_2D_ARRAY,0,0,0,0,xe.width,xe.height,xe.depth,Pe,Ie,xe.data)}else t.texImage3D(o.TEXTURE_2D_ARRAY,0,Ue,xe.width,xe.height,xe.depth,0,Pe,Ie,xe.data);else if(q.isData3DTexture)Ke?(gt&&t.texStorage3D(o.TEXTURE_3D,Oe,Ue,xe.width,xe.height,xe.depth),ne&&t.texSubImage3D(o.TEXTURE_3D,0,0,0,0,xe.width,xe.height,xe.depth,Pe,Ie,xe.data)):t.texImage3D(o.TEXTURE_3D,0,Ue,xe.width,xe.height,xe.depth,0,Pe,Ie,xe.data);else if(q.isFramebufferTexture){if(gt)if(Ke)t.texStorage2D(o.TEXTURE_2D,Oe,Ue,xe.width,xe.height);else{let ye=xe.width,we=xe.height;for(let Ge=0;Ge<Oe;Ge++)t.texImage2D(o.TEXTURE_2D,Ge,Ue,ye,we,0,Pe,Ie,null),ye>>=1,we>>=1}}else if(et.length>0){if(Ke&>){const ye=de(et[0]);t.texStorage2D(o.TEXTURE_2D,Oe,Ue,ye.width,ye.height)}for(let ye=0,we=et.length;ye<we;ye++)Ne=et[ye],Ke?ne&&t.texSubImage2D(o.TEXTURE_2D,ye,0,0,Pe,Ie,Ne):t.texImage2D(o.TEXTURE_2D,ye,Ue,Pe,Ie,Ne);q.generateMipmaps=!1}else if(Ke){if(gt){const ye=de(xe);t.texStorage2D(o.TEXTURE_2D,Oe,Ue,ye.width,ye.height)}ne&&t.texSubImage2D(o.TEXTURE_2D,0,0,0,Pe,Ie,xe)}else t.texImage2D(o.TEXTURE_2D,0,Ue,Pe,Ie,xe);T(q)&&x(me),ve.__version=he.version,q.onUpdate&&q.onUpdate(q)}j.__version=q.version}function u(j,q,ae){if(q.image.length!==6)return;const me=r(j,q),fe=q.source;t.bindTexture(o.TEXTURE_CUBE_MAP,j.__webglTexture,o.TEXTURE0+ae);const he=i.get(fe);if(fe.version!==he.__version||me===!0){t.activeTexture(o.TEXTURE0+ae);const ve=xt.getPrimaries(xt.workingColorSpace),Re=q.colorSpace===Vn?null:xt.getPrimaries(q.colorSpace),Le=q.colorSpace===Vn||ve===Re?o.NONE:o.BROWSER_DEFAULT_WEBGL;o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,q.flipY),o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,q.premultiplyAlpha),o.pixelStorei(o.UNPACK_ALIGNMENT,q.unpackAlignment),o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,Le);const Xe=q.isCompressedTexture||q.image[0].isCompressedTexture,xe=q.image[0]&&q.image[0].isDataTexture,Pe=[];for(let we=0;we<6;we++)!Xe&&!xe?Pe[we]=C(q.image[we],!0,a.maxCubemapSize):Pe[we]=xe?q.image[we].image:q.image[we],Pe[we]=ie(q,Pe[we]);const Ie=Pe[0],Ue=l.convert(q.format,q.colorSpace),Ne=l.convert(q.type),et=M(q.internalFormat,Ue,Ne,q.colorSpace),Ke=q.isVideoTexture!==!0,gt=he.__version===void 0||me===!0,ne=fe.dataReady;let Oe=D(q,Ie);n(o.TEXTURE_CUBE_MAP,q);let ye;if(Xe){Ke&>&&t.texStorage2D(o.TEXTURE_CUBE_MAP,Oe,et,Ie.width,Ie.height);for(let we=0;we<6;we++){ye=Pe[we].mipmaps;for(let Ge=0;Ge<ye.length;Ge++){const ze=ye[Ge];q.format!==Xt?Ue!==null?Ke?ne&&t.compressedTexSubImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge,0,0,ze.width,ze.height,Ue,ze.data):t.compressedTexImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge,et,ze.width,ze.height,0,ze.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):Ke?ne&&t.texSubImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge,0,0,ze.width,ze.height,Ue,Ne,ze.data):t.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge,et,ze.width,ze.height,0,Ue,Ne,ze.data)}}}else{if(ye=q.mipmaps,Ke&>){ye.length>0&&Oe++;const we=de(Pe[0]);t.texStorage2D(o.TEXTURE_CUBE_MAP,Oe,et,we.width,we.height)}for(let we=0;we<6;we++)if(xe){Ke?ne&&t.texSubImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,0,0,0,Pe[we].width,Pe[we].height,Ue,Ne,Pe[we].data):t.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,0,et,Pe[we].width,Pe[we].height,0,Ue,Ne,Pe[we].data);for(let Ge=0;Ge<ye.length;Ge++){const We=ye[Ge].image[we].image;Ke?ne&&t.texSubImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge+1,0,0,We.width,We.height,Ue,Ne,We.data):t.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge+1,et,We.width,We.height,0,Ue,Ne,We.data)}}else{Ke?ne&&t.texSubImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,0,0,0,Ue,Ne,Pe[we]):t.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,0,et,Ue,Ne,Pe[we]);for(let Ge=0;Ge<ye.length;Ge++){const ze=ye[Ge];Ke?ne&&t.texSubImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge+1,0,0,Ue,Ne,ze.image[we]):t.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge+1,et,Ue,Ne,ze.image[we])}}}T(q)&&x(o.TEXTURE_CUBE_MAP),he.__version=fe.version,q.onUpdate&&q.onUpdate(q)}j.__version=q.version}function f(j,q,ae,me,fe,he){const ve=l.convert(ae.format,ae.colorSpace),Re=l.convert(ae.type),Le=M(ae.internalFormat,ve,Re,ae.colorSpace),Xe=i.get(q),xe=i.get(ae);if(xe.__renderTarget=q,!Xe.__hasExternalTextures){const Pe=Math.max(1,q.width>>he),Ie=Math.max(1,q.height>>he);fe===o.TEXTURE_3D||fe===o.TEXTURE_2D_ARRAY?t.texImage3D(fe,he,Le,Pe,Ie,q.depth,0,ve,Re,null):t.texImage2D(fe,he,Le,Pe,Ie,0,ve,Re,null)}t.bindFramebuffer(o.FRAMEBUFFER,j),te(q)?d.framebufferTexture2DMultisampleEXT(o.FRAMEBUFFER,me,fe,xe.__webglTexture,0,Y(q)):(fe===o.TEXTURE_2D||fe>=o.TEXTURE_CUBE_MAP_POSITIVE_X&&fe<=o.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&o.framebufferTexture2D(o.FRAMEBUFFER,me,fe,xe.__webglTexture,he),t.bindFramebuffer(o.FRAMEBUFFER,null)}function m(j,q,ae){if(o.bindRenderbuffer(o.RENDERBUFFER,j),q.depthBuffer){const me=q.depthTexture,fe=me&&me.isDepthTexture?me.type:null,he=R(q.stencilBuffer,fe),ve=q.stencilBuffer?o.DEPTH_STENCIL_ATTACHMENT:o.DEPTH_ATTACHMENT,Re=Y(q);te(q)?d.renderbufferStorageMultisampleEXT(o.RENDERBUFFER,Re,he,q.width,q.height):ae?o.renderbufferStorageMultisample(o.RENDERBUFFER,Re,he,q.width,q.height):o.renderbufferStorage(o.RENDERBUFFER,he,q.width,q.height),o.framebufferRenderbuffer(o.FRAMEBUFFER,ve,o.RENDERBUFFER,j)}else{const me=q.textures;for(let fe=0;fe<me.length;fe++){const he=me[fe],ve=l.convert(he.format,he.colorSpace),Re=l.convert(he.type),Le=M(he.internalFormat,ve,Re,he.colorSpace),Xe=Y(q);ae&&te(q)===!1?o.renderbufferStorageMultisample(o.RENDERBUFFER,Xe,Le,q.width,q.height):te(q)?d.renderbufferStorageMultisampleEXT(o.RENDERBUFFER,Xe,Le,q.width,q.height):o.renderbufferStorage(o.RENDERBUFFER,Le,q.width,q.height)}}o.bindRenderbuffer(o.RENDERBUFFER,null)}function v(j,q){if(q&&q.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(o.FRAMEBUFFER,j),!(q.depthTexture&&q.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");const me=i.get(q.depthTexture);me.__renderTarget=q,(!me.__webglTexture||q.depthTexture.image.width!==q.width||q.depthTexture.image.height!==q.height)&&(q.depthTexture.image.width=q.width,q.depthTexture.image.height=q.height,q.depthTexture.needsUpdate=!0),V(q.depthTexture,0);const fe=me.__webglTexture,he=Y(q);if(q.depthTexture.format===ll)te(q)?d.framebufferTexture2DMultisampleEXT(o.FRAMEBUFFER,o.DEPTH_ATTACHMENT,o.TEXTURE_2D,fe,0,he):o.framebufferTexture2D(o.FRAMEBUFFER,o.DEPTH_ATTACHMENT,o.TEXTURE_2D,fe,0);else if(q.depthTexture.format===wl)te(q)?d.framebufferTexture2DMultisampleEXT(o.FRAMEBUFFER,o.DEPTH_STENCIL_ATTACHMENT,o.TEXTURE_2D,fe,0,he):o.framebufferTexture2D(o.FRAMEBUFFER,o.DEPTH_STENCIL_ATTACHMENT,o.TEXTURE_2D,fe,0);else throw new Error("Unknown depthTexture format")}function S(j){const q=i.get(j),ae=j.isWebGLCubeRenderTarget===!0;if(q.__boundDepthTexture!==j.depthTexture){const me=j.depthTexture;if(q.__depthDisposeCallback&&q.__depthDisposeCallback(),me){const fe=()=>{delete q.__boundDepthTexture,delete q.__depthDisposeCallback,me.removeEventListener("dispose",fe)};me.addEventListener("dispose",fe),q.__depthDisposeCallback=fe}q.__boundDepthTexture=me}if(j.depthTexture&&!q.__autoAllocateDepthBuffer){if(ae)throw new Error("target.depthTexture not supported in Cube render targets");v(q.__webglFramebuffer,j)}else if(ae){q.__webglDepthbuffer=[];for(let me=0;me<6;me++)if(t.bindFramebuffer(o.FRAMEBUFFER,q.__webglFramebuffer[me]),q.__webglDepthbuffer[me]===void 0)q.__webglDepthbuffer[me]=o.createRenderbuffer(),m(q.__webglDepthbuffer[me],j,!1);else{const fe=j.stencilBuffer?o.DEPTH_STENCIL_ATTACHMENT:o.DEPTH_ATTACHMENT,he=q.__webglDepthbuffer[me];o.bindRenderbuffer(o.RENDERBUFFER,he),o.framebufferRenderbuffer(o.FRAMEBUFFER,fe,o.RENDERBUFFER,he)}}else if(t.bindFramebuffer(o.FRAMEBUFFER,q.__webglFramebuffer),q.__webglDepthbuffer===void 0)q.__webglDepthbuffer=o.createRenderbuffer(),m(q.__webglDepthbuffer,j,!1);else{const me=j.stencilBuffer?o.DEPTH_STENCIL_ATTACHMENT:o.DEPTH_ATTACHMENT,fe=q.__webglDepthbuffer;o.bindRenderbuffer(o.RENDERBUFFER,fe),o.framebufferRenderbuffer(o.FRAMEBUFFER,me,o.RENDERBUFFER,fe)}t.bindFramebuffer(o.FRAMEBUFFER,null)}function B(j,q,ae){const me=i.get(j);q!==void 0&&f(me.__webglFramebuffer,j,j.texture,o.COLOR_ATTACHMENT0,o.TEXTURE_2D,0),ae!==void 0&&S(j)}function L(j){const q=j.texture,ae=i.get(j),me=i.get(q);j.addEventListener("dispose",U);const fe=j.textures,he=j.isWebGLCubeRenderTarget===!0,ve=fe.length>1;if(ve||(me.__webglTexture===void 0&&(me.__webglTexture=o.createTexture()),me.__version=q.version,h.memory.textures++),he){ae.__webglFramebuffer=[];for(let Re=0;Re<6;Re++)if(q.mipmaps&&q.mipmaps.length>0){ae.__webglFramebuffer[Re]=[];for(let Le=0;Le<q.mipmaps.length;Le++)ae.__webglFramebuffer[Re][Le]=o.createFramebuffer()}else ae.__webglFramebuffer[Re]=o.createFramebuffer()}else{if(q.mipmaps&&q.mipmaps.length>0){ae.__webglFramebuffer=[];for(let Re=0;Re<q.mipmaps.length;Re++)ae.__webglFramebuffer[Re]=o.createFramebuffer()}else ae.__webglFramebuffer=o.createFramebuffer();if(ve)for(let Re=0,Le=fe.length;Re<Le;Re++){const Xe=i.get(fe[Re]);Xe.__webglTexture===void 0&&(Xe.__webglTexture=o.createTexture(),h.memory.textures++)}if(j.samples>0&&te(j)===!1){ae.__webglMultisampledFramebuffer=o.createFramebuffer(),ae.__webglColorRenderbuffer=[],t.bindFramebuffer(o.FRAMEBUFFER,ae.__webglMultisampledFramebuffer);for(let Re=0;Re<fe.length;Re++){const Le=fe[Re];ae.__webglColorRenderbuffer[Re]=o.createRenderbuffer(),o.bindRenderbuffer(o.RENDERBUFFER,ae.__webglColorRenderbuffer[Re]);const Xe=l.convert(Le.format,Le.colorSpace),xe=l.convert(Le.type),Pe=M(Le.internalFormat,Xe,xe,Le.colorSpace,j.isXRRenderTarget===!0),Ie=Y(j);o.renderbufferStorageMultisample(o.RENDERBUFFER,Ie,Pe,j.width,j.height),o.framebufferRenderbuffer(o.FRAMEBUFFER,o.COLOR_ATTACHMENT0+Re,o.RENDERBUFFER,ae.__webglColorRenderbuffer[Re])}o.bindRenderbuffer(o.RENDERBUFFER,null),j.depthBuffer&&(ae.__webglDepthRenderbuffer=o.createRenderbuffer(),m(ae.__webglDepthRenderbuffer,j,!0)),t.bindFramebuffer(o.FRAMEBUFFER,null)}}if(he){t.bindTexture(o.TEXTURE_CUBE_MAP,me.__webglTexture),n(o.TEXTURE_CUBE_MAP,q);for(let Re=0;Re<6;Re++)if(q.mipmaps&&q.mipmaps.length>0)for(let Le=0;Le<q.mipmaps.length;Le++)f(ae.__webglFramebuffer[Re][Le],j,q,o.COLOR_ATTACHMENT0,o.TEXTURE_CUBE_MAP_POSITIVE_X+Re,Le);else f(ae.__webglFramebuffer[Re],j,q,o.COLOR_ATTACHMENT0,o.TEXTURE_CUBE_MAP_POSITIVE_X+Re,0);T(q)&&x(o.TEXTURE_CUBE_MAP),t.unbindTexture()}else if(ve){for(let Re=0,Le=fe.length;Re<Le;Re++){const Xe=fe[Re],xe=i.get(Xe);t.bindTexture(o.TEXTURE_2D,xe.__webglTexture),n(o.TEXTURE_2D,Xe),f(ae.__webglFramebuffer,j,Xe,o.COLOR_ATTACHMENT0+Re,o.TEXTURE_2D,0),T(Xe)&&x(o.TEXTURE_2D)}t.unbindTexture()}else{let Re=o.TEXTURE_2D;if((j.isWebGL3DRenderTarget||j.isWebGLArrayRenderTarget)&&(Re=j.isWebGL3DRenderTarget?o.TEXTURE_3D:o.TEXTURE_2D_ARRAY),t.bindTexture(Re,me.__webglTexture),n(Re,q),q.mipmaps&&q.mipmaps.length>0)for(let Le=0;Le<q.mipmaps.length;Le++)f(ae.__webglFramebuffer[Le],j,q,o.COLOR_ATTACHMENT0,Re,Le);else f(ae.__webglFramebuffer,j,q,o.COLOR_ATTACHMENT0,Re,0);T(q)&&x(Re),t.unbindTexture()}j.depthBuffer&&S(j)}function F(j){const q=j.textures;for(let ae=0,me=q.length;ae<me;ae++){const fe=q[ae];if(T(fe)){const he=P(j),ve=i.get(fe).__webglTexture;t.bindTexture(he,ve),x(he),t.unbindTexture()}}}const z=[],O=[];function W(j){if(j.samples>0){if(te(j)===!1){const q=j.textures,ae=j.width,me=j.height;let fe=o.COLOR_BUFFER_BIT;const he=j.stencilBuffer?o.DEPTH_STENCIL_ATTACHMENT:o.DEPTH_ATTACHMENT,ve=i.get(j),Re=q.length>1;if(Re)for(let Le=0;Le<q.length;Le++)t.bindFramebuffer(o.FRAMEBUFFER,ve.__webglMultisampledFramebuffer),o.framebufferRenderbuffer(o.FRAMEBUFFER,o.COLOR_ATTACHMENT0+Le,o.RENDERBUFFER,null),t.bindFramebuffer(o.FRAMEBUFFER,ve.__webglFramebuffer),o.framebufferTexture2D(o.DRAW_FRAMEBUFFER,o.COLOR_ATTACHMENT0+Le,o.TEXTURE_2D,null,0);t.bindFramebuffer(o.READ_FRAMEBUFFER,ve.__webglMultisampledFramebuffer),t.bindFramebuffer(o.DRAW_FRAMEBUFFER,ve.__webglFramebuffer);for(let Le=0;Le<q.length;Le++){if(j.resolveDepthBuffer&&(j.depthBuffer&&(fe|=o.DEPTH_BUFFER_BIT),j.stencilBuffer&&j.resolveStencilBuffer&&(fe|=o.STENCIL_BUFFER_BIT)),Re){o.framebufferRenderbuffer(o.READ_FRAMEBUFFER,o.COLOR_ATTACHMENT0,o.RENDERBUFFER,ve.__webglColorRenderbuffer[Le]);const Xe=i.get(q[Le]).__webglTexture;o.framebufferTexture2D(o.DRAW_FRAMEBUFFER,o.COLOR_ATTACHMENT0,o.TEXTURE_2D,Xe,0)}o.blitFramebuffer(0,0,ae,me,0,0,ae,me,fe,o.NEAREST),p===!0&&(z.length=0,O.length=0,z.push(o.COLOR_ATTACHMENT0+Le),j.depthBuffer&&j.resolveDepthBuffer===!1&&(z.push(he),O.push(he),o.invalidateFramebuffer(o.DRAW_FRAMEBUFFER,O)),o.invalidateFramebuffer(o.READ_FRAMEBUFFER,z))}if(t.bindFramebuffer(o.READ_FRAMEBUFFER,null),t.bindFramebuffer(o.DRAW_FRAMEBUFFER,null),Re)for(let Le=0;Le<q.length;Le++){t.bindFramebuffer(o.FRAMEBUFFER,ve.__webglMultisampledFramebuffer),o.framebufferRenderbuffer(o.FRAMEBUFFER,o.COLOR_ATTACHMENT0+Le,o.RENDERBUFFER,ve.__webglColorRenderbuffer[Le]);const Xe=i.get(q[Le]).__webglTexture;t.bindFramebuffer(o.FRAMEBUFFER,ve.__webglFramebuffer),o.framebufferTexture2D(o.DRAW_FRAMEBUFFER,o.COLOR_ATTACHMENT0+Le,o.TEXTURE_2D,Xe,0)}t.bindFramebuffer(o.DRAW_FRAMEBUFFER,ve.__webglMultisampledFramebuffer)}else if(j.depthBuffer&&j.resolveDepthBuffer===!1&&p){const q=j.stencilBuffer?o.DEPTH_STENCIL_ATTACHMENT:o.DEPTH_ATTACHMENT;o.invalidateFramebuffer(o.DRAW_FRAMEBUFFER,[q])}}}function Y(j){return Math.min(a.maxSamples,j.samples)}function te(j){const q=i.get(j);return j.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&q.__useRenderToTexture!==!1}function K(j){const q=h.render.frame;A.get(j)!==q&&(A.set(j,q),j.update())}function ie(j,q){const ae=j.colorSpace,me=j.format,fe=j.type;return j.isCompressedTexture===!0||j.isVideoTexture===!0||ae!==jt&&ae!==Vn&&(xt.getTransfer(ae)===Ht?(me!==Xt||fe!==pi)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",ae)),q}function de(j){return typeof HTMLImageElement<"u"&&j instanceof HTMLImageElement?(g.width=j.naturalWidth||j.width,g.height=j.naturalHeight||j.height):typeof VideoFrame<"u"&&j instanceof VideoFrame?(g.width=j.displayWidth,g.height=j.displayHeight):(g.width=j.width,g.height=j.height),g}this.allocateTextureUnit=X,this.resetTextureUnits=Z,this.setTexture2D=V,this.setTexture2DArray=y,this.setTexture3D=ee,this.setTextureCube=I,this.rebindTextures=B,this.setupRenderTarget=L,this.updateRenderTargetMipmap=F,this.updateMultisampleRenderTarget=W,this.setupDepthRenderbuffer=S,this.setupFrameBufferTexture=f,this.useMultisampledRTT=te}function ND(o,e){function t(i,a=Vn){let l;const h=xt.getTransfer(a);if(i===pi)return o.UNSIGNED_BYTE;if(i===U0)return o.UNSIGNED_SHORT_4_4_4_4;if(i===F0)return o.UNSIGNED_SHORT_5_5_5_1;if(i===TS)return o.UNSIGNED_INT_5_9_9_9_REV;if(i===O0)return o.BYTE;if(i===k0)return o.SHORT;if(i===Th)return o.UNSIGNED_SHORT;if(i===$f)return o.INT;if(i===Wr)return o.UNSIGNED_INT;if(i===ri)return o.FLOAT;if(i===hi)return o.HALF_FLOAT;if(i===IS)return o.ALPHA;if(i===MS)return o.RGB;if(i===Xt)return o.RGBA;if(i===RS)return o.LUMINANCE;if(i===BS)return o.LUMINANCE_ALPHA;if(i===ll)return o.DEPTH_COMPONENT;if(i===wl)return o.DEPTH_STENCIL;if(i===Ur)return o.RED;if(i===$0)return o.RED_INTEGER;if(i===Na)return o.RG;if(i===z0)return o.RG_INTEGER;if(i===G0)return o.RGBA_INTEGER;if(i===Md||i===uh||i===Rd||i===dh)if(h===Ht)if(l=e.get("WEBGL_compressed_texture_s3tc_srgb"),l!==null){if(i===Md)return l.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(i===uh)return l.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(i===Rd)return l.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(i===dh)return l.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(l=e.get("WEBGL_compressed_texture_s3tc"),l!==null){if(i===Md)return l.COMPRESSED_RGB_S3TC_DXT1_EXT;if(i===uh)return l.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(i===Rd)return l.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(i===dh)return l.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(i===Jd||i===hA||i===Zd||i===uA)if(l=e.get("WEBGL_compressed_texture_pvrtc"),l!==null){if(i===Jd)return l.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(i===hA)return l.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(i===Zd)return l.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(i===uA)return l.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(i===ef||i===tf||i===nf)if(l=e.get("WEBGL_compressed_texture_etc"),l!==null){if(i===ef||i===tf)return h===Ht?l.COMPRESSED_SRGB8_ETC2:l.COMPRESSED_RGB8_ETC2;if(i===nf)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:l.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(i===Ih||i===dA||i===fA||i===pA||i===Mh||i===gA||i===mA||i===AA||i===_A||i===yA||i===bA||i===vA||i===wA||i===EA)if(l=e.get("WEBGL_compressed_texture_astc"),l!==null){if(i===Ih)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:l.COMPRESSED_RGBA_ASTC_4x4_KHR;if(i===dA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:l.COMPRESSED_RGBA_ASTC_5x4_KHR;if(i===fA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:l.COMPRESSED_RGBA_ASTC_5x5_KHR;if(i===pA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:l.COMPRESSED_RGBA_ASTC_6x5_KHR;if(i===Mh)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:l.COMPRESSED_RGBA_ASTC_6x6_KHR;if(i===gA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:l.COMPRESSED_RGBA_ASTC_8x5_KHR;if(i===mA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:l.COMPRESSED_RGBA_ASTC_8x6_KHR;if(i===AA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:l.COMPRESSED_RGBA_ASTC_8x8_KHR;if(i===_A)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:l.COMPRESSED_RGBA_ASTC_10x5_KHR;if(i===yA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:l.COMPRESSED_RGBA_ASTC_10x6_KHR;if(i===bA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:l.COMPRESSED_RGBA_ASTC_10x8_KHR;if(i===vA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:l.COMPRESSED_RGBA_ASTC_10x10_KHR;if(i===wA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:l.COMPRESSED_RGBA_ASTC_12x10_KHR;if(i===EA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:l.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(i===fh||i===xA||i===sf)if(l=e.get("EXT_texture_compression_bptc"),l!==null){if(i===fh)return h===Ht?l.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:l.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(i===xA)return l.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(i===sf)return l.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(i===PS||i===SA||i===CA||i===TA)if(l=e.get("EXT_texture_compression_rgtc"),l!==null){if(i===fh)return l.COMPRESSED_RED_RGTC1_EXT;if(i===SA)return l.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(i===CA)return l.COMPRESSED_RED_GREEN_RGTC2_EXT;if(i===TA)return l.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return i===vl?o.UNSIGNED_INT_24_8:o[i]!==void 0?o[i]:null}return{convert:t}}const OD={type:"move"};class Yp{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new li,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new li,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new se,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new se),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new li,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new se,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new se),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const i of e.hand.values())this._getHandJoint(t,i)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,i){let a=null,l=null,h=null;const d=this._targetRay,p=this._grip,g=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(g&&e.hand){h=!0;for(const C of e.hand.values()){const T=t.getJointPose(C,i),x=this._getHandJoint(g,C);T!==null&&(x.matrix.fromArray(T.transform.matrix),x.matrix.decompose(x.position,x.rotation,x.scale),x.matrixWorldNeedsUpdate=!0,x.jointRadius=T.radius),x.visible=T!==null}const A=g.joints["index-finger-tip"],_=g.joints["thumb-tip"],b=A.position.distanceTo(_.position),w=.02,E=.005;g.inputState.pinching&&b>w+E?(g.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!g.inputState.pinching&&b<=w-E&&(g.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else p!==null&&e.gripSpace&&(l=t.getPose(e.gripSpace,i),l!==null&&(p.matrix.fromArray(l.transform.matrix),p.matrix.decompose(p.position,p.rotation,p.scale),p.matrixWorldNeedsUpdate=!0,l.linearVelocity?(p.hasLinearVelocity=!0,p.linearVelocity.copy(l.linearVelocity)):p.hasLinearVelocity=!1,l.angularVelocity?(p.hasAngularVelocity=!0,p.angularVelocity.copy(l.angularVelocity)):p.hasAngularVelocity=!1));d!==null&&(a=t.getPose(e.targetRaySpace,i),a===null&&l!==null&&(a=l),a!==null&&(d.matrix.fromArray(a.transform.matrix),d.matrix.decompose(d.position,d.rotation,d.scale),d.matrixWorldNeedsUpdate=!0,a.linearVelocity?(d.hasLinearVelocity=!0,d.linearVelocity.copy(a.linearVelocity)):d.hasLinearVelocity=!1,a.angularVelocity?(d.hasAngularVelocity=!0,d.angularVelocity.copy(a.angularVelocity)):d.hasAngularVelocity=!1,this.dispatchEvent(OD)))}return d!==null&&(d.visible=a!==null),p!==null&&(p.visible=l!==null),g!==null&&(g.visible=h!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const i=new li;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[t.jointName]=i,e.add(i)}return e.joints[t.jointName]}}const kD=`
|
|
3866
|
+
}`;function BD(o,e,t){let i=new J0;const a=new He,l=new He,h=new Bt,d=new t_({depthPacking:_M}),p=new MR,g={},A=t.maxTextureSize,_={[ds]:$i,[$i]:ds,[Pi]:Pi},b=new Ni({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new He},radius:{value:4}},vertexShader:MD,fragmentShader:RD}),w=b.clone();w.defines.HORIZONTAL_PASS=1;const E=new yi;E.setAttribute("position",new qt(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const C=new ot(E,b),T=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=L0;let x=this.type;this.render=function(G,U,H){if(T.enabled===!1||T.autoUpdate===!1&&T.needsUpdate===!1||G.length===0)return;const k=o.getRenderTarget(),$=o.getActiveCubeFace(),Q=o.getActiveMipmapLevel(),Z=o.state;Z.setBlending(hs),Z.buffers.color.setClear(1,1,1,1),Z.buffers.depth.setTest(!0),Z.setScissorTest(!1);const X=x!==Js&&this.type===Js,s=x===Js&&this.type!==Js;for(let V=0,y=G.length;V<y;V++){const ee=G[V],I=ee.shadow;if(I===void 0){console.warn("THREE.WebGLShadowMap:",ee,"has no shadow.");continue}if(I.autoUpdate===!1&&I.needsUpdate===!1)continue;a.copy(I.mapSize);const re=I.getFrameExtents();if(a.multiply(re),l.copy(I.mapSize),(a.x>A||a.y>A)&&(a.x>A&&(l.x=Math.floor(A/re.x),a.x=l.x*re.x,I.mapSize.x=l.x),a.y>A&&(l.y=Math.floor(A/re.y),a.y=l.y*re.y,I.mapSize.y=l.y)),I.map===null||X===!0||s===!0){const N=this.type!==Js?{minFilter:_i,magFilter:_i}:{};I.map!==null&&I.map.dispose(),I.map=new Gi(a.x,a.y,N),I.map.texture.name=ee.name+".shadowMap",I.camera.updateProjectionMatrix()}o.setRenderTarget(I.map),o.clear();const Ae=I.getViewportCount();for(let N=0;N<Ae;N++){const n=I.getViewport(N);h.set(l.x*n.x,l.y*n.y,l.x*n.z,l.y*n.w),Z.viewport(h),I.updateMatrices(ee,N),i=I.getFrustum(),R(U,H,I.camera,ee,this.type)}I.isPointLightShadow!==!0&&this.type===Js&&P(I,H),I.needsUpdate=!1}x=this.type,T.needsUpdate=!1,o.setRenderTarget(k,$,Q)};function P(G,U){const H=e.update(C);b.defines.VSM_SAMPLES!==G.blurSamples&&(b.defines.VSM_SAMPLES=G.blurSamples,w.defines.VSM_SAMPLES=G.blurSamples,b.needsUpdate=!0,w.needsUpdate=!0),G.mapPass===null&&(G.mapPass=new Gi(a.x,a.y)),b.uniforms.shadow_pass.value=G.map.texture,b.uniforms.resolution.value=G.mapSize,b.uniforms.radius.value=G.radius,o.setRenderTarget(G.mapPass),o.clear(),o.renderBufferDirect(U,null,H,b,C,null),w.uniforms.shadow_pass.value=G.mapPass.texture,w.uniforms.resolution.value=G.mapSize,w.uniforms.radius.value=G.radius,o.setRenderTarget(G.map),o.clear(),o.renderBufferDirect(U,null,H,w,C,null)}function M(G,U,H,k){let $=null;const Q=H.isPointLight===!0?G.customDistanceMaterial:G.customDepthMaterial;if(Q!==void 0)$=Q;else if($=H.isPointLight===!0?p:d,o.localClippingEnabled&&U.clipShadows===!0&&Array.isArray(U.clippingPlanes)&&U.clippingPlanes.length!==0||U.displacementMap&&U.displacementScale!==0||U.alphaMap&&U.alphaTest>0||U.map&&U.alphaTest>0){const Z=$.uuid,X=U.uuid;let s=g[Z];s===void 0&&(s={},g[Z]=s);let V=s[X];V===void 0&&(V=$.clone(),s[X]=V,U.addEventListener("dispose",D)),$=V}if($.visible=U.visible,$.wireframe=U.wireframe,k===Js?$.side=U.shadowSide!==null?U.shadowSide:U.side:$.side=U.shadowSide!==null?U.shadowSide:_[U.side],$.alphaMap=U.alphaMap,$.alphaTest=U.alphaTest,$.map=U.map,$.clipShadows=U.clipShadows,$.clippingPlanes=U.clippingPlanes,$.clipIntersection=U.clipIntersection,$.displacementMap=U.displacementMap,$.displacementScale=U.displacementScale,$.displacementBias=U.displacementBias,$.wireframeLinewidth=U.wireframeLinewidth,$.linewidth=U.linewidth,H.isPointLight===!0&&$.isMeshDistanceMaterial===!0){const Z=o.properties.get($);Z.light=H}return $}function R(G,U,H,k,$){if(G.visible===!1)return;if(G.layers.test(U.layers)&&(G.isMesh||G.isLine||G.isPoints)&&(G.castShadow||G.receiveShadow&&$===Js)&&(!G.frustumCulled||i.intersectsObject(G))){G.modelViewMatrix.multiplyMatrices(H.matrixWorldInverse,G.matrixWorld);const X=e.update(G),s=G.material;if(Array.isArray(s)){const V=X.groups;for(let y=0,ee=V.length;y<ee;y++){const I=V[y],re=s[I.materialIndex];if(re&&re.visible){const Ae=M(G,re,k,$);G.onBeforeShadow(o,G,U,H,X,Ae,I),o.renderBufferDirect(H,null,X,Ae,G,I),G.onAfterShadow(o,G,U,H,X,Ae,I)}}}else if(s.visible){const V=M(G,s,k,$);G.onBeforeShadow(o,G,U,H,X,V,null),o.renderBufferDirect(H,null,X,V,G,null),G.onAfterShadow(o,G,U,H,X,V,null)}}const Z=G.children;for(let X=0,s=Z.length;X<s;X++)R(Z[X],U,H,k,$)}function D(G){G.target.removeEventListener("dispose",D);for(const H in g){const k=g[H],$=G.target.uuid;$ in k&&(k[$].dispose(),delete k[$])}}}const PD={[iA]:nA,[sA]:oA,[rA]:lA,[_l]:aA,[nA]:iA,[oA]:sA,[lA]:rA,[aA]:_l};function LD(o,e){function t(){let ne=!1;const Oe=new Bt;let ye=null;const we=new Bt(0,0,0,0);return{setMask:function(Ge){ye!==Ge&&!ne&&(o.colorMask(Ge,Ge,Ge,Ge),ye=Ge)},setLocked:function(Ge){ne=Ge},setClear:function(Ge,ze,We,Ft,Si){Si===!0&&(Ge*=Ft,ze*=Ft,We*=Ft),Oe.set(Ge,ze,We,Ft),we.equals(Oe)===!1&&(o.clearColor(Ge,ze,We,Ft),we.copy(Oe))},reset:function(){ne=!1,ye=null,we.set(-1,0,0,0)}}}function i(){let ne=!1,Oe=!1,ye=null,we=null,Ge=null;return{setReversed:function(ze){if(Oe!==ze){const We=e.get("EXT_clip_control");Oe?We.clipControlEXT(We.LOWER_LEFT_EXT,We.ZERO_TO_ONE_EXT):We.clipControlEXT(We.LOWER_LEFT_EXT,We.NEGATIVE_ONE_TO_ONE_EXT);const Ft=Ge;Ge=null,this.setClear(Ft)}Oe=ze},getReversed:function(){return Oe},setTest:function(ze){ze?m(o.DEPTH_TEST):v(o.DEPTH_TEST)},setMask:function(ze){ye!==ze&&!ne&&(o.depthMask(ze),ye=ze)},setFunc:function(ze){if(Oe&&(ze=PD[ze]),we!==ze){switch(ze){case iA:o.depthFunc(o.NEVER);break;case nA:o.depthFunc(o.ALWAYS);break;case sA:o.depthFunc(o.LESS);break;case _l:o.depthFunc(o.LEQUAL);break;case rA:o.depthFunc(o.EQUAL);break;case aA:o.depthFunc(o.GEQUAL);break;case oA:o.depthFunc(o.GREATER);break;case lA:o.depthFunc(o.NOTEQUAL);break;default:o.depthFunc(o.LEQUAL)}we=ze}},setLocked:function(ze){ne=ze},setClear:function(ze){Ge!==ze&&(Oe&&(ze=1-ze),o.clearDepth(ze),Ge=ze)},reset:function(){ne=!1,ye=null,we=null,Ge=null,Oe=!1}}}function a(){let ne=!1,Oe=null,ye=null,we=null,Ge=null,ze=null,We=null,Ft=null,Si=null;return{setTest:function(It){ne||(It?m(o.STENCIL_TEST):v(o.STENCIL_TEST))},setMask:function(It){Oe!==It&&!ne&&(o.stencilMask(It),Oe=It)},setFunc:function(It,Zi,kn){(ye!==It||we!==Zi||Ge!==kn)&&(o.stencilFunc(It,Zi,kn),ye=It,we=Zi,Ge=kn)},setOp:function(It,Zi,kn){(ze!==It||We!==Zi||Ft!==kn)&&(o.stencilOp(It,Zi,kn),ze=It,We=Zi,Ft=kn)},setLocked:function(It){ne=It},setClear:function(It){Si!==It&&(o.clearStencil(It),Si=It)},reset:function(){ne=!1,Oe=null,ye=null,we=null,Ge=null,ze=null,We=null,Ft=null,Si=null}}}const l=new t,h=new i,d=new a,p=new WeakMap,g=new WeakMap;let A={},_={},b=new WeakMap,w=[],E=null,C=!1,T=null,x=null,P=null,M=null,R=null,D=null,G=null,U=new je(0,0,0),H=0,k=!1,$=null,Q=null,Z=null,X=null,s=null;const V=o.getParameter(o.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let y=!1,ee=0;const I=o.getParameter(o.VERSION);I.indexOf("WebGL")!==-1?(ee=parseFloat(/^WebGL (\d)/.exec(I)[1]),y=ee>=1):I.indexOf("OpenGL ES")!==-1&&(ee=parseFloat(/^OpenGL ES (\d)/.exec(I)[1]),y=ee>=2);let re=null,Ae={};const N=o.getParameter(o.SCISSOR_BOX),n=o.getParameter(o.VIEWPORT),r=new Bt().fromArray(N),c=new Bt().fromArray(n);function u(ne,Oe,ye,we){const Ge=new Uint8Array(4),ze=o.createTexture();o.bindTexture(ne,ze),o.texParameteri(ne,o.TEXTURE_MIN_FILTER,o.NEAREST),o.texParameteri(ne,o.TEXTURE_MAG_FILTER,o.NEAREST);for(let We=0;We<ye;We++)ne===o.TEXTURE_3D||ne===o.TEXTURE_2D_ARRAY?o.texImage3D(Oe,0,o.RGBA,1,1,we,0,o.RGBA,o.UNSIGNED_BYTE,Ge):o.texImage2D(Oe+We,0,o.RGBA,1,1,0,o.RGBA,o.UNSIGNED_BYTE,Ge);return ze}const f={};f[o.TEXTURE_2D]=u(o.TEXTURE_2D,o.TEXTURE_2D,1),f[o.TEXTURE_CUBE_MAP]=u(o.TEXTURE_CUBE_MAP,o.TEXTURE_CUBE_MAP_POSITIVE_X,6),f[o.TEXTURE_2D_ARRAY]=u(o.TEXTURE_2D_ARRAY,o.TEXTURE_2D_ARRAY,1,1),f[o.TEXTURE_3D]=u(o.TEXTURE_3D,o.TEXTURE_3D,1,1),l.setClear(0,0,0,1),h.setClear(1),d.setClear(0),m(o.DEPTH_TEST),h.setFunc(_l),Y(!1),te(ay),m(o.CULL_FACE),O(hs);function m(ne){A[ne]!==!0&&(o.enable(ne),A[ne]=!0)}function v(ne){A[ne]!==!1&&(o.disable(ne),A[ne]=!1)}function S(ne,Oe){return _[ne]!==Oe?(o.bindFramebuffer(ne,Oe),_[ne]=Oe,ne===o.DRAW_FRAMEBUFFER&&(_[o.FRAMEBUFFER]=Oe),ne===o.FRAMEBUFFER&&(_[o.DRAW_FRAMEBUFFER]=Oe),!0):!1}function B(ne,Oe){let ye=w,we=!1;if(ne){ye=b.get(Oe),ye===void 0&&(ye=[],b.set(Oe,ye));const Ge=ne.textures;if(ye.length!==Ge.length||ye[0]!==o.COLOR_ATTACHMENT0){for(let ze=0,We=Ge.length;ze<We;ze++)ye[ze]=o.COLOR_ATTACHMENT0+ze;ye.length=Ge.length,we=!0}}else ye[0]!==o.BACK&&(ye[0]=o.BACK,we=!0);we&&o.drawBuffers(ye)}function L(ne){return E!==ne?(o.useProgram(ne),E=ne,!0):!1}const F={[Ba]:o.FUNC_ADD,[WI]:o.FUNC_SUBTRACT,[YI]:o.FUNC_REVERSE_SUBTRACT};F[XI]=o.MIN,F[KI]=o.MAX;const z={[JI]:o.ZERO,[ZI]:o.ONE,[eM]:o.SRC_COLOR,[eA]:o.SRC_ALPHA,[aM]:o.SRC_ALPHA_SATURATE,[sM]:o.DST_COLOR,[iM]:o.DST_ALPHA,[tM]:o.ONE_MINUS_SRC_COLOR,[tA]:o.ONE_MINUS_SRC_ALPHA,[rM]:o.ONE_MINUS_DST_COLOR,[nM]:o.ONE_MINUS_DST_ALPHA,[oM]:o.CONSTANT_COLOR,[lM]:o.ONE_MINUS_CONSTANT_COLOR,[cM]:o.CONSTANT_ALPHA,[hM]:o.ONE_MINUS_CONSTANT_ALPHA};function O(ne,Oe,ye,we,Ge,ze,We,Ft,Si,It){if(ne===hs){C===!0&&(v(o.BLEND),C=!1);return}if(C===!1&&(m(o.BLEND),C=!0),ne!==jI){if(ne!==T||It!==k){if((x!==Ba||R!==Ba)&&(o.blendEquation(o.FUNC_ADD),x=Ba,R=Ba),It)switch(ne){case ol:o.blendFuncSeparate(o.ONE,o.ONE_MINUS_SRC_ALPHA,o.ONE,o.ONE_MINUS_SRC_ALPHA);break;case oy:o.blendFunc(o.ONE,o.ONE);break;case ly:o.blendFuncSeparate(o.ZERO,o.ONE_MINUS_SRC_COLOR,o.ZERO,o.ONE);break;case cy:o.blendFuncSeparate(o.ZERO,o.SRC_COLOR,o.ZERO,o.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",ne);break}else switch(ne){case ol:o.blendFuncSeparate(o.SRC_ALPHA,o.ONE_MINUS_SRC_ALPHA,o.ONE,o.ONE_MINUS_SRC_ALPHA);break;case oy:o.blendFunc(o.SRC_ALPHA,o.ONE);break;case ly:o.blendFuncSeparate(o.ZERO,o.ONE_MINUS_SRC_COLOR,o.ZERO,o.ONE);break;case cy:o.blendFunc(o.ZERO,o.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",ne);break}P=null,M=null,D=null,G=null,U.set(0,0,0),H=0,T=ne,k=It}return}Ge=Ge||Oe,ze=ze||ye,We=We||we,(Oe!==x||Ge!==R)&&(o.blendEquationSeparate(F[Oe],F[Ge]),x=Oe,R=Ge),(ye!==P||we!==M||ze!==D||We!==G)&&(o.blendFuncSeparate(z[ye],z[we],z[ze],z[We]),P=ye,M=we,D=ze,G=We),(Ft.equals(U)===!1||Si!==H)&&(o.blendColor(Ft.r,Ft.g,Ft.b,Si),U.copy(Ft),H=Si),T=ne,k=!1}function W(ne,Oe){ne.side===Pi?v(o.CULL_FACE):m(o.CULL_FACE);let ye=ne.side===$i;Oe&&(ye=!ye),Y(ye),ne.blending===ol&&ne.transparent===!1?O(hs):O(ne.blending,ne.blendEquation,ne.blendSrc,ne.blendDst,ne.blendEquationAlpha,ne.blendSrcAlpha,ne.blendDstAlpha,ne.blendColor,ne.blendAlpha,ne.premultipliedAlpha),h.setFunc(ne.depthFunc),h.setTest(ne.depthTest),h.setMask(ne.depthWrite),l.setMask(ne.colorWrite);const we=ne.stencilWrite;d.setTest(we),we&&(d.setMask(ne.stencilWriteMask),d.setFunc(ne.stencilFunc,ne.stencilRef,ne.stencilFuncMask),d.setOp(ne.stencilFail,ne.stencilZFail,ne.stencilZPass)),ie(ne.polygonOffset,ne.polygonOffsetFactor,ne.polygonOffsetUnits),ne.alphaToCoverage===!0?m(o.SAMPLE_ALPHA_TO_COVERAGE):v(o.SAMPLE_ALPHA_TO_COVERAGE)}function Y(ne){$!==ne&&(ne?o.frontFace(o.CW):o.frontFace(o.CCW),$=ne)}function te(ne){ne!==QI?(m(o.CULL_FACE),ne!==Q&&(ne===ay?o.cullFace(o.BACK):ne===qI?o.cullFace(o.FRONT):o.cullFace(o.FRONT_AND_BACK))):v(o.CULL_FACE),Q=ne}function K(ne){ne!==Z&&(y&&o.lineWidth(ne),Z=ne)}function ie(ne,Oe,ye){ne?(m(o.POLYGON_OFFSET_FILL),(X!==Oe||s!==ye)&&(o.polygonOffset(Oe,ye),X=Oe,s=ye)):v(o.POLYGON_OFFSET_FILL)}function de(ne){ne?m(o.SCISSOR_TEST):v(o.SCISSOR_TEST)}function j(ne){ne===void 0&&(ne=o.TEXTURE0+V-1),re!==ne&&(o.activeTexture(ne),re=ne)}function q(ne,Oe,ye){ye===void 0&&(re===null?ye=o.TEXTURE0+V-1:ye=re);let we=Ae[ye];we===void 0&&(we={type:void 0,texture:void 0},Ae[ye]=we),(we.type!==ne||we.texture!==Oe)&&(re!==ye&&(o.activeTexture(ye),re=ye),o.bindTexture(ne,Oe||f[ne]),we.type=ne,we.texture=Oe)}function ae(){const ne=Ae[re];ne!==void 0&&ne.type!==void 0&&(o.bindTexture(ne.type,null),ne.type=void 0,ne.texture=void 0)}function me(){try{o.compressedTexImage2D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function fe(){try{o.compressedTexImage3D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function he(){try{o.texSubImage2D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function ve(){try{o.texSubImage3D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function Re(){try{o.compressedTexSubImage2D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function Le(){try{o.compressedTexSubImage3D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function Xe(){try{o.texStorage2D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function xe(){try{o.texStorage3D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function Pe(){try{o.texImage2D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function Ie(){try{o.texImage3D.apply(o,arguments)}catch(ne){console.error("THREE.WebGLState:",ne)}}function Fe(ne){r.equals(ne)===!1&&(o.scissor(ne.x,ne.y,ne.z,ne.w),r.copy(ne))}function Ne(ne){c.equals(ne)===!1&&(o.viewport(ne.x,ne.y,ne.z,ne.w),c.copy(ne))}function et(ne,Oe){let ye=g.get(Oe);ye===void 0&&(ye=new WeakMap,g.set(Oe,ye));let we=ye.get(ne);we===void 0&&(we=o.getUniformBlockIndex(Oe,ne.name),ye.set(ne,we))}function Ke(ne,Oe){const we=g.get(Oe).get(ne);p.get(Oe)!==we&&(o.uniformBlockBinding(Oe,we,ne.__bindingPointIndex),p.set(Oe,we))}function gt(){o.disable(o.BLEND),o.disable(o.CULL_FACE),o.disable(o.DEPTH_TEST),o.disable(o.POLYGON_OFFSET_FILL),o.disable(o.SCISSOR_TEST),o.disable(o.STENCIL_TEST),o.disable(o.SAMPLE_ALPHA_TO_COVERAGE),o.blendEquation(o.FUNC_ADD),o.blendFunc(o.ONE,o.ZERO),o.blendFuncSeparate(o.ONE,o.ZERO,o.ONE,o.ZERO),o.blendColor(0,0,0,0),o.colorMask(!0,!0,!0,!0),o.clearColor(0,0,0,0),o.depthMask(!0),o.depthFunc(o.LESS),h.setReversed(!1),o.clearDepth(1),o.stencilMask(4294967295),o.stencilFunc(o.ALWAYS,0,4294967295),o.stencilOp(o.KEEP,o.KEEP,o.KEEP),o.clearStencil(0),o.cullFace(o.BACK),o.frontFace(o.CCW),o.polygonOffset(0,0),o.activeTexture(o.TEXTURE0),o.bindFramebuffer(o.FRAMEBUFFER,null),o.bindFramebuffer(o.DRAW_FRAMEBUFFER,null),o.bindFramebuffer(o.READ_FRAMEBUFFER,null),o.useProgram(null),o.lineWidth(1),o.scissor(0,0,o.canvas.width,o.canvas.height),o.viewport(0,0,o.canvas.width,o.canvas.height),A={},re=null,Ae={},_={},b=new WeakMap,w=[],E=null,C=!1,T=null,x=null,P=null,M=null,R=null,D=null,G=null,U=new je(0,0,0),H=0,k=!1,$=null,Q=null,Z=null,X=null,s=null,r.set(0,0,o.canvas.width,o.canvas.height),c.set(0,0,o.canvas.width,o.canvas.height),l.reset(),h.reset(),d.reset()}return{buffers:{color:l,depth:h,stencil:d},enable:m,disable:v,bindFramebuffer:S,drawBuffers:B,useProgram:L,setBlending:O,setMaterial:W,setFlipSided:Y,setCullFace:te,setLineWidth:K,setPolygonOffset:ie,setScissorTest:de,activeTexture:j,bindTexture:q,unbindTexture:ae,compressedTexImage2D:me,compressedTexImage3D:fe,texImage2D:Pe,texImage3D:Ie,updateUBOMapping:et,uniformBlockBinding:Ke,texStorage2D:Xe,texStorage3D:xe,texSubImage2D:he,texSubImage3D:ve,compressedTexSubImage2D:Re,compressedTexSubImage3D:Le,scissor:Fe,viewport:Ne,reset:gt}}function DD(o,e,t,i,a,l,h){const d=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,p=typeof navigator>"u"?!1:/OculusBrowser/g.test(navigator.userAgent),g=new He,A=new WeakMap;let _;const b=new WeakMap;let w=!1;try{w=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function E(j,q){return w?new OffscreenCanvas(j,q):Rh("canvas")}function C(j,q,ae){let me=1;const fe=de(j);if((fe.width>ae||fe.height>ae)&&(me=ae/Math.max(fe.width,fe.height)),me<1)if(typeof HTMLImageElement<"u"&&j instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&j instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&j instanceof ImageBitmap||typeof VideoFrame<"u"&&j instanceof VideoFrame){const he=Math.floor(me*fe.width),ve=Math.floor(me*fe.height);_===void 0&&(_=E(he,ve));const Re=q?E(he,ve):_;return Re.width=he,Re.height=ve,Re.getContext("2d").drawImage(j,0,0,he,ve),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+fe.width+"x"+fe.height+") to ("+he+"x"+ve+")."),Re}else return"data"in j&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+fe.width+"x"+fe.height+")."),j;return j}function T(j){return j.generateMipmaps}function x(j){o.generateMipmap(j)}function P(j){return j.isWebGLCubeRenderTarget?o.TEXTURE_CUBE_MAP:j.isWebGL3DRenderTarget?o.TEXTURE_3D:j.isWebGLArrayRenderTarget||j.isCompressedArrayTexture?o.TEXTURE_2D_ARRAY:o.TEXTURE_2D}function M(j,q,ae,me,fe=!1){if(j!==null){if(o[j]!==void 0)return o[j];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+j+"'")}let he=q;if(q===o.RED&&(ae===o.FLOAT&&(he=o.R32F),ae===o.HALF_FLOAT&&(he=o.R16F),ae===o.UNSIGNED_BYTE&&(he=o.R8)),q===o.RED_INTEGER&&(ae===o.UNSIGNED_BYTE&&(he=o.R8UI),ae===o.UNSIGNED_SHORT&&(he=o.R16UI),ae===o.UNSIGNED_INT&&(he=o.R32UI),ae===o.BYTE&&(he=o.R8I),ae===o.SHORT&&(he=o.R16I),ae===o.INT&&(he=o.R32I)),q===o.RG&&(ae===o.FLOAT&&(he=o.RG32F),ae===o.HALF_FLOAT&&(he=o.RG16F),ae===o.UNSIGNED_BYTE&&(he=o.RG8)),q===o.RG_INTEGER&&(ae===o.UNSIGNED_BYTE&&(he=o.RG8UI),ae===o.UNSIGNED_SHORT&&(he=o.RG16UI),ae===o.UNSIGNED_INT&&(he=o.RG32UI),ae===o.BYTE&&(he=o.RG8I),ae===o.SHORT&&(he=o.RG16I),ae===o.INT&&(he=o.RG32I)),q===o.RGB_INTEGER&&(ae===o.UNSIGNED_BYTE&&(he=o.RGB8UI),ae===o.UNSIGNED_SHORT&&(he=o.RGB16UI),ae===o.UNSIGNED_INT&&(he=o.RGB32UI),ae===o.BYTE&&(he=o.RGB8I),ae===o.SHORT&&(he=o.RGB16I),ae===o.INT&&(he=o.RGB32I)),q===o.RGBA_INTEGER&&(ae===o.UNSIGNED_BYTE&&(he=o.RGBA8UI),ae===o.UNSIGNED_SHORT&&(he=o.RGBA16UI),ae===o.UNSIGNED_INT&&(he=o.RGBA32UI),ae===o.BYTE&&(he=o.RGBA8I),ae===o.SHORT&&(he=o.RGBA16I),ae===o.INT&&(he=o.RGBA32I)),q===o.RGB&&ae===o.UNSIGNED_INT_5_9_9_9_REV&&(he=o.RGB9_E5),q===o.RGBA){const ve=fe?of:xt.getTransfer(me);ae===o.FLOAT&&(he=o.RGBA32F),ae===o.HALF_FLOAT&&(he=o.RGBA16F),ae===o.UNSIGNED_BYTE&&(he=ve===Ht?o.SRGB8_ALPHA8:o.RGBA8),ae===o.UNSIGNED_SHORT_4_4_4_4&&(he=o.RGBA4),ae===o.UNSIGNED_SHORT_5_5_5_1&&(he=o.RGB5_A1)}return(he===o.R16F||he===o.R32F||he===o.RG16F||he===o.RG32F||he===o.RGBA16F||he===o.RGBA32F)&&e.get("EXT_color_buffer_float"),he}function R(j,q){let ae;return j?q===null||q===Wr||q===vl?ae=o.DEPTH24_STENCIL8:q===ri?ae=o.DEPTH32F_STENCIL8:q===Th&&(ae=o.DEPTH24_STENCIL8,console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):q===null||q===Wr||q===vl?ae=o.DEPTH_COMPONENT24:q===ri?ae=o.DEPTH_COMPONENT32F:q===Th&&(ae=o.DEPTH_COMPONENT16),ae}function D(j,q){return T(j)===!0||j.isFramebufferTexture&&j.minFilter!==_i&&j.minFilter!==St?Math.log2(Math.max(q.width,q.height))+1:j.mipmaps!==void 0&&j.mipmaps.length>0?j.mipmaps.length:j.isCompressedTexture&&Array.isArray(j.image)?q.mipmaps.length:1}function G(j){const q=j.target;q.removeEventListener("dispose",G),H(q),q.isVideoTexture&&A.delete(q)}function U(j){const q=j.target;q.removeEventListener("dispose",U),$(q)}function H(j){const q=i.get(j);if(q.__webglInit===void 0)return;const ae=j.source,me=b.get(ae);if(me){const fe=me[q.__cacheKey];fe.usedTimes--,fe.usedTimes===0&&k(j),Object.keys(me).length===0&&b.delete(ae)}i.remove(j)}function k(j){const q=i.get(j);o.deleteTexture(q.__webglTexture);const ae=j.source,me=b.get(ae);delete me[q.__cacheKey],h.memory.textures--}function $(j){const q=i.get(j);if(j.depthTexture&&(j.depthTexture.dispose(),i.remove(j.depthTexture)),j.isWebGLCubeRenderTarget)for(let me=0;me<6;me++){if(Array.isArray(q.__webglFramebuffer[me]))for(let fe=0;fe<q.__webglFramebuffer[me].length;fe++)o.deleteFramebuffer(q.__webglFramebuffer[me][fe]);else o.deleteFramebuffer(q.__webglFramebuffer[me]);q.__webglDepthbuffer&&o.deleteRenderbuffer(q.__webglDepthbuffer[me])}else{if(Array.isArray(q.__webglFramebuffer))for(let me=0;me<q.__webglFramebuffer.length;me++)o.deleteFramebuffer(q.__webglFramebuffer[me]);else o.deleteFramebuffer(q.__webglFramebuffer);if(q.__webglDepthbuffer&&o.deleteRenderbuffer(q.__webglDepthbuffer),q.__webglMultisampledFramebuffer&&o.deleteFramebuffer(q.__webglMultisampledFramebuffer),q.__webglColorRenderbuffer)for(let me=0;me<q.__webglColorRenderbuffer.length;me++)q.__webglColorRenderbuffer[me]&&o.deleteRenderbuffer(q.__webglColorRenderbuffer[me]);q.__webglDepthRenderbuffer&&o.deleteRenderbuffer(q.__webglDepthRenderbuffer)}const ae=j.textures;for(let me=0,fe=ae.length;me<fe;me++){const he=i.get(ae[me]);he.__webglTexture&&(o.deleteTexture(he.__webglTexture),h.memory.textures--),i.remove(ae[me])}i.remove(j)}let Q=0;function Z(){Q=0}function X(){const j=Q;return j>=a.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+j+" texture units while this GPU supports only "+a.maxTextures),Q+=1,j}function s(j){const q=[];return q.push(j.wrapS),q.push(j.wrapT),q.push(j.wrapR||0),q.push(j.magFilter),q.push(j.minFilter),q.push(j.anisotropy),q.push(j.internalFormat),q.push(j.format),q.push(j.type),q.push(j.generateMipmaps),q.push(j.premultiplyAlpha),q.push(j.flipY),q.push(j.unpackAlignment),q.push(j.colorSpace),q.join()}function V(j,q){const ae=i.get(j);if(j.isVideoTexture&&K(j),j.isRenderTargetTexture===!1&&j.version>0&&ae.__version!==j.version){const me=j.image;if(me===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(me.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{c(ae,j,q);return}}t.bindTexture(o.TEXTURE_2D,ae.__webglTexture,o.TEXTURE0+q)}function y(j,q){const ae=i.get(j);if(j.version>0&&ae.__version!==j.version){c(ae,j,q);return}t.bindTexture(o.TEXTURE_2D_ARRAY,ae.__webglTexture,o.TEXTURE0+q)}function ee(j,q){const ae=i.get(j);if(j.version>0&&ae.__version!==j.version){c(ae,j,q);return}t.bindTexture(o.TEXTURE_3D,ae.__webglTexture,o.TEXTURE0+q)}function I(j,q){const ae=i.get(j);if(j.version>0&&ae.__version!==j.version){u(ae,j,q);return}t.bindTexture(o.TEXTURE_CUBE_MAP,ae.__webglTexture,o.TEXTURE0+q)}const re={[fs]:o.REPEAT,[ci]:o.CLAMP_TO_EDGE,[Xa]:o.MIRRORED_REPEAT},Ae={[_i]:o.NEAREST,[Vh]:o.NEAREST_MIPMAP_NEAREST,[kr]:o.NEAREST_MIPMAP_LINEAR,[St]:o.LINEAR,[Fa]:o.LINEAR_MIPMAP_NEAREST,[dn]:o.LINEAR_MIPMAP_LINEAR},N={[bM]:o.NEVER,[CM]:o.ALWAYS,[vM]:o.LESS,[DS]:o.LEQUAL,[wM]:o.EQUAL,[SM]:o.GEQUAL,[EM]:o.GREATER,[xM]:o.NOTEQUAL};function n(j,q){if(q.type===ri&&e.has("OES_texture_float_linear")===!1&&(q.magFilter===St||q.magFilter===Fa||q.magFilter===kr||q.magFilter===dn||q.minFilter===St||q.minFilter===Fa||q.minFilter===kr||q.minFilter===dn)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),o.texParameteri(j,o.TEXTURE_WRAP_S,re[q.wrapS]),o.texParameteri(j,o.TEXTURE_WRAP_T,re[q.wrapT]),(j===o.TEXTURE_3D||j===o.TEXTURE_2D_ARRAY)&&o.texParameteri(j,o.TEXTURE_WRAP_R,re[q.wrapR]),o.texParameteri(j,o.TEXTURE_MAG_FILTER,Ae[q.magFilter]),o.texParameteri(j,o.TEXTURE_MIN_FILTER,Ae[q.minFilter]),q.compareFunction&&(o.texParameteri(j,o.TEXTURE_COMPARE_MODE,o.COMPARE_REF_TO_TEXTURE),o.texParameteri(j,o.TEXTURE_COMPARE_FUNC,N[q.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(q.magFilter===_i||q.minFilter!==kr&&q.minFilter!==dn||q.type===ri&&e.has("OES_texture_float_linear")===!1)return;if(q.anisotropy>1||i.get(q).__currentAnisotropy){const ae=e.get("EXT_texture_filter_anisotropic");o.texParameterf(j,ae.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(q.anisotropy,a.getMaxAnisotropy())),i.get(q).__currentAnisotropy=q.anisotropy}}}function r(j,q){let ae=!1;j.__webglInit===void 0&&(j.__webglInit=!0,q.addEventListener("dispose",G));const me=q.source;let fe=b.get(me);fe===void 0&&(fe={},b.set(me,fe));const he=s(q);if(he!==j.__cacheKey){fe[he]===void 0&&(fe[he]={texture:o.createTexture(),usedTimes:0},h.memory.textures++,ae=!0),fe[he].usedTimes++;const ve=fe[j.__cacheKey];ve!==void 0&&(fe[j.__cacheKey].usedTimes--,ve.usedTimes===0&&k(q)),j.__cacheKey=he,j.__webglTexture=fe[he].texture}return ae}function c(j,q,ae){let me=o.TEXTURE_2D;(q.isDataArrayTexture||q.isCompressedArrayTexture)&&(me=o.TEXTURE_2D_ARRAY),q.isData3DTexture&&(me=o.TEXTURE_3D);const fe=r(j,q),he=q.source;t.bindTexture(me,j.__webglTexture,o.TEXTURE0+ae);const ve=i.get(he);if(he.version!==ve.__version||fe===!0){t.activeTexture(o.TEXTURE0+ae);const Re=xt.getPrimaries(xt.workingColorSpace),Le=q.colorSpace===Vn?null:xt.getPrimaries(q.colorSpace),Xe=q.colorSpace===Vn||Re===Le?o.NONE:o.BROWSER_DEFAULT_WEBGL;o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,q.flipY),o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,q.premultiplyAlpha),o.pixelStorei(o.UNPACK_ALIGNMENT,q.unpackAlignment),o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,Xe);let xe=C(q.image,!1,a.maxTextureSize);xe=ie(q,xe);const Pe=l.convert(q.format,q.colorSpace),Ie=l.convert(q.type);let Fe=M(q.internalFormat,Pe,Ie,q.colorSpace,q.isVideoTexture);n(me,q);let Ne;const et=q.mipmaps,Ke=q.isVideoTexture!==!0,gt=ve.__version===void 0||fe===!0,ne=he.dataReady,Oe=D(q,xe);if(q.isDepthTexture)Fe=R(q.format===wl,q.type),gt&&(Ke?t.texStorage2D(o.TEXTURE_2D,1,Fe,xe.width,xe.height):t.texImage2D(o.TEXTURE_2D,0,Fe,xe.width,xe.height,0,Pe,Ie,null));else if(q.isDataTexture)if(et.length>0){Ke&>&&t.texStorage2D(o.TEXTURE_2D,Oe,Fe,et[0].width,et[0].height);for(let ye=0,we=et.length;ye<we;ye++)Ne=et[ye],Ke?ne&&t.texSubImage2D(o.TEXTURE_2D,ye,0,0,Ne.width,Ne.height,Pe,Ie,Ne.data):t.texImage2D(o.TEXTURE_2D,ye,Fe,Ne.width,Ne.height,0,Pe,Ie,Ne.data);q.generateMipmaps=!1}else Ke?(gt&&t.texStorage2D(o.TEXTURE_2D,Oe,Fe,xe.width,xe.height),ne&&t.texSubImage2D(o.TEXTURE_2D,0,0,0,xe.width,xe.height,Pe,Ie,xe.data)):t.texImage2D(o.TEXTURE_2D,0,Fe,xe.width,xe.height,0,Pe,Ie,xe.data);else if(q.isCompressedTexture)if(q.isCompressedArrayTexture){Ke&>&&t.texStorage3D(o.TEXTURE_2D_ARRAY,Oe,Fe,et[0].width,et[0].height,xe.depth);for(let ye=0,we=et.length;ye<we;ye++)if(Ne=et[ye],q.format!==Xt)if(Pe!==null)if(Ke){if(ne)if(q.layerUpdates.size>0){const Ge=eb(Ne.width,Ne.height,q.format,q.type);for(const ze of q.layerUpdates){const We=Ne.data.subarray(ze*Ge/Ne.data.BYTES_PER_ELEMENT,(ze+1)*Ge/Ne.data.BYTES_PER_ELEMENT);t.compressedTexSubImage3D(o.TEXTURE_2D_ARRAY,ye,0,0,ze,Ne.width,Ne.height,1,Pe,We)}q.clearLayerUpdates()}else t.compressedTexSubImage3D(o.TEXTURE_2D_ARRAY,ye,0,0,0,Ne.width,Ne.height,xe.depth,Pe,Ne.data)}else t.compressedTexImage3D(o.TEXTURE_2D_ARRAY,ye,Fe,Ne.width,Ne.height,xe.depth,0,Ne.data,0,0);else console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else Ke?ne&&t.texSubImage3D(o.TEXTURE_2D_ARRAY,ye,0,0,0,Ne.width,Ne.height,xe.depth,Pe,Ie,Ne.data):t.texImage3D(o.TEXTURE_2D_ARRAY,ye,Fe,Ne.width,Ne.height,xe.depth,0,Pe,Ie,Ne.data)}else{Ke&>&&t.texStorage2D(o.TEXTURE_2D,Oe,Fe,et[0].width,et[0].height);for(let ye=0,we=et.length;ye<we;ye++)Ne=et[ye],q.format!==Xt?Pe!==null?Ke?ne&&t.compressedTexSubImage2D(o.TEXTURE_2D,ye,0,0,Ne.width,Ne.height,Pe,Ne.data):t.compressedTexImage2D(o.TEXTURE_2D,ye,Fe,Ne.width,Ne.height,0,Ne.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):Ke?ne&&t.texSubImage2D(o.TEXTURE_2D,ye,0,0,Ne.width,Ne.height,Pe,Ie,Ne.data):t.texImage2D(o.TEXTURE_2D,ye,Fe,Ne.width,Ne.height,0,Pe,Ie,Ne.data)}else if(q.isDataArrayTexture)if(Ke){if(gt&&t.texStorage3D(o.TEXTURE_2D_ARRAY,Oe,Fe,xe.width,xe.height,xe.depth),ne)if(q.layerUpdates.size>0){const ye=eb(xe.width,xe.height,q.format,q.type);for(const we of q.layerUpdates){const Ge=xe.data.subarray(we*ye/xe.data.BYTES_PER_ELEMENT,(we+1)*ye/xe.data.BYTES_PER_ELEMENT);t.texSubImage3D(o.TEXTURE_2D_ARRAY,0,0,0,we,xe.width,xe.height,1,Pe,Ie,Ge)}q.clearLayerUpdates()}else t.texSubImage3D(o.TEXTURE_2D_ARRAY,0,0,0,0,xe.width,xe.height,xe.depth,Pe,Ie,xe.data)}else t.texImage3D(o.TEXTURE_2D_ARRAY,0,Fe,xe.width,xe.height,xe.depth,0,Pe,Ie,xe.data);else if(q.isData3DTexture)Ke?(gt&&t.texStorage3D(o.TEXTURE_3D,Oe,Fe,xe.width,xe.height,xe.depth),ne&&t.texSubImage3D(o.TEXTURE_3D,0,0,0,0,xe.width,xe.height,xe.depth,Pe,Ie,xe.data)):t.texImage3D(o.TEXTURE_3D,0,Fe,xe.width,xe.height,xe.depth,0,Pe,Ie,xe.data);else if(q.isFramebufferTexture){if(gt)if(Ke)t.texStorage2D(o.TEXTURE_2D,Oe,Fe,xe.width,xe.height);else{let ye=xe.width,we=xe.height;for(let Ge=0;Ge<Oe;Ge++)t.texImage2D(o.TEXTURE_2D,Ge,Fe,ye,we,0,Pe,Ie,null),ye>>=1,we>>=1}}else if(et.length>0){if(Ke&>){const ye=de(et[0]);t.texStorage2D(o.TEXTURE_2D,Oe,Fe,ye.width,ye.height)}for(let ye=0,we=et.length;ye<we;ye++)Ne=et[ye],Ke?ne&&t.texSubImage2D(o.TEXTURE_2D,ye,0,0,Pe,Ie,Ne):t.texImage2D(o.TEXTURE_2D,ye,Fe,Pe,Ie,Ne);q.generateMipmaps=!1}else if(Ke){if(gt){const ye=de(xe);t.texStorage2D(o.TEXTURE_2D,Oe,Fe,ye.width,ye.height)}ne&&t.texSubImage2D(o.TEXTURE_2D,0,0,0,Pe,Ie,xe)}else t.texImage2D(o.TEXTURE_2D,0,Fe,Pe,Ie,xe);T(q)&&x(me),ve.__version=he.version,q.onUpdate&&q.onUpdate(q)}j.__version=q.version}function u(j,q,ae){if(q.image.length!==6)return;const me=r(j,q),fe=q.source;t.bindTexture(o.TEXTURE_CUBE_MAP,j.__webglTexture,o.TEXTURE0+ae);const he=i.get(fe);if(fe.version!==he.__version||me===!0){t.activeTexture(o.TEXTURE0+ae);const ve=xt.getPrimaries(xt.workingColorSpace),Re=q.colorSpace===Vn?null:xt.getPrimaries(q.colorSpace),Le=q.colorSpace===Vn||ve===Re?o.NONE:o.BROWSER_DEFAULT_WEBGL;o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,q.flipY),o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,q.premultiplyAlpha),o.pixelStorei(o.UNPACK_ALIGNMENT,q.unpackAlignment),o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,Le);const Xe=q.isCompressedTexture||q.image[0].isCompressedTexture,xe=q.image[0]&&q.image[0].isDataTexture,Pe=[];for(let we=0;we<6;we++)!Xe&&!xe?Pe[we]=C(q.image[we],!0,a.maxCubemapSize):Pe[we]=xe?q.image[we].image:q.image[we],Pe[we]=ie(q,Pe[we]);const Ie=Pe[0],Fe=l.convert(q.format,q.colorSpace),Ne=l.convert(q.type),et=M(q.internalFormat,Fe,Ne,q.colorSpace),Ke=q.isVideoTexture!==!0,gt=he.__version===void 0||me===!0,ne=fe.dataReady;let Oe=D(q,Ie);n(o.TEXTURE_CUBE_MAP,q);let ye;if(Xe){Ke&>&&t.texStorage2D(o.TEXTURE_CUBE_MAP,Oe,et,Ie.width,Ie.height);for(let we=0;we<6;we++){ye=Pe[we].mipmaps;for(let Ge=0;Ge<ye.length;Ge++){const ze=ye[Ge];q.format!==Xt?Fe!==null?Ke?ne&&t.compressedTexSubImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge,0,0,ze.width,ze.height,Fe,ze.data):t.compressedTexImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge,et,ze.width,ze.height,0,ze.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):Ke?ne&&t.texSubImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge,0,0,ze.width,ze.height,Fe,Ne,ze.data):t.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge,et,ze.width,ze.height,0,Fe,Ne,ze.data)}}}else{if(ye=q.mipmaps,Ke&>){ye.length>0&&Oe++;const we=de(Pe[0]);t.texStorage2D(o.TEXTURE_CUBE_MAP,Oe,et,we.width,we.height)}for(let we=0;we<6;we++)if(xe){Ke?ne&&t.texSubImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,0,0,0,Pe[we].width,Pe[we].height,Fe,Ne,Pe[we].data):t.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,0,et,Pe[we].width,Pe[we].height,0,Fe,Ne,Pe[we].data);for(let Ge=0;Ge<ye.length;Ge++){const We=ye[Ge].image[we].image;Ke?ne&&t.texSubImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge+1,0,0,We.width,We.height,Fe,Ne,We.data):t.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge+1,et,We.width,We.height,0,Fe,Ne,We.data)}}else{Ke?ne&&t.texSubImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,0,0,0,Fe,Ne,Pe[we]):t.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,0,et,Fe,Ne,Pe[we]);for(let Ge=0;Ge<ye.length;Ge++){const ze=ye[Ge];Ke?ne&&t.texSubImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge+1,0,0,Fe,Ne,ze.image[we]):t.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+we,Ge+1,et,Fe,Ne,ze.image[we])}}}T(q)&&x(o.TEXTURE_CUBE_MAP),he.__version=fe.version,q.onUpdate&&q.onUpdate(q)}j.__version=q.version}function f(j,q,ae,me,fe,he){const ve=l.convert(ae.format,ae.colorSpace),Re=l.convert(ae.type),Le=M(ae.internalFormat,ve,Re,ae.colorSpace),Xe=i.get(q),xe=i.get(ae);if(xe.__renderTarget=q,!Xe.__hasExternalTextures){const Pe=Math.max(1,q.width>>he),Ie=Math.max(1,q.height>>he);fe===o.TEXTURE_3D||fe===o.TEXTURE_2D_ARRAY?t.texImage3D(fe,he,Le,Pe,Ie,q.depth,0,ve,Re,null):t.texImage2D(fe,he,Le,Pe,Ie,0,ve,Re,null)}t.bindFramebuffer(o.FRAMEBUFFER,j),te(q)?d.framebufferTexture2DMultisampleEXT(o.FRAMEBUFFER,me,fe,xe.__webglTexture,0,Y(q)):(fe===o.TEXTURE_2D||fe>=o.TEXTURE_CUBE_MAP_POSITIVE_X&&fe<=o.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&o.framebufferTexture2D(o.FRAMEBUFFER,me,fe,xe.__webglTexture,he),t.bindFramebuffer(o.FRAMEBUFFER,null)}function m(j,q,ae){if(o.bindRenderbuffer(o.RENDERBUFFER,j),q.depthBuffer){const me=q.depthTexture,fe=me&&me.isDepthTexture?me.type:null,he=R(q.stencilBuffer,fe),ve=q.stencilBuffer?o.DEPTH_STENCIL_ATTACHMENT:o.DEPTH_ATTACHMENT,Re=Y(q);te(q)?d.renderbufferStorageMultisampleEXT(o.RENDERBUFFER,Re,he,q.width,q.height):ae?o.renderbufferStorageMultisample(o.RENDERBUFFER,Re,he,q.width,q.height):o.renderbufferStorage(o.RENDERBUFFER,he,q.width,q.height),o.framebufferRenderbuffer(o.FRAMEBUFFER,ve,o.RENDERBUFFER,j)}else{const me=q.textures;for(let fe=0;fe<me.length;fe++){const he=me[fe],ve=l.convert(he.format,he.colorSpace),Re=l.convert(he.type),Le=M(he.internalFormat,ve,Re,he.colorSpace),Xe=Y(q);ae&&te(q)===!1?o.renderbufferStorageMultisample(o.RENDERBUFFER,Xe,Le,q.width,q.height):te(q)?d.renderbufferStorageMultisampleEXT(o.RENDERBUFFER,Xe,Le,q.width,q.height):o.renderbufferStorage(o.RENDERBUFFER,Le,q.width,q.height)}}o.bindRenderbuffer(o.RENDERBUFFER,null)}function v(j,q){if(q&&q.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(o.FRAMEBUFFER,j),!(q.depthTexture&&q.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");const me=i.get(q.depthTexture);me.__renderTarget=q,(!me.__webglTexture||q.depthTexture.image.width!==q.width||q.depthTexture.image.height!==q.height)&&(q.depthTexture.image.width=q.width,q.depthTexture.image.height=q.height,q.depthTexture.needsUpdate=!0),V(q.depthTexture,0);const fe=me.__webglTexture,he=Y(q);if(q.depthTexture.format===ll)te(q)?d.framebufferTexture2DMultisampleEXT(o.FRAMEBUFFER,o.DEPTH_ATTACHMENT,o.TEXTURE_2D,fe,0,he):o.framebufferTexture2D(o.FRAMEBUFFER,o.DEPTH_ATTACHMENT,o.TEXTURE_2D,fe,0);else if(q.depthTexture.format===wl)te(q)?d.framebufferTexture2DMultisampleEXT(o.FRAMEBUFFER,o.DEPTH_STENCIL_ATTACHMENT,o.TEXTURE_2D,fe,0,he):o.framebufferTexture2D(o.FRAMEBUFFER,o.DEPTH_STENCIL_ATTACHMENT,o.TEXTURE_2D,fe,0);else throw new Error("Unknown depthTexture format")}function S(j){const q=i.get(j),ae=j.isWebGLCubeRenderTarget===!0;if(q.__boundDepthTexture!==j.depthTexture){const me=j.depthTexture;if(q.__depthDisposeCallback&&q.__depthDisposeCallback(),me){const fe=()=>{delete q.__boundDepthTexture,delete q.__depthDisposeCallback,me.removeEventListener("dispose",fe)};me.addEventListener("dispose",fe),q.__depthDisposeCallback=fe}q.__boundDepthTexture=me}if(j.depthTexture&&!q.__autoAllocateDepthBuffer){if(ae)throw new Error("target.depthTexture not supported in Cube render targets");v(q.__webglFramebuffer,j)}else if(ae){q.__webglDepthbuffer=[];for(let me=0;me<6;me++)if(t.bindFramebuffer(o.FRAMEBUFFER,q.__webglFramebuffer[me]),q.__webglDepthbuffer[me]===void 0)q.__webglDepthbuffer[me]=o.createRenderbuffer(),m(q.__webglDepthbuffer[me],j,!1);else{const fe=j.stencilBuffer?o.DEPTH_STENCIL_ATTACHMENT:o.DEPTH_ATTACHMENT,he=q.__webglDepthbuffer[me];o.bindRenderbuffer(o.RENDERBUFFER,he),o.framebufferRenderbuffer(o.FRAMEBUFFER,fe,o.RENDERBUFFER,he)}}else if(t.bindFramebuffer(o.FRAMEBUFFER,q.__webglFramebuffer),q.__webglDepthbuffer===void 0)q.__webglDepthbuffer=o.createRenderbuffer(),m(q.__webglDepthbuffer,j,!1);else{const me=j.stencilBuffer?o.DEPTH_STENCIL_ATTACHMENT:o.DEPTH_ATTACHMENT,fe=q.__webglDepthbuffer;o.bindRenderbuffer(o.RENDERBUFFER,fe),o.framebufferRenderbuffer(o.FRAMEBUFFER,me,o.RENDERBUFFER,fe)}t.bindFramebuffer(o.FRAMEBUFFER,null)}function B(j,q,ae){const me=i.get(j);q!==void 0&&f(me.__webglFramebuffer,j,j.texture,o.COLOR_ATTACHMENT0,o.TEXTURE_2D,0),ae!==void 0&&S(j)}function L(j){const q=j.texture,ae=i.get(j),me=i.get(q);j.addEventListener("dispose",U);const fe=j.textures,he=j.isWebGLCubeRenderTarget===!0,ve=fe.length>1;if(ve||(me.__webglTexture===void 0&&(me.__webglTexture=o.createTexture()),me.__version=q.version,h.memory.textures++),he){ae.__webglFramebuffer=[];for(let Re=0;Re<6;Re++)if(q.mipmaps&&q.mipmaps.length>0){ae.__webglFramebuffer[Re]=[];for(let Le=0;Le<q.mipmaps.length;Le++)ae.__webglFramebuffer[Re][Le]=o.createFramebuffer()}else ae.__webglFramebuffer[Re]=o.createFramebuffer()}else{if(q.mipmaps&&q.mipmaps.length>0){ae.__webglFramebuffer=[];for(let Re=0;Re<q.mipmaps.length;Re++)ae.__webglFramebuffer[Re]=o.createFramebuffer()}else ae.__webglFramebuffer=o.createFramebuffer();if(ve)for(let Re=0,Le=fe.length;Re<Le;Re++){const Xe=i.get(fe[Re]);Xe.__webglTexture===void 0&&(Xe.__webglTexture=o.createTexture(),h.memory.textures++)}if(j.samples>0&&te(j)===!1){ae.__webglMultisampledFramebuffer=o.createFramebuffer(),ae.__webglColorRenderbuffer=[],t.bindFramebuffer(o.FRAMEBUFFER,ae.__webglMultisampledFramebuffer);for(let Re=0;Re<fe.length;Re++){const Le=fe[Re];ae.__webglColorRenderbuffer[Re]=o.createRenderbuffer(),o.bindRenderbuffer(o.RENDERBUFFER,ae.__webglColorRenderbuffer[Re]);const Xe=l.convert(Le.format,Le.colorSpace),xe=l.convert(Le.type),Pe=M(Le.internalFormat,Xe,xe,Le.colorSpace,j.isXRRenderTarget===!0),Ie=Y(j);o.renderbufferStorageMultisample(o.RENDERBUFFER,Ie,Pe,j.width,j.height),o.framebufferRenderbuffer(o.FRAMEBUFFER,o.COLOR_ATTACHMENT0+Re,o.RENDERBUFFER,ae.__webglColorRenderbuffer[Re])}o.bindRenderbuffer(o.RENDERBUFFER,null),j.depthBuffer&&(ae.__webglDepthRenderbuffer=o.createRenderbuffer(),m(ae.__webglDepthRenderbuffer,j,!0)),t.bindFramebuffer(o.FRAMEBUFFER,null)}}if(he){t.bindTexture(o.TEXTURE_CUBE_MAP,me.__webglTexture),n(o.TEXTURE_CUBE_MAP,q);for(let Re=0;Re<6;Re++)if(q.mipmaps&&q.mipmaps.length>0)for(let Le=0;Le<q.mipmaps.length;Le++)f(ae.__webglFramebuffer[Re][Le],j,q,o.COLOR_ATTACHMENT0,o.TEXTURE_CUBE_MAP_POSITIVE_X+Re,Le);else f(ae.__webglFramebuffer[Re],j,q,o.COLOR_ATTACHMENT0,o.TEXTURE_CUBE_MAP_POSITIVE_X+Re,0);T(q)&&x(o.TEXTURE_CUBE_MAP),t.unbindTexture()}else if(ve){for(let Re=0,Le=fe.length;Re<Le;Re++){const Xe=fe[Re],xe=i.get(Xe);t.bindTexture(o.TEXTURE_2D,xe.__webglTexture),n(o.TEXTURE_2D,Xe),f(ae.__webglFramebuffer,j,Xe,o.COLOR_ATTACHMENT0+Re,o.TEXTURE_2D,0),T(Xe)&&x(o.TEXTURE_2D)}t.unbindTexture()}else{let Re=o.TEXTURE_2D;if((j.isWebGL3DRenderTarget||j.isWebGLArrayRenderTarget)&&(Re=j.isWebGL3DRenderTarget?o.TEXTURE_3D:o.TEXTURE_2D_ARRAY),t.bindTexture(Re,me.__webglTexture),n(Re,q),q.mipmaps&&q.mipmaps.length>0)for(let Le=0;Le<q.mipmaps.length;Le++)f(ae.__webglFramebuffer[Le],j,q,o.COLOR_ATTACHMENT0,Re,Le);else f(ae.__webglFramebuffer,j,q,o.COLOR_ATTACHMENT0,Re,0);T(q)&&x(Re),t.unbindTexture()}j.depthBuffer&&S(j)}function F(j){const q=j.textures;for(let ae=0,me=q.length;ae<me;ae++){const fe=q[ae];if(T(fe)){const he=P(j),ve=i.get(fe).__webglTexture;t.bindTexture(he,ve),x(he),t.unbindTexture()}}}const z=[],O=[];function W(j){if(j.samples>0){if(te(j)===!1){const q=j.textures,ae=j.width,me=j.height;let fe=o.COLOR_BUFFER_BIT;const he=j.stencilBuffer?o.DEPTH_STENCIL_ATTACHMENT:o.DEPTH_ATTACHMENT,ve=i.get(j),Re=q.length>1;if(Re)for(let Le=0;Le<q.length;Le++)t.bindFramebuffer(o.FRAMEBUFFER,ve.__webglMultisampledFramebuffer),o.framebufferRenderbuffer(o.FRAMEBUFFER,o.COLOR_ATTACHMENT0+Le,o.RENDERBUFFER,null),t.bindFramebuffer(o.FRAMEBUFFER,ve.__webglFramebuffer),o.framebufferTexture2D(o.DRAW_FRAMEBUFFER,o.COLOR_ATTACHMENT0+Le,o.TEXTURE_2D,null,0);t.bindFramebuffer(o.READ_FRAMEBUFFER,ve.__webglMultisampledFramebuffer),t.bindFramebuffer(o.DRAW_FRAMEBUFFER,ve.__webglFramebuffer);for(let Le=0;Le<q.length;Le++){if(j.resolveDepthBuffer&&(j.depthBuffer&&(fe|=o.DEPTH_BUFFER_BIT),j.stencilBuffer&&j.resolveStencilBuffer&&(fe|=o.STENCIL_BUFFER_BIT)),Re){o.framebufferRenderbuffer(o.READ_FRAMEBUFFER,o.COLOR_ATTACHMENT0,o.RENDERBUFFER,ve.__webglColorRenderbuffer[Le]);const Xe=i.get(q[Le]).__webglTexture;o.framebufferTexture2D(o.DRAW_FRAMEBUFFER,o.COLOR_ATTACHMENT0,o.TEXTURE_2D,Xe,0)}o.blitFramebuffer(0,0,ae,me,0,0,ae,me,fe,o.NEAREST),p===!0&&(z.length=0,O.length=0,z.push(o.COLOR_ATTACHMENT0+Le),j.depthBuffer&&j.resolveDepthBuffer===!1&&(z.push(he),O.push(he),o.invalidateFramebuffer(o.DRAW_FRAMEBUFFER,O)),o.invalidateFramebuffer(o.READ_FRAMEBUFFER,z))}if(t.bindFramebuffer(o.READ_FRAMEBUFFER,null),t.bindFramebuffer(o.DRAW_FRAMEBUFFER,null),Re)for(let Le=0;Le<q.length;Le++){t.bindFramebuffer(o.FRAMEBUFFER,ve.__webglMultisampledFramebuffer),o.framebufferRenderbuffer(o.FRAMEBUFFER,o.COLOR_ATTACHMENT0+Le,o.RENDERBUFFER,ve.__webglColorRenderbuffer[Le]);const Xe=i.get(q[Le]).__webglTexture;t.bindFramebuffer(o.FRAMEBUFFER,ve.__webglFramebuffer),o.framebufferTexture2D(o.DRAW_FRAMEBUFFER,o.COLOR_ATTACHMENT0+Le,o.TEXTURE_2D,Xe,0)}t.bindFramebuffer(o.DRAW_FRAMEBUFFER,ve.__webglMultisampledFramebuffer)}else if(j.depthBuffer&&j.resolveDepthBuffer===!1&&p){const q=j.stencilBuffer?o.DEPTH_STENCIL_ATTACHMENT:o.DEPTH_ATTACHMENT;o.invalidateFramebuffer(o.DRAW_FRAMEBUFFER,[q])}}}function Y(j){return Math.min(a.maxSamples,j.samples)}function te(j){const q=i.get(j);return j.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&q.__useRenderToTexture!==!1}function K(j){const q=h.render.frame;A.get(j)!==q&&(A.set(j,q),j.update())}function ie(j,q){const ae=j.colorSpace,me=j.format,fe=j.type;return j.isCompressedTexture===!0||j.isVideoTexture===!0||ae!==jt&&ae!==Vn&&(xt.getTransfer(ae)===Ht?(me!==Xt||fe!==pi)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",ae)),q}function de(j){return typeof HTMLImageElement<"u"&&j instanceof HTMLImageElement?(g.width=j.naturalWidth||j.width,g.height=j.naturalHeight||j.height):typeof VideoFrame<"u"&&j instanceof VideoFrame?(g.width=j.displayWidth,g.height=j.displayHeight):(g.width=j.width,g.height=j.height),g}this.allocateTextureUnit=X,this.resetTextureUnits=Z,this.setTexture2D=V,this.setTexture2DArray=y,this.setTexture3D=ee,this.setTextureCube=I,this.rebindTextures=B,this.setupRenderTarget=L,this.updateRenderTargetMipmap=F,this.updateMultisampleRenderTarget=W,this.setupDepthRenderbuffer=S,this.setupFrameBufferTexture=f,this.useMultisampledRTT=te}function ND(o,e){function t(i,a=Vn){let l;const h=xt.getTransfer(a);if(i===pi)return o.UNSIGNED_BYTE;if(i===U0)return o.UNSIGNED_SHORT_4_4_4_4;if(i===F0)return o.UNSIGNED_SHORT_5_5_5_1;if(i===TS)return o.UNSIGNED_INT_5_9_9_9_REV;if(i===O0)return o.BYTE;if(i===k0)return o.SHORT;if(i===Th)return o.UNSIGNED_SHORT;if(i===$f)return o.INT;if(i===Wr)return o.UNSIGNED_INT;if(i===ri)return o.FLOAT;if(i===hi)return o.HALF_FLOAT;if(i===IS)return o.ALPHA;if(i===MS)return o.RGB;if(i===Xt)return o.RGBA;if(i===RS)return o.LUMINANCE;if(i===BS)return o.LUMINANCE_ALPHA;if(i===ll)return o.DEPTH_COMPONENT;if(i===wl)return o.DEPTH_STENCIL;if(i===Ur)return o.RED;if(i===$0)return o.RED_INTEGER;if(i===Na)return o.RG;if(i===z0)return o.RG_INTEGER;if(i===G0)return o.RGBA_INTEGER;if(i===Md||i===uh||i===Rd||i===dh)if(h===Ht)if(l=e.get("WEBGL_compressed_texture_s3tc_srgb"),l!==null){if(i===Md)return l.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(i===uh)return l.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(i===Rd)return l.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(i===dh)return l.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(l=e.get("WEBGL_compressed_texture_s3tc"),l!==null){if(i===Md)return l.COMPRESSED_RGB_S3TC_DXT1_EXT;if(i===uh)return l.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(i===Rd)return l.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(i===dh)return l.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(i===Jd||i===hA||i===Zd||i===uA)if(l=e.get("WEBGL_compressed_texture_pvrtc"),l!==null){if(i===Jd)return l.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(i===hA)return l.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(i===Zd)return l.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(i===uA)return l.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(i===ef||i===tf||i===nf)if(l=e.get("WEBGL_compressed_texture_etc"),l!==null){if(i===ef||i===tf)return h===Ht?l.COMPRESSED_SRGB8_ETC2:l.COMPRESSED_RGB8_ETC2;if(i===nf)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:l.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(i===Ih||i===dA||i===fA||i===pA||i===Mh||i===gA||i===mA||i===AA||i===_A||i===yA||i===bA||i===vA||i===wA||i===EA)if(l=e.get("WEBGL_compressed_texture_astc"),l!==null){if(i===Ih)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:l.COMPRESSED_RGBA_ASTC_4x4_KHR;if(i===dA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:l.COMPRESSED_RGBA_ASTC_5x4_KHR;if(i===fA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:l.COMPRESSED_RGBA_ASTC_5x5_KHR;if(i===pA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:l.COMPRESSED_RGBA_ASTC_6x5_KHR;if(i===Mh)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:l.COMPRESSED_RGBA_ASTC_6x6_KHR;if(i===gA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:l.COMPRESSED_RGBA_ASTC_8x5_KHR;if(i===mA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:l.COMPRESSED_RGBA_ASTC_8x6_KHR;if(i===AA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:l.COMPRESSED_RGBA_ASTC_8x8_KHR;if(i===_A)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:l.COMPRESSED_RGBA_ASTC_10x5_KHR;if(i===yA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:l.COMPRESSED_RGBA_ASTC_10x6_KHR;if(i===bA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:l.COMPRESSED_RGBA_ASTC_10x8_KHR;if(i===vA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:l.COMPRESSED_RGBA_ASTC_10x10_KHR;if(i===wA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:l.COMPRESSED_RGBA_ASTC_12x10_KHR;if(i===EA)return h===Ht?l.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:l.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(i===fh||i===xA||i===sf)if(l=e.get("EXT_texture_compression_bptc"),l!==null){if(i===fh)return h===Ht?l.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:l.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(i===xA)return l.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(i===sf)return l.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(i===PS||i===SA||i===CA||i===TA)if(l=e.get("EXT_texture_compression_rgtc"),l!==null){if(i===fh)return l.COMPRESSED_RED_RGTC1_EXT;if(i===SA)return l.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(i===CA)return l.COMPRESSED_RED_GREEN_RGTC2_EXT;if(i===TA)return l.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return i===vl?o.UNSIGNED_INT_24_8:o[i]!==void 0?o[i]:null}return{convert:t}}const OD={type:"move"};class Yp{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new li,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new li,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new se,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new se),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new li,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new se,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new se),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const i of e.hand.values())this._getHandJoint(t,i)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,i){let a=null,l=null,h=null;const d=this._targetRay,p=this._grip,g=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(g&&e.hand){h=!0;for(const C of e.hand.values()){const T=t.getJointPose(C,i),x=this._getHandJoint(g,C);T!==null&&(x.matrix.fromArray(T.transform.matrix),x.matrix.decompose(x.position,x.rotation,x.scale),x.matrixWorldNeedsUpdate=!0,x.jointRadius=T.radius),x.visible=T!==null}const A=g.joints["index-finger-tip"],_=g.joints["thumb-tip"],b=A.position.distanceTo(_.position),w=.02,E=.005;g.inputState.pinching&&b>w+E?(g.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!g.inputState.pinching&&b<=w-E&&(g.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else p!==null&&e.gripSpace&&(l=t.getPose(e.gripSpace,i),l!==null&&(p.matrix.fromArray(l.transform.matrix),p.matrix.decompose(p.position,p.rotation,p.scale),p.matrixWorldNeedsUpdate=!0,l.linearVelocity?(p.hasLinearVelocity=!0,p.linearVelocity.copy(l.linearVelocity)):p.hasLinearVelocity=!1,l.angularVelocity?(p.hasAngularVelocity=!0,p.angularVelocity.copy(l.angularVelocity)):p.hasAngularVelocity=!1));d!==null&&(a=t.getPose(e.targetRaySpace,i),a===null&&l!==null&&(a=l),a!==null&&(d.matrix.fromArray(a.transform.matrix),d.matrix.decompose(d.position,d.rotation,d.scale),d.matrixWorldNeedsUpdate=!0,a.linearVelocity?(d.hasLinearVelocity=!0,d.linearVelocity.copy(a.linearVelocity)):d.hasLinearVelocity=!1,a.angularVelocity?(d.hasAngularVelocity=!0,d.angularVelocity.copy(a.angularVelocity)):d.hasAngularVelocity=!1,this.dispatchEvent(OD)))}return d!==null&&(d.visible=a!==null),p!==null&&(p.visible=l!==null),g!==null&&(g.visible=h!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const i=new li;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[t.jointName]=i,e.add(i)}return e.joints[t.jointName]}}const kD=`
|
|
3867
3867
|
void main() {
|
|
3868
3868
|
|
|
3869
3869
|
gl_Position = vec4( position, 1.0 );
|
|
@@ -3887,13 +3887,13 @@ void main() {
|
|
|
3887
3887
|
|
|
3888
3888
|
}
|
|
3889
3889
|
|
|
3890
|
-
}`;class FD{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,i){if(this.texture===null){const a=new Kt,l=e.properties.get(a);l.__webglTexture=t.texture,(t.depthNear!==i.depthNear||t.depthFar!==i.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=a}}getMesh(e){if(this.texture!==null&&this.mesh===null){const t=e.cameras[0].viewport,i=new Ni({vertexShader:kD,fragmentShader:UD,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new ot(new gs(20,20),i)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class $D extends ps{constructor(e,t){super();const i=this;let a=null,l=1,h=null,d="local-floor",p=1,g=null,A=null,_=null,b=null,w=null,E=null;const C=new FD,T=t.getContextAttributes();let x=null,P=null;const M=[],R=[],D=new He;let G=null;const U=new bi;U.viewport=new Bt;const H=new bi;H.viewport=new Bt;const k=[U,H],$=new WR;let Q=null,Z=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(c){let u=M[c];return u===void 0&&(u=new Yp,M[c]=u),u.getTargetRaySpace()},this.getControllerGrip=function(c){let u=M[c];return u===void 0&&(u=new Yp,M[c]=u),u.getGripSpace()},this.getHand=function(c){let u=M[c];return u===void 0&&(u=new Yp,M[c]=u),u.getHandSpace()};function X(c){const u=R.indexOf(c.inputSource);if(u===-1)return;const f=M[u];f!==void 0&&(f.update(c.inputSource,c.frame,g||h),f.dispatchEvent({type:c.type,data:c.inputSource}))}function s(){a.removeEventListener("select",X),a.removeEventListener("selectstart",X),a.removeEventListener("selectend",X),a.removeEventListener("squeeze",X),a.removeEventListener("squeezestart",X),a.removeEventListener("squeezeend",X),a.removeEventListener("end",s),a.removeEventListener("inputsourceschange",V);for(let c=0;c<M.length;c++){const u=R[c];u!==null&&(R[c]=null,M[c].disconnect(u))}Q=null,Z=null,C.reset(),e.setRenderTarget(x),w=null,b=null,_=null,a=null,P=null,r.stop(),i.isPresenting=!1,e.setPixelRatio(G),e.setSize(D.width,D.height,!1),i.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(c){l=c,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(c){d=c,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return g||h},this.setReferenceSpace=function(c){g=c},this.getBaseLayer=function(){return b!==null?b:w},this.getBinding=function(){return _},this.getFrame=function(){return E},this.getSession=function(){return a},this.setSession=async function(c){if(a=c,a!==null){if(x=e.getRenderTarget(),a.addEventListener("select",X),a.addEventListener("selectstart",X),a.addEventListener("selectend",X),a.addEventListener("squeeze",X),a.addEventListener("squeezestart",X),a.addEventListener("squeezeend",X),a.addEventListener("end",s),a.addEventListener("inputsourceschange",V),T.xrCompatible!==!0&&await t.makeXRCompatible(),G=e.getPixelRatio(),e.getSize(D),a.enabledFeatures!==void 0&&a.enabledFeatures.includes("layers")){let f=null,m=null,v=null;T.depth&&(v=T.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,f=T.stencil?wl:ll,m=T.stencil?vl:Wr);const S={colorFormat:t.RGBA8,depthFormat:v,scaleFactor:l};_=new XRWebGLBinding(a,t),b=_.createProjectionLayer(S),a.updateRenderState({layers:[b]}),e.setPixelRatio(1),e.setSize(b.textureWidth,b.textureHeight,!1),P=new Gi(b.textureWidth,b.textureHeight,{format:Xt,type:pi,depthTexture:new qS(b.textureWidth,b.textureHeight,m,void 0,void 0,void 0,void 0,void 0,void 0,f),stencilBuffer:T.stencil,colorSpace:e.outputColorSpace,samples:T.antialias?4:0,resolveDepthBuffer:b.ignoreDepthValues===!1})}else{const f={antialias:T.antialias,alpha:!0,depth:T.depth,stencil:T.stencil,framebufferScaleFactor:l};w=new XRWebGLLayer(a,t,f),a.updateRenderState({baseLayer:w}),e.setPixelRatio(1),e.setSize(w.framebufferWidth,w.framebufferHeight,!1),P=new Gi(w.framebufferWidth,w.framebufferHeight,{format:Xt,type:pi,colorSpace:e.outputColorSpace,stencilBuffer:T.stencil})}P.isXRRenderTarget=!0,this.setFoveation(p),g=null,h=await a.requestReferenceSpace(d),r.setContext(a),r.start(),i.isPresenting=!0,i.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(a!==null)return a.environmentBlendMode},this.getDepthTexture=function(){return C.getDepthTexture()};function V(c){for(let u=0;u<c.removed.length;u++){const f=c.removed[u],m=R.indexOf(f);m>=0&&(R[m]=null,M[m].disconnect(f))}for(let u=0;u<c.added.length;u++){const f=c.added[u];let m=R.indexOf(f);if(m===-1){for(let S=0;S<M.length;S++)if(S>=R.length){R.push(f),m=S;break}else if(R[S]===null){R[S]=f,m=S;break}if(m===-1)break}const v=M[m];v&&v.connect(f)}}const y=new se,ee=new se;function I(c,u,f){y.setFromMatrixPosition(u.matrixWorld),ee.setFromMatrixPosition(f.matrixWorld);const m=y.distanceTo(ee),v=u.projectionMatrix.elements,S=f.projectionMatrix.elements,B=v[14]/(v[10]-1),L=v[14]/(v[10]+1),F=(v[9]+1)/v[5],z=(v[9]-1)/v[5],O=(v[8]-1)/v[0],W=(S[8]+1)/S[0],Y=B*O,te=B*W,K=m/(-O+W),ie=K*-O;if(u.matrixWorld.decompose(c.position,c.quaternion,c.scale),c.translateX(ie),c.translateZ(K),c.matrixWorld.compose(c.position,c.quaternion,c.scale),c.matrixWorldInverse.copy(c.matrixWorld).invert(),v[10]===-1)c.projectionMatrix.copy(u.projectionMatrix),c.projectionMatrixInverse.copy(u.projectionMatrixInverse);else{const de=B+K,j=L+K,q=Y-ie,ae=te+(m-ie),me=F*L/j*de,fe=z*L/j*de;c.projectionMatrix.makePerspective(q,ae,me,fe,de,j),c.projectionMatrixInverse.copy(c.projectionMatrix).invert()}}function re(c,u){u===null?c.matrixWorld.copy(c.matrix):c.matrixWorld.multiplyMatrices(u.matrixWorld,c.matrix),c.matrixWorldInverse.copy(c.matrixWorld).invert()}this.updateCamera=function(c){if(a===null)return;let u=c.near,f=c.far;C.texture!==null&&(C.depthNear>0&&(u=C.depthNear),C.depthFar>0&&(f=C.depthFar)),$.near=H.near=U.near=u,$.far=H.far=U.far=f,(Q!==$.near||Z!==$.far)&&(a.updateRenderState({depthNear:$.near,depthFar:$.far}),Q=$.near,Z=$.far),U.layers.mask=c.layers.mask|2,H.layers.mask=c.layers.mask|4,$.layers.mask=U.layers.mask|H.layers.mask;const m=c.parent,v=$.cameras;re($,m);for(let S=0;S<v.length;S++)re(v[S],m);v.length===2?I($,U,H):$.projectionMatrix.copy(U.projectionMatrix),Ae(c,$,m)};function Ae(c,u,f){f===null?c.matrix.copy(u.matrixWorld):(c.matrix.copy(f.matrixWorld),c.matrix.invert(),c.matrix.multiply(u.matrixWorld)),c.matrix.decompose(c.position,c.quaternion,c.scale),c.updateMatrixWorld(!0),c.projectionMatrix.copy(u.projectionMatrix),c.projectionMatrixInverse.copy(u.projectionMatrixInverse),c.isPerspectiveCamera&&(c.fov=Cl*2*Math.atan(1/c.projectionMatrix.elements[5]),c.zoom=1)}this.getCamera=function(){return $},this.getFoveation=function(){if(!(b===null&&w===null))return p},this.setFoveation=function(c){p=c,b!==null&&(b.fixedFoveation=c),w!==null&&w.fixedFoveation!==void 0&&(w.fixedFoveation=c)},this.hasDepthSensing=function(){return C.texture!==null},this.getDepthSensingMesh=function(){return C.getMesh($)};let N=null;function n(c,u){if(A=u.getViewerPose(g||h),E=u,A!==null){const f=A.views;w!==null&&(e.setRenderTargetFramebuffer(P,w.framebuffer),e.setRenderTarget(P));let m=!1;f.length!==$.cameras.length&&($.cameras.length=0,m=!0);for(let S=0;S<f.length;S++){const B=f[S];let L=null;if(w!==null)L=w.getViewport(B);else{const z=_.getViewSubImage(b,B);L=z.viewport,S===0&&(e.setRenderTargetTextures(P,z.colorTexture,b.ignoreDepthValues?void 0:z.depthStencilTexture),e.setRenderTarget(P))}let F=k[S];F===void 0&&(F=new bi,F.layers.enable(S),F.viewport=new Bt,k[S]=F),F.matrix.fromArray(B.transform.matrix),F.matrix.decompose(F.position,F.quaternion,F.scale),F.projectionMatrix.fromArray(B.projectionMatrix),F.projectionMatrixInverse.copy(F.projectionMatrix).invert(),F.viewport.set(L.x,L.y,L.width,L.height),S===0&&($.matrix.copy(F.matrix),$.matrix.decompose($.position,$.quaternion,$.scale)),m===!0&&$.cameras.push(F)}const v=a.enabledFeatures;if(v&&v.includes("depth-sensing")){const S=_.getDepthInformation(f[0]);S&&S.isValid&&S.texture&&C.init(e,S,a.renderState)}}for(let f=0;f<M.length;f++){const m=R[f],v=M[f];m!==null&&v!==void 0&&v.update(m,u,g||h)}N&&N(c,u),u.detectedPlanes&&i.dispatchEvent({type:"planesdetected",data:u}),E=null}const r=new i1;r.setAnimationLoop(n),this.setAnimationLoop=function(c){N=c},this.dispose=function(){}}}const ha=new bn,zD=new tt;function GD(o,e){function t(T,x){T.matrixAutoUpdate===!0&&T.updateMatrix(),x.value.copy(T.matrix)}function i(T,x){x.color.getRGB(T.fogColor.value,zS(o)),x.isFog?(T.fogNear.value=x.near,T.fogFar.value=x.far):x.isFogExp2&&(T.fogDensity.value=x.density)}function a(T,x,P,M,R){x.isMeshBasicMaterial||x.isMeshLambertMaterial?l(T,x):x.isMeshToonMaterial?(l(T,x),_(T,x)):x.isMeshPhongMaterial?(l(T,x),A(T,x)):x.isMeshStandardMaterial?(l(T,x),b(T,x),x.isMeshPhysicalMaterial&&w(T,x,R)):x.isMeshMatcapMaterial?(l(T,x),E(T,x)):x.isMeshDepthMaterial?l(T,x):x.isMeshDistanceMaterial?(l(T,x),C(T,x)):x.isMeshNormalMaterial?l(T,x):x.isLineBasicMaterial?(h(T,x),x.isLineDashedMaterial&&d(T,x)):x.isPointsMaterial?p(T,x,P,M):x.isSpriteMaterial?g(T,x):x.isShadowMaterial?(T.color.value.copy(x.color),T.opacity.value=x.opacity):x.isShaderMaterial&&(x.uniformsNeedUpdate=!1)}function l(T,x){T.opacity.value=x.opacity,x.color&&T.diffuse.value.copy(x.color),x.emissive&&T.emissive.value.copy(x.emissive).multiplyScalar(x.emissiveIntensity),x.map&&(T.map.value=x.map,t(x.map,T.mapTransform)),x.alphaMap&&(T.alphaMap.value=x.alphaMap,t(x.alphaMap,T.alphaMapTransform)),x.bumpMap&&(T.bumpMap.value=x.bumpMap,t(x.bumpMap,T.bumpMapTransform),T.bumpScale.value=x.bumpScale,x.side===$i&&(T.bumpScale.value*=-1)),x.normalMap&&(T.normalMap.value=x.normalMap,t(x.normalMap,T.normalMapTransform),T.normalScale.value.copy(x.normalScale),x.side===$i&&T.normalScale.value.negate()),x.displacementMap&&(T.displacementMap.value=x.displacementMap,t(x.displacementMap,T.displacementMapTransform),T.displacementScale.value=x.displacementScale,T.displacementBias.value=x.displacementBias),x.emissiveMap&&(T.emissiveMap.value=x.emissiveMap,t(x.emissiveMap,T.emissiveMapTransform)),x.specularMap&&(T.specularMap.value=x.specularMap,t(x.specularMap,T.specularMapTransform)),x.alphaTest>0&&(T.alphaTest.value=x.alphaTest);const P=e.get(x),M=P.envMap,R=P.envMapRotation;M&&(T.envMap.value=M,ha.copy(R),ha.x*=-1,ha.y*=-1,ha.z*=-1,M.isCubeTexture&&M.isRenderTargetTexture===!1&&(ha.y*=-1,ha.z*=-1),T.envMapRotation.value.setFromMatrix4(zD.makeRotationFromEuler(ha)),T.flipEnvMap.value=M.isCubeTexture&&M.isRenderTargetTexture===!1?-1:1,T.reflectivity.value=x.reflectivity,T.ior.value=x.ior,T.refractionRatio.value=x.refractionRatio),x.lightMap&&(T.lightMap.value=x.lightMap,T.lightMapIntensity.value=x.lightMapIntensity,t(x.lightMap,T.lightMapTransform)),x.aoMap&&(T.aoMap.value=x.aoMap,T.aoMapIntensity.value=x.aoMapIntensity,t(x.aoMap,T.aoMapTransform))}function h(T,x){T.diffuse.value.copy(x.color),T.opacity.value=x.opacity,x.map&&(T.map.value=x.map,t(x.map,T.mapTransform))}function d(T,x){T.dashSize.value=x.dashSize,T.totalSize.value=x.dashSize+x.gapSize,T.scale.value=x.scale}function p(T,x,P,M){T.diffuse.value.copy(x.color),T.opacity.value=x.opacity,T.size.value=x.size*P,T.scale.value=M*.5,x.map&&(T.map.value=x.map,t(x.map,T.uvTransform)),x.alphaMap&&(T.alphaMap.value=x.alphaMap,t(x.alphaMap,T.alphaMapTransform)),x.alphaTest>0&&(T.alphaTest.value=x.alphaTest)}function g(T,x){T.diffuse.value.copy(x.color),T.opacity.value=x.opacity,T.rotation.value=x.rotation,x.map&&(T.map.value=x.map,t(x.map,T.mapTransform)),x.alphaMap&&(T.alphaMap.value=x.alphaMap,t(x.alphaMap,T.alphaMapTransform)),x.alphaTest>0&&(T.alphaTest.value=x.alphaTest)}function A(T,x){T.specular.value.copy(x.specular),T.shininess.value=Math.max(x.shininess,1e-4)}function _(T,x){x.gradientMap&&(T.gradientMap.value=x.gradientMap)}function b(T,x){T.metalness.value=x.metalness,x.metalnessMap&&(T.metalnessMap.value=x.metalnessMap,t(x.metalnessMap,T.metalnessMapTransform)),T.roughness.value=x.roughness,x.roughnessMap&&(T.roughnessMap.value=x.roughnessMap,t(x.roughnessMap,T.roughnessMapTransform)),x.envMap&&(T.envMapIntensity.value=x.envMapIntensity)}function w(T,x,P){T.ior.value=x.ior,x.sheen>0&&(T.sheenColor.value.copy(x.sheenColor).multiplyScalar(x.sheen),T.sheenRoughness.value=x.sheenRoughness,x.sheenColorMap&&(T.sheenColorMap.value=x.sheenColorMap,t(x.sheenColorMap,T.sheenColorMapTransform)),x.sheenRoughnessMap&&(T.sheenRoughnessMap.value=x.sheenRoughnessMap,t(x.sheenRoughnessMap,T.sheenRoughnessMapTransform))),x.clearcoat>0&&(T.clearcoat.value=x.clearcoat,T.clearcoatRoughness.value=x.clearcoatRoughness,x.clearcoatMap&&(T.clearcoatMap.value=x.clearcoatMap,t(x.clearcoatMap,T.clearcoatMapTransform)),x.clearcoatRoughnessMap&&(T.clearcoatRoughnessMap.value=x.clearcoatRoughnessMap,t(x.clearcoatRoughnessMap,T.clearcoatRoughnessMapTransform)),x.clearcoatNormalMap&&(T.clearcoatNormalMap.value=x.clearcoatNormalMap,t(x.clearcoatNormalMap,T.clearcoatNormalMapTransform),T.clearcoatNormalScale.value.copy(x.clearcoatNormalScale),x.side===$i&&T.clearcoatNormalScale.value.negate())),x.dispersion>0&&(T.dispersion.value=x.dispersion),x.iridescence>0&&(T.iridescence.value=x.iridescence,T.iridescenceIOR.value=x.iridescenceIOR,T.iridescenceThicknessMinimum.value=x.iridescenceThicknessRange[0],T.iridescenceThicknessMaximum.value=x.iridescenceThicknessRange[1],x.iridescenceMap&&(T.iridescenceMap.value=x.iridescenceMap,t(x.iridescenceMap,T.iridescenceMapTransform)),x.iridescenceThicknessMap&&(T.iridescenceThicknessMap.value=x.iridescenceThicknessMap,t(x.iridescenceThicknessMap,T.iridescenceThicknessMapTransform))),x.transmission>0&&(T.transmission.value=x.transmission,T.transmissionSamplerMap.value=P.texture,T.transmissionSamplerSize.value.set(P.width,P.height),x.transmissionMap&&(T.transmissionMap.value=x.transmissionMap,t(x.transmissionMap,T.transmissionMapTransform)),T.thickness.value=x.thickness,x.thicknessMap&&(T.thicknessMap.value=x.thicknessMap,t(x.thicknessMap,T.thicknessMapTransform)),T.attenuationDistance.value=x.attenuationDistance,T.attenuationColor.value.copy(x.attenuationColor)),x.anisotropy>0&&(T.anisotropyVector.value.set(x.anisotropy*Math.cos(x.anisotropyRotation),x.anisotropy*Math.sin(x.anisotropyRotation)),x.anisotropyMap&&(T.anisotropyMap.value=x.anisotropyMap,t(x.anisotropyMap,T.anisotropyMapTransform))),T.specularIntensity.value=x.specularIntensity,T.specularColor.value.copy(x.specularColor),x.specularColorMap&&(T.specularColorMap.value=x.specularColorMap,t(x.specularColorMap,T.specularColorMapTransform)),x.specularIntensityMap&&(T.specularIntensityMap.value=x.specularIntensityMap,t(x.specularIntensityMap,T.specularIntensityMapTransform))}function E(T,x){x.matcap&&(T.matcap.value=x.matcap)}function C(T,x){const P=e.get(x).light;T.referencePosition.value.setFromMatrixPosition(P.matrixWorld),T.nearDistance.value=P.shadow.camera.near,T.farDistance.value=P.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:a}}function HD(o,e,t,i){let a={},l={},h=[];const d=o.getParameter(o.MAX_UNIFORM_BUFFER_BINDINGS);function p(P,M){const R=M.program;i.uniformBlockBinding(P,R)}function g(P,M){let R=a[P.id];R===void 0&&(E(P),R=A(P),a[P.id]=R,P.addEventListener("dispose",T));const D=M.program;i.updateUBOMapping(P,D);const G=e.render.frame;l[P.id]!==G&&(b(P),l[P.id]=G)}function A(P){const M=_();P.__bindingPointIndex=M;const R=o.createBuffer(),D=P.__size,G=P.usage;return o.bindBuffer(o.UNIFORM_BUFFER,R),o.bufferData(o.UNIFORM_BUFFER,D,G),o.bindBuffer(o.UNIFORM_BUFFER,null),o.bindBufferBase(o.UNIFORM_BUFFER,M,R),R}function _(){for(let P=0;P<d;P++)if(h.indexOf(P)===-1)return h.push(P),P;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}function b(P){const M=a[P.id],R=P.uniforms,D=P.__cache;o.bindBuffer(o.UNIFORM_BUFFER,M);for(let G=0,U=R.length;G<U;G++){const H=Array.isArray(R[G])?R[G]:[R[G]];for(let k=0,$=H.length;k<$;k++){const Q=H[k];if(w(Q,G,k,D)===!0){const Z=Q.__offset,X=Array.isArray(Q.value)?Q.value:[Q.value];let s=0;for(let V=0;V<X.length;V++){const y=X[V],ee=C(y);typeof y=="number"||typeof y=="boolean"?(Q.__data[0]=y,o.bufferSubData(o.UNIFORM_BUFFER,Z+s,Q.__data)):y.isMatrix3?(Q.__data[0]=y.elements[0],Q.__data[1]=y.elements[1],Q.__data[2]=y.elements[2],Q.__data[3]=0,Q.__data[4]=y.elements[3],Q.__data[5]=y.elements[4],Q.__data[6]=y.elements[5],Q.__data[7]=0,Q.__data[8]=y.elements[6],Q.__data[9]=y.elements[7],Q.__data[10]=y.elements[8],Q.__data[11]=0):(y.toArray(Q.__data,s),s+=ee.storage/Float32Array.BYTES_PER_ELEMENT)}o.bufferSubData(o.UNIFORM_BUFFER,Z,Q.__data)}}}o.bindBuffer(o.UNIFORM_BUFFER,null)}function w(P,M,R,D){const G=P.value,U=M+"_"+R;if(D[U]===void 0)return typeof G=="number"||typeof G=="boolean"?D[U]=G:D[U]=G.clone(),!0;{const H=D[U];if(typeof G=="number"||typeof G=="boolean"){if(H!==G)return D[U]=G,!0}else if(H.equals(G)===!1)return H.copy(G),!0}return!1}function E(P){const M=P.uniforms;let R=0;const D=16;for(let U=0,H=M.length;U<H;U++){const k=Array.isArray(M[U])?M[U]:[M[U]];for(let $=0,Q=k.length;$<Q;$++){const Z=k[$],X=Array.isArray(Z.value)?Z.value:[Z.value];for(let s=0,V=X.length;s<V;s++){const y=X[s],ee=C(y),I=R%D,re=I%ee.boundary,Ae=I+re;R+=re,Ae!==0&&D-Ae<ee.storage&&(R+=D-Ae),Z.__data=new Float32Array(ee.storage/Float32Array.BYTES_PER_ELEMENT),Z.__offset=R,R+=ee.storage}}}const G=R%D;return G>0&&(R+=D-G),P.__size=R,P.__cache={},this}function C(P){const M={boundary:0,storage:0};return typeof P=="number"||typeof P=="boolean"?(M.boundary=4,M.storage=4):P.isVector2?(M.boundary=8,M.storage=8):P.isVector3||P.isColor?(M.boundary=16,M.storage=12):P.isVector4?(M.boundary=16,M.storage=16):P.isMatrix3?(M.boundary=48,M.storage=48):P.isMatrix4?(M.boundary=64,M.storage=64):P.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",P),M}function T(P){const M=P.target;M.removeEventListener("dispose",T);const R=h.indexOf(M.__bindingPointIndex);h.splice(R,1),o.deleteBuffer(a[M.id]),delete a[M.id],delete l[M.id]}function x(){for(const P in a)o.deleteBuffer(a[P]);h=[],a={},l={}}return{bind:p,update:g,dispose:x}}class uf{constructor(e={}){const{canvas:t=HM(),context:i=null,depth:a=!0,stencil:l=!1,alpha:h=!1,antialias:d=!1,premultipliedAlpha:p=!0,preserveDrawingBuffer:g=!1,powerPreference:A="default",failIfMajorPerformanceCaveat:_=!1,reverseDepthBuffer:b=!1}=e;this.isWebGLRenderer=!0;let w;if(i!==null){if(typeof WebGLRenderingContext<"u"&&i instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");w=i.getContextAttributes().alpha}else w=h;const E=new Uint32Array(4),C=new Int32Array(4);let T=null,x=null;const P=[],M=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Vt,this.toneMapping=Ts,this.toneMappingExposure=1;const R=this;let D=!1,G=0,U=0,H=null,k=-1,$=null;const Q=new Bt,Z=new Bt;let X=null;const s=new je(0);let V=0,y=t.width,ee=t.height,I=1,re=null,Ae=null;const N=new Bt(0,0,y,ee),n=new Bt(0,0,y,ee);let r=!1;const c=new J0;let u=!1,f=!1;this.transmissionResolutionScale=1;const m=new tt,v=new tt,S=new se,B=new Bt,L={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let F=!1;function z(){return H===null?I:1}let O=i;function W(J,oe){return t.getContext(J,oe)}try{const J={alpha:!0,depth:a,stencil:l,antialias:d,premultipliedAlpha:p,preserveDrawingBuffer:g,powerPreference:A,failIfMajorPerformanceCaveat:_};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${zl}`),t.addEventListener("webglcontextlost",we,!1),t.addEventListener("webglcontextrestored",Ge,!1),t.addEventListener("webglcontextcreationerror",ze,!1),O===null){const oe="webgl2";if(O=W(oe,J),O===null)throw W(oe)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(J){throw console.error("THREE.WebGLRenderer: "+J.message),J}let Y,te,K,ie,de,j,q,ae,me,fe,he,ve,Re,Le,Xe,xe,Pe,Ie,Ue,Ne,et,Ke,gt,ne;function Oe(){Y=new ZP(O),Y.init(),Ke=new ND(O,Y),te=new jP(O,Y,e,Ke),K=new LD(O,Y),te.reverseDepthBuffer&&b&&K.buffers.depth.setReversed(!0),ie=new iL(O),de=new bD,j=new DD(O,Y,K,de,te,Ke,ie),q=new YP(R),ae=new JP(R),me=new c2(O),gt=new QP(O,me),fe=new eL(O,me,ie,gt),he=new sL(O,fe,me,ie),Ue=new nL(O,te,j),xe=new WP(de),ve=new yD(R,q,ae,Y,te,gt,xe),Re=new GD(R,de),Le=new wD,Xe=new ID(Y),Ie=new VP(R,q,ae,K,he,w,p),Pe=new BD(R,he,te),ne=new HD(O,ie,te,K),Ne=new qP(O,Y,ie),et=new tL(O,Y,ie),ie.programs=ve.programs,R.capabilities=te,R.extensions=Y,R.properties=de,R.renderLists=Le,R.shadowMap=Pe,R.state=K,R.info=ie}Oe();const ye=new $D(R,O);this.xr=ye,this.getContext=function(){return O},this.getContextAttributes=function(){return O.getContextAttributes()},this.forceContextLoss=function(){const J=Y.get("WEBGL_lose_context");J&&J.loseContext()},this.forceContextRestore=function(){const J=Y.get("WEBGL_lose_context");J&&J.restoreContext()},this.getPixelRatio=function(){return I},this.setPixelRatio=function(J){J!==void 0&&(I=J,this.setSize(y,ee,!1))},this.getSize=function(J){return J.set(y,ee)},this.setSize=function(J,oe,pe=!0){if(ye.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}y=J,ee=oe,t.width=Math.floor(J*I),t.height=Math.floor(oe*I),pe===!0&&(t.style.width=J+"px",t.style.height=oe+"px"),this.setViewport(0,0,J,oe)},this.getDrawingBufferSize=function(J){return J.set(y*I,ee*I).floor()},this.setDrawingBufferSize=function(J,oe,pe){y=J,ee=oe,I=pe,t.width=Math.floor(J*pe),t.height=Math.floor(oe*pe),this.setViewport(0,0,J,oe)},this.getCurrentViewport=function(J){return J.copy(Q)},this.getViewport=function(J){return J.copy(N)},this.setViewport=function(J,oe,pe,ge){J.isVector4?N.set(J.x,J.y,J.z,J.w):N.set(J,oe,pe,ge),K.viewport(Q.copy(N).multiplyScalar(I).round())},this.getScissor=function(J){return J.copy(n)},this.setScissor=function(J,oe,pe,ge){J.isVector4?n.set(J.x,J.y,J.z,J.w):n.set(J,oe,pe,ge),K.scissor(Z.copy(n).multiplyScalar(I).round())},this.getScissorTest=function(){return r},this.setScissorTest=function(J){K.setScissorTest(r=J)},this.setOpaqueSort=function(J){re=J},this.setTransparentSort=function(J){Ae=J},this.getClearColor=function(J){return J.copy(Ie.getClearColor())},this.setClearColor=function(){Ie.setClearColor.apply(Ie,arguments)},this.getClearAlpha=function(){return Ie.getClearAlpha()},this.setClearAlpha=function(){Ie.setClearAlpha.apply(Ie,arguments)},this.clear=function(J=!0,oe=!0,pe=!0){let ge=0;if(J){let ce=!1;if(H!==null){const Ce=H.texture.format;ce=Ce===G0||Ce===z0||Ce===$0}if(ce){const Ce=H.texture.type,ke=Ce===pi||Ce===Wr||Ce===Th||Ce===vl||Ce===U0||Ce===F0,Ve=Ie.getClearColor(),De=Ie.getClearAlpha(),it=Ve.r,st=Ve.g,Je=Ve.b;ke?(E[0]=it,E[1]=st,E[2]=Je,E[3]=De,O.clearBufferuiv(O.COLOR,0,E)):(C[0]=it,C[1]=st,C[2]=Je,C[3]=De,O.clearBufferiv(O.COLOR,0,C))}else ge|=O.COLOR_BUFFER_BIT}oe&&(ge|=O.DEPTH_BUFFER_BIT),pe&&(ge|=O.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),O.clear(ge)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",we,!1),t.removeEventListener("webglcontextrestored",Ge,!1),t.removeEventListener("webglcontextcreationerror",ze,!1),Ie.dispose(),Le.dispose(),Xe.dispose(),de.dispose(),q.dispose(),ae.dispose(),he.dispose(),gt.dispose(),ne.dispose(),ve.dispose(),ye.dispose(),ye.removeEventListener("sessionstart",ic),ye.removeEventListener("sessionend",au),Ci.stop()};function we(J){J.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),D=!0}function Ge(){console.log("THREE.WebGLRenderer: Context Restored."),D=!1;const J=ie.autoReset,oe=Pe.enabled,pe=Pe.autoUpdate,ge=Pe.needsUpdate,ce=Pe.type;Oe(),ie.autoReset=J,Pe.enabled=oe,Pe.autoUpdate=pe,Pe.needsUpdate=ge,Pe.type=ce}function ze(J){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",J.statusMessage)}function We(J){const oe=J.target;oe.removeEventListener("dispose",We),Ft(oe)}function Ft(J){Si(J),de.remove(J)}function Si(J){const oe=de.get(J).programs;oe!==void 0&&(oe.forEach(function(pe){ve.releaseProgram(pe)}),J.isShaderMaterial&&ve.releaseShaderCache(J))}this.renderBufferDirect=function(J,oe,pe,ge,ce,Ce){oe===null&&(oe=L);const ke=ce.isMesh&&ce.matrixWorld.determinant()<0,Ve=ou(J,oe,pe,ge,ce);K.setMaterial(ge,ke);let De=pe.index,it=1;if(ge.wireframe===!0){if(De=fe.getWireframeAttribute(pe),De===void 0)return;it=2}const st=pe.drawRange,Je=pe.attributes.position;let Tt=st.start*it,Dt=(st.start+st.count)*it;Ce!==null&&(Tt=Math.max(Tt,Ce.start*it),Dt=Math.min(Dt,(Ce.start+Ce.count)*it)),De!==null?(Tt=Math.max(Tt,0),Dt=Math.min(Dt,De.count)):Je!=null&&(Tt=Math.max(Tt,0),Dt=Math.min(Dt,Je.count));const gi=Dt-Tt;if(gi<0||gi===1/0)return;gt.setup(ce,ge,Ve,pe,De);let ai,Mt=Ne;if(De!==null&&(ai=me.get(De),Mt=et,Mt.setIndex(ai)),ce.isMesh)ge.wireframe===!0?(K.setLineWidth(ge.wireframeLinewidth*z()),Mt.setMode(O.LINES)):Mt.setMode(O.TRIANGLES);else if(ce.isLine){let Ze=ge.linewidth;Ze===void 0&&(Ze=1),K.setLineWidth(Ze*z()),ce.isLineSegments?Mt.setMode(O.LINES):ce.isLineLoop?Mt.setMode(O.LINE_LOOP):Mt.setMode(O.LINE_STRIP)}else ce.isPoints?Mt.setMode(O.POINTS):ce.isSprite&&Mt.setMode(O.TRIANGLES);if(ce.isBatchedMesh)if(ce._multiDrawInstances!==null)Mt.renderMultiDrawInstances(ce._multiDrawStarts,ce._multiDrawCounts,ce._multiDrawCount,ce._multiDrawInstances);else if(Y.get("WEBGL_multi_draw"))Mt.renderMultiDraw(ce._multiDrawStarts,ce._multiDrawCounts,ce._multiDrawCount);else{const Ze=ce._multiDrawStarts,Oi=ce._multiDrawCounts,Nt=ce._multiDrawCount,Zn=De?me.get(De).bytesPerElement:1,ho=de.get(ge).currentProgram.getUniforms();for(let En=0;En<Nt;En++)ho.setValue(O,"_gl_DrawID",En),Mt.render(Ze[En]/Zn,Oi[En])}else if(ce.isInstancedMesh)Mt.renderInstances(Tt,gi,ce.count);else if(pe.isInstancedBufferGeometry){const Ze=pe._maxInstanceCount!==void 0?pe._maxInstanceCount:1/0,Oi=Math.min(pe.instanceCount,Ze);Mt.renderInstances(Tt,gi,Oi)}else Mt.render(Tt,gi)};function It(J,oe,pe){J.transparent===!0&&J.side===Pi&&J.forceSinglePass===!1?(J.side=$i,J.needsUpdate=!0,mn(J,oe,pe),J.side=ds,J.needsUpdate=!0,mn(J,oe,pe),J.side=Pi):mn(J,oe,pe)}this.compile=function(J,oe,pe=null){pe===null&&(pe=J),x=Xe.get(pe),x.init(oe),M.push(x),pe.traverseVisible(function(ce){ce.isLight&&ce.layers.test(oe.layers)&&(x.pushLight(ce),ce.castShadow&&x.pushShadow(ce))}),J!==pe&&J.traverseVisible(function(ce){ce.isLight&&ce.layers.test(oe.layers)&&(x.pushLight(ce),ce.castShadow&&x.pushShadow(ce))}),x.setupLights();const ge=new Set;return J.traverse(function(ce){if(!(ce.isMesh||ce.isPoints||ce.isLine||ce.isSprite))return;const Ce=ce.material;if(Ce)if(Array.isArray(Ce))for(let ke=0;ke<Ce.length;ke++){const Ve=Ce[ke];It(Ve,pe,ce),ge.add(Ve)}else It(Ce,pe,ce),ge.add(Ce)}),M.pop(),x=null,ge},this.compileAsync=function(J,oe,pe=null){const ge=this.compile(J,oe,pe);return new Promise(ce=>{function Ce(){if(ge.forEach(function(ke){de.get(ke).currentProgram.isReady()&&ge.delete(ke)}),ge.size===0){ce(J);return}setTimeout(Ce,10)}Y.get("KHR_parallel_shader_compile")!==null?Ce():setTimeout(Ce,10)})};let Zi=null;function kn(J){Zi&&Zi(J)}function ic(){Ci.stop()}function au(){Ci.start()}const Ci=new i1;Ci.setAnimationLoop(kn),typeof self<"u"&&Ci.setContext(self),this.setAnimationLoop=function(J){Zi=J,ye.setAnimationLoop(J),J===null?Ci.stop():Ci.start()},ye.addEventListener("sessionstart",ic),ye.addEventListener("sessionend",au),this.render=function(J,oe){if(oe!==void 0&&oe.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(D===!0)return;if(J.matrixWorldAutoUpdate===!0&&J.updateMatrixWorld(),oe.parent===null&&oe.matrixWorldAutoUpdate===!0&&oe.updateMatrixWorld(),ye.enabled===!0&&ye.isPresenting===!0&&(ye.cameraAutoUpdate===!0&&ye.updateCamera(oe),oe=ye.getCamera()),J.isScene===!0&&J.onBeforeRender(R,J,oe,H),x=Xe.get(J,M.length),x.init(oe),M.push(x),v.multiplyMatrices(oe.projectionMatrix,oe.matrixWorldInverse),c.setFromProjectionMatrix(v),f=this.localClippingEnabled,u=xe.init(this.clippingPlanes,f),T=Le.get(J,P.length),T.init(),P.push(T),ye.enabled===!0&&ye.isPresenting===!0){const Ce=R.xr.getDepthSensingMesh();Ce!==null&&Jn(Ce,oe,-1/0,R.sortObjects)}Jn(J,oe,0,R.sortObjects),T.finish(),R.sortObjects===!0&&T.sort(re,Ae),F=ye.enabled===!1||ye.isPresenting===!1||ye.hasDepthSensing()===!1,F&&Ie.addToRenderList(T,J),this.info.render.frame++,u===!0&&xe.beginShadows();const pe=x.state.shadowsArray;Pe.render(pe,J,oe),u===!0&&xe.endShadows(),this.info.autoReset===!0&&this.info.reset();const ge=T.opaque,ce=T.transmissive;if(x.setupLights(),oe.isArrayCamera){const Ce=oe.cameras;if(ce.length>0)for(let ke=0,Ve=Ce.length;ke<Ve;ke++){const De=Ce[ke];sc(ge,ce,J,De)}F&&Ie.render(J);for(let ke=0,Ve=Ce.length;ke<Ve;ke++){const De=Ce[ke];nc(T,J,De,De.viewport)}}else ce.length>0&&sc(ge,ce,J,oe),F&&Ie.render(J),nc(T,J,oe);H!==null&&U===0&&(j.updateMultisampleRenderTarget(H),j.updateRenderTargetMipmap(H)),J.isScene===!0&&J.onAfterRender(R,J,oe),gt.resetDefaultState(),k=-1,$=null,M.pop(),M.length>0?(x=M[M.length-1],u===!0&&xe.setGlobalState(R.clippingPlanes,x.state.camera)):x=null,P.pop(),P.length>0?T=P[P.length-1]:T=null};function Jn(J,oe,pe,ge){if(J.visible===!1)return;if(J.layers.test(oe.layers)){if(J.isGroup)pe=J.renderOrder;else if(J.isLOD)J.autoUpdate===!0&&J.update(oe);else if(J.isLight)x.pushLight(J),J.castShadow&&x.pushShadow(J);else if(J.isSprite){if(!J.frustumCulled||c.intersectsSprite(J)){ge&&B.setFromMatrixPosition(J.matrixWorld).applyMatrix4(v);const ke=he.update(J),Ve=J.material;Ve.visible&&T.push(J,ke,Ve,pe,B.z,null)}}else if((J.isMesh||J.isLine||J.isPoints)&&(!J.frustumCulled||c.intersectsObject(J))){const ke=he.update(J),Ve=J.material;if(ge&&(J.boundingSphere!==void 0?(J.boundingSphere===null&&J.computeBoundingSphere(),B.copy(J.boundingSphere.center)):(ke.boundingSphere===null&&ke.computeBoundingSphere(),B.copy(ke.boundingSphere.center)),B.applyMatrix4(J.matrixWorld).applyMatrix4(v)),Array.isArray(Ve)){const De=ke.groups;for(let it=0,st=De.length;it<st;it++){const Je=De[it],Tt=Ve[Je.materialIndex];Tt&&Tt.visible&&T.push(J,ke,Tt,pe,B.z,Je)}}else Ve.visible&&T.push(J,ke,Ve,pe,B.z,null)}}const Ce=J.children;for(let ke=0,Ve=Ce.length;ke<Ve;ke++)Jn(Ce[ke],oe,pe,ge)}function nc(J,oe,pe,ge){const ce=J.opaque,Ce=J.transmissive,ke=J.transparent;x.setupLightsView(pe),u===!0&&xe.setGlobalState(R.clippingPlanes,pe),ge&&K.viewport(Q.copy(ge)),ce.length>0&&pr(ce,oe,pe),Ce.length>0&&pr(Ce,oe,pe),ke.length>0&&pr(ke,oe,pe),K.buffers.depth.setTest(!0),K.buffers.depth.setMask(!0),K.buffers.color.setMask(!0),K.setPolygonOffset(!1)}function sc(J,oe,pe,ge){if((pe.isScene===!0?pe.overrideMaterial:null)!==null)return;x.state.transmissionRenderTarget[ge.id]===void 0&&(x.state.transmissionRenderTarget[ge.id]=new Gi(1,1,{generateMipmaps:!0,type:Y.has("EXT_color_buffer_half_float")||Y.has("EXT_color_buffer_float")?hi:pi,minFilter:dn,samples:4,stencilBuffer:l,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:xt.workingColorSpace}));const Ce=x.state.transmissionRenderTarget[ge.id],ke=ge.viewport||Q;Ce.setSize(ke.z*R.transmissionResolutionScale,ke.w*R.transmissionResolutionScale);const Ve=R.getRenderTarget();R.setRenderTarget(Ce),R.getClearColor(s),V=R.getClearAlpha(),V<1&&R.setClearColor(16777215,.5),R.clear(),F&&Ie.render(pe);const De=R.toneMapping;R.toneMapping=Ts;const it=ge.viewport;if(ge.viewport!==void 0&&(ge.viewport=void 0),x.setupLightsView(ge),u===!0&&xe.setGlobalState(R.clippingPlanes,ge),pr(J,pe,ge),j.updateMultisampleRenderTarget(Ce),j.updateRenderTargetMipmap(Ce),Y.has("WEBGL_multisampled_render_to_texture")===!1){let st=!1;for(let Je=0,Tt=oe.length;Je<Tt;Je++){const Dt=oe[Je],gi=Dt.object,ai=Dt.geometry,Mt=Dt.material,Ze=Dt.group;if(Mt.side===Pi&&gi.layers.test(ge.layers)){const Oi=Mt.side;Mt.side=$i,Mt.needsUpdate=!0,rc(gi,pe,ge,ai,Mt,Ze),Mt.side=Oi,Mt.needsUpdate=!0,st=!0}}st===!0&&(j.updateMultisampleRenderTarget(Ce),j.updateRenderTargetMipmap(Ce))}R.setRenderTarget(Ve),R.setClearColor(s,V),it!==void 0&&(ge.viewport=it),R.toneMapping=De}function pr(J,oe,pe){const ge=oe.isScene===!0?oe.overrideMaterial:null;for(let ce=0,Ce=J.length;ce<Ce;ce++){const ke=J[ce],Ve=ke.object,De=ke.geometry,it=ge===null?ke.material:ge,st=ke.group;Ve.layers.test(pe.layers)&&rc(Ve,oe,pe,De,it,st)}}function rc(J,oe,pe,ge,ce,Ce){J.onBeforeRender(R,oe,pe,ge,ce,Ce),J.modelViewMatrix.multiplyMatrices(pe.matrixWorldInverse,J.matrixWorld),J.normalMatrix.getNormalMatrix(J.modelViewMatrix),ce.onBeforeRender(R,oe,pe,ge,J,Ce),ce.transparent===!0&&ce.side===Pi&&ce.forceSinglePass===!1?(ce.side=$i,ce.needsUpdate=!0,R.renderBufferDirect(pe,oe,ge,ce,J,Ce),ce.side=ds,ce.needsUpdate=!0,R.renderBufferDirect(pe,oe,ge,ce,J,Ce),ce.side=Pi):R.renderBufferDirect(pe,oe,ge,ce,J,Ce),J.onAfterRender(R,oe,pe,ge,ce,Ce)}function mn(J,oe,pe){oe.isScene!==!0&&(oe=L);const ge=de.get(J),ce=x.state.lights,Ce=x.state.shadowsArray,ke=ce.state.version,Ve=ve.getParameters(J,ce.state,Ce,oe,pe),De=ve.getProgramCacheKey(Ve);let it=ge.programs;ge.environment=J.isMeshStandardMaterial?oe.environment:null,ge.fog=oe.fog,ge.envMap=(J.isMeshStandardMaterial?ae:q).get(J.envMap||ge.environment),ge.envMapRotation=ge.environment!==null&&J.envMap===null?oe.environmentRotation:J.envMapRotation,it===void 0&&(J.addEventListener("dispose",We),it=new Map,ge.programs=it);let st=it.get(De);if(st!==void 0){if(ge.currentProgram===st&&ge.lightsStateVersion===ke)return oc(J,Ve),st}else Ve.uniforms=ve.getUniforms(J),J.onBeforeCompile(Ve,R),st=ve.acquireProgram(Ve,De),it.set(De,st),ge.uniforms=Ve.uniforms;const Je=ge.uniforms;return(!J.isShaderMaterial&&!J.isRawShaderMaterial||J.clipping===!0)&&(Je.clippingPlanes=xe.uniform),oc(J,Ve),ge.needsLights=lp(J),ge.lightsStateVersion=ke,ge.needsLights&&(Je.ambientLightColor.value=ce.state.ambient,Je.lightProbe.value=ce.state.probe,Je.directionalLights.value=ce.state.directional,Je.directionalLightShadows.value=ce.state.directionalShadow,Je.spotLights.value=ce.state.spot,Je.spotLightShadows.value=ce.state.spotShadow,Je.rectAreaLights.value=ce.state.rectArea,Je.ltc_1.value=ce.state.rectAreaLTC1,Je.ltc_2.value=ce.state.rectAreaLTC2,Je.pointLights.value=ce.state.point,Je.pointLightShadows.value=ce.state.pointShadow,Je.hemisphereLights.value=ce.state.hemi,Je.directionalShadowMap.value=ce.state.directionalShadowMap,Je.directionalShadowMatrix.value=ce.state.directionalShadowMatrix,Je.spotShadowMap.value=ce.state.spotShadowMap,Je.spotLightMatrix.value=ce.state.spotLightMatrix,Je.spotLightMap.value=ce.state.spotLightMap,Je.pointShadowMap.value=ce.state.pointShadowMap,Je.pointShadowMatrix.value=ce.state.pointShadowMatrix),ge.currentProgram=st,ge.uniformsList=null,st}function ac(J){if(J.uniformsList===null){const oe=J.currentProgram.getUniforms();J.uniformsList=Pd.seqWithValue(oe.seq,J.uniforms)}return J.uniformsList}function oc(J,oe){const pe=de.get(J);pe.outputColorSpace=oe.outputColorSpace,pe.batching=oe.batching,pe.batchingColor=oe.batchingColor,pe.instancing=oe.instancing,pe.instancingColor=oe.instancingColor,pe.instancingMorph=oe.instancingMorph,pe.skinning=oe.skinning,pe.morphTargets=oe.morphTargets,pe.morphNormals=oe.morphNormals,pe.morphColors=oe.morphColors,pe.morphTargetsCount=oe.morphTargetsCount,pe.numClippingPlanes=oe.numClippingPlanes,pe.numIntersection=oe.numClipIntersection,pe.vertexAlphas=oe.vertexAlphas,pe.vertexTangents=oe.vertexTangents,pe.toneMapping=oe.toneMapping}function ou(J,oe,pe,ge,ce){oe.isScene!==!0&&(oe=L),j.resetTextureUnits();const Ce=oe.fog,ke=ge.isMeshStandardMaterial?oe.environment:null,Ve=H===null?R.outputColorSpace:H.isXRRenderTarget===!0?H.texture.colorSpace:jt,De=(ge.isMeshStandardMaterial?ae:q).get(ge.envMap||ke),it=ge.vertexColors===!0&&!!pe.attributes.color&&pe.attributes.color.itemSize===4,st=!!pe.attributes.tangent&&(!!ge.normalMap||ge.anisotropy>0),Je=!!pe.morphAttributes.position,Tt=!!pe.morphAttributes.normal,Dt=!!pe.morphAttributes.color;let gi=Ts;ge.toneMapped&&(H===null||H.isXRRenderTarget===!0)&&(gi=R.toneMapping);const ai=pe.morphAttributes.position||pe.morphAttributes.normal||pe.morphAttributes.color,Mt=ai!==void 0?ai.length:0,Ze=de.get(ge),Oi=x.state.lights;if(u===!0&&(f===!0||J!==$)){const en=J===$&&ge.id===k;xe.setState(ge,J,en)}let Nt=!1;ge.version===Ze.__version?(Ze.needsLights&&Ze.lightsStateVersion!==Oi.state.version||Ze.outputColorSpace!==Ve||ce.isBatchedMesh&&Ze.batching===!1||!ce.isBatchedMesh&&Ze.batching===!0||ce.isBatchedMesh&&Ze.batchingColor===!0&&ce.colorTexture===null||ce.isBatchedMesh&&Ze.batchingColor===!1&&ce.colorTexture!==null||ce.isInstancedMesh&&Ze.instancing===!1||!ce.isInstancedMesh&&Ze.instancing===!0||ce.isSkinnedMesh&&Ze.skinning===!1||!ce.isSkinnedMesh&&Ze.skinning===!0||ce.isInstancedMesh&&Ze.instancingColor===!0&&ce.instanceColor===null||ce.isInstancedMesh&&Ze.instancingColor===!1&&ce.instanceColor!==null||ce.isInstancedMesh&&Ze.instancingMorph===!0&&ce.morphTexture===null||ce.isInstancedMesh&&Ze.instancingMorph===!1&&ce.morphTexture!==null||Ze.envMap!==De||ge.fog===!0&&Ze.fog!==Ce||Ze.numClippingPlanes!==void 0&&(Ze.numClippingPlanes!==xe.numPlanes||Ze.numIntersection!==xe.numIntersection)||Ze.vertexAlphas!==it||Ze.vertexTangents!==st||Ze.morphTargets!==Je||Ze.morphNormals!==Tt||Ze.morphColors!==Dt||Ze.toneMapping!==gi||Ze.morphTargetsCount!==Mt)&&(Nt=!0):(Nt=!0,Ze.__version=ge.version);let Zn=Ze.currentProgram;Nt===!0&&(Zn=mn(ge,oe,ce));let ho=!1,En=!1,lc=!1;const Jt=Zn.getUniforms(),Un=Ze.uniforms;if(K.useProgram(Zn.program)&&(ho=!0,En=!0,lc=!0),ge.id!==k&&(k=ge.id,En=!0),ho||$!==J){K.buffers.depth.getReversed()?(m.copy(J.projectionMatrix),QM(m),qM(m),Jt.setValue(O,"projectionMatrix",m)):Jt.setValue(O,"projectionMatrix",J.projectionMatrix),Jt.setValue(O,"viewMatrix",J.matrixWorldInverse);const An=Jt.map.cameraPosition;An!==void 0&&An.setValue(O,S.setFromMatrixPosition(J.matrixWorld)),te.logarithmicDepthBuffer&&Jt.setValue(O,"logDepthBufFC",2/(Math.log(J.far+1)/Math.LN2)),(ge.isMeshPhongMaterial||ge.isMeshToonMaterial||ge.isMeshLambertMaterial||ge.isMeshBasicMaterial||ge.isMeshStandardMaterial||ge.isShaderMaterial)&&Jt.setValue(O,"isOrthographic",J.isOrthographicCamera===!0),$!==J&&($=J,En=!0,lc=!0)}if(ce.isSkinnedMesh){Jt.setOptional(O,ce,"bindMatrix"),Jt.setOptional(O,ce,"bindMatrixInverse");const en=ce.skeleton;en&&(en.boneTexture===null&&en.computeBoneTexture(),Jt.setValue(O,"boneTexture",en.boneTexture,j))}ce.isBatchedMesh&&(Jt.setOptional(O,ce,"batchingTexture"),Jt.setValue(O,"batchingTexture",ce._matricesTexture,j),Jt.setOptional(O,ce,"batchingIdTexture"),Jt.setValue(O,"batchingIdTexture",ce._indirectTexture,j),Jt.setOptional(O,ce,"batchingColorTexture"),ce._colorsTexture!==null&&Jt.setValue(O,"batchingColorTexture",ce._colorsTexture,j));const Fn=pe.morphAttributes;if((Fn.position!==void 0||Fn.normal!==void 0||Fn.color!==void 0)&&Ue.update(ce,pe,Zn),(En||Ze.receiveShadow!==ce.receiveShadow)&&(Ze.receiveShadow=ce.receiveShadow,Jt.setValue(O,"receiveShadow",ce.receiveShadow)),ge.isMeshGouraudMaterial&&ge.envMap!==null&&(Un.envMap.value=De,Un.flipEnvMap.value=De.isCubeTexture&&De.isRenderTargetTexture===!1?-1:1),ge.isMeshStandardMaterial&&ge.envMap===null&&oe.environment!==null&&(Un.envMapIntensity.value=oe.environmentIntensity),En&&(Jt.setValue(O,"toneMappingExposure",R.toneMappingExposure),Ze.needsLights&&lu(Un,lc),Ce&&ge.fog===!0&&Re.refreshFogUniforms(Un,Ce),Re.refreshMaterialUniforms(Un,ge,I,ee,x.state.transmissionRenderTarget[J.id]),Pd.upload(O,ac(Ze),Un,j)),ge.isShaderMaterial&&ge.uniformsNeedUpdate===!0&&(Pd.upload(O,ac(Ze),Un,j),ge.uniformsNeedUpdate=!1),ge.isSpriteMaterial&&Jt.setValue(O,"center",ce.center),Jt.setValue(O,"modelViewMatrix",ce.modelViewMatrix),Jt.setValue(O,"normalMatrix",ce.normalMatrix),Jt.setValue(O,"modelMatrix",ce.matrixWorld),ge.isShaderMaterial||ge.isRawShaderMaterial){const en=ge.uniformsGroups;for(let An=0,cp=en.length;An<cp;An++){const na=en[An];ne.update(na,Zn),ne.bind(na,Zn)}}return Zn}function lu(J,oe){J.ambientLightColor.needsUpdate=oe,J.lightProbe.needsUpdate=oe,J.directionalLights.needsUpdate=oe,J.directionalLightShadows.needsUpdate=oe,J.pointLights.needsUpdate=oe,J.pointLightShadows.needsUpdate=oe,J.spotLights.needsUpdate=oe,J.spotLightShadows.needsUpdate=oe,J.rectAreaLights.needsUpdate=oe,J.hemisphereLights.needsUpdate=oe}function lp(J){return J.isMeshLambertMaterial||J.isMeshToonMaterial||J.isMeshPhongMaterial||J.isMeshStandardMaterial||J.isShadowMaterial||J.isShaderMaterial&&J.lights===!0}this.getActiveCubeFace=function(){return G},this.getActiveMipmapLevel=function(){return U},this.getRenderTarget=function(){return H},this.setRenderTargetTextures=function(J,oe,pe){de.get(J.texture).__webglTexture=oe,de.get(J.depthTexture).__webglTexture=pe;const ge=de.get(J);ge.__hasExternalTextures=!0,ge.__autoAllocateDepthBuffer=pe===void 0,ge.__autoAllocateDepthBuffer||Y.has("WEBGL_multisampled_render_to_texture")===!0&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),ge.__useRenderToTexture=!1)},this.setRenderTargetFramebuffer=function(J,oe){const pe=de.get(J);pe.__webglFramebuffer=oe,pe.__useDefaultFramebuffer=oe===void 0};const Ye=O.createFramebuffer();this.setRenderTarget=function(J,oe=0,pe=0){H=J,G=oe,U=pe;let ge=!0,ce=null,Ce=!1,ke=!1;if(J){const De=de.get(J);if(De.__useDefaultFramebuffer!==void 0)K.bindFramebuffer(O.FRAMEBUFFER,null),ge=!1;else if(De.__webglFramebuffer===void 0)j.setupRenderTarget(J);else if(De.__hasExternalTextures)j.rebindTextures(J,de.get(J.texture).__webglTexture,de.get(J.depthTexture).__webglTexture);else if(J.depthBuffer){const Je=J.depthTexture;if(De.__boundDepthTexture!==Je){if(Je!==null&&de.has(Je)&&(J.width!==Je.image.width||J.height!==Je.image.height))throw new Error("WebGLRenderTarget: Attached DepthTexture is initialized to the incorrect size.");j.setupDepthRenderbuffer(J)}}const it=J.texture;(it.isData3DTexture||it.isDataArrayTexture||it.isCompressedArrayTexture)&&(ke=!0);const st=de.get(J).__webglFramebuffer;J.isWebGLCubeRenderTarget?(Array.isArray(st[oe])?ce=st[oe][pe]:ce=st[oe],Ce=!0):J.samples>0&&j.useMultisampledRTT(J)===!1?ce=de.get(J).__webglMultisampledFramebuffer:Array.isArray(st)?ce=st[pe]:ce=st,Q.copy(J.viewport),Z.copy(J.scissor),X=J.scissorTest}else Q.copy(N).multiplyScalar(I).floor(),Z.copy(n).multiplyScalar(I).floor(),X=r;if(pe!==0&&(ce=Ye),K.bindFramebuffer(O.FRAMEBUFFER,ce)&&ge&&K.drawBuffers(J,ce),K.viewport(Q),K.scissor(Z),K.setScissorTest(X),Ce){const De=de.get(J.texture);O.framebufferTexture2D(O.FRAMEBUFFER,O.COLOR_ATTACHMENT0,O.TEXTURE_CUBE_MAP_POSITIVE_X+oe,De.__webglTexture,pe)}else if(ke){const De=de.get(J.texture),it=oe;O.framebufferTextureLayer(O.FRAMEBUFFER,O.COLOR_ATTACHMENT0,De.__webglTexture,pe,it)}else if(J!==null&&pe!==0){const De=de.get(J.texture);O.framebufferTexture2D(O.FRAMEBUFFER,O.COLOR_ATTACHMENT0,O.TEXTURE_2D,De.__webglTexture,pe)}k=-1},this.readRenderTargetPixels=function(J,oe,pe,ge,ce,Ce,ke){if(!(J&&J.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Ve=de.get(J).__webglFramebuffer;if(J.isWebGLCubeRenderTarget&&ke!==void 0&&(Ve=Ve[ke]),Ve){K.bindFramebuffer(O.FRAMEBUFFER,Ve);try{const De=J.texture,it=De.format,st=De.type;if(!te.textureFormatReadable(it)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!te.textureTypeReadable(st)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}oe>=0&&oe<=J.width-ge&&pe>=0&&pe<=J.height-ce&&O.readPixels(oe,pe,ge,ce,Ke.convert(it),Ke.convert(st),Ce)}finally{const De=H!==null?de.get(H).__webglFramebuffer:null;K.bindFramebuffer(O.FRAMEBUFFER,De)}}},this.readRenderTargetPixelsAsync=async function(J,oe,pe,ge,ce,Ce,ke){if(!(J&&J.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let Ve=de.get(J).__webglFramebuffer;if(J.isWebGLCubeRenderTarget&&ke!==void 0&&(Ve=Ve[ke]),Ve){const De=J.texture,it=De.format,st=De.type;if(!te.textureFormatReadable(it))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!te.textureTypeReadable(st))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");if(oe>=0&&oe<=J.width-ge&&pe>=0&&pe<=J.height-ce){K.bindFramebuffer(O.FRAMEBUFFER,Ve);const Je=O.createBuffer();O.bindBuffer(O.PIXEL_PACK_BUFFER,Je),O.bufferData(O.PIXEL_PACK_BUFFER,Ce.byteLength,O.STREAM_READ),O.readPixels(oe,pe,ge,ce,Ke.convert(it),Ke.convert(st),0);const Tt=H!==null?de.get(H).__webglFramebuffer:null;K.bindFramebuffer(O.FRAMEBUFFER,Tt);const Dt=O.fenceSync(O.SYNC_GPU_COMMANDS_COMPLETE,0);return O.flush(),await VM(O,Dt,4),O.bindBuffer(O.PIXEL_PACK_BUFFER,Je),O.getBufferSubData(O.PIXEL_PACK_BUFFER,0,Ce),O.deleteBuffer(Je),O.deleteSync(Dt),Ce}else throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")}},this.copyFramebufferToTexture=function(J,oe=null,pe=0){J.isTexture!==!0&&(Yo("WebGLRenderer: copyFramebufferToTexture function signature has changed."),oe=arguments[0]||null,J=arguments[1]);const ge=Math.pow(2,-pe),ce=Math.floor(J.image.width*ge),Ce=Math.floor(J.image.height*ge),ke=oe!==null?oe.x:0,Ve=oe!==null?oe.y:0;j.setTexture2D(J,0),O.copyTexSubImage2D(O.TEXTURE_2D,pe,0,0,ke,Ve,ce,Ce),K.unbindTexture()};const le=O.createFramebuffer(),Be=O.createFramebuffer();this.copyTextureToTexture=function(J,oe,pe=null,ge=null,ce=0,Ce=null){J.isTexture!==!0&&(Yo("WebGLRenderer: copyTextureToTexture function signature has changed."),ge=arguments[0]||null,J=arguments[1],oe=arguments[2],Ce=arguments[3]||0,pe=null),Ce===null&&(ce!==0?(Yo("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."),Ce=ce,ce=0):Ce=0);let ke,Ve,De,it,st,Je,Tt,Dt,gi;const ai=J.isCompressedTexture?J.mipmaps[Ce]:J.image;if(pe!==null)ke=pe.max.x-pe.min.x,Ve=pe.max.y-pe.min.y,De=pe.isBox3?pe.max.z-pe.min.z:1,it=pe.min.x,st=pe.min.y,Je=pe.isBox3?pe.min.z:0;else{const Fn=Math.pow(2,-ce);ke=Math.floor(ai.width*Fn),Ve=Math.floor(ai.height*Fn),J.isDataArrayTexture?De=ai.depth:J.isData3DTexture?De=Math.floor(ai.depth*Fn):De=1,it=0,st=0,Je=0}ge!==null?(Tt=ge.x,Dt=ge.y,gi=ge.z):(Tt=0,Dt=0,gi=0);const Mt=Ke.convert(oe.format),Ze=Ke.convert(oe.type);let Oi;oe.isData3DTexture?(j.setTexture3D(oe,0),Oi=O.TEXTURE_3D):oe.isDataArrayTexture||oe.isCompressedArrayTexture?(j.setTexture2DArray(oe,0),Oi=O.TEXTURE_2D_ARRAY):(j.setTexture2D(oe,0),Oi=O.TEXTURE_2D),O.pixelStorei(O.UNPACK_FLIP_Y_WEBGL,oe.flipY),O.pixelStorei(O.UNPACK_PREMULTIPLY_ALPHA_WEBGL,oe.premultiplyAlpha),O.pixelStorei(O.UNPACK_ALIGNMENT,oe.unpackAlignment);const Nt=O.getParameter(O.UNPACK_ROW_LENGTH),Zn=O.getParameter(O.UNPACK_IMAGE_HEIGHT),ho=O.getParameter(O.UNPACK_SKIP_PIXELS),En=O.getParameter(O.UNPACK_SKIP_ROWS),lc=O.getParameter(O.UNPACK_SKIP_IMAGES);O.pixelStorei(O.UNPACK_ROW_LENGTH,ai.width),O.pixelStorei(O.UNPACK_IMAGE_HEIGHT,ai.height),O.pixelStorei(O.UNPACK_SKIP_PIXELS,it),O.pixelStorei(O.UNPACK_SKIP_ROWS,st),O.pixelStorei(O.UNPACK_SKIP_IMAGES,Je);const Jt=J.isDataArrayTexture||J.isData3DTexture,Un=oe.isDataArrayTexture||oe.isData3DTexture;if(J.isDepthTexture){const Fn=de.get(J),en=de.get(oe),An=de.get(Fn.__renderTarget),cp=de.get(en.__renderTarget);K.bindFramebuffer(O.READ_FRAMEBUFFER,An.__webglFramebuffer),K.bindFramebuffer(O.DRAW_FRAMEBUFFER,cp.__webglFramebuffer);for(let na=0;na<De;na++)Jt&&(O.framebufferTextureLayer(O.READ_FRAMEBUFFER,O.COLOR_ATTACHMENT0,de.get(J).__webglTexture,ce,Je+na),O.framebufferTextureLayer(O.DRAW_FRAMEBUFFER,O.COLOR_ATTACHMENT0,de.get(oe).__webglTexture,Ce,gi+na)),O.blitFramebuffer(it,st,ke,Ve,Tt,Dt,ke,Ve,O.DEPTH_BUFFER_BIT,O.NEAREST);K.bindFramebuffer(O.READ_FRAMEBUFFER,null),K.bindFramebuffer(O.DRAW_FRAMEBUFFER,null)}else if(ce!==0||J.isRenderTargetTexture||de.has(J)){const Fn=de.get(J),en=de.get(oe);K.bindFramebuffer(O.READ_FRAMEBUFFER,le),K.bindFramebuffer(O.DRAW_FRAMEBUFFER,Be);for(let An=0;An<De;An++)Jt?O.framebufferTextureLayer(O.READ_FRAMEBUFFER,O.COLOR_ATTACHMENT0,Fn.__webglTexture,ce,Je+An):O.framebufferTexture2D(O.READ_FRAMEBUFFER,O.COLOR_ATTACHMENT0,O.TEXTURE_2D,Fn.__webglTexture,ce),Un?O.framebufferTextureLayer(O.DRAW_FRAMEBUFFER,O.COLOR_ATTACHMENT0,en.__webglTexture,Ce,gi+An):O.framebufferTexture2D(O.DRAW_FRAMEBUFFER,O.COLOR_ATTACHMENT0,O.TEXTURE_2D,en.__webglTexture,Ce),ce!==0?O.blitFramebuffer(it,st,ke,Ve,Tt,Dt,ke,Ve,O.COLOR_BUFFER_BIT,O.NEAREST):Un?O.copyTexSubImage3D(Oi,Ce,Tt,Dt,gi+An,it,st,ke,Ve):O.copyTexSubImage2D(Oi,Ce,Tt,Dt,it,st,ke,Ve);K.bindFramebuffer(O.READ_FRAMEBUFFER,null),K.bindFramebuffer(O.DRAW_FRAMEBUFFER,null)}else Un?J.isDataTexture||J.isData3DTexture?O.texSubImage3D(Oi,Ce,Tt,Dt,gi,ke,Ve,De,Mt,Ze,ai.data):oe.isCompressedArrayTexture?O.compressedTexSubImage3D(Oi,Ce,Tt,Dt,gi,ke,Ve,De,Mt,ai.data):O.texSubImage3D(Oi,Ce,Tt,Dt,gi,ke,Ve,De,Mt,Ze,ai):J.isDataTexture?O.texSubImage2D(O.TEXTURE_2D,Ce,Tt,Dt,ke,Ve,Mt,Ze,ai.data):J.isCompressedTexture?O.compressedTexSubImage2D(O.TEXTURE_2D,Ce,Tt,Dt,ai.width,ai.height,Mt,ai.data):O.texSubImage2D(O.TEXTURE_2D,Ce,Tt,Dt,ke,Ve,Mt,Ze,ai);O.pixelStorei(O.UNPACK_ROW_LENGTH,Nt),O.pixelStorei(O.UNPACK_IMAGE_HEIGHT,Zn),O.pixelStorei(O.UNPACK_SKIP_PIXELS,ho),O.pixelStorei(O.UNPACK_SKIP_ROWS,En),O.pixelStorei(O.UNPACK_SKIP_IMAGES,lc),Ce===0&&oe.generateMipmaps&&O.generateMipmap(Oi),K.unbindTexture()},this.copyTextureToTexture3D=function(J,oe,pe=null,ge=null,ce=0){return J.isTexture!==!0&&(Yo("WebGLRenderer: copyTextureToTexture3D function signature has changed."),pe=arguments[0]||null,ge=arguments[1]||null,J=arguments[2],oe=arguments[3],ce=arguments[4]||0),Yo('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'),this.copyTextureToTexture(J,oe,pe,ge,ce)},this.initRenderTarget=function(J){de.get(J).__webglFramebuffer===void 0&&j.setupRenderTarget(J)},this.initTexture=function(J){J.isCubeTexture?j.setTextureCube(J,0):J.isData3DTexture?j.setTexture3D(J,0):J.isDataArrayTexture||J.isCompressedArrayTexture?j.setTexture2DArray(J,0):j.setTexture2D(J,0),K.unbindTexture()},this.resetState=function(){G=0,U=0,H=null,K.reset(),gt.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return ar}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorspace=xt._getDrawingBufferColorSpace(e),t.unpackColorSpace=xt._getUnpackColorSpace()}}/**
|
|
3890
|
+
}`;class FD{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,i){if(this.texture===null){const a=new Kt,l=e.properties.get(a);l.__webglTexture=t.texture,(t.depthNear!==i.depthNear||t.depthFar!==i.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=a}}getMesh(e){if(this.texture!==null&&this.mesh===null){const t=e.cameras[0].viewport,i=new Ni({vertexShader:kD,fragmentShader:UD,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new ot(new gs(20,20),i)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class $D extends ps{constructor(e,t){super();const i=this;let a=null,l=1,h=null,d="local-floor",p=1,g=null,A=null,_=null,b=null,w=null,E=null;const C=new FD,T=t.getContextAttributes();let x=null,P=null;const M=[],R=[],D=new He;let G=null;const U=new bi;U.viewport=new Bt;const H=new bi;H.viewport=new Bt;const k=[U,H],$=new WR;let Q=null,Z=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(c){let u=M[c];return u===void 0&&(u=new Yp,M[c]=u),u.getTargetRaySpace()},this.getControllerGrip=function(c){let u=M[c];return u===void 0&&(u=new Yp,M[c]=u),u.getGripSpace()},this.getHand=function(c){let u=M[c];return u===void 0&&(u=new Yp,M[c]=u),u.getHandSpace()};function X(c){const u=R.indexOf(c.inputSource);if(u===-1)return;const f=M[u];f!==void 0&&(f.update(c.inputSource,c.frame,g||h),f.dispatchEvent({type:c.type,data:c.inputSource}))}function s(){a.removeEventListener("select",X),a.removeEventListener("selectstart",X),a.removeEventListener("selectend",X),a.removeEventListener("squeeze",X),a.removeEventListener("squeezestart",X),a.removeEventListener("squeezeend",X),a.removeEventListener("end",s),a.removeEventListener("inputsourceschange",V);for(let c=0;c<M.length;c++){const u=R[c];u!==null&&(R[c]=null,M[c].disconnect(u))}Q=null,Z=null,C.reset(),e.setRenderTarget(x),w=null,b=null,_=null,a=null,P=null,r.stop(),i.isPresenting=!1,e.setPixelRatio(G),e.setSize(D.width,D.height,!1),i.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(c){l=c,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(c){d=c,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return g||h},this.setReferenceSpace=function(c){g=c},this.getBaseLayer=function(){return b!==null?b:w},this.getBinding=function(){return _},this.getFrame=function(){return E},this.getSession=function(){return a},this.setSession=async function(c){if(a=c,a!==null){if(x=e.getRenderTarget(),a.addEventListener("select",X),a.addEventListener("selectstart",X),a.addEventListener("selectend",X),a.addEventListener("squeeze",X),a.addEventListener("squeezestart",X),a.addEventListener("squeezeend",X),a.addEventListener("end",s),a.addEventListener("inputsourceschange",V),T.xrCompatible!==!0&&await t.makeXRCompatible(),G=e.getPixelRatio(),e.getSize(D),a.enabledFeatures!==void 0&&a.enabledFeatures.includes("layers")){let f=null,m=null,v=null;T.depth&&(v=T.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,f=T.stencil?wl:ll,m=T.stencil?vl:Wr);const S={colorFormat:t.RGBA8,depthFormat:v,scaleFactor:l};_=new XRWebGLBinding(a,t),b=_.createProjectionLayer(S),a.updateRenderState({layers:[b]}),e.setPixelRatio(1),e.setSize(b.textureWidth,b.textureHeight,!1),P=new Gi(b.textureWidth,b.textureHeight,{format:Xt,type:pi,depthTexture:new qS(b.textureWidth,b.textureHeight,m,void 0,void 0,void 0,void 0,void 0,void 0,f),stencilBuffer:T.stencil,colorSpace:e.outputColorSpace,samples:T.antialias?4:0,resolveDepthBuffer:b.ignoreDepthValues===!1})}else{const f={antialias:T.antialias,alpha:!0,depth:T.depth,stencil:T.stencil,framebufferScaleFactor:l};w=new XRWebGLLayer(a,t,f),a.updateRenderState({baseLayer:w}),e.setPixelRatio(1),e.setSize(w.framebufferWidth,w.framebufferHeight,!1),P=new Gi(w.framebufferWidth,w.framebufferHeight,{format:Xt,type:pi,colorSpace:e.outputColorSpace,stencilBuffer:T.stencil})}P.isXRRenderTarget=!0,this.setFoveation(p),g=null,h=await a.requestReferenceSpace(d),r.setContext(a),r.start(),i.isPresenting=!0,i.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(a!==null)return a.environmentBlendMode},this.getDepthTexture=function(){return C.getDepthTexture()};function V(c){for(let u=0;u<c.removed.length;u++){const f=c.removed[u],m=R.indexOf(f);m>=0&&(R[m]=null,M[m].disconnect(f))}for(let u=0;u<c.added.length;u++){const f=c.added[u];let m=R.indexOf(f);if(m===-1){for(let S=0;S<M.length;S++)if(S>=R.length){R.push(f),m=S;break}else if(R[S]===null){R[S]=f,m=S;break}if(m===-1)break}const v=M[m];v&&v.connect(f)}}const y=new se,ee=new se;function I(c,u,f){y.setFromMatrixPosition(u.matrixWorld),ee.setFromMatrixPosition(f.matrixWorld);const m=y.distanceTo(ee),v=u.projectionMatrix.elements,S=f.projectionMatrix.elements,B=v[14]/(v[10]-1),L=v[14]/(v[10]+1),F=(v[9]+1)/v[5],z=(v[9]-1)/v[5],O=(v[8]-1)/v[0],W=(S[8]+1)/S[0],Y=B*O,te=B*W,K=m/(-O+W),ie=K*-O;if(u.matrixWorld.decompose(c.position,c.quaternion,c.scale),c.translateX(ie),c.translateZ(K),c.matrixWorld.compose(c.position,c.quaternion,c.scale),c.matrixWorldInverse.copy(c.matrixWorld).invert(),v[10]===-1)c.projectionMatrix.copy(u.projectionMatrix),c.projectionMatrixInverse.copy(u.projectionMatrixInverse);else{const de=B+K,j=L+K,q=Y-ie,ae=te+(m-ie),me=F*L/j*de,fe=z*L/j*de;c.projectionMatrix.makePerspective(q,ae,me,fe,de,j),c.projectionMatrixInverse.copy(c.projectionMatrix).invert()}}function re(c,u){u===null?c.matrixWorld.copy(c.matrix):c.matrixWorld.multiplyMatrices(u.matrixWorld,c.matrix),c.matrixWorldInverse.copy(c.matrixWorld).invert()}this.updateCamera=function(c){if(a===null)return;let u=c.near,f=c.far;C.texture!==null&&(C.depthNear>0&&(u=C.depthNear),C.depthFar>0&&(f=C.depthFar)),$.near=H.near=U.near=u,$.far=H.far=U.far=f,(Q!==$.near||Z!==$.far)&&(a.updateRenderState({depthNear:$.near,depthFar:$.far}),Q=$.near,Z=$.far),U.layers.mask=c.layers.mask|2,H.layers.mask=c.layers.mask|4,$.layers.mask=U.layers.mask|H.layers.mask;const m=c.parent,v=$.cameras;re($,m);for(let S=0;S<v.length;S++)re(v[S],m);v.length===2?I($,U,H):$.projectionMatrix.copy(U.projectionMatrix),Ae(c,$,m)};function Ae(c,u,f){f===null?c.matrix.copy(u.matrixWorld):(c.matrix.copy(f.matrixWorld),c.matrix.invert(),c.matrix.multiply(u.matrixWorld)),c.matrix.decompose(c.position,c.quaternion,c.scale),c.updateMatrixWorld(!0),c.projectionMatrix.copy(u.projectionMatrix),c.projectionMatrixInverse.copy(u.projectionMatrixInverse),c.isPerspectiveCamera&&(c.fov=Cl*2*Math.atan(1/c.projectionMatrix.elements[5]),c.zoom=1)}this.getCamera=function(){return $},this.getFoveation=function(){if(!(b===null&&w===null))return p},this.setFoveation=function(c){p=c,b!==null&&(b.fixedFoveation=c),w!==null&&w.fixedFoveation!==void 0&&(w.fixedFoveation=c)},this.hasDepthSensing=function(){return C.texture!==null},this.getDepthSensingMesh=function(){return C.getMesh($)};let N=null;function n(c,u){if(A=u.getViewerPose(g||h),E=u,A!==null){const f=A.views;w!==null&&(e.setRenderTargetFramebuffer(P,w.framebuffer),e.setRenderTarget(P));let m=!1;f.length!==$.cameras.length&&($.cameras.length=0,m=!0);for(let S=0;S<f.length;S++){const B=f[S];let L=null;if(w!==null)L=w.getViewport(B);else{const z=_.getViewSubImage(b,B);L=z.viewport,S===0&&(e.setRenderTargetTextures(P,z.colorTexture,b.ignoreDepthValues?void 0:z.depthStencilTexture),e.setRenderTarget(P))}let F=k[S];F===void 0&&(F=new bi,F.layers.enable(S),F.viewport=new Bt,k[S]=F),F.matrix.fromArray(B.transform.matrix),F.matrix.decompose(F.position,F.quaternion,F.scale),F.projectionMatrix.fromArray(B.projectionMatrix),F.projectionMatrixInverse.copy(F.projectionMatrix).invert(),F.viewport.set(L.x,L.y,L.width,L.height),S===0&&($.matrix.copy(F.matrix),$.matrix.decompose($.position,$.quaternion,$.scale)),m===!0&&$.cameras.push(F)}const v=a.enabledFeatures;if(v&&v.includes("depth-sensing")){const S=_.getDepthInformation(f[0]);S&&S.isValid&&S.texture&&C.init(e,S,a.renderState)}}for(let f=0;f<M.length;f++){const m=R[f],v=M[f];m!==null&&v!==void 0&&v.update(m,u,g||h)}N&&N(c,u),u.detectedPlanes&&i.dispatchEvent({type:"planesdetected",data:u}),E=null}const r=new i1;r.setAnimationLoop(n),this.setAnimationLoop=function(c){N=c},this.dispose=function(){}}}const ha=new bn,zD=new tt;function GD(o,e){function t(T,x){T.matrixAutoUpdate===!0&&T.updateMatrix(),x.value.copy(T.matrix)}function i(T,x){x.color.getRGB(T.fogColor.value,zS(o)),x.isFog?(T.fogNear.value=x.near,T.fogFar.value=x.far):x.isFogExp2&&(T.fogDensity.value=x.density)}function a(T,x,P,M,R){x.isMeshBasicMaterial||x.isMeshLambertMaterial?l(T,x):x.isMeshToonMaterial?(l(T,x),_(T,x)):x.isMeshPhongMaterial?(l(T,x),A(T,x)):x.isMeshStandardMaterial?(l(T,x),b(T,x),x.isMeshPhysicalMaterial&&w(T,x,R)):x.isMeshMatcapMaterial?(l(T,x),E(T,x)):x.isMeshDepthMaterial?l(T,x):x.isMeshDistanceMaterial?(l(T,x),C(T,x)):x.isMeshNormalMaterial?l(T,x):x.isLineBasicMaterial?(h(T,x),x.isLineDashedMaterial&&d(T,x)):x.isPointsMaterial?p(T,x,P,M):x.isSpriteMaterial?g(T,x):x.isShadowMaterial?(T.color.value.copy(x.color),T.opacity.value=x.opacity):x.isShaderMaterial&&(x.uniformsNeedUpdate=!1)}function l(T,x){T.opacity.value=x.opacity,x.color&&T.diffuse.value.copy(x.color),x.emissive&&T.emissive.value.copy(x.emissive).multiplyScalar(x.emissiveIntensity),x.map&&(T.map.value=x.map,t(x.map,T.mapTransform)),x.alphaMap&&(T.alphaMap.value=x.alphaMap,t(x.alphaMap,T.alphaMapTransform)),x.bumpMap&&(T.bumpMap.value=x.bumpMap,t(x.bumpMap,T.bumpMapTransform),T.bumpScale.value=x.bumpScale,x.side===$i&&(T.bumpScale.value*=-1)),x.normalMap&&(T.normalMap.value=x.normalMap,t(x.normalMap,T.normalMapTransform),T.normalScale.value.copy(x.normalScale),x.side===$i&&T.normalScale.value.negate()),x.displacementMap&&(T.displacementMap.value=x.displacementMap,t(x.displacementMap,T.displacementMapTransform),T.displacementScale.value=x.displacementScale,T.displacementBias.value=x.displacementBias),x.emissiveMap&&(T.emissiveMap.value=x.emissiveMap,t(x.emissiveMap,T.emissiveMapTransform)),x.specularMap&&(T.specularMap.value=x.specularMap,t(x.specularMap,T.specularMapTransform)),x.alphaTest>0&&(T.alphaTest.value=x.alphaTest);const P=e.get(x),M=P.envMap,R=P.envMapRotation;M&&(T.envMap.value=M,ha.copy(R),ha.x*=-1,ha.y*=-1,ha.z*=-1,M.isCubeTexture&&M.isRenderTargetTexture===!1&&(ha.y*=-1,ha.z*=-1),T.envMapRotation.value.setFromMatrix4(zD.makeRotationFromEuler(ha)),T.flipEnvMap.value=M.isCubeTexture&&M.isRenderTargetTexture===!1?-1:1,T.reflectivity.value=x.reflectivity,T.ior.value=x.ior,T.refractionRatio.value=x.refractionRatio),x.lightMap&&(T.lightMap.value=x.lightMap,T.lightMapIntensity.value=x.lightMapIntensity,t(x.lightMap,T.lightMapTransform)),x.aoMap&&(T.aoMap.value=x.aoMap,T.aoMapIntensity.value=x.aoMapIntensity,t(x.aoMap,T.aoMapTransform))}function h(T,x){T.diffuse.value.copy(x.color),T.opacity.value=x.opacity,x.map&&(T.map.value=x.map,t(x.map,T.mapTransform))}function d(T,x){T.dashSize.value=x.dashSize,T.totalSize.value=x.dashSize+x.gapSize,T.scale.value=x.scale}function p(T,x,P,M){T.diffuse.value.copy(x.color),T.opacity.value=x.opacity,T.size.value=x.size*P,T.scale.value=M*.5,x.map&&(T.map.value=x.map,t(x.map,T.uvTransform)),x.alphaMap&&(T.alphaMap.value=x.alphaMap,t(x.alphaMap,T.alphaMapTransform)),x.alphaTest>0&&(T.alphaTest.value=x.alphaTest)}function g(T,x){T.diffuse.value.copy(x.color),T.opacity.value=x.opacity,T.rotation.value=x.rotation,x.map&&(T.map.value=x.map,t(x.map,T.mapTransform)),x.alphaMap&&(T.alphaMap.value=x.alphaMap,t(x.alphaMap,T.alphaMapTransform)),x.alphaTest>0&&(T.alphaTest.value=x.alphaTest)}function A(T,x){T.specular.value.copy(x.specular),T.shininess.value=Math.max(x.shininess,1e-4)}function _(T,x){x.gradientMap&&(T.gradientMap.value=x.gradientMap)}function b(T,x){T.metalness.value=x.metalness,x.metalnessMap&&(T.metalnessMap.value=x.metalnessMap,t(x.metalnessMap,T.metalnessMapTransform)),T.roughness.value=x.roughness,x.roughnessMap&&(T.roughnessMap.value=x.roughnessMap,t(x.roughnessMap,T.roughnessMapTransform)),x.envMap&&(T.envMapIntensity.value=x.envMapIntensity)}function w(T,x,P){T.ior.value=x.ior,x.sheen>0&&(T.sheenColor.value.copy(x.sheenColor).multiplyScalar(x.sheen),T.sheenRoughness.value=x.sheenRoughness,x.sheenColorMap&&(T.sheenColorMap.value=x.sheenColorMap,t(x.sheenColorMap,T.sheenColorMapTransform)),x.sheenRoughnessMap&&(T.sheenRoughnessMap.value=x.sheenRoughnessMap,t(x.sheenRoughnessMap,T.sheenRoughnessMapTransform))),x.clearcoat>0&&(T.clearcoat.value=x.clearcoat,T.clearcoatRoughness.value=x.clearcoatRoughness,x.clearcoatMap&&(T.clearcoatMap.value=x.clearcoatMap,t(x.clearcoatMap,T.clearcoatMapTransform)),x.clearcoatRoughnessMap&&(T.clearcoatRoughnessMap.value=x.clearcoatRoughnessMap,t(x.clearcoatRoughnessMap,T.clearcoatRoughnessMapTransform)),x.clearcoatNormalMap&&(T.clearcoatNormalMap.value=x.clearcoatNormalMap,t(x.clearcoatNormalMap,T.clearcoatNormalMapTransform),T.clearcoatNormalScale.value.copy(x.clearcoatNormalScale),x.side===$i&&T.clearcoatNormalScale.value.negate())),x.dispersion>0&&(T.dispersion.value=x.dispersion),x.iridescence>0&&(T.iridescence.value=x.iridescence,T.iridescenceIOR.value=x.iridescenceIOR,T.iridescenceThicknessMinimum.value=x.iridescenceThicknessRange[0],T.iridescenceThicknessMaximum.value=x.iridescenceThicknessRange[1],x.iridescenceMap&&(T.iridescenceMap.value=x.iridescenceMap,t(x.iridescenceMap,T.iridescenceMapTransform)),x.iridescenceThicknessMap&&(T.iridescenceThicknessMap.value=x.iridescenceThicknessMap,t(x.iridescenceThicknessMap,T.iridescenceThicknessMapTransform))),x.transmission>0&&(T.transmission.value=x.transmission,T.transmissionSamplerMap.value=P.texture,T.transmissionSamplerSize.value.set(P.width,P.height),x.transmissionMap&&(T.transmissionMap.value=x.transmissionMap,t(x.transmissionMap,T.transmissionMapTransform)),T.thickness.value=x.thickness,x.thicknessMap&&(T.thicknessMap.value=x.thicknessMap,t(x.thicknessMap,T.thicknessMapTransform)),T.attenuationDistance.value=x.attenuationDistance,T.attenuationColor.value.copy(x.attenuationColor)),x.anisotropy>0&&(T.anisotropyVector.value.set(x.anisotropy*Math.cos(x.anisotropyRotation),x.anisotropy*Math.sin(x.anisotropyRotation)),x.anisotropyMap&&(T.anisotropyMap.value=x.anisotropyMap,t(x.anisotropyMap,T.anisotropyMapTransform))),T.specularIntensity.value=x.specularIntensity,T.specularColor.value.copy(x.specularColor),x.specularColorMap&&(T.specularColorMap.value=x.specularColorMap,t(x.specularColorMap,T.specularColorMapTransform)),x.specularIntensityMap&&(T.specularIntensityMap.value=x.specularIntensityMap,t(x.specularIntensityMap,T.specularIntensityMapTransform))}function E(T,x){x.matcap&&(T.matcap.value=x.matcap)}function C(T,x){const P=e.get(x).light;T.referencePosition.value.setFromMatrixPosition(P.matrixWorld),T.nearDistance.value=P.shadow.camera.near,T.farDistance.value=P.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:a}}function HD(o,e,t,i){let a={},l={},h=[];const d=o.getParameter(o.MAX_UNIFORM_BUFFER_BINDINGS);function p(P,M){const R=M.program;i.uniformBlockBinding(P,R)}function g(P,M){let R=a[P.id];R===void 0&&(E(P),R=A(P),a[P.id]=R,P.addEventListener("dispose",T));const D=M.program;i.updateUBOMapping(P,D);const G=e.render.frame;l[P.id]!==G&&(b(P),l[P.id]=G)}function A(P){const M=_();P.__bindingPointIndex=M;const R=o.createBuffer(),D=P.__size,G=P.usage;return o.bindBuffer(o.UNIFORM_BUFFER,R),o.bufferData(o.UNIFORM_BUFFER,D,G),o.bindBuffer(o.UNIFORM_BUFFER,null),o.bindBufferBase(o.UNIFORM_BUFFER,M,R),R}function _(){for(let P=0;P<d;P++)if(h.indexOf(P)===-1)return h.push(P),P;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}function b(P){const M=a[P.id],R=P.uniforms,D=P.__cache;o.bindBuffer(o.UNIFORM_BUFFER,M);for(let G=0,U=R.length;G<U;G++){const H=Array.isArray(R[G])?R[G]:[R[G]];for(let k=0,$=H.length;k<$;k++){const Q=H[k];if(w(Q,G,k,D)===!0){const Z=Q.__offset,X=Array.isArray(Q.value)?Q.value:[Q.value];let s=0;for(let V=0;V<X.length;V++){const y=X[V],ee=C(y);typeof y=="number"||typeof y=="boolean"?(Q.__data[0]=y,o.bufferSubData(o.UNIFORM_BUFFER,Z+s,Q.__data)):y.isMatrix3?(Q.__data[0]=y.elements[0],Q.__data[1]=y.elements[1],Q.__data[2]=y.elements[2],Q.__data[3]=0,Q.__data[4]=y.elements[3],Q.__data[5]=y.elements[4],Q.__data[6]=y.elements[5],Q.__data[7]=0,Q.__data[8]=y.elements[6],Q.__data[9]=y.elements[7],Q.__data[10]=y.elements[8],Q.__data[11]=0):(y.toArray(Q.__data,s),s+=ee.storage/Float32Array.BYTES_PER_ELEMENT)}o.bufferSubData(o.UNIFORM_BUFFER,Z,Q.__data)}}}o.bindBuffer(o.UNIFORM_BUFFER,null)}function w(P,M,R,D){const G=P.value,U=M+"_"+R;if(D[U]===void 0)return typeof G=="number"||typeof G=="boolean"?D[U]=G:D[U]=G.clone(),!0;{const H=D[U];if(typeof G=="number"||typeof G=="boolean"){if(H!==G)return D[U]=G,!0}else if(H.equals(G)===!1)return H.copy(G),!0}return!1}function E(P){const M=P.uniforms;let R=0;const D=16;for(let U=0,H=M.length;U<H;U++){const k=Array.isArray(M[U])?M[U]:[M[U]];for(let $=0,Q=k.length;$<Q;$++){const Z=k[$],X=Array.isArray(Z.value)?Z.value:[Z.value];for(let s=0,V=X.length;s<V;s++){const y=X[s],ee=C(y),I=R%D,re=I%ee.boundary,Ae=I+re;R+=re,Ae!==0&&D-Ae<ee.storage&&(R+=D-Ae),Z.__data=new Float32Array(ee.storage/Float32Array.BYTES_PER_ELEMENT),Z.__offset=R,R+=ee.storage}}}const G=R%D;return G>0&&(R+=D-G),P.__size=R,P.__cache={},this}function C(P){const M={boundary:0,storage:0};return typeof P=="number"||typeof P=="boolean"?(M.boundary=4,M.storage=4):P.isVector2?(M.boundary=8,M.storage=8):P.isVector3||P.isColor?(M.boundary=16,M.storage=12):P.isVector4?(M.boundary=16,M.storage=16):P.isMatrix3?(M.boundary=48,M.storage=48):P.isMatrix4?(M.boundary=64,M.storage=64):P.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",P),M}function T(P){const M=P.target;M.removeEventListener("dispose",T);const R=h.indexOf(M.__bindingPointIndex);h.splice(R,1),o.deleteBuffer(a[M.id]),delete a[M.id],delete l[M.id]}function x(){for(const P in a)o.deleteBuffer(a[P]);h=[],a={},l={}}return{bind:p,update:g,dispose:x}}class uf{constructor(e={}){const{canvas:t=HM(),context:i=null,depth:a=!0,stencil:l=!1,alpha:h=!1,antialias:d=!1,premultipliedAlpha:p=!0,preserveDrawingBuffer:g=!1,powerPreference:A="default",failIfMajorPerformanceCaveat:_=!1,reverseDepthBuffer:b=!1}=e;this.isWebGLRenderer=!0;let w;if(i!==null){if(typeof WebGLRenderingContext<"u"&&i instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");w=i.getContextAttributes().alpha}else w=h;const E=new Uint32Array(4),C=new Int32Array(4);let T=null,x=null;const P=[],M=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Vt,this.toneMapping=Ts,this.toneMappingExposure=1;const R=this;let D=!1,G=0,U=0,H=null,k=-1,$=null;const Q=new Bt,Z=new Bt;let X=null;const s=new je(0);let V=0,y=t.width,ee=t.height,I=1,re=null,Ae=null;const N=new Bt(0,0,y,ee),n=new Bt(0,0,y,ee);let r=!1;const c=new J0;let u=!1,f=!1;this.transmissionResolutionScale=1;const m=new tt,v=new tt,S=new se,B=new Bt,L={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let F=!1;function z(){return H===null?I:1}let O=i;function W(J,oe){return t.getContext(J,oe)}try{const J={alpha:!0,depth:a,stencil:l,antialias:d,premultipliedAlpha:p,preserveDrawingBuffer:g,powerPreference:A,failIfMajorPerformanceCaveat:_};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${zl}`),t.addEventListener("webglcontextlost",we,!1),t.addEventListener("webglcontextrestored",Ge,!1),t.addEventListener("webglcontextcreationerror",ze,!1),O===null){const oe="webgl2";if(O=W(oe,J),O===null)throw W(oe)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(J){throw console.error("THREE.WebGLRenderer: "+J.message),J}let Y,te,K,ie,de,j,q,ae,me,fe,he,ve,Re,Le,Xe,xe,Pe,Ie,Fe,Ne,et,Ke,gt,ne;function Oe(){Y=new ZP(O),Y.init(),Ke=new ND(O,Y),te=new jP(O,Y,e,Ke),K=new LD(O,Y),te.reverseDepthBuffer&&b&&K.buffers.depth.setReversed(!0),ie=new iL(O),de=new bD,j=new DD(O,Y,K,de,te,Ke,ie),q=new YP(R),ae=new JP(R),me=new c2(O),gt=new QP(O,me),fe=new eL(O,me,ie,gt),he=new sL(O,fe,me,ie),Fe=new nL(O,te,j),xe=new WP(de),ve=new yD(R,q,ae,Y,te,gt,xe),Re=new GD(R,de),Le=new wD,Xe=new ID(Y),Ie=new VP(R,q,ae,K,he,w,p),Pe=new BD(R,he,te),ne=new HD(O,ie,te,K),Ne=new qP(O,Y,ie),et=new tL(O,Y,ie),ie.programs=ve.programs,R.capabilities=te,R.extensions=Y,R.properties=de,R.renderLists=Le,R.shadowMap=Pe,R.state=K,R.info=ie}Oe();const ye=new $D(R,O);this.xr=ye,this.getContext=function(){return O},this.getContextAttributes=function(){return O.getContextAttributes()},this.forceContextLoss=function(){const J=Y.get("WEBGL_lose_context");J&&J.loseContext()},this.forceContextRestore=function(){const J=Y.get("WEBGL_lose_context");J&&J.restoreContext()},this.getPixelRatio=function(){return I},this.setPixelRatio=function(J){J!==void 0&&(I=J,this.setSize(y,ee,!1))},this.getSize=function(J){return J.set(y,ee)},this.setSize=function(J,oe,pe=!0){if(ye.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}y=J,ee=oe,t.width=Math.floor(J*I),t.height=Math.floor(oe*I),pe===!0&&(t.style.width=J+"px",t.style.height=oe+"px"),this.setViewport(0,0,J,oe)},this.getDrawingBufferSize=function(J){return J.set(y*I,ee*I).floor()},this.setDrawingBufferSize=function(J,oe,pe){y=J,ee=oe,I=pe,t.width=Math.floor(J*pe),t.height=Math.floor(oe*pe),this.setViewport(0,0,J,oe)},this.getCurrentViewport=function(J){return J.copy(Q)},this.getViewport=function(J){return J.copy(N)},this.setViewport=function(J,oe,pe,ge){J.isVector4?N.set(J.x,J.y,J.z,J.w):N.set(J,oe,pe,ge),K.viewport(Q.copy(N).multiplyScalar(I).round())},this.getScissor=function(J){return J.copy(n)},this.setScissor=function(J,oe,pe,ge){J.isVector4?n.set(J.x,J.y,J.z,J.w):n.set(J,oe,pe,ge),K.scissor(Z.copy(n).multiplyScalar(I).round())},this.getScissorTest=function(){return r},this.setScissorTest=function(J){K.setScissorTest(r=J)},this.setOpaqueSort=function(J){re=J},this.setTransparentSort=function(J){Ae=J},this.getClearColor=function(J){return J.copy(Ie.getClearColor())},this.setClearColor=function(){Ie.setClearColor.apply(Ie,arguments)},this.getClearAlpha=function(){return Ie.getClearAlpha()},this.setClearAlpha=function(){Ie.setClearAlpha.apply(Ie,arguments)},this.clear=function(J=!0,oe=!0,pe=!0){let ge=0;if(J){let ce=!1;if(H!==null){const Ce=H.texture.format;ce=Ce===G0||Ce===z0||Ce===$0}if(ce){const Ce=H.texture.type,ke=Ce===pi||Ce===Wr||Ce===Th||Ce===vl||Ce===U0||Ce===F0,Ve=Ie.getClearColor(),De=Ie.getClearAlpha(),it=Ve.r,st=Ve.g,Je=Ve.b;ke?(E[0]=it,E[1]=st,E[2]=Je,E[3]=De,O.clearBufferuiv(O.COLOR,0,E)):(C[0]=it,C[1]=st,C[2]=Je,C[3]=De,O.clearBufferiv(O.COLOR,0,C))}else ge|=O.COLOR_BUFFER_BIT}oe&&(ge|=O.DEPTH_BUFFER_BIT),pe&&(ge|=O.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),O.clear(ge)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",we,!1),t.removeEventListener("webglcontextrestored",Ge,!1),t.removeEventListener("webglcontextcreationerror",ze,!1),Ie.dispose(),Le.dispose(),Xe.dispose(),de.dispose(),q.dispose(),ae.dispose(),he.dispose(),gt.dispose(),ne.dispose(),ve.dispose(),ye.dispose(),ye.removeEventListener("sessionstart",ic),ye.removeEventListener("sessionend",au),Ci.stop()};function we(J){J.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),D=!0}function Ge(){console.log("THREE.WebGLRenderer: Context Restored."),D=!1;const J=ie.autoReset,oe=Pe.enabled,pe=Pe.autoUpdate,ge=Pe.needsUpdate,ce=Pe.type;Oe(),ie.autoReset=J,Pe.enabled=oe,Pe.autoUpdate=pe,Pe.needsUpdate=ge,Pe.type=ce}function ze(J){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",J.statusMessage)}function We(J){const oe=J.target;oe.removeEventListener("dispose",We),Ft(oe)}function Ft(J){Si(J),de.remove(J)}function Si(J){const oe=de.get(J).programs;oe!==void 0&&(oe.forEach(function(pe){ve.releaseProgram(pe)}),J.isShaderMaterial&&ve.releaseShaderCache(J))}this.renderBufferDirect=function(J,oe,pe,ge,ce,Ce){oe===null&&(oe=L);const ke=ce.isMesh&&ce.matrixWorld.determinant()<0,Ve=ou(J,oe,pe,ge,ce);K.setMaterial(ge,ke);let De=pe.index,it=1;if(ge.wireframe===!0){if(De=fe.getWireframeAttribute(pe),De===void 0)return;it=2}const st=pe.drawRange,Je=pe.attributes.position;let Tt=st.start*it,Dt=(st.start+st.count)*it;Ce!==null&&(Tt=Math.max(Tt,Ce.start*it),Dt=Math.min(Dt,(Ce.start+Ce.count)*it)),De!==null?(Tt=Math.max(Tt,0),Dt=Math.min(Dt,De.count)):Je!=null&&(Tt=Math.max(Tt,0),Dt=Math.min(Dt,Je.count));const gi=Dt-Tt;if(gi<0||gi===1/0)return;gt.setup(ce,ge,Ve,pe,De);let ai,Mt=Ne;if(De!==null&&(ai=me.get(De),Mt=et,Mt.setIndex(ai)),ce.isMesh)ge.wireframe===!0?(K.setLineWidth(ge.wireframeLinewidth*z()),Mt.setMode(O.LINES)):Mt.setMode(O.TRIANGLES);else if(ce.isLine){let Ze=ge.linewidth;Ze===void 0&&(Ze=1),K.setLineWidth(Ze*z()),ce.isLineSegments?Mt.setMode(O.LINES):ce.isLineLoop?Mt.setMode(O.LINE_LOOP):Mt.setMode(O.LINE_STRIP)}else ce.isPoints?Mt.setMode(O.POINTS):ce.isSprite&&Mt.setMode(O.TRIANGLES);if(ce.isBatchedMesh)if(ce._multiDrawInstances!==null)Mt.renderMultiDrawInstances(ce._multiDrawStarts,ce._multiDrawCounts,ce._multiDrawCount,ce._multiDrawInstances);else if(Y.get("WEBGL_multi_draw"))Mt.renderMultiDraw(ce._multiDrawStarts,ce._multiDrawCounts,ce._multiDrawCount);else{const Ze=ce._multiDrawStarts,Oi=ce._multiDrawCounts,Nt=ce._multiDrawCount,Zn=De?me.get(De).bytesPerElement:1,ho=de.get(ge).currentProgram.getUniforms();for(let En=0;En<Nt;En++)ho.setValue(O,"_gl_DrawID",En),Mt.render(Ze[En]/Zn,Oi[En])}else if(ce.isInstancedMesh)Mt.renderInstances(Tt,gi,ce.count);else if(pe.isInstancedBufferGeometry){const Ze=pe._maxInstanceCount!==void 0?pe._maxInstanceCount:1/0,Oi=Math.min(pe.instanceCount,Ze);Mt.renderInstances(Tt,gi,Oi)}else Mt.render(Tt,gi)};function It(J,oe,pe){J.transparent===!0&&J.side===Pi&&J.forceSinglePass===!1?(J.side=$i,J.needsUpdate=!0,mn(J,oe,pe),J.side=ds,J.needsUpdate=!0,mn(J,oe,pe),J.side=Pi):mn(J,oe,pe)}this.compile=function(J,oe,pe=null){pe===null&&(pe=J),x=Xe.get(pe),x.init(oe),M.push(x),pe.traverseVisible(function(ce){ce.isLight&&ce.layers.test(oe.layers)&&(x.pushLight(ce),ce.castShadow&&x.pushShadow(ce))}),J!==pe&&J.traverseVisible(function(ce){ce.isLight&&ce.layers.test(oe.layers)&&(x.pushLight(ce),ce.castShadow&&x.pushShadow(ce))}),x.setupLights();const ge=new Set;return J.traverse(function(ce){if(!(ce.isMesh||ce.isPoints||ce.isLine||ce.isSprite))return;const Ce=ce.material;if(Ce)if(Array.isArray(Ce))for(let ke=0;ke<Ce.length;ke++){const Ve=Ce[ke];It(Ve,pe,ce),ge.add(Ve)}else It(Ce,pe,ce),ge.add(Ce)}),M.pop(),x=null,ge},this.compileAsync=function(J,oe,pe=null){const ge=this.compile(J,oe,pe);return new Promise(ce=>{function Ce(){if(ge.forEach(function(ke){de.get(ke).currentProgram.isReady()&&ge.delete(ke)}),ge.size===0){ce(J);return}setTimeout(Ce,10)}Y.get("KHR_parallel_shader_compile")!==null?Ce():setTimeout(Ce,10)})};let Zi=null;function kn(J){Zi&&Zi(J)}function ic(){Ci.stop()}function au(){Ci.start()}const Ci=new i1;Ci.setAnimationLoop(kn),typeof self<"u"&&Ci.setContext(self),this.setAnimationLoop=function(J){Zi=J,ye.setAnimationLoop(J),J===null?Ci.stop():Ci.start()},ye.addEventListener("sessionstart",ic),ye.addEventListener("sessionend",au),this.render=function(J,oe){if(oe!==void 0&&oe.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(D===!0)return;if(J.matrixWorldAutoUpdate===!0&&J.updateMatrixWorld(),oe.parent===null&&oe.matrixWorldAutoUpdate===!0&&oe.updateMatrixWorld(),ye.enabled===!0&&ye.isPresenting===!0&&(ye.cameraAutoUpdate===!0&&ye.updateCamera(oe),oe=ye.getCamera()),J.isScene===!0&&J.onBeforeRender(R,J,oe,H),x=Xe.get(J,M.length),x.init(oe),M.push(x),v.multiplyMatrices(oe.projectionMatrix,oe.matrixWorldInverse),c.setFromProjectionMatrix(v),f=this.localClippingEnabled,u=xe.init(this.clippingPlanes,f),T=Le.get(J,P.length),T.init(),P.push(T),ye.enabled===!0&&ye.isPresenting===!0){const Ce=R.xr.getDepthSensingMesh();Ce!==null&&Jn(Ce,oe,-1/0,R.sortObjects)}Jn(J,oe,0,R.sortObjects),T.finish(),R.sortObjects===!0&&T.sort(re,Ae),F=ye.enabled===!1||ye.isPresenting===!1||ye.hasDepthSensing()===!1,F&&Ie.addToRenderList(T,J),this.info.render.frame++,u===!0&&xe.beginShadows();const pe=x.state.shadowsArray;Pe.render(pe,J,oe),u===!0&&xe.endShadows(),this.info.autoReset===!0&&this.info.reset();const ge=T.opaque,ce=T.transmissive;if(x.setupLights(),oe.isArrayCamera){const Ce=oe.cameras;if(ce.length>0)for(let ke=0,Ve=Ce.length;ke<Ve;ke++){const De=Ce[ke];sc(ge,ce,J,De)}F&&Ie.render(J);for(let ke=0,Ve=Ce.length;ke<Ve;ke++){const De=Ce[ke];nc(T,J,De,De.viewport)}}else ce.length>0&&sc(ge,ce,J,oe),F&&Ie.render(J),nc(T,J,oe);H!==null&&U===0&&(j.updateMultisampleRenderTarget(H),j.updateRenderTargetMipmap(H)),J.isScene===!0&&J.onAfterRender(R,J,oe),gt.resetDefaultState(),k=-1,$=null,M.pop(),M.length>0?(x=M[M.length-1],u===!0&&xe.setGlobalState(R.clippingPlanes,x.state.camera)):x=null,P.pop(),P.length>0?T=P[P.length-1]:T=null};function Jn(J,oe,pe,ge){if(J.visible===!1)return;if(J.layers.test(oe.layers)){if(J.isGroup)pe=J.renderOrder;else if(J.isLOD)J.autoUpdate===!0&&J.update(oe);else if(J.isLight)x.pushLight(J),J.castShadow&&x.pushShadow(J);else if(J.isSprite){if(!J.frustumCulled||c.intersectsSprite(J)){ge&&B.setFromMatrixPosition(J.matrixWorld).applyMatrix4(v);const ke=he.update(J),Ve=J.material;Ve.visible&&T.push(J,ke,Ve,pe,B.z,null)}}else if((J.isMesh||J.isLine||J.isPoints)&&(!J.frustumCulled||c.intersectsObject(J))){const ke=he.update(J),Ve=J.material;if(ge&&(J.boundingSphere!==void 0?(J.boundingSphere===null&&J.computeBoundingSphere(),B.copy(J.boundingSphere.center)):(ke.boundingSphere===null&&ke.computeBoundingSphere(),B.copy(ke.boundingSphere.center)),B.applyMatrix4(J.matrixWorld).applyMatrix4(v)),Array.isArray(Ve)){const De=ke.groups;for(let it=0,st=De.length;it<st;it++){const Je=De[it],Tt=Ve[Je.materialIndex];Tt&&Tt.visible&&T.push(J,ke,Tt,pe,B.z,Je)}}else Ve.visible&&T.push(J,ke,Ve,pe,B.z,null)}}const Ce=J.children;for(let ke=0,Ve=Ce.length;ke<Ve;ke++)Jn(Ce[ke],oe,pe,ge)}function nc(J,oe,pe,ge){const ce=J.opaque,Ce=J.transmissive,ke=J.transparent;x.setupLightsView(pe),u===!0&&xe.setGlobalState(R.clippingPlanes,pe),ge&&K.viewport(Q.copy(ge)),ce.length>0&&pr(ce,oe,pe),Ce.length>0&&pr(Ce,oe,pe),ke.length>0&&pr(ke,oe,pe),K.buffers.depth.setTest(!0),K.buffers.depth.setMask(!0),K.buffers.color.setMask(!0),K.setPolygonOffset(!1)}function sc(J,oe,pe,ge){if((pe.isScene===!0?pe.overrideMaterial:null)!==null)return;x.state.transmissionRenderTarget[ge.id]===void 0&&(x.state.transmissionRenderTarget[ge.id]=new Gi(1,1,{generateMipmaps:!0,type:Y.has("EXT_color_buffer_half_float")||Y.has("EXT_color_buffer_float")?hi:pi,minFilter:dn,samples:4,stencilBuffer:l,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:xt.workingColorSpace}));const Ce=x.state.transmissionRenderTarget[ge.id],ke=ge.viewport||Q;Ce.setSize(ke.z*R.transmissionResolutionScale,ke.w*R.transmissionResolutionScale);const Ve=R.getRenderTarget();R.setRenderTarget(Ce),R.getClearColor(s),V=R.getClearAlpha(),V<1&&R.setClearColor(16777215,.5),R.clear(),F&&Ie.render(pe);const De=R.toneMapping;R.toneMapping=Ts;const it=ge.viewport;if(ge.viewport!==void 0&&(ge.viewport=void 0),x.setupLightsView(ge),u===!0&&xe.setGlobalState(R.clippingPlanes,ge),pr(J,pe,ge),j.updateMultisampleRenderTarget(Ce),j.updateRenderTargetMipmap(Ce),Y.has("WEBGL_multisampled_render_to_texture")===!1){let st=!1;for(let Je=0,Tt=oe.length;Je<Tt;Je++){const Dt=oe[Je],gi=Dt.object,ai=Dt.geometry,Mt=Dt.material,Ze=Dt.group;if(Mt.side===Pi&&gi.layers.test(ge.layers)){const Oi=Mt.side;Mt.side=$i,Mt.needsUpdate=!0,rc(gi,pe,ge,ai,Mt,Ze),Mt.side=Oi,Mt.needsUpdate=!0,st=!0}}st===!0&&(j.updateMultisampleRenderTarget(Ce),j.updateRenderTargetMipmap(Ce))}R.setRenderTarget(Ve),R.setClearColor(s,V),it!==void 0&&(ge.viewport=it),R.toneMapping=De}function pr(J,oe,pe){const ge=oe.isScene===!0?oe.overrideMaterial:null;for(let ce=0,Ce=J.length;ce<Ce;ce++){const ke=J[ce],Ve=ke.object,De=ke.geometry,it=ge===null?ke.material:ge,st=ke.group;Ve.layers.test(pe.layers)&&rc(Ve,oe,pe,De,it,st)}}function rc(J,oe,pe,ge,ce,Ce){J.onBeforeRender(R,oe,pe,ge,ce,Ce),J.modelViewMatrix.multiplyMatrices(pe.matrixWorldInverse,J.matrixWorld),J.normalMatrix.getNormalMatrix(J.modelViewMatrix),ce.onBeforeRender(R,oe,pe,ge,J,Ce),ce.transparent===!0&&ce.side===Pi&&ce.forceSinglePass===!1?(ce.side=$i,ce.needsUpdate=!0,R.renderBufferDirect(pe,oe,ge,ce,J,Ce),ce.side=ds,ce.needsUpdate=!0,R.renderBufferDirect(pe,oe,ge,ce,J,Ce),ce.side=Pi):R.renderBufferDirect(pe,oe,ge,ce,J,Ce),J.onAfterRender(R,oe,pe,ge,ce,Ce)}function mn(J,oe,pe){oe.isScene!==!0&&(oe=L);const ge=de.get(J),ce=x.state.lights,Ce=x.state.shadowsArray,ke=ce.state.version,Ve=ve.getParameters(J,ce.state,Ce,oe,pe),De=ve.getProgramCacheKey(Ve);let it=ge.programs;ge.environment=J.isMeshStandardMaterial?oe.environment:null,ge.fog=oe.fog,ge.envMap=(J.isMeshStandardMaterial?ae:q).get(J.envMap||ge.environment),ge.envMapRotation=ge.environment!==null&&J.envMap===null?oe.environmentRotation:J.envMapRotation,it===void 0&&(J.addEventListener("dispose",We),it=new Map,ge.programs=it);let st=it.get(De);if(st!==void 0){if(ge.currentProgram===st&&ge.lightsStateVersion===ke)return oc(J,Ve),st}else Ve.uniforms=ve.getUniforms(J),J.onBeforeCompile(Ve,R),st=ve.acquireProgram(Ve,De),it.set(De,st),ge.uniforms=Ve.uniforms;const Je=ge.uniforms;return(!J.isShaderMaterial&&!J.isRawShaderMaterial||J.clipping===!0)&&(Je.clippingPlanes=xe.uniform),oc(J,Ve),ge.needsLights=lp(J),ge.lightsStateVersion=ke,ge.needsLights&&(Je.ambientLightColor.value=ce.state.ambient,Je.lightProbe.value=ce.state.probe,Je.directionalLights.value=ce.state.directional,Je.directionalLightShadows.value=ce.state.directionalShadow,Je.spotLights.value=ce.state.spot,Je.spotLightShadows.value=ce.state.spotShadow,Je.rectAreaLights.value=ce.state.rectArea,Je.ltc_1.value=ce.state.rectAreaLTC1,Je.ltc_2.value=ce.state.rectAreaLTC2,Je.pointLights.value=ce.state.point,Je.pointLightShadows.value=ce.state.pointShadow,Je.hemisphereLights.value=ce.state.hemi,Je.directionalShadowMap.value=ce.state.directionalShadowMap,Je.directionalShadowMatrix.value=ce.state.directionalShadowMatrix,Je.spotShadowMap.value=ce.state.spotShadowMap,Je.spotLightMatrix.value=ce.state.spotLightMatrix,Je.spotLightMap.value=ce.state.spotLightMap,Je.pointShadowMap.value=ce.state.pointShadowMap,Je.pointShadowMatrix.value=ce.state.pointShadowMatrix),ge.currentProgram=st,ge.uniformsList=null,st}function ac(J){if(J.uniformsList===null){const oe=J.currentProgram.getUniforms();J.uniformsList=Pd.seqWithValue(oe.seq,J.uniforms)}return J.uniformsList}function oc(J,oe){const pe=de.get(J);pe.outputColorSpace=oe.outputColorSpace,pe.batching=oe.batching,pe.batchingColor=oe.batchingColor,pe.instancing=oe.instancing,pe.instancingColor=oe.instancingColor,pe.instancingMorph=oe.instancingMorph,pe.skinning=oe.skinning,pe.morphTargets=oe.morphTargets,pe.morphNormals=oe.morphNormals,pe.morphColors=oe.morphColors,pe.morphTargetsCount=oe.morphTargetsCount,pe.numClippingPlanes=oe.numClippingPlanes,pe.numIntersection=oe.numClipIntersection,pe.vertexAlphas=oe.vertexAlphas,pe.vertexTangents=oe.vertexTangents,pe.toneMapping=oe.toneMapping}function ou(J,oe,pe,ge,ce){oe.isScene!==!0&&(oe=L),j.resetTextureUnits();const Ce=oe.fog,ke=ge.isMeshStandardMaterial?oe.environment:null,Ve=H===null?R.outputColorSpace:H.isXRRenderTarget===!0?H.texture.colorSpace:jt,De=(ge.isMeshStandardMaterial?ae:q).get(ge.envMap||ke),it=ge.vertexColors===!0&&!!pe.attributes.color&&pe.attributes.color.itemSize===4,st=!!pe.attributes.tangent&&(!!ge.normalMap||ge.anisotropy>0),Je=!!pe.morphAttributes.position,Tt=!!pe.morphAttributes.normal,Dt=!!pe.morphAttributes.color;let gi=Ts;ge.toneMapped&&(H===null||H.isXRRenderTarget===!0)&&(gi=R.toneMapping);const ai=pe.morphAttributes.position||pe.morphAttributes.normal||pe.morphAttributes.color,Mt=ai!==void 0?ai.length:0,Ze=de.get(ge),Oi=x.state.lights;if(u===!0&&(f===!0||J!==$)){const en=J===$&&ge.id===k;xe.setState(ge,J,en)}let Nt=!1;ge.version===Ze.__version?(Ze.needsLights&&Ze.lightsStateVersion!==Oi.state.version||Ze.outputColorSpace!==Ve||ce.isBatchedMesh&&Ze.batching===!1||!ce.isBatchedMesh&&Ze.batching===!0||ce.isBatchedMesh&&Ze.batchingColor===!0&&ce.colorTexture===null||ce.isBatchedMesh&&Ze.batchingColor===!1&&ce.colorTexture!==null||ce.isInstancedMesh&&Ze.instancing===!1||!ce.isInstancedMesh&&Ze.instancing===!0||ce.isSkinnedMesh&&Ze.skinning===!1||!ce.isSkinnedMesh&&Ze.skinning===!0||ce.isInstancedMesh&&Ze.instancingColor===!0&&ce.instanceColor===null||ce.isInstancedMesh&&Ze.instancingColor===!1&&ce.instanceColor!==null||ce.isInstancedMesh&&Ze.instancingMorph===!0&&ce.morphTexture===null||ce.isInstancedMesh&&Ze.instancingMorph===!1&&ce.morphTexture!==null||Ze.envMap!==De||ge.fog===!0&&Ze.fog!==Ce||Ze.numClippingPlanes!==void 0&&(Ze.numClippingPlanes!==xe.numPlanes||Ze.numIntersection!==xe.numIntersection)||Ze.vertexAlphas!==it||Ze.vertexTangents!==st||Ze.morphTargets!==Je||Ze.morphNormals!==Tt||Ze.morphColors!==Dt||Ze.toneMapping!==gi||Ze.morphTargetsCount!==Mt)&&(Nt=!0):(Nt=!0,Ze.__version=ge.version);let Zn=Ze.currentProgram;Nt===!0&&(Zn=mn(ge,oe,ce));let ho=!1,En=!1,lc=!1;const Jt=Zn.getUniforms(),Un=Ze.uniforms;if(K.useProgram(Zn.program)&&(ho=!0,En=!0,lc=!0),ge.id!==k&&(k=ge.id,En=!0),ho||$!==J){K.buffers.depth.getReversed()?(m.copy(J.projectionMatrix),QM(m),qM(m),Jt.setValue(O,"projectionMatrix",m)):Jt.setValue(O,"projectionMatrix",J.projectionMatrix),Jt.setValue(O,"viewMatrix",J.matrixWorldInverse);const An=Jt.map.cameraPosition;An!==void 0&&An.setValue(O,S.setFromMatrixPosition(J.matrixWorld)),te.logarithmicDepthBuffer&&Jt.setValue(O,"logDepthBufFC",2/(Math.log(J.far+1)/Math.LN2)),(ge.isMeshPhongMaterial||ge.isMeshToonMaterial||ge.isMeshLambertMaterial||ge.isMeshBasicMaterial||ge.isMeshStandardMaterial||ge.isShaderMaterial)&&Jt.setValue(O,"isOrthographic",J.isOrthographicCamera===!0),$!==J&&($=J,En=!0,lc=!0)}if(ce.isSkinnedMesh){Jt.setOptional(O,ce,"bindMatrix"),Jt.setOptional(O,ce,"bindMatrixInverse");const en=ce.skeleton;en&&(en.boneTexture===null&&en.computeBoneTexture(),Jt.setValue(O,"boneTexture",en.boneTexture,j))}ce.isBatchedMesh&&(Jt.setOptional(O,ce,"batchingTexture"),Jt.setValue(O,"batchingTexture",ce._matricesTexture,j),Jt.setOptional(O,ce,"batchingIdTexture"),Jt.setValue(O,"batchingIdTexture",ce._indirectTexture,j),Jt.setOptional(O,ce,"batchingColorTexture"),ce._colorsTexture!==null&&Jt.setValue(O,"batchingColorTexture",ce._colorsTexture,j));const Fn=pe.morphAttributes;if((Fn.position!==void 0||Fn.normal!==void 0||Fn.color!==void 0)&&Fe.update(ce,pe,Zn),(En||Ze.receiveShadow!==ce.receiveShadow)&&(Ze.receiveShadow=ce.receiveShadow,Jt.setValue(O,"receiveShadow",ce.receiveShadow)),ge.isMeshGouraudMaterial&&ge.envMap!==null&&(Un.envMap.value=De,Un.flipEnvMap.value=De.isCubeTexture&&De.isRenderTargetTexture===!1?-1:1),ge.isMeshStandardMaterial&&ge.envMap===null&&oe.environment!==null&&(Un.envMapIntensity.value=oe.environmentIntensity),En&&(Jt.setValue(O,"toneMappingExposure",R.toneMappingExposure),Ze.needsLights&&lu(Un,lc),Ce&&ge.fog===!0&&Re.refreshFogUniforms(Un,Ce),Re.refreshMaterialUniforms(Un,ge,I,ee,x.state.transmissionRenderTarget[J.id]),Pd.upload(O,ac(Ze),Un,j)),ge.isShaderMaterial&&ge.uniformsNeedUpdate===!0&&(Pd.upload(O,ac(Ze),Un,j),ge.uniformsNeedUpdate=!1),ge.isSpriteMaterial&&Jt.setValue(O,"center",ce.center),Jt.setValue(O,"modelViewMatrix",ce.modelViewMatrix),Jt.setValue(O,"normalMatrix",ce.normalMatrix),Jt.setValue(O,"modelMatrix",ce.matrixWorld),ge.isShaderMaterial||ge.isRawShaderMaterial){const en=ge.uniformsGroups;for(let An=0,cp=en.length;An<cp;An++){const na=en[An];ne.update(na,Zn),ne.bind(na,Zn)}}return Zn}function lu(J,oe){J.ambientLightColor.needsUpdate=oe,J.lightProbe.needsUpdate=oe,J.directionalLights.needsUpdate=oe,J.directionalLightShadows.needsUpdate=oe,J.pointLights.needsUpdate=oe,J.pointLightShadows.needsUpdate=oe,J.spotLights.needsUpdate=oe,J.spotLightShadows.needsUpdate=oe,J.rectAreaLights.needsUpdate=oe,J.hemisphereLights.needsUpdate=oe}function lp(J){return J.isMeshLambertMaterial||J.isMeshToonMaterial||J.isMeshPhongMaterial||J.isMeshStandardMaterial||J.isShadowMaterial||J.isShaderMaterial&&J.lights===!0}this.getActiveCubeFace=function(){return G},this.getActiveMipmapLevel=function(){return U},this.getRenderTarget=function(){return H},this.setRenderTargetTextures=function(J,oe,pe){de.get(J.texture).__webglTexture=oe,de.get(J.depthTexture).__webglTexture=pe;const ge=de.get(J);ge.__hasExternalTextures=!0,ge.__autoAllocateDepthBuffer=pe===void 0,ge.__autoAllocateDepthBuffer||Y.has("WEBGL_multisampled_render_to_texture")===!0&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),ge.__useRenderToTexture=!1)},this.setRenderTargetFramebuffer=function(J,oe){const pe=de.get(J);pe.__webglFramebuffer=oe,pe.__useDefaultFramebuffer=oe===void 0};const Ye=O.createFramebuffer();this.setRenderTarget=function(J,oe=0,pe=0){H=J,G=oe,U=pe;let ge=!0,ce=null,Ce=!1,ke=!1;if(J){const De=de.get(J);if(De.__useDefaultFramebuffer!==void 0)K.bindFramebuffer(O.FRAMEBUFFER,null),ge=!1;else if(De.__webglFramebuffer===void 0)j.setupRenderTarget(J);else if(De.__hasExternalTextures)j.rebindTextures(J,de.get(J.texture).__webglTexture,de.get(J.depthTexture).__webglTexture);else if(J.depthBuffer){const Je=J.depthTexture;if(De.__boundDepthTexture!==Je){if(Je!==null&&de.has(Je)&&(J.width!==Je.image.width||J.height!==Je.image.height))throw new Error("WebGLRenderTarget: Attached DepthTexture is initialized to the incorrect size.");j.setupDepthRenderbuffer(J)}}const it=J.texture;(it.isData3DTexture||it.isDataArrayTexture||it.isCompressedArrayTexture)&&(ke=!0);const st=de.get(J).__webglFramebuffer;J.isWebGLCubeRenderTarget?(Array.isArray(st[oe])?ce=st[oe][pe]:ce=st[oe],Ce=!0):J.samples>0&&j.useMultisampledRTT(J)===!1?ce=de.get(J).__webglMultisampledFramebuffer:Array.isArray(st)?ce=st[pe]:ce=st,Q.copy(J.viewport),Z.copy(J.scissor),X=J.scissorTest}else Q.copy(N).multiplyScalar(I).floor(),Z.copy(n).multiplyScalar(I).floor(),X=r;if(pe!==0&&(ce=Ye),K.bindFramebuffer(O.FRAMEBUFFER,ce)&&ge&&K.drawBuffers(J,ce),K.viewport(Q),K.scissor(Z),K.setScissorTest(X),Ce){const De=de.get(J.texture);O.framebufferTexture2D(O.FRAMEBUFFER,O.COLOR_ATTACHMENT0,O.TEXTURE_CUBE_MAP_POSITIVE_X+oe,De.__webglTexture,pe)}else if(ke){const De=de.get(J.texture),it=oe;O.framebufferTextureLayer(O.FRAMEBUFFER,O.COLOR_ATTACHMENT0,De.__webglTexture,pe,it)}else if(J!==null&&pe!==0){const De=de.get(J.texture);O.framebufferTexture2D(O.FRAMEBUFFER,O.COLOR_ATTACHMENT0,O.TEXTURE_2D,De.__webglTexture,pe)}k=-1},this.readRenderTargetPixels=function(J,oe,pe,ge,ce,Ce,ke){if(!(J&&J.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Ve=de.get(J).__webglFramebuffer;if(J.isWebGLCubeRenderTarget&&ke!==void 0&&(Ve=Ve[ke]),Ve){K.bindFramebuffer(O.FRAMEBUFFER,Ve);try{const De=J.texture,it=De.format,st=De.type;if(!te.textureFormatReadable(it)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!te.textureTypeReadable(st)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}oe>=0&&oe<=J.width-ge&&pe>=0&&pe<=J.height-ce&&O.readPixels(oe,pe,ge,ce,Ke.convert(it),Ke.convert(st),Ce)}finally{const De=H!==null?de.get(H).__webglFramebuffer:null;K.bindFramebuffer(O.FRAMEBUFFER,De)}}},this.readRenderTargetPixelsAsync=async function(J,oe,pe,ge,ce,Ce,ke){if(!(J&&J.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let Ve=de.get(J).__webglFramebuffer;if(J.isWebGLCubeRenderTarget&&ke!==void 0&&(Ve=Ve[ke]),Ve){const De=J.texture,it=De.format,st=De.type;if(!te.textureFormatReadable(it))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!te.textureTypeReadable(st))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");if(oe>=0&&oe<=J.width-ge&&pe>=0&&pe<=J.height-ce){K.bindFramebuffer(O.FRAMEBUFFER,Ve);const Je=O.createBuffer();O.bindBuffer(O.PIXEL_PACK_BUFFER,Je),O.bufferData(O.PIXEL_PACK_BUFFER,Ce.byteLength,O.STREAM_READ),O.readPixels(oe,pe,ge,ce,Ke.convert(it),Ke.convert(st),0);const Tt=H!==null?de.get(H).__webglFramebuffer:null;K.bindFramebuffer(O.FRAMEBUFFER,Tt);const Dt=O.fenceSync(O.SYNC_GPU_COMMANDS_COMPLETE,0);return O.flush(),await VM(O,Dt,4),O.bindBuffer(O.PIXEL_PACK_BUFFER,Je),O.getBufferSubData(O.PIXEL_PACK_BUFFER,0,Ce),O.deleteBuffer(Je),O.deleteSync(Dt),Ce}else throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")}},this.copyFramebufferToTexture=function(J,oe=null,pe=0){J.isTexture!==!0&&(Yo("WebGLRenderer: copyFramebufferToTexture function signature has changed."),oe=arguments[0]||null,J=arguments[1]);const ge=Math.pow(2,-pe),ce=Math.floor(J.image.width*ge),Ce=Math.floor(J.image.height*ge),ke=oe!==null?oe.x:0,Ve=oe!==null?oe.y:0;j.setTexture2D(J,0),O.copyTexSubImage2D(O.TEXTURE_2D,pe,0,0,ke,Ve,ce,Ce),K.unbindTexture()};const le=O.createFramebuffer(),Be=O.createFramebuffer();this.copyTextureToTexture=function(J,oe,pe=null,ge=null,ce=0,Ce=null){J.isTexture!==!0&&(Yo("WebGLRenderer: copyTextureToTexture function signature has changed."),ge=arguments[0]||null,J=arguments[1],oe=arguments[2],Ce=arguments[3]||0,pe=null),Ce===null&&(ce!==0?(Yo("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."),Ce=ce,ce=0):Ce=0);let ke,Ve,De,it,st,Je,Tt,Dt,gi;const ai=J.isCompressedTexture?J.mipmaps[Ce]:J.image;if(pe!==null)ke=pe.max.x-pe.min.x,Ve=pe.max.y-pe.min.y,De=pe.isBox3?pe.max.z-pe.min.z:1,it=pe.min.x,st=pe.min.y,Je=pe.isBox3?pe.min.z:0;else{const Fn=Math.pow(2,-ce);ke=Math.floor(ai.width*Fn),Ve=Math.floor(ai.height*Fn),J.isDataArrayTexture?De=ai.depth:J.isData3DTexture?De=Math.floor(ai.depth*Fn):De=1,it=0,st=0,Je=0}ge!==null?(Tt=ge.x,Dt=ge.y,gi=ge.z):(Tt=0,Dt=0,gi=0);const Mt=Ke.convert(oe.format),Ze=Ke.convert(oe.type);let Oi;oe.isData3DTexture?(j.setTexture3D(oe,0),Oi=O.TEXTURE_3D):oe.isDataArrayTexture||oe.isCompressedArrayTexture?(j.setTexture2DArray(oe,0),Oi=O.TEXTURE_2D_ARRAY):(j.setTexture2D(oe,0),Oi=O.TEXTURE_2D),O.pixelStorei(O.UNPACK_FLIP_Y_WEBGL,oe.flipY),O.pixelStorei(O.UNPACK_PREMULTIPLY_ALPHA_WEBGL,oe.premultiplyAlpha),O.pixelStorei(O.UNPACK_ALIGNMENT,oe.unpackAlignment);const Nt=O.getParameter(O.UNPACK_ROW_LENGTH),Zn=O.getParameter(O.UNPACK_IMAGE_HEIGHT),ho=O.getParameter(O.UNPACK_SKIP_PIXELS),En=O.getParameter(O.UNPACK_SKIP_ROWS),lc=O.getParameter(O.UNPACK_SKIP_IMAGES);O.pixelStorei(O.UNPACK_ROW_LENGTH,ai.width),O.pixelStorei(O.UNPACK_IMAGE_HEIGHT,ai.height),O.pixelStorei(O.UNPACK_SKIP_PIXELS,it),O.pixelStorei(O.UNPACK_SKIP_ROWS,st),O.pixelStorei(O.UNPACK_SKIP_IMAGES,Je);const Jt=J.isDataArrayTexture||J.isData3DTexture,Un=oe.isDataArrayTexture||oe.isData3DTexture;if(J.isDepthTexture){const Fn=de.get(J),en=de.get(oe),An=de.get(Fn.__renderTarget),cp=de.get(en.__renderTarget);K.bindFramebuffer(O.READ_FRAMEBUFFER,An.__webglFramebuffer),K.bindFramebuffer(O.DRAW_FRAMEBUFFER,cp.__webglFramebuffer);for(let na=0;na<De;na++)Jt&&(O.framebufferTextureLayer(O.READ_FRAMEBUFFER,O.COLOR_ATTACHMENT0,de.get(J).__webglTexture,ce,Je+na),O.framebufferTextureLayer(O.DRAW_FRAMEBUFFER,O.COLOR_ATTACHMENT0,de.get(oe).__webglTexture,Ce,gi+na)),O.blitFramebuffer(it,st,ke,Ve,Tt,Dt,ke,Ve,O.DEPTH_BUFFER_BIT,O.NEAREST);K.bindFramebuffer(O.READ_FRAMEBUFFER,null),K.bindFramebuffer(O.DRAW_FRAMEBUFFER,null)}else if(ce!==0||J.isRenderTargetTexture||de.has(J)){const Fn=de.get(J),en=de.get(oe);K.bindFramebuffer(O.READ_FRAMEBUFFER,le),K.bindFramebuffer(O.DRAW_FRAMEBUFFER,Be);for(let An=0;An<De;An++)Jt?O.framebufferTextureLayer(O.READ_FRAMEBUFFER,O.COLOR_ATTACHMENT0,Fn.__webglTexture,ce,Je+An):O.framebufferTexture2D(O.READ_FRAMEBUFFER,O.COLOR_ATTACHMENT0,O.TEXTURE_2D,Fn.__webglTexture,ce),Un?O.framebufferTextureLayer(O.DRAW_FRAMEBUFFER,O.COLOR_ATTACHMENT0,en.__webglTexture,Ce,gi+An):O.framebufferTexture2D(O.DRAW_FRAMEBUFFER,O.COLOR_ATTACHMENT0,O.TEXTURE_2D,en.__webglTexture,Ce),ce!==0?O.blitFramebuffer(it,st,ke,Ve,Tt,Dt,ke,Ve,O.COLOR_BUFFER_BIT,O.NEAREST):Un?O.copyTexSubImage3D(Oi,Ce,Tt,Dt,gi+An,it,st,ke,Ve):O.copyTexSubImage2D(Oi,Ce,Tt,Dt,it,st,ke,Ve);K.bindFramebuffer(O.READ_FRAMEBUFFER,null),K.bindFramebuffer(O.DRAW_FRAMEBUFFER,null)}else Un?J.isDataTexture||J.isData3DTexture?O.texSubImage3D(Oi,Ce,Tt,Dt,gi,ke,Ve,De,Mt,Ze,ai.data):oe.isCompressedArrayTexture?O.compressedTexSubImage3D(Oi,Ce,Tt,Dt,gi,ke,Ve,De,Mt,ai.data):O.texSubImage3D(Oi,Ce,Tt,Dt,gi,ke,Ve,De,Mt,Ze,ai):J.isDataTexture?O.texSubImage2D(O.TEXTURE_2D,Ce,Tt,Dt,ke,Ve,Mt,Ze,ai.data):J.isCompressedTexture?O.compressedTexSubImage2D(O.TEXTURE_2D,Ce,Tt,Dt,ai.width,ai.height,Mt,ai.data):O.texSubImage2D(O.TEXTURE_2D,Ce,Tt,Dt,ke,Ve,Mt,Ze,ai);O.pixelStorei(O.UNPACK_ROW_LENGTH,Nt),O.pixelStorei(O.UNPACK_IMAGE_HEIGHT,Zn),O.pixelStorei(O.UNPACK_SKIP_PIXELS,ho),O.pixelStorei(O.UNPACK_SKIP_ROWS,En),O.pixelStorei(O.UNPACK_SKIP_IMAGES,lc),Ce===0&&oe.generateMipmaps&&O.generateMipmap(Oi),K.unbindTexture()},this.copyTextureToTexture3D=function(J,oe,pe=null,ge=null,ce=0){return J.isTexture!==!0&&(Yo("WebGLRenderer: copyTextureToTexture3D function signature has changed."),pe=arguments[0]||null,ge=arguments[1]||null,J=arguments[2],oe=arguments[3],ce=arguments[4]||0),Yo('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'),this.copyTextureToTexture(J,oe,pe,ge,ce)},this.initRenderTarget=function(J){de.get(J).__webglFramebuffer===void 0&&j.setupRenderTarget(J)},this.initTexture=function(J){J.isCubeTexture?j.setTextureCube(J,0):J.isData3DTexture?j.setTexture3D(J,0):J.isDataArrayTexture||J.isCompressedArrayTexture?j.setTexture2DArray(J,0):j.setTexture2D(J,0),K.unbindTexture()},this.resetState=function(){G=0,U=0,H=null,K.reset(),gt.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return ar}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorspace=xt._getDrawingBufferColorSpace(e),t.unpackColorSpace=xt._getUnpackColorSpace()}}/**
|
|
3891
3891
|
* @license
|
|
3892
3892
|
* Copyright 2017 Google LLC
|
|
3893
3893
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3894
3894
|
*/const c_=globalThis,df=c_.trustedTypes,Sb=df?df.createPolicy("lit-html",{createHTML:o=>o}):void 0,o1="$lit$",Lr=`lit$${Math.random().toFixed(9).slice(2)}$`,l1="?"+Lr,VD=`<${l1}>`,Ja=document,Ph=()=>Ja.createComment(""),Lh=o=>o===null||typeof o!="object"&&typeof o!="function",h_=Array.isArray,QD=o=>h_(o)||typeof o?.[Symbol.iterator]=="function",Xp=`[
|
|
3895
3895
|
\f\r]`,yc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cb=/-->/g,Tb=/>/g,ua=RegExp(`>|${Xp}(?:([^\\s"'>=/]+)(${Xp}*=${Xp}*(?:[^
|
|
3896
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ib=/'/g,Mb=/"/g,c1=/^(?:script|style|textarea|title)$/i,qD=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),Ee=qD(1),Xr=Symbol.for("lit-noChange")
|
|
3896
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ib=/'/g,Mb=/"/g,c1=/^(?:script|style|textarea|title)$/i,qD=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),Ee=qD(1),Xr=Symbol.for("lit-noChange"),Ue=Symbol.for("lit-nothing"),Rb=new WeakMap,Oa=Ja.createTreeWalker(Ja,129);function h1(o,e){if(!h_(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Sb!==void 0?Sb.createHTML(e):e}const jD=(o,e)=>{const t=o.length-1,i=[];let a,l=e===2?"<svg>":e===3?"<math>":"",h=yc;for(let d=0;d<t;d++){const p=o[d];let g,A,_=-1,b=0;for(;b<p.length&&(h.lastIndex=b,A=h.exec(p),A!==null);)b=h.lastIndex,h===yc?A[1]==="!--"?h=Cb:A[1]!==void 0?h=Tb:A[2]!==void 0?(c1.test(A[2])&&(a=RegExp("</"+A[2],"g")),h=ua):A[3]!==void 0&&(h=ua):h===ua?A[0]===">"?(h=a??yc,_=-1):A[1]===void 0?_=-2:(_=h.lastIndex-A[2].length,g=A[1],h=A[3]===void 0?ua:A[3]==='"'?Mb:Ib):h===Mb||h===Ib?h=ua:h===Cb||h===Tb?h=yc:(h=ua,a=void 0);const w=h===ua&&o[d+1].startsWith("/>")?" ":"";l+=h===yc?p+VD:_>=0?(i.push(g),p.slice(0,_)+o1+p.slice(_)+Lr+w):p+Lr+(_===-2?d:w)}return[h1(o,l+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class Dh{constructor({strings:e,_$litType$:t},i){let a;this.parts=[];let l=0,h=0;const d=e.length-1,p=this.parts,[g,A]=jD(e,t);if(this.el=Dh.createElement(g,i),Oa.currentNode=this.el.content,t===2||t===3){const _=this.el.content.firstChild;_.replaceWith(..._.childNodes)}for(;(a=Oa.nextNode())!==null&&p.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(const _ of a.getAttributeNames())if(_.endsWith(o1)){const b=A[h++],w=a.getAttribute(_).split(Lr),E=/([.?@])?(.*)/.exec(b);p.push({type:1,index:l,name:E[2],strings:w,ctor:E[1]==="."?YD:E[1]==="?"?XD:E[1]==="@"?KD:Vf}),a.removeAttribute(_)}else _.startsWith(Lr)&&(p.push({type:6,index:l}),a.removeAttribute(_));if(c1.test(a.tagName)){const _=a.textContent.split(Lr),b=_.length-1;if(b>0){a.textContent=df?df.emptyScript:"";for(let w=0;w<b;w++)a.append(_[w],Ph()),Oa.nextNode(),p.push({type:2,index:++l});a.append(_[b],Ph())}}}else if(a.nodeType===8)if(a.data===l1)p.push({type:2,index:l});else{let _=-1;for(;(_=a.data.indexOf(Lr,_+1))!==-1;)p.push({type:7,index:l}),_+=Lr.length-1}l++}}static createElement(e,t){const i=Ja.createElement("template");return i.innerHTML=e,i}}function Bl(o,e,t=o,i){if(e===Xr)return e;let a=i!==void 0?t._$Co?.[i]:t._$Cl;const l=Lh(e)?void 0:e._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),l===void 0?a=void 0:(a=new l(o),a._$AT(o,t,i)),i!==void 0?(t._$Co??=[])[i]=a:t._$Cl=a),a!==void 0&&(e=Bl(o,a._$AS(o,e.values),a,i)),e}class WD{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:i}=this._$AD,a=(e?.creationScope??Ja).importNode(t,!0);Oa.currentNode=a;let l=Oa.nextNode(),h=0,d=0,p=i[0];for(;p!==void 0;){if(h===p.index){let g;p.type===2?g=new u_(l,l.nextSibling,this,e):p.type===1?g=new p.ctor(l,p.name,p.strings,this,e):p.type===6&&(g=new JD(l,this,e)),this._$AV.push(g),p=i[++d]}h!==p?.index&&(l=Oa.nextNode(),h++)}return Oa.currentNode=Ja,a}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}let u_=class u1{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,a){this.type=2,this._$AH=Ue,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Bl(this,e,t),Lh(e)?e===Ue||e==null||e===""?(this._$AH!==Ue&&this._$AR(),this._$AH=Ue):e!==this._$AH&&e!==Xr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):QD(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Ue&&Lh(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ja.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:i}=e,a=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Dh.createElement(h1(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===a)this._$AH.p(t);else{const l=new WD(a,this),h=l.u(this.options);l.p(t),this.T(h),this._$AH=l}}_$AC(e){let t=Rb.get(e.strings);return t===void 0&&Rb.set(e.strings,t=new Dh(e)),t}k(e){h_(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,a=0;for(const l of e)a===t.length?t.push(i=new u1(this.O(Ph()),this.O(Ph()),this,this.options)):i=t[a],i._$AI(l),a++;a<t.length&&(this._$AR(i&&i._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}};class Vf{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,a,l){this.type=1,this._$AH=Ue,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=l,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ue}_$AI(e,t=this,i,a){const l=this.strings;let h=!1;if(l===void 0)e=Bl(this,e,t,0),h=!Lh(e)||e!==this._$AH&&e!==Xr,h&&(this._$AH=e);else{const d=e;let p,g;for(e=l[0],p=0;p<l.length-1;p++)g=Bl(this,d[i+p],t,p),g===Xr&&(g=this._$AH[p]),h||=!Lh(g)||g!==this._$AH[p],g===Ue?e=Ue:e!==Ue&&(e+=(g??"")+l[p+1]),this._$AH[p]=g}h&&!a&&this.j(e)}j(e){e===Ue?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class YD extends Vf{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ue?void 0:e}}let XD=class extends Vf{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ue)}};class KD extends Vf{constructor(e,t,i,a,l){super(e,t,i,a,l),this.type=5}_$AI(e,t=this){if((e=Bl(this,e,t,0)??Ue)===Xr)return;const i=this._$AH,a=e===Ue&&i!==Ue||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,l=e!==Ue&&(i===Ue||a);a&&this.element.removeEventListener(this.name,this,i),l&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class JD{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Bl(this,e)}}const ZD=c_.litHtmlPolyfillSupport;ZD?.(Dh,u_),(c_.litHtmlVersions??=[]).push("3.3.1");const d1=(o,e,t)=>{const i=t?.renderBefore??e;let a=i._$litPart$;if(a===void 0){const l=t?.renderBefore??null;i._$litPart$=a=new u_(e.insertBefore(Ph(),l),l,void 0,t??{})}return a._$AI(o),a};/**
|
|
3897
3897
|
* @license
|
|
3898
3898
|
* Copyright 2017 Google LLC
|
|
3899
3899
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -4163,7 +4163,7 @@ ${l.join(`
|
|
|
4163
4163
|
}`};function Vu(o,e,t){let i=t;const a=new se;return o.updateWorldMatrix(!0,!0),o.traverseVisible(l=>{const{geometry:h}=l;if(h!==void 0){const{position:d}=h.attributes;if(d!==void 0)for(let p=0,g=d.count;p<g;p++)l.isMesh?l.getVertexPosition(p,a):a.fromBufferAttribute(d,p),l.isSkinnedMesh||a.applyMatrix4(l.matrixWorld),i=e(i,a)}}),i}function MU(o){const e=new Map,t=new Map,i=o.clone();return gC(o,i,function(a,l){e.set(l,a),t.set(a,l)}),i.traverse(function(a){if(!a.isSkinnedMesh)return;const l=a,h=e.get(a),d=h.skeleton.bones;l.skeleton=h.skeleton.clone(),l.bindMatrix.copy(h.bindMatrix),l.skeleton.bones=d.map(function(p){return t.get(p)}),l.bind(l.skeleton,l.bindMatrix)}),i}function gC(o,e,t){t(o,e);for(let i=0;i<o.children.length;i++)gC(o.children[i],e.children[i],t)}class RU{constructor(e,t,i,a,l){this.xrLight=e,this.renderer=t,this.lightProbe=i,this.xrWebGLBinding=null,this.estimationStartCallback=l,this.frameCallback=this.onXRFrame.bind(this);const h=t.xr.getSession();if(a&&"XRWebGLBinding"in window){const d=new Y0(16);e.environment=d.texture;const p=t.getContext();switch(h.preferredReflectionFormat){case"srgba8":p.getExtension("EXT_sRGB");break;case"rgba16f":p.getExtension("OES_texture_half_float");break}this.xrWebGLBinding=new XRWebGLBinding(h,p),this.lightProbe.addEventListener("reflectionchange",()=>{this.updateReflection()})}h.requestAnimationFrame(this.frameCallback)}updateReflection(){const e=this.renderer.properties.get(this.xrLight.environment);if(e){const t=this.xrWebGLBinding.getReflectionCubeMap(this.lightProbe);t&&(e.__webglTexture=t,this.xrLight.environment.needsPMREMUpdate=!0)}}onXRFrame(e,t){if(!this.xrLight)return;t.session.requestAnimationFrame(this.frameCallback);const a=t.getLightEstimate(this.lightProbe);if(a){this.xrLight.lightProbe.sh.fromArray(a.sphericalHarmonicsCoefficients),this.xrLight.lightProbe.intensity=1;const l=Math.max(1,Math.max(a.primaryLightIntensity.x,Math.max(a.primaryLightIntensity.y,a.primaryLightIntensity.z)));this.xrLight.directionalLight.color.setRGB(a.primaryLightIntensity.x/l,a.primaryLightIntensity.y/l,a.primaryLightIntensity.z/l),this.xrLight.directionalLight.intensity=l,this.xrLight.directionalLight.position.copy(a.primaryLightDirection),this.estimationStartCallback&&(this.estimationStartCallback(),this.estimationStartCallback=null)}}dispose(){this.xrLight=null,this.renderer=null,this.lightProbe=null,this.xrWebGLBinding=null}}class BU extends li{constructor(e,t=!0){super(),this.lightProbe=new qR,this.lightProbe.intensity=0,this.add(this.lightProbe),this.directionalLight=new s_,this.directionalLight.intensity=0,this.add(this.directionalLight),this.environment=null;let i=null,a=!1;e.xr.addEventListener("sessionstart",()=>{const l=e.xr.getSession();"requestLightProbe"in l&&l.requestLightProbe({reflectionFormat:l.preferredReflectionFormat}).then(h=>{i=new RU(this,e,h,t,()=>{a=!0,this.dispatchEvent({type:"estimationstart"})})})}),e.xr.addEventListener("sessionend",()=>{i&&(i.dispose(),i=null),a&&this.dispatchEvent({type:"estimationend"})}),this.dispose=()=>{i&&(i.dispose(),i=null),this.remove(this.lightProbe),this.lightProbe=null,this.remove(this.directionalLight),this.directionalLight=null,this.environment=null}}}class PU{constructor({scene:e,targetRenderer:t,settings:i}){this.__enabled=!0,this.__settings={},this.__shadowState={shadow:{blur:4,darkness:.6,opacity:1},plane:{color:"#ffffff",opacity:0},showWireframe:!1},this.__blurPlane={},this.__renderTarget={},this.__renderTargetBlur={},this.__shadowCamera={},this.__depthMaterial={},this.__horizontalBlurMaterial={},this.__verticalBlurMaterial={},this.__planeMaterial={},this.__scene=e,this.__targetRenderer=t,this.__settings=i,this.__shadowState.shadow.opacity=this.__settings.intensity,this.__shadowState.shadow.blur=this.__settings.softness,this.__planeMaterial.opacity=this.__settings.intensity,this.__planeMaterial.needsUpdate=!0,this.setup()}isEnabled(){return this.__enabled}enable(){this.__enabled=!0}disable(){this.__enabled=!1}updateSettings(e){this.__settings=e,this.updateShadowIntensity(),this.updateShadowSoftness()}updateShadowSoftness(){this.__shadowState.shadow.blur=this.__settings.softness}updateShadowIntensity(){this.__shadowState.shadow.opacity=this.__settings.intensity,this.__planeMaterial.opacity=this.__settings.intensity,this.__planeMaterial.needsUpdate=!0}__blurShadow(e){this.__blurPlane.visible=!0,this.__blurPlane.material=this.__horizontalBlurMaterial,this.__blurPlane.material.uniforms.tDiffuse.value=this.__renderTarget.texture,this.__horizontalBlurMaterial.uniforms.h.value=e*1/256,this.__targetRenderer.setRenderTarget(this.__renderTargetBlur),this.__targetRenderer.render(this.__blurPlane,this.__shadowCamera),this.__blurPlane.material=this.__verticalBlurMaterial,this.__blurPlane.material.uniforms.tDiffuse.value=this.__renderTargetBlur.texture,this.__verticalBlurMaterial.uniforms.v.value=e*1/256,this.__targetRenderer.setRenderTarget(this.__renderTarget),this.__targetRenderer.render(this.__blurPlane,this.__shadowCamera),this.__blurPlane.visible=!1}setup(){if(!this.__enabled)return;const{planeLength:e,planeWidth:t,cameraHeight:i}=this.__settings,a=e,l=t,h=i,d=new li;d.position.y=0,this.__scene.add(d),this.__renderTarget=new Gi(512,512),this.__renderTarget.texture.generateMipmaps=!1,this.__renderTargetBlur=new Gi(512,512),this.__renderTargetBlur.texture.generateMipmaps=!1;const p=new gs(l,a).rotateX(Math.PI/2);this.__planeMaterial=new wi({map:this.__renderTarget.texture,opacity:this.__shadowState.shadow.opacity,transparent:!0,depthWrite:!1});const g=new ot(p,this.__planeMaterial);g.renderOrder=1,d.add(g),g.scale.y=-1,this.__blurPlane=new ot(p),this.__blurPlane.visible=!1,d.add(this.__blurPlane);const A=new wi({color:this.__shadowState.plane.color,opacity:this.__shadowState.plane.opacity,transparent:!0,depthWrite:!1}),_=new ot(p,A);_.rotateX(Math.PI),d.add(_),this.__shadowCamera=new ea(-l/2,l/2,a/2,-a/2,0,h),this.__shadowCamera.rotation.x=Math.PI/2,d.add(this.__shadowCamera),this.__depthMaterial=new t_,this.__depthMaterial.userData.darkness={value:this.__shadowState.shadow.darkness},this.__depthMaterial.onBeforeCompile=b=>{b.uniforms.darkness=this.__depthMaterial.userData.darkness,b.fragmentShader=`
|
|
4164
4164
|
uniform float darkness;
|
|
4165
4165
|
${b.fragmentShader.replace("gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );","gl_FragColor = vec4( vec3( 0.0 ), ( 1.0 - fragCoordZ ) * darkness );")}
|
|
4166
|
-
`},this.__depthMaterial.depthTest=!1,this.__depthMaterial.depthWrite=!1,this.__horizontalBlurMaterial=new Ni(fC),this.__horizontalBlurMaterial.depthTest=!1,this.__verticalBlurMaterial=new Ni(pC),this.__verticalBlurMaterial.depthTest=!1}reCalculate(){const e=this.__scene.background;this.__scene.background=null,this.__scene.overrideMaterial=this.__depthMaterial;const t=this.__targetRenderer.getClearAlpha();this.__targetRenderer.setClearAlpha(0),this.__targetRenderer.setRenderTarget(this.__renderTarget),this.__targetRenderer.render(this.__scene,this.__shadowCamera),this.__scene.overrideMaterial=null,this.__blurShadow(this.__shadowState.shadow.blur),this.__blurShadow(this.__shadowState.shadow.blur*.4),this.__targetRenderer.setRenderTarget(null),this.__targetRenderer.setClearAlpha(t),this.__scene.background=e}}class Et{static isTouchDevice(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}static async wait(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}static generateStylesDomElem(e,t=""){const i=document.createElement("style");return i.setAttribute("id",e),i.innerHTML=t,i}static generateHtmlDivElem(e,t=""){const i=document.createElement("div");return i.setAttribute("id",e),i.innerHTML=t,i}static getRandomIntegerInRange(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e}static getUrlParameterByName(e,t=window.location.search){const i=new URLSearchParams(t);return Object.fromEntries(i.entries())[e]}static getBaseUrl(){const e=Et.getUrlParameterByName("parentUrl");return e||window.location.href}static normalizeRadian(e){return Math.atan2(Math.sin(e),Math.cos(e))}static isBetweenOnCircle(e,t,i){return e=Et.normalizeRadian(e),t=Et.normalizeRadian(t),i=Et.normalizeRadian(i),t<=i?e>=t&&e<=i:e>=t||e<=i}static getPointInBetweenByPercentage(e,t,i){let a=t.clone().sub(e);const l=a.length();return a=a.normalize().multiplyScalar(l*i),e.clone().add(a)}static clampAzimuth(e,t,i){if(Math.abs(t)==1/0||i==1/0)return e;const a=Et.normalizeRadian(e),l=Et.normalizeRadian(t),h=Et.normalizeRadian(i);if(Et.isBetweenOnCircle(a,l,h))return a;const d=Math.abs(Et.normalizeRadian(a-l)),p=Math.abs(Et.normalizeRadian(a-h));return d<p?l:h}static resolveNexusEndpoint(e){let t=Cd.PRODUCTION;return e=="local"?t=Cd.LOCAL:e==="staging"&&(t=Cd.STAGING),t}static parseUrlForEpigraphParams(e){const t=new Map,i=new Xm(e);t.set(Ii.epigraphSessionId,i.getParameterInUrl(Ii.epigraphSessionId)),t.set(Ii.identifier,i.getParameterInUrl(Ii.identifier)),t.set(Ii.identifierType,i.getParameterInUrl(Ii.identifierType)),t.set(Ii.type,i.getParameterInUrl(Ii.type));const a=i.getParameterInUrl(Ii.action);return a&&t.set(oh.AR,JSON.parse(a)[oh.AR]),t}static generateShareableUrl({baseUrl:e,identifier:t,identifierType:i,sharedConfig:a,arCompatible:l=!1}){const h=new Map;return h.set(Ii.epigraphSessionId,window.epigraph.epigraphSessionId),h.set(Ii.identifier,t),h.set(Ii.identifierType,i),a&&h.set(Ii.sharedConfig,a),l&&h.set(Ii.action,`{"${oh.AR}":true}`),new Xm(e).generateQrCodeUrl(Object.fromEntries(h.entries()),!1)}static _dispose3(e){e instanceof ot&&e.geometry.dispose(),e instanceof ot&&(Array.isArray(e.material)?e.material.forEach(t=>t.dispose()):e.material.dispose(),e.material?.map?.dispose())}static dispose3(e){e.traverse(t=>{t instanceof ot&&Et._dispose3(t)}),(e instanceof ot||e instanceof Dn)&&Et._dispose3(e)}static animateValue(e,t,i,a){const l=performance.now();function h(d){const p=d-l,g=Math.min(p/i,1),A=e+(t-e)*g;a(A),g<1&&requestAnimationFrame(h)}requestAnimationFrame(h)}static getCustomStylesTemplate(){const t=document.querySelector("#epigraphCustomStyles")?.content?.cloneNode(!0);return t||$e}}class mC{constructor(e){this._success=e}get success(){return this._success}set success(e){this._success=e}get failed(){return!this._success}}class LU extends mC{constructor(e=!1,t=void 0){super(e),this.__payload=t}get payload(){return this.__payload}set payload(e){this.__payload=e}}var AC=(o=>(o.Empty="entity-empty",o.Gltf="entity-mesh",o.Render="entity-render",o.Proxy="entity-proxy",o.Collider="entity-collider",o.Asset="entity-asset",o))(AC||{});class DU extends li{constructor(){super(),this._entityType=AC.Empty}get entityType(){return this._entityType}destroy(){let e;const t=new LU(!1,e);return e=void 0,t.success=!0,t.payload=e,t}}class Cv{constructor(e){this.__name=e}getName(){return this.__name}}class Jr extends Lt{constructor(e){super(),this.epgType="PLUG",this.__connectionId="",this.__isPrimary=!1,this.__receiver=null,this.__debugGeo=null,this.__config=e,this.name=e.name,this.__connectionId=e.connectionId,this.__isPrimary=e.isPrimary;const t=e.position;this.position.set(t.x,t.y,t.z);const i=e.rotation;this.rotation.set(i.x,i.y,i.z)}get config(){return this.__config}get connectionId(){return this.__connectionId}get isPrimary(){return this.__isPrimary}get isOpen(){return this.__receiver===null}get receiver(){return this.__receiver}connect(e){this.__receiver=e.receiver}disconnect(){this.__receiver=null}clone(e){return new Jr(this.__config).copy(this,e)}showDebug(){const e=new se().setFromEuler(this.rotation).normalize(),t=this.position,i=.2,a=16711680;this.__debugGeo=new t1(e,t,i,a,.06,.06);const l=document.createElement("div");l.textContent=this.name;const h=new E_(l);l.style.pointerEvents="none";const d=new se;this.getWorldDirection(d),d.normalize();const p=this.position.clone().addScaledVector(d,Math.random());h.position.set(p.x,p.y,p.z),this.__debugGeo.add(h),this.add(this.__debugGeo)}hideDebug(){this.__debugGeo&&(this.__debugGeo.clear(),this.__debugGeo?.removeFromParent(),Et.dispose3(this.__debugGeo))}}class ur extends Lt{constructor(e){super(),this.epgType="RECEIVER",this.__connectionId="",this.__plug=null,this.__debugGeo=null,this.__config=e,this.name=e.name,this.__connectionId=e.connectionId;const t=e.position;this.position.set(t.x,t.y,t.z);const i=e.rotation;this.rotation.set(i.x,i.y,i.z)}get config(){return this.__config}get connectionId(){return this.__connectionId}get isOpen(){return this.__plug===null}get plug(){return this.__plug}connect(e){this.__plug=e.plug}disconnect(){this.__plug=null}clone(e){return new ur(this.__config).copy(this,e)}showDebug(){const e=new se().setFromEuler(this.rotation.clone()).normalize(),t=this.position,i=.1,a=65280;this.__debugGeo=new t1(e,t,i,a,.01,.08);const l=document.createElement("div");l.textContent=this.name,l.style.color="green";const h=new E_(l);l.style.pointerEvents="none",this.__debugGeo.add(h),this.add(this.__debugGeo)}hideDebug(){this.__debugGeo&&(this.__debugGeo.clear(),this.__debugGeo?.removeFromParent(),Et.dispose3(this.__debugGeo))}}var x_=(o=>(o.Gltf="media-asset-gltf",o.Proxy="media-asset-proxy",o.Render="media-asset-render",o))(x_||{}),JA=(o=>(o.Plug="plug",o.Receiver="receiver",o))(JA||{});class _C{constructor({id:e,uri:t,appWcRef:i}){this._type="media-asset-gltf",this._id=crypto.randomUUID(),this._loadingProgress=0,this._state="declared",this._resource=null,e&&(this._id=e),this._appWcRef=i,this._uri=t}get id(){return this._id}get uri(){return this._uri}get loadingProgress(){return this._loadingProgress}get state(){return this._state}get isLoaded(){return this._state==="loaded"}get type(){return this._type}get resource(){return this._resource}highlight(){}updateLoadingProgress(e){this._loadingProgress=e,this._appWcRef.eventsManager.assetLoadProgress.fire({progress:e})}async load(){if(this._state==="loaded"||this._state==="loading")return Promise.resolve(!0);this._state="loading";const e=await this._appWcRef.loaders.gltfLoader.loadAsync(this._uri,t=>{this.updateLoadingProgress(t.loaded/t.total*100)}).catch(t=>(window.epigraph.logger.groupCollapsed({title:""}),window.epigraph.logger.error({title:"An error occurred while trying to load an asset!",details:t}),this._state="failed",Promise.reject()));return e===void 0?Promise.reject(!1):(this._resource=e,await this._parseLoadedGltf(),this._state="loaded",Promise.resolve(!0))}async _parseLoadedGltf(){window.epigraph.logger.info({title:"Parsing GLTF data",details:this._resource})}unload(){return this._resource={},Promise.resolve(!0)}}class NU extends _C{constructor({id:e,uri:t,appWcRef:i}){super({id:e,uri:t,appWcRef:i}),this._type=x_.Proxy,this.__plugs=[],this.__receivers=[]}get plugs(){return this.__plugs}get receivers(){return this.__receivers}async _parseLoadedGltf(){if(!this._resource?.scene)return;const e=[];this._resource.scene.traverse(t=>{if(t.userData.epgType===JA.Receiver){const i=new ur({name:t.name,connectionId:t.userData.connectionId,position:t.position.clone(),rotation:t.rotation.clone()});this.__receivers.push(i),e.push(t)}else if(t.userData.epgType===JA.Plug){const i=new Jr({name:t.name,isPrimary:t.userData.isPrimary,connectionId:t.userData.connectionId,position:t.position.clone(),rotation:t.rotation.clone()});this.__plugs.push(i),e.push(t)}});for(const t of this.__receivers)this._resource.scene.add(t);for(const t of this.__plugs)this._resource.scene.add(t);for(const t of e)t.removeFromParent(),Et.dispose3(t)}unload(){return this._resource={},this.__plugs=[],this.__receivers=[],Promise.resolve(!0)}}class OU extends _C{constructor({id:e,uri:t,appWcRef:i}){super({id:e,uri:t,appWcRef:i}),this._type=x_.Render,this.__variantsExtensionName="KHR_materials_variants",this.__finishNamesFromAsset=[]}get khrVariantsExtensionName(){return this.__variantsExtensionName}get khrVariantsExtension(){return this.__variantsExtension}get finishNamesFromAsset(){return this.__finishNamesFromAsset}async _parseLoadedGltf(){const e=this._resource?.userData?.gltfExtensions;if(!e){this.__variantsExtension=null,this.__finishNamesFromAsset=["default"];return}if(this.__variantsExtension=e[this.__variantsExtensionName],this.__variantsExtension?.variants)for(const t of this.__variantsExtension.variants)this.__finishNamesFromAsset.push(t.name);this._resource?.scene.traverse(t=>{t instanceof ot&&(t.castShadow=!0)})}unload(){return this._resource={},this.__variantsExtension={},this.__finishNamesFromAsset=[],Promise.resolve(!0)}}class yC{constructor(e,t){this._loggerContext="ASSET",this.__autoGenerateProxyEntity=!1,this.__finishes=new Map,this.__hotspots=[],this.__id=e.id,this.__name=e.name,this.__appWcRef=t,this.__proxyGltf=new NU({id:String(e.id),uri:e.proxyGeo,appWcRef:this.__appWcRef}),this.__autoGenerateProxyEntity=e.autoGenerateProxyEntity,this.__renderGltf=new OU({id:String(e.id),uri:e.renderGeo,appWcRef:this.__appWcRef});for(const i in e.finishes)this.__finishes.set(i,new Cv(i));e.hotspots&&(this.__hotspots=e.hotspots)}get id(){return this.__id}get name(){return this.__name}get proxyGltf(){return this.__proxyGltf}get autoGenerateProxyEntity(){return this.__autoGenerateProxyEntity}get renderGltf(){return this.__renderGltf}get finishes(){return this.__finishes}get hotspots(){return this.__hotspots}get allFinishIds(){const e=[];for(const t of this.__finishes.keys())e.push(t);return e}async loadProxyGltf(){return this.__proxyGltf?await this.__proxyGltf.load():Promise.resolve(!0)}pullFinishesFromRenderGltf(){this.__renderGltf.finishNamesFromAsset.forEach(e=>{this.__finishes.has(e)||this.__finishes.set(e,new Cv(e))})}async loadRenderGltf(e=!1){return await this.__renderGltf.load().catch(t=>(window.epigraph.logger.error({title:`Failed to load asset: ${this.__id}`,details:t,contextOverride:this._loggerContext}),Promise.reject(!1))),e&&this.pullFinishesFromRenderGltf(),Promise.resolve(!0)}async load(e=!1){return Promise.all([this.loadRenderGltf(e),this.loadProxyGltf()])}}var kU=Object.defineProperty,bC=(o,e,t,i)=>{for(var a=void 0,l=o.length-1,h;l>=0;l--)(h=o[l])&&(a=h(e,t,a)||a);return a&&kU(e,t,a),a};class vC{constructor({appWcRef:e}){this._loggerContext="SOLUTION MANAGER",this._appWcRef=e}initialize(){window.epigraph.logger.info({title:"Initializing...",contextOverride:this._loggerContext})}}const S_=class Dd extends ul{constructor(){super(),this._loggerContext="SOLUTION MANAGER",this.enabled=!1}static{this.webComponentName="solution-manager"}connectedCallback(){super.connectedCallback(),window.epigraph.logger.info({title:"Initializing...",contextOverride:this._loggerContext})}firstUpdated(e){super.firstUpdated(e)}static setupWebComponent(){window.customElements.get(Dd.webComponentName)||window.customElements.define(Dd.webComponentName,Dd)}render(){return Ee`
|
|
4166
|
+
`},this.__depthMaterial.depthTest=!1,this.__depthMaterial.depthWrite=!1,this.__horizontalBlurMaterial=new Ni(fC),this.__horizontalBlurMaterial.depthTest=!1,this.__verticalBlurMaterial=new Ni(pC),this.__verticalBlurMaterial.depthTest=!1}reCalculate(){const e=this.__scene.background;this.__scene.background=null,this.__scene.overrideMaterial=this.__depthMaterial;const t=this.__targetRenderer.getClearAlpha();this.__targetRenderer.setClearAlpha(0),this.__targetRenderer.setRenderTarget(this.__renderTarget),this.__targetRenderer.render(this.__scene,this.__shadowCamera),this.__scene.overrideMaterial=null,this.__blurShadow(this.__shadowState.shadow.blur),this.__blurShadow(this.__shadowState.shadow.blur*.4),this.__targetRenderer.setRenderTarget(null),this.__targetRenderer.setClearAlpha(t),this.__scene.background=e}}class Et{static isTouchDevice(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}static async wait(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}static generateStylesDomElem(e,t=""){const i=document.createElement("style");return i.setAttribute("id",e),i.innerHTML=t,i}static generateHtmlDivElem(e,t=""){const i=document.createElement("div");return i.setAttribute("id",e),i.innerHTML=t,i}static getRandomIntegerInRange(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e}static getUrlParameterByName(e,t=window.location.search){const i=new URLSearchParams(t);return Object.fromEntries(i.entries())[e]}static getBaseUrl(){const e=Et.getUrlParameterByName("parentUrl");return e||window.location.href}static normalizeRadian(e){return Math.atan2(Math.sin(e),Math.cos(e))}static isBetweenOnCircle(e,t,i){return e=Et.normalizeRadian(e),t=Et.normalizeRadian(t),i=Et.normalizeRadian(i),t<=i?e>=t&&e<=i:e>=t||e<=i}static getPointInBetweenByPercentage(e,t,i){let a=t.clone().sub(e);const l=a.length();return a=a.normalize().multiplyScalar(l*i),e.clone().add(a)}static clampAzimuth(e,t,i){if(Math.abs(t)==1/0||i==1/0)return e;const a=Et.normalizeRadian(e),l=Et.normalizeRadian(t),h=Et.normalizeRadian(i);if(Et.isBetweenOnCircle(a,l,h))return a;const d=Math.abs(Et.normalizeRadian(a-l)),p=Math.abs(Et.normalizeRadian(a-h));return d<p?l:h}static resolveNexusEndpoint(e){let t=Cd.PRODUCTION;return e=="local"?t=Cd.LOCAL:e==="staging"&&(t=Cd.STAGING),t}static parseUrlForEpigraphParams(e){const t=new Map,i=new Xm(e);t.set(Ii.epigraphSessionId,i.getParameterInUrl(Ii.epigraphSessionId)),t.set(Ii.identifier,i.getParameterInUrl(Ii.identifier)),t.set(Ii.identifierType,i.getParameterInUrl(Ii.identifierType)),t.set(Ii.type,i.getParameterInUrl(Ii.type));const a=i.getParameterInUrl(Ii.action);return a&&t.set(oh.AR,JSON.parse(a)[oh.AR]),t}static generateShareableUrl({baseUrl:e,identifier:t,identifierType:i,sharedConfig:a,arCompatible:l=!1}){const h=new Map;return h.set(Ii.epigraphSessionId,window.epigraph.epigraphSessionId),h.set(Ii.identifier,t),h.set(Ii.identifierType,i),a&&h.set(Ii.sharedConfig,a),l&&h.set(Ii.action,`{"${oh.AR}":true}`),new Xm(e).generateQrCodeUrl(Object.fromEntries(h.entries()),!1)}static _dispose3(e){e instanceof ot&&e.geometry.dispose(),e instanceof ot&&(Array.isArray(e.material)?e.material.forEach(t=>t.dispose()):e.material.dispose(),e.material?.map?.dispose())}static dispose3(e){e.traverse(t=>{t instanceof ot&&Et._dispose3(t)}),(e instanceof ot||e instanceof Dn)&&Et._dispose3(e)}static animateValue(e,t,i,a){const l=performance.now();function h(d){const p=d-l,g=Math.min(p/i,1),A=e+(t-e)*g;a(A),g<1&&requestAnimationFrame(h)}requestAnimationFrame(h)}static getCustomStylesTemplate(){const t=document.querySelector("#epigraphCustomStyles")?.content?.cloneNode(!0);return t||Ue}}class mC{constructor(e){this._success=e}get success(){return this._success}set success(e){this._success=e}get failed(){return!this._success}}class LU extends mC{constructor(e=!1,t=void 0){super(e),this.__payload=t}get payload(){return this.__payload}set payload(e){this.__payload=e}}var AC=(o=>(o.Empty="entity-empty",o.Gltf="entity-mesh",o.Render="entity-render",o.Proxy="entity-proxy",o.Collider="entity-collider",o.Asset="entity-asset",o))(AC||{});class DU extends li{constructor(){super(),this._entityType=AC.Empty}get entityType(){return this._entityType}destroy(){let e;const t=new LU(!1,e);return e=void 0,t.success=!0,t.payload=e,t}}class Cv{constructor(e){this.__name=e}getName(){return this.__name}}class Jr extends Lt{constructor(e){super(),this.epgType="PLUG",this.__connectionId="",this.__isPrimary=!1,this.__receiver=null,this.__debugGeo=null,this.__config=e,this.name=e.name,this.__connectionId=e.connectionId,this.__isPrimary=e.isPrimary;const t=e.position;this.position.set(t.x,t.y,t.z);const i=e.rotation;this.rotation.set(i.x,i.y,i.z)}get config(){return this.__config}get connectionId(){return this.__connectionId}get isPrimary(){return this.__isPrimary}get isOpen(){return this.__receiver===null}get receiver(){return this.__receiver}connect(e){this.__receiver=e.receiver}disconnect(){this.__receiver=null}clone(e){return new Jr(this.__config).copy(this,e)}showDebug(){const e=new se().setFromEuler(this.rotation).normalize(),t=this.position,i=.2,a=16711680;this.__debugGeo=new t1(e,t,i,a,.06,.06);const l=document.createElement("div");l.textContent=this.name;const h=new E_(l);l.style.pointerEvents="none";const d=new se;this.getWorldDirection(d),d.normalize();const p=this.position.clone().addScaledVector(d,Math.random());h.position.set(p.x,p.y,p.z),this.__debugGeo.add(h),this.add(this.__debugGeo)}hideDebug(){this.__debugGeo&&(this.__debugGeo.clear(),this.__debugGeo?.removeFromParent(),Et.dispose3(this.__debugGeo))}}class ur extends Lt{constructor(e){super(),this.epgType="RECEIVER",this.__connectionId="",this.__plug=null,this.__debugGeo=null,this.__config=e,this.name=e.name,this.__connectionId=e.connectionId;const t=e.position;this.position.set(t.x,t.y,t.z);const i=e.rotation;this.rotation.set(i.x,i.y,i.z)}get config(){return this.__config}get connectionId(){return this.__connectionId}get isOpen(){return this.__plug===null}get plug(){return this.__plug}connect(e){this.__plug=e.plug}disconnect(){this.__plug=null}clone(e){return new ur(this.__config).copy(this,e)}showDebug(){const e=new se().setFromEuler(this.rotation.clone()).normalize(),t=this.position,i=.1,a=65280;this.__debugGeo=new t1(e,t,i,a,.01,.08);const l=document.createElement("div");l.textContent=this.name,l.style.color="green";const h=new E_(l);l.style.pointerEvents="none",this.__debugGeo.add(h),this.add(this.__debugGeo)}hideDebug(){this.__debugGeo&&(this.__debugGeo.clear(),this.__debugGeo?.removeFromParent(),Et.dispose3(this.__debugGeo))}}var x_=(o=>(o.Gltf="media-asset-gltf",o.Proxy="media-asset-proxy",o.Render="media-asset-render",o))(x_||{}),JA=(o=>(o.Plug="plug",o.Receiver="receiver",o))(JA||{});class _C{constructor({id:e,uri:t,appWcRef:i}){this._type="media-asset-gltf",this._id=crypto.randomUUID(),this._loadingProgress=0,this._state="declared",this._resource=null,e&&(this._id=e),this._appWcRef=i,this._uri=t}get id(){return this._id}get uri(){return this._uri}get loadingProgress(){return this._loadingProgress}get state(){return this._state}get isLoaded(){return this._state==="loaded"}get type(){return this._type}get resource(){return this._resource}highlight(){}updateLoadingProgress(e){this._loadingProgress=e,this._appWcRef.eventsManager.assetLoadProgress.fire({progress:e})}async load(){if(this._state==="loaded"||this._state==="loading")return Promise.resolve(!0);this._state="loading";const e=await this._appWcRef.loaders.gltfLoader.loadAsync(this._uri,t=>{this.updateLoadingProgress(t.loaded/t.total*100)}).catch(t=>(window.epigraph.logger.groupCollapsed({title:""}),window.epigraph.logger.error({title:"An error occurred while trying to load an asset!",details:t}),this._state="failed",Promise.reject()));return e===void 0?Promise.reject(!1):(this._resource=e,await this._parseLoadedGltf(),this._state="loaded",Promise.resolve(!0))}async _parseLoadedGltf(){window.epigraph.logger.info({title:"Parsing GLTF data",details:this._resource})}unload(){return this._resource={},Promise.resolve(!0)}}class NU extends _C{constructor({id:e,uri:t,appWcRef:i}){super({id:e,uri:t,appWcRef:i}),this._type=x_.Proxy,this.__plugs=[],this.__receivers=[]}get plugs(){return this.__plugs}get receivers(){return this.__receivers}async _parseLoadedGltf(){if(!this._resource?.scene)return;const e=[];this._resource.scene.traverse(t=>{if(t.userData.epgType===JA.Receiver){const i=new ur({name:t.name,connectionId:t.userData.connectionId,position:t.position.clone(),rotation:t.rotation.clone()});this.__receivers.push(i),e.push(t)}else if(t.userData.epgType===JA.Plug){const i=new Jr({name:t.name,isPrimary:t.userData.isPrimary,connectionId:t.userData.connectionId,position:t.position.clone(),rotation:t.rotation.clone()});this.__plugs.push(i),e.push(t)}});for(const t of this.__receivers)this._resource.scene.add(t);for(const t of this.__plugs)this._resource.scene.add(t);for(const t of e)t.removeFromParent(),Et.dispose3(t)}unload(){return this._resource={},this.__plugs=[],this.__receivers=[],Promise.resolve(!0)}}class OU extends _C{constructor({id:e,uri:t,appWcRef:i}){super({id:e,uri:t,appWcRef:i}),this._type=x_.Render,this.__variantsExtensionName="KHR_materials_variants",this.__finishNamesFromAsset=[]}get khrVariantsExtensionName(){return this.__variantsExtensionName}get khrVariantsExtension(){return this.__variantsExtension}get finishNamesFromAsset(){return this.__finishNamesFromAsset}async _parseLoadedGltf(){const e=this._resource?.userData?.gltfExtensions;if(!e){this.__variantsExtension=null,this.__finishNamesFromAsset=["default"];return}if(this.__variantsExtension=e[this.__variantsExtensionName],this.__variantsExtension?.variants)for(const t of this.__variantsExtension.variants)this.__finishNamesFromAsset.push(t.name);this._resource?.scene.traverse(t=>{t instanceof ot&&(t.castShadow=!0)})}unload(){return this._resource={},this.__variantsExtension={},this.__finishNamesFromAsset=[],Promise.resolve(!0)}}class yC{constructor(e,t){this._loggerContext="ASSET",this.__autoGenerateProxyEntity=!1,this.__finishes=new Map,this.__hotspots=[],this.__id=e.id,this.__name=e.name,this.__appWcRef=t,this.__proxyGltf=new NU({id:String(e.id),uri:e.proxyGeo,appWcRef:this.__appWcRef}),this.__autoGenerateProxyEntity=e.autoGenerateProxyEntity,this.__renderGltf=new OU({id:String(e.id),uri:e.renderGeo,appWcRef:this.__appWcRef});for(const i in e.finishes)this.__finishes.set(i,new Cv(i));e.hotspots&&(this.__hotspots=e.hotspots)}get id(){return this.__id}get name(){return this.__name}get proxyGltf(){return this.__proxyGltf}get autoGenerateProxyEntity(){return this.__autoGenerateProxyEntity}get renderGltf(){return this.__renderGltf}get finishes(){return this.__finishes}get hotspots(){return this.__hotspots}get allFinishIds(){const e=[];for(const t of this.__finishes.keys())e.push(t);return e}async loadProxyGltf(){return this.__proxyGltf?await this.__proxyGltf.load():Promise.resolve(!0)}pullFinishesFromRenderGltf(){this.__renderGltf.finishNamesFromAsset.forEach(e=>{this.__finishes.has(e)||this.__finishes.set(e,new Cv(e))})}async loadRenderGltf(e=!1){return await this.__renderGltf.load().catch(t=>(window.epigraph.logger.error({title:`Failed to load asset: ${this.__id}`,details:t,contextOverride:this._loggerContext}),Promise.reject(!1))),e&&this.pullFinishesFromRenderGltf(),Promise.resolve(!0)}async load(e=!1){return Promise.all([this.loadRenderGltf(e),this.loadProxyGltf()])}}var kU=Object.defineProperty,bC=(o,e,t,i)=>{for(var a=void 0,l=o.length-1,h;l>=0;l--)(h=o[l])&&(a=h(e,t,a)||a);return a&&kU(e,t,a),a};class vC{constructor({appWcRef:e}){this._loggerContext="SOLUTION MANAGER",this._appWcRef=e}initialize(){window.epigraph.logger.info({title:"Initializing...",contextOverride:this._loggerContext})}}const S_=class Dd extends ul{constructor(){super(),this._loggerContext="SOLUTION MANAGER",this.enabled=!1}static{this.webComponentName="solution-manager"}connectedCallback(){super.connectedCallback(),window.epigraph.logger.info({title:"Initializing...",contextOverride:this._loggerContext})}firstUpdated(e){super.firstUpdated(e)}static setupWebComponent(){window.customElements.get(Dd.webComponentName)||window.customElements.define(Dd.webComponentName,Dd)}render(){return Ee`
|
|
4167
4167
|
${Et.getCustomStylesTemplate()}
|
|
4168
4168
|
`}};bC([ue({type:Boolean,attribute:"enabled"})],S_.prototype,"enabled");bC([ue({attribute:!1})],S_.prototype,"appWcRef");let Yf=S_;class UU{constructor({id:e,name:t,receiver:i,plug:a}){this.__name=t,this.__plug=a,this.__receiver=i,e?this.__id=e:this.__id=`${this.__receiver.uuid}-${this.__plug.uuid}`}get id(){return this.__id}get name(){return this.__name}get plug(){return this.__plug}isPrimary(){return this.__plug?.isPrimary}get receiver(){return this.__receiver}connect(){this.__receiver.connect(this),this.__plug.connect(this)}disconnect(){this.__plug&&this.__plug.disconnect(),this.__receiver&&this.__receiver.disconnect()}}class FU{constructor({id:e,receiver:t,plug:i}){this.__id=e,this.__plug=i,this.__receiver=t}get id(){return this.__id}get plug(){return this.__plug}set plug(e){this.__plug=e}get receiver(){return this.__receiver}set receiver(e){this.__receiver=e}disconnect(){this.__receiver.disconnect(),this.__plug.disconnect()}}class $U extends li{constructor(e){super(),this.name="ENTITIES",this._loggerContext="SCENE STRUCTURE",this.__appWcRef=e,this.__eventsManager=this.__appWcRef.eventsManager}async setupRootEntity(e,t){const i=await new yC({id:0,name:"Root",proxyGeo:e??"https://asset.myepigraph.com/configurator-assets/epigraph-solution-assets/staging-assets/pipeline-assets/3d-assets/proxies/root-proxy.glb",autoGenerateProxyEntity:!1,renderGeo:t??"https://asset.myepigraph.com/configurator-assets/epigraph-solution-assets/staging-assets/pipeline-assets/3d-assets/render/root-render.glb",finishes:{},hotspots:[]},this.__appWcRef);await i.load().catch(()=>Promise.reject(!1));const a=new Va(i);await a.initialize(),this.add(a),this.__rootEntity=a}get rootEntity(){return this.__rootEntity}isEmpty(){return this.__rootEntity===void 0||this.__rootEntity.children.length===0}isNotEmpty(){return!this.isEmpty()}addEntity(e){this.__rootEntity.add(e),this.__eventsManager.structureNodeAddedEvent.fire({node:e})}getFirstEntity(){return this.isEmpty()?null:this.getSceneEntities()[0]}getEntityForAssetId(e){const t=this.getSceneEntities();let i;for(const a of t)if(a.asset.id===e){i=a;break}return i}getSceneEntities(e=!1){const t=[];return this.__rootEntity.traverse(i=>{!e&&i.uuid===this.__rootEntity.uuid||i instanceof Va&&t.push(i)}),t}getPossibleConnectionsForAssetInScene(e){const t=[];window.epigraph.logger.info({title:"Getting connections for asset in scene:",details:e,contextOverride:this._loggerContext});for(const i of this.getSceneEntities(!0)){const a=i.findPossibleConnectionsForAsset(e);a.length>0&&t.push(...a)}return window.epigraph.logger.table({title:"Possible Connections",details:t}),t}getAllConnectionsInScene(){const e=new Map;return this.traverse(t=>{if(t instanceof ur||t instanceof Jr){if(t.connectionId===""||e.has(t.connectionId))return;let a=null,l=null;if(t instanceof ur?(a=t,l=t.plug):t instanceof Jr&&(a=t.receiver,l=t),a!==null&&l!==null){const h=new FU({id:t.connectionId,receiver:a,plug:l});e.set(t.connectionId,h)}}}),e}}class zU extends vC{constructor(e){super({appWcRef:e}),this._loggerContext="SCENE MANAGER",this.__currentSceneBounds=new vi,this.__sceneStructure=new $U(this._appWcRef)}get sceneStructure(){return this.__sceneStructure}get currentSceneBounds(){return this.__currentSceneBounds}recalculateSceneBounds(){this.currentSceneBounds.setFromPoints([new se]),this.__sceneStructure.isNotEmpty()&&this.__sceneStructure.rootEntity.traverse(e=>{e instanceof ot&&e.userData.isProxyMesh&&this.currentSceneBounds.expandByObject(e)}),this._appWcRef.eventsManager.sceneBoundsChanged.fire()}}class Va extends DU{constructor(e){super(),this.epgType="ENTITY_ASSET",this.__autoGeneratedProxy=new li,this.__proxyEntity=new li,this.__renderEntity=new li,this.__activeFinish="",this.__hotspots=new li,this.__renderEntityBoundsBox=new vi,this.__renderEntityBoundsSize=new se,this.__animationMixer=null,this.__animations=[],this.__animationNames=[],this.name=e.name,this.__proxyEntity.name="PROXY",this.add(this.__proxyEntity),this.__renderEntity.name="RENDER",this.add(this.__renderEntity),this.__hotspots.name="HOTSPOTS",this.add(this.__hotspots),this.__asset=e}get asset(){return this.__asset}get isRoot(){return this.name.toLowerCase()==="root"}get proxy(){return this.__proxyEntity}get render(){return this.__renderEntity}get activeFinish(){return this.__activeFinish}get allAssetFinishes(){return this.__asset.finishes}get allFinishIds(){return this.__asset.allFinishIds}highlight(){this.__renderEntity.traverseVisible(e=>{const t=e;if(t.isMesh){const i=t.material;(i.emissive.r>0||i.emissive.g>0||i.emissive.b>0)&&(i.userData.epgData={orignalEmissive:i.emissive.clone()}),i.emissive.r=1,i.emissive.g=1,i.emissive.b=1}})}unhighlight(){this.__renderEntity.traverseVisible(e=>{const t=e;if(t.isMesh){const i=t.material,a=i?.userData?.epgData?.orignalEmissive;a?(i.emissive.r=a.r,i.emissive.g=a.g,i.emissive.b=a.b):(i.emissive.r=0,i.emissive.g=0,i.emissive.b=0)}})}addHotspot(e){e.entity.name=`HOTSPOT-${this.asset.name}-${crypto.randomUUID()}`,e.entity.userData.epgId=e.hotspotId,e.entity.position.set(e.config.position.x,e.config.position.y,e.config.position.z),this.__hotspots.add(e.entity)}removeHotspot(e){let t;this.__hotspots.traverse(i=>{i.userData.epgId===e&&(t=i)}),t&&(t.removeFromParent(),Et.dispose3(t))}async selectAssetFinish(e,t=this.__renderEntity){window.epigraph.logger.info({title:`Switching to asset finish: ${e}`});const i=new mC(!1),a=this.__asset.renderGltf;if(!a)return Promise.reject(i);const l=a.khrVariantsExtension,h=a.khrVariantsExtensionName;if(!l?.variants||h===void 0)return window.epigraph.logger.warn({title:"No Variants found in asset. Using default material."}),i.success=!0,Promise.resolve(i);const d=l.variants.findIndex(p=>p.name===e);return t.traverse(async p=>{if(!(p instanceof ot)||!p.isMesh||!p.userData.gltfExtensions)return;const g=p.userData.gltfExtensions[h];if(!g)return window.epigraph.logger.error({title:"No Variants found in asset. Using default material."}),Promise.reject(i);p.userData.originalMaterial||(p.userData.originalMaterial=p.material);const A=g.mappings.find(_=>_.variants.includes(d));if(A&&a.resource){const _=a.resource.parser;p.material=await _.getDependency("material",A.material),_.assignFinalMaterial(p)}else window.epigraph.logger.warn({title:`Variant not found. Missing Variant ID: ${e}`,details:{message:"Available Variants",variants:l.variants}}),p.material=p.userData.originalMaterial;i.success=!0}),this.__activeFinish=e,Promise.resolve(i)}findPossibleConnectionsForAsset(e){const t=[];return window.epigraph.logger.info({title:"Getting connections for asset in scene:",details:e}),this.__proxyEntity.traverse(i=>{if(!(i instanceof ur))return;const a=i,l=e.proxyGltf?.plugs??[];for(const h of l)h.connectionId===a.connectionId&&t.push(new UU({name:h.connectionId,receiver:a,plug:h}))}),t}getAnimationMixer(){return this.__animationMixer}getAllAnimations(){return this.__animations}getAllAnimationNames(){return this.__animationNames}async initialize(){this.__asset.autoGenerateProxyEntity?(await this.__initializeRenderEntity(),await this.__initializeProxyEntity()):(await this.__initializeProxyEntity(),await this.__initializeRenderEntity())}async __initializeRenderEntity(){const e=this.__asset?.renderGltf?.resource?.scene?.clone(!0);if(!e)return Promise.reject();this.__renderEntity.add(e),this.__renderEntityBoundsBox.setFromObject(e,!0),this.__renderEntityBoundsBox.getSize(this.__renderEntityBoundsSize);const t=new se;if(this.__renderEntityBoundsBox.getCenter(t),!this.__asset.proxyGltf){window.epigraph.logger.warn({title:"Attempted to place render geo at the grid for AssetEntity...",details:this});const i=new li;i.name="rendergeopivot";const a=new Wn(.01,.01,.01),l=new wi({color:65280,depthTest:!1}),h=new ot(a,l);i.add(h),this.__renderEntity.add(i),i.position.set(t.x,this.__renderEntityBoundsBox.min.y,t.z),i.attach(e),i.position.set(0,0,0),this.__renderEntity.attach(e),i.removeFromParent(),Et.dispose3(i)}this.__updateAnimations()}async __initializeProxyEntity(){let e=this.__asset.proxyGltf.resource?.scene.clone();if((!e||this.__asset.autoGenerateProxyEntity)&&(this.__autoGenerateProxyScene(),e=this.__autoGeneratedProxy),!e)return window.epigraph.logger.error({title:"Failed to load OR auto generate proxy asset",details:this.__asset,contextOverride:"ASSET ENTITY"}),Promise.reject();this.__proxyEntity.add(e),this.__proxyEntity.traverse(t=>{t instanceof ot&&(t.userData.isProxyMesh=!0,t.visible=!1)})}__autoGenerateProxyScene(){window.epigraph.logger.info({title:"Attempting to auto generate proxy for asset...",details:this.__asset,contextOverride:"ASSET ENTITY"});const e=new Wn,t=new wi({color:65280,opacity:.5,transparent:!0}),i=new ot(e,t);i.name="AutoGeneratedProxyMesh",i.scale.set(this.__renderEntityBoundsSize.x,this.__renderEntityBoundsSize.y,this.__renderEntityBoundsSize.z);const a=new se;this.__renderEntityBoundsBox.getCenter(a);const l=new li;l.name="proxygeopivot";const h=new zf(.01,10,10),d=new wi({color:255,depthTest:!1}),p=new ot(h,d);l.add(p),this.__proxyEntity.add(l),l.translateY(-this.__renderEntityBoundsSize.y*.5),l.attach(i),l.position.set(0,0,0),this.__proxyEntity.add(i),l.removeFromParent(),Et.dispose3(l),this.__autoGeneratedProxy.add(i)}__updateAnimations(){if(this.__animationMixer=null,this.__animations=[],this.__renderEntity.animations&&this.__asset.renderGltf.resource&&this.__asset.renderGltf.resource.animations.length>0){this.__animationMixer=new ZS(this.__renderEntity.children[0]);for(const e of this.__asset.renderGltf.resource.animations)this.__animations.push(this.__animationMixer.clipAction(e)),this.__animationNames.push(e.name)}}}function wC(o,e,t,i){const a=Object.entries(o);class l extends Ni{static key=Is.generateUUID();constructor(d){super({uniforms:a.reduce((p,[g,A])=>{const _=W0.clone({[g]:{value:A}});return{...p,..._}},{}),vertexShader:e,fragmentShader:t});for(const[p]of a)Object.defineProperty(this,p,{get:()=>this.uniforms[p].value,set:g=>this.uniforms[p].value=g});Object.assign(this,d)}}return l}const GU=wC({},"void main() { }","void main() { gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); discard; }");function HU(o){return o.isLight}function VU(o){return!!o.geometry}const QU=wC({color:new je(0),blend:2,alphaTest:.75,opacity:0,map:null},`varying vec2 vUv;
|
|
4169
4169
|
void main() {
|
|
@@ -4283,8 +4283,8 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
4283
4283
|
${super.render()}
|
|
4284
4284
|
|
|
4285
4285
|
<slot name="replace-all">
|
|
4286
|
-
${this.label?Ee`<span class="label">${this.label}</span
|
|
4287
|
-
${this.unitSymbol?Ee`<span class="unit-symbol">${this.unitSymbol}</span
|
|
4286
|
+
${this.label?Ee`<span class="label">${this.label}</span>`:Ue}
|
|
4287
|
+
${this.unitSymbol?Ee`<span class="unit-symbol">${this.unitSymbol}</span>`:Ue}
|
|
4288
4288
|
</slot>
|
|
4289
4289
|
|
|
4290
4290
|
`}}TC([ue({attribute:vf.label.name})],I_.prototype,"label");TC([ue({attribute:vf.unitSymbol.name})],I_.prototype,"unitSymbol");window.customElements.get(kv)||window.customElements.define(kv,I_);var pF=Object.defineProperty,jl=(o,e,t,i)=>{for(var a=void 0,l=o.length-1,h;l>=0;l--)(h=o[l])&&(a=h(e,t,a)||a);return a&&pF(e,t,a),a};const so=class Od extends Yf{constructor(){super(),this.enabled=!1,this.dimensionsUnit=Qe.inch,this.dimensionsUnitSymbol="",this._loggerContext="DIMENSIONS MANAGER",this.__dimensionsIndicatorBoundsPadding=.08,this.__cameraDirection=new se,this.__dimensionsInDisplayUnit={length:0,width:0,height:0},this.__currentDimensionsState={length:{begin:{worldPos:new se,screenPos:new He},end:{worldPos:new se,screenPos:new He},midPoint:{worldPos:new se,screenPos:new He},distance:0},width:{begin:{worldPos:new se,screenPos:new He},end:{worldPos:new se,screenPos:new He},midPoint:{worldPos:new se,screenPos:new He},distance:0},height:{begin:{worldPos:new se,screenPos:new He},end:{worldPos:new se,screenPos:new He},midPoint:{worldPos:new se,screenPos:new He},distance:0}},this.__currentDimensionsIndicatorState={length:{begin:{worldPos:new se,screenPos:new He},end:{worldPos:new se,screenPos:new He},midPoint:{worldPos:new se,screenPos:new He},distance:0},width:{begin:{worldPos:new se,screenPos:new He},end:{worldPos:new se,screenPos:new He},midPoint:{worldPos:new se,screenPos:new He},distance:0},height:{begin:{worldPos:new se,screenPos:new He},end:{worldPos:new se,screenPos:new He},midPoint:{worldPos:new se,screenPos:new He},distance:0}},this.__dimensionIndicatorDirection={length:new se,width:new se,height:new se}}static{this.webComponentName="dimensions-manager"}static setupWebComponent(){window.customElements.get(Od.webComponentName)||window.customElements.define(Od.webComponentName,Od)}static{this.styles=ct`
|
|
@@ -4343,7 +4343,7 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
4343
4343
|
style="left: ${this.__currentDimensionsIndicatorState.height.midPoint.screenPos.x}px; top: ${this.__currentDimensionsIndicatorState.height.midPoint.screenPos.y}px;"
|
|
4344
4344
|
></epg-dimension-label>
|
|
4345
4345
|
</div>
|
|
4346
|
-
|
|
4346
|
+
`:Ue}};jl([ue({type:Boolean,attribute:"enabled"})],so.prototype,"enabled");jl([ue({type:String,attribute:"dimensions-unit"})],so.prototype,"dimensionsUnit");jl([ue({type:String,attribute:"dimensions-unit-symbol"})],so.prototype,"dimensionsUnitSymbol");jl([Hi()],so.prototype,"__dimensionsInDisplayUnit");jl([Hi()],so.prototype,"__currentDimensionsState");jl([Hi()],so.prototype,"__currentDimensionsIndicatorState");let gF=so;var Wi=(o=>(o.expanded="expanded",o.collapsed="collapsed",o))(Wi||{});class Uv{constructor({config:e,appWcRef:t,hotspotManagerRef:i}){this.__cameraDirection=new se,this.__localPosition=new se,this.__worldPosition=new se,this.__normals=new se,this.__screenPosition=new He,this.__camera={position:new se,target:new se,focalLength:35},this.entity=new Lt,this.visited=!1,this.__config=e,this.__appWcRef=t,this.__hotspotsManager=i,this.updateConfig(e)}static{this.styles=ct`
|
|
4347
4347
|
.hotspot-indicator {
|
|
4348
4348
|
position: absolute;
|
|
4349
4349
|
transform: translate(-50%, -50%);
|
|
@@ -4363,7 +4363,7 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
4363
4363
|
.hotspot-indicator.occluded {
|
|
4364
4364
|
opacity: 0.3;
|
|
4365
4365
|
}
|
|
4366
|
-
`}get config(){return this.__config}get assetId(){return this.__config.assetId}get name(){return this.__config.name}get hotspotId(){return this.__config.hotspotId}get position(){return this.entity.getWorldPosition(this.__worldPosition),this.__worldPosition}get normals(){return this.__normals}get camera(){return this.__camera}get header(){return this.__config.header}get details(){return this.__config.details}get carousel(){return this.__config.carousel}get finishes(){return this.__config.finishes}get animation(){return this.__config.animation}get desktopPlacement(){return this.__config.desktopPlacement}get hidden(){const e=this.__appWcRef.sceneManager.sceneStructure.getEntityForAssetId(this.assetId);if(!e)return!1;const t=e.activeFinish;return!this.finishes.includes(t)}__updateHotspotPosition(){this.__localPosition.set(this.__config.position.x,this.__config.position.y,this.__config.position.z),this.entity.position.set(this.__localPosition.x,this.__localPosition.y,this.__localPosition.z)}__updateHotspotNormals(){if(!this.__config.normals){const a=new se;this.__appWcRef.sceneManager.currentSceneBounds.getCenter(a),this.__normals.subVectors(this.position,a);return}const{x:e,y:t,z:i}=this.__config.normals;this.__normals.set(e,t,i)}__updateCamera(){this.__camera.position.set(this.__config.camera.position.x,this.__config.camera.position.y,this.__config.camera.position.z),this.__camera.target.set(this.__config.camera.target.x,this.__config.camera.target.y,this.__config.camera.target.z),this.__camera.focalLength=this.__config.camera.focalLength}updateConfig(e){this.__config=e,this.__updateHotspotPosition(),this.__updateHotspotNormals(),this.__updateCamera()}_onHotspotClick(){this.__hotspotsManager.activeHotspot||(this.visited=!0,this.__appWcRef.eventsManager.hotspotClickedEvent.fire({hotspot:this}))}__isFacingCamera(){return this.__appWcRef.cameraManager.getCameras().main.getWorldDirection(this.__cameraDirection),this.__normals.angleTo(this.__cameraDirection)>Math.PI/2.2}renderAnnotationTemplate(e){const t=e!==void 0&&e===this.hotspotId;if(this.__hotspotsManager.activeHotspot&&!t||this.hidden)return
|
|
4366
|
+
`}get config(){return this.__config}get assetId(){return this.__config.assetId}get name(){return this.__config.name}get hotspotId(){return this.__config.hotspotId}get position(){return this.entity.getWorldPosition(this.__worldPosition),this.__worldPosition}get normals(){return this.__normals}get camera(){return this.__camera}get header(){return this.__config.header}get details(){return this.__config.details}get carousel(){return this.__config.carousel}get finishes(){return this.__config.finishes}get animation(){return this.__config.animation}get desktopPlacement(){return this.__config.desktopPlacement}get hidden(){const e=this.__appWcRef.sceneManager.sceneStructure.getEntityForAssetId(this.assetId);if(!e)return!1;const t=e.activeFinish;return!this.finishes.includes(t)}__updateHotspotPosition(){this.__localPosition.set(this.__config.position.x,this.__config.position.y,this.__config.position.z),this.entity.position.set(this.__localPosition.x,this.__localPosition.y,this.__localPosition.z)}__updateHotspotNormals(){if(!this.__config.normals){const a=new se;this.__appWcRef.sceneManager.currentSceneBounds.getCenter(a),this.__normals.subVectors(this.position,a);return}const{x:e,y:t,z:i}=this.__config.normals;this.__normals.set(e,t,i)}__updateCamera(){this.__camera.position.set(this.__config.camera.position.x,this.__config.camera.position.y,this.__config.camera.position.z),this.__camera.target.set(this.__config.camera.target.x,this.__config.camera.target.y,this.__config.camera.target.z),this.__camera.focalLength=this.__config.camera.focalLength}updateConfig(e){this.__config=e,this.__updateHotspotPosition(),this.__updateHotspotNormals(),this.__updateCamera()}_onHotspotClick(){this.__hotspotsManager.activeHotspot||(this.visited=!0,this.__appWcRef.eventsManager.hotspotClickedEvent.fire({hotspot:this}))}__isFacingCamera(){return this.__appWcRef.cameraManager.getCameras().main.getWorldDirection(this.__cameraDirection),this.__normals.angleTo(this.__cameraDirection)>Math.PI/2.2}renderAnnotationTemplate(e){const t=e!==void 0&&e===this.hotspotId;if(this.__hotspotsManager.activeHotspot&&!t||this.hidden)return Ue;this.__screenPosition=this.__appWcRef.getScreenPositionFromWorld(this.position);const i=e!==void 0&&e!==this.hotspotId;let a="top-left";return this.__screenPosition.y>this.__appWcRef.canvasSize.height*.12?a="top":a="bottom",this.__screenPosition.x>this.__appWcRef.canvasSize.width*.5?a+="-right":a+="-left",Ee`
|
|
4367
4367
|
<epg-tool-hotspot
|
|
4368
4368
|
class="hotspot-indicator ${i?"inactive":""} ${this.__isFacingCamera()?"":"occluded"}"
|
|
4369
4369
|
style="left: ${this.__screenPosition.x}px; top: ${this.__screenPosition.y}px"
|
|
@@ -4373,9 +4373,9 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
4373
4373
|
?active=${t}
|
|
4374
4374
|
?visited=${this.visited}
|
|
4375
4375
|
@epgonclick=${this._onHotspotClick.bind(this)}
|
|
4376
|
-
size
|
|
4376
|
+
size=${this.__appWcRef.isPortraitOrientation?"small":"medium"}
|
|
4377
4377
|
></epg-tool-hotspot>
|
|
4378
|
-
`}renderCardTemplate({isFirstHotspot:e=!1,isLastHotspot:t=!1,showPreviousButton:i=!0,showNextButton:a=!0}){const l={assetId:this.assetId,hotspotId:this.hotspotId,header:{preheadText:this.header.preheadText,headerText:this.header.headerText,subheadText:this.header.subheadText,media:{uri:this.header.media.uri,type:this.header.media.type,mediaCaption:"",altText:this.header.media.altText}},carousel:{mediaItems:this.carousel.mediaItems,indicator:this.carousel.indicator},details:this.details,desktopPlacement:this.desktopPlacement};return Ee`
|
|
4378
|
+
`}renderCardTemplate({isFirstHotspot:e=!1,isLastHotspot:t=!1,showPreviousButton:i=!0,showNextButton:a=!0}){const l={assetId:this.assetId,hotspotId:this.hotspotId,header:{preheadText:this.header.preheadText,headerText:this.header.headerText,subheadText:this.header.subheadText,media:{uri:this.header.media.uri,type:this.header.media.type,mediaCaption:"",altText:this.header.media.altText}},carousel:{mediaItems:this.carousel.mediaItems,indicator:this.carousel.indicator},details:this.details,desktopPlacement:this.desktopPlacement,showNavigationButtons:this.__appWcRef.experienceData.productSettings.hotspots.showNavigationButtons};return Ee`
|
|
4379
4379
|
<epg-card
|
|
4380
4380
|
class="hotspot-card"
|
|
4381
4381
|
.data=${l}
|
|
@@ -4771,11 +4771,11 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
4771
4771
|
right: 0;
|
|
4772
4772
|
}
|
|
4773
4773
|
`]}handleKeyDown(e){this.__isKeyDown||(this.__isKeyDown=!0,(e.key==="Enter"||e.key===" ")&&!this.disabled&&(e.preventDefault(),this.doClick()))}handleKeyUp(e){(e.key==="Enter"||e.key===" ")&&(this.__isKeyDown=!1)}_defaultContents(){let e;return this.isLoading?e=Ee` <epg-loader-circle class="icon ${this.size}"></epg-loader-circle>
|
|
4774
|
-
${this.loadingLabel?Ee`<div class="label ${this.size}">${this.loadingLabel}</div
|
|
4774
|
+
${this.loadingLabel?Ee`<div class="label ${this.size}">${this.loadingLabel}</div>`:Ue}`:e=Ee`
|
|
4775
4775
|
<epg-icon class="icon ${this.size}" icon-name=${this.leftIcon}></epg-icon>
|
|
4776
|
-
${this.label?Ee`<div class="label ${this.size}">${this.label}</div
|
|
4776
|
+
${this.label?Ee`<div class="label ${this.size}">${this.label}</div>`:Ue}
|
|
4777
4777
|
<epg-icon class="icon ${this.size}" icon-name=${this.rightIcon}></epg-icon>
|
|
4778
|
-
`,e}_renderTooltip(){const e=this.tooltipLabel?Ee`<div slot="replace-all">${this.tooltipLabel}</div
|
|
4778
|
+
`,e}_renderTooltip(){const e=this.tooltipLabel?Ee`<div slot="replace-all">${this.tooltipLabel}</div>`:Ue;return Ee`
|
|
4779
4779
|
<epg-tooltip class="tooltip ${this.tooltipPlacement}" ?disabled=${this.tooltipPlacement==="none"} placement=${this.tooltipPlacement}>
|
|
4780
4780
|
${e}
|
|
4781
4781
|
</epg-tooltip>
|
|
@@ -4882,7 +4882,7 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
4882
4882
|
|
|
4883
4883
|
:host([visited]) {
|
|
4884
4884
|
.hotspot-main {
|
|
4885
|
-
border
|
|
4885
|
+
border: none !important;
|
|
4886
4886
|
}
|
|
4887
4887
|
}
|
|
4888
4888
|
|
|
@@ -4901,7 +4901,7 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
4901
4901
|
opacity: 0;
|
|
4902
4902
|
}
|
|
4903
4903
|
}
|
|
4904
|
-
`]}doClick(){if(this.disabled)return;this.togglable&&(this.active=!this.active),typeof this.onClickCallback=="function"&&this.onClickCallback.bind(this);const e=new CustomEvent("epgonclick");this.dispatchEvent(e)}ripple(){this.__rippleElement&&(this.__rippleElement.style.animation="none",this.__rippleElement.style.animation="ripple 1500ms ease-out")}updated(e){super.updated(e),e.has("active")&&this.shadowRoot?.host.toggleAttribute("active",this.active)}_renderTooltip(){const e=this.tooltipLabel?Ee`<div slot="replace-all">${this.tooltipLabel}</div
|
|
4904
|
+
`]}doClick(){if(this.disabled)return;this.togglable&&(this.active=!this.active),typeof this.onClickCallback=="function"&&this.onClickCallback.bind(this);const e=new CustomEvent("epgonclick");this.dispatchEvent(e)}ripple(){this.__rippleElement&&(this.__rippleElement.style.animation="none",this.__rippleElement.style.animation="ripple 1500ms ease-out")}updated(e){super.updated(e),e.has("active")&&this.shadowRoot?.host.toggleAttribute("active",this.active)}_renderTooltip(){const e=this.tooltipLabel?Ee`<div slot="replace-all">${this.tooltipLabel}</div>`:Ue;return Ee`
|
|
4905
4905
|
<epg-tooltip class="tooltip ${this.tooltipPlacement}" ?disabled=${this.tooltipPlacement==="none"} placement=${this.tooltipPlacement} theme="light">
|
|
4906
4906
|
${e}
|
|
4907
4907
|
</epg-tooltip>
|
|
@@ -5017,7 +5017,7 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
5017
5017
|
* @license
|
|
5018
5018
|
* Copyright 2020 Google LLC
|
|
5019
5019
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5020
|
-
*/const Zv=()=>new OF;class OF{}const Mg=new WeakMap,ew=P_(class extends NF{render(o){return
|
|
5020
|
+
*/const Zv=()=>new OF;class OF{}const Mg=new WeakMap,ew=P_(class extends NF{render(o){return Ue}update(o,[e]){const t=e!==this.G;return t&&this.G!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=e,this.ht=o.options?.host,this.rt(this.ct=o.element)),Ue}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){const e=this.ht??globalThis;let t=Mg.get(e);t===void 0&&(t=new WeakMap,Mg.set(e,t)),t.get(this.G)!==void 0&&this.G.call(this.ht,void 0),t.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Mg.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var kF=Object.defineProperty,Yl=(o,e,t,i)=>{for(var a=void 0,l=o.length-1,h;l>=0;l--)(h=o[l])&&(a=h(e,t,a)||a);return a&&kF(e,t,a),a},Fh=(o=>(o.IMAGE="image",o.VIDEO="video",o))(Fh||{});class ao extends Vi{constructor(){super(...arguments),this.mediaAlt=Qa.mediaAlt.defaultValue.toString(),this.mediaSrc=Qa.mediaSrc.defaultValue.toString(),this.mediaType=Qa.mediaType.defaultValue.toString(),this.mediaAutoplay=!1,this.__mediaVideoRef=Zv(),this.__videoControlsContainerRef=Zv(),this.__isPlaying=!1}static{this.styles=[super.styles,ct`
|
|
5021
5021
|
:host {
|
|
5022
5022
|
display: flex;
|
|
5023
5023
|
font-size: 20px;
|
|
@@ -5078,7 +5078,7 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
5078
5078
|
left-icon=${this.__isPlaying?"pause":"play"}
|
|
5079
5079
|
></epg-button-icon>
|
|
5080
5080
|
</div>
|
|
5081
|
-
`}__onMediaLoad(e){this._showElement(e);const t=new CustomEvent("load",{bubbles:!0,composed:!0});this.dispatchEvent(t)}__onMediaError(e){this._hideElement(e);const t=new CustomEvent("error",{bubbles:!0,composed:!0});this.dispatchEvent(t)}__generateMediaHtmlElemType(){let e=Ee`${
|
|
5081
|
+
`}__onMediaLoad(e){this._showElement(e);const t=new CustomEvent("load",{bubbles:!0,composed:!0});this.dispatchEvent(t)}__onMediaError(e){this._hideElement(e);const t=new CustomEvent("error",{bubbles:!0,composed:!0});this.dispatchEvent(t)}__generateMediaHtmlElemType(){let e=Ee`${Ue}`;return this.mediaType==="image"?e=Ee`<img src=${this.mediaSrc} class="media" alt=${this.mediaAlt} @load=${this.__onMediaLoad} @error=${this.__onMediaError}/>`:this.mediaType==="video"&&(e=this.__generateVideoElem()),e}firstUpdated(e){super.firstUpdated(e),this.mediaAutoplay&&this.play()}render(){return Ee`
|
|
5082
5082
|
${super.render()}
|
|
5083
5083
|
|
|
5084
5084
|
<slot name="replace-all">
|
|
@@ -5340,9 +5340,9 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
5340
5340
|
}
|
|
5341
5341
|
}
|
|
5342
5342
|
`]}doClick(){if(this.disabled)return;this.togglable&&(this.active=!this.active),typeof this.onClickCallback=="function"&&this.onClickCallback.bind(this);const e=new CustomEvent("epgonclick");this.dispatchEvent(e)}updated(e){super.updated(e),e.has("active")&&this.shadowRoot?.host.toggleAttribute("active",this.active)}_defaultContents(){let e;return this.isLoading?e=Ee` <epg-loader-circle class="icon ${this.size}"></epg-loader-circle>
|
|
5343
|
-
${this.loadingLabel?Ee`<div class="label ${this.size}">${this.loadingLabel}</div
|
|
5343
|
+
${this.loadingLabel?Ee`<div class="label ${this.size}">${this.loadingLabel}</div>`:Ue}`:e=Ee`
|
|
5344
5344
|
<epg-icon class="icon ${this.size}" icon-name=${this.leftIcon}></epg-icon>
|
|
5345
|
-
${this.label&&this.showLabel?Ee`<div class="label ${this.size}">${this.label}</div
|
|
5345
|
+
${this.label&&this.showLabel?Ee`<div class="label ${this.size}">${this.label}</div>`:Ue}
|
|
5346
5346
|
<epg-icon class="icon ${this.size}" icon-name=${this.rightIcon}></epg-icon>
|
|
5347
5347
|
`,e}}Us([ue({attribute:Ui.label.name})],Kn.prototype,"label");Us([ue({attribute:Ui.leftIcon.name})],Kn.prototype,"leftIcon");Us([ue({attribute:Ui.rightIcon.name})],Kn.prototype,"rightIcon");Us([ue({attribute:Ui.loadingLabel.name})],Kn.prototype,"loadingLabel");Us([ue({type:Boolean,attribute:Ui.togglable.name})],Kn.prototype,"togglable");Us([ue({type:Boolean,attribute:Ui.active.name})],Kn.prototype,"active");Us([ue({type:Boolean,attribute:Ui.showLabel.name})],Kn.prototype,"showLabel");Us([ue({attribute:Ui.tooltipLabel.name})],Kn.prototype,"tooltipLabel");Us([ue({attribute:Ui.tooltipLeftIcon.name})],Kn.prototype,"tooltipLeftIcon");Us([ue({attribute:Ui.tooltipRightIcon.name})],Kn.prototype,"tooltipRightIcon");window.customElements.get(uw)||window.customElements.define(uw,Kn);const dw="epg-carousel-item",z$={...uF},zh={label:{name:"label",defaultValue:"Starter Component"},imgSrc:{name:"img-src",defaultValue:""},state:{name:"state"}};var G$=Object.defineProperty,O_=(o,e,t,i)=>{for(var a=void 0,l=o.length-1,h;l>=0;l--)(h=o[l])&&(a=h(e,t,a)||a);return a&&G$(e,t,a),a};class H${constructor(e){this.mediaAlt=e.altText,this.src=e.uri,this.mediaCaption=e.mediaCaption}getRenderTemplate(){return this.src?Ee`
|
|
5348
5348
|
<epg-media media-src=${this.src} media-type=${Fh.IMAGE} media-alt=${this.mediaAlt}></epg-media>
|
|
@@ -5350,14 +5350,14 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
5350
5350
|
<div class="media-caption">
|
|
5351
5351
|
<span>${this.mediaCaption}</span>
|
|
5352
5352
|
</div>
|
|
5353
|
-
|
|
5353
|
+
`:Ue}
|
|
5354
5354
|
`:null}}class V${constructor(e){this.mediaAlt=e.altText,this.src=e.uri,this.mediaCaption=e.mediaCaption}getRenderTemplate(){return Ee`
|
|
5355
5355
|
<epg-media media-src=${this.src} media-type=${Fh.VIDEO} media-alt=${this.mediaAlt}></epg-media>
|
|
5356
5356
|
${this.mediaCaption?Ee`
|
|
5357
5357
|
<div class="media-caption">
|
|
5358
5358
|
<span>${this.mediaCaption}</span>
|
|
5359
5359
|
</div>
|
|
5360
|
-
|
|
5360
|
+
`:Ue}
|
|
5361
5361
|
`}}class Zh extends Vi{constructor(){super(),this.label=zh.label.defaultValue.toString(),this.imgSrc="",this.state=zh.imgSrc.defaultValue.toString(),HC(),this.addEventListener("click",this.handleExpandClick)}static{this.styles=[super.styles,ct`
|
|
5362
5362
|
:host {
|
|
5363
5363
|
display: flex;
|
|
@@ -5410,12 +5410,12 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
5410
5410
|
|
|
5411
5411
|
<slot></slot>
|
|
5412
5412
|
<div class="expand-button">EXPAND</div>
|
|
5413
|
-
`}}O_([ue({attribute:zh.label.name})],Zh.prototype,"label");O_([ue({attribute:zh.imgSrc.name})],Zh.prototype,"imgSrc");O_([ue({attribute:zh.state.name})],Zh.prototype,"state");window.customElements.get(dw)||window.customElements.define(dw,Zh);/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:VC,setPrototypeOf:fw,isFrozen:Q$,getPrototypeOf:q$,getOwnPropertyDescriptor:j$}=Object;let{freeze:fn,seal:Xn,create:QC}=Object,{apply:a0,construct:o0}=typeof Reflect<"u"&&Reflect;fn||(fn=function(e){return e});Xn||(Xn=function(e){return e});a0||(a0=function(e,t){for(var i=arguments.length,a=new Array(i>2?i-2:0),l=2;l<i;l++)a[l-2]=arguments[l];return e.apply(t,a)});o0||(o0=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];return new e(...i)});const Yu=pn(Array.prototype.forEach),W$=pn(Array.prototype.lastIndexOf),pw=pn(Array.prototype.pop),Ic=pn(Array.prototype.push),Y$=pn(Array.prototype.splice),Fd=pn(String.prototype.toLowerCase),kg=pn(String.prototype.toString),Ug=pn(String.prototype.match),Mc=pn(String.prototype.replace),X$=pn(String.prototype.indexOf),K$=pn(String.prototype.trim),rs=pn(Object.prototype.hasOwnProperty),sn=pn(RegExp.prototype.test),Rc=J$(TypeError);function pn(o){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];return a0(o,e,i)}}function J$(o){return function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o0(o,t)}}function At(o,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fd;fw&&fw(o,null);let i=e.length;for(;i--;){let a=e[i];if(typeof a=="string"){const l=t(a);l!==a&&(Q$(e)||(e[i]=l),a=l)}o[a]=!0}return o}function Z$(o){for(let e=0;e<o.length;e++)rs(o,e)||(o[e]=null);return o}function er(o){const e=QC(null);for(const[t,i]of VC(o))rs(o,t)&&(Array.isArray(i)?e[t]=Z$(i):i&&typeof i=="object"&&i.constructor===Object?e[t]=er(i):e[t]=i);return e}function Bc(o,e){for(;o!==null;){const i=j$(o,e);if(i){if(i.get)return pn(i.get);if(typeof i.value=="function")return pn(i.value)}o=q$(o)}function t(){return null}return t}const gw=fn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Fg=fn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),$g=fn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ez=fn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),zg=fn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),tz=fn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mw=fn(["#text"]),Aw=fn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Gg=fn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),_w=fn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Xu=fn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),iz=Xn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nz=Xn(/<%[\w\W]*|[\w\W]*%>/gm),sz=Xn(/\$\{[\w\W]*/gm),rz=Xn(/^data-[\-\w.\u00B7-\uFFFF]+$/),az=Xn(/^aria-[\-\w]+$/),qC=Xn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oz=Xn(/^(?:\w+script|data):/i),lz=Xn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),jC=Xn(/^html$/i),cz=Xn(/^[a-z][.\w]*(-[.\w]+)+$/i);var yw=Object.freeze({__proto__:null,ARIA_ATTR:az,ATTR_WHITESPACE:lz,CUSTOM_ELEMENT:cz,DATA_ATTR:rz,DOCTYPE_NAME:jC,ERB_EXPR:nz,IS_ALLOWED_URI:qC,IS_SCRIPT_OR_DATA:oz,MUSTACHE_EXPR:iz,TMPLIT_EXPR:sz});const Pc={element:1,text:3,progressingInstruction:7,comment:8,document:9},hz=function(){return typeof window>"u"?null:window},uz=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(i=t.getAttribute(a));const l="dompurify"+(i?"#"+i:"");try{return e.createPolicy(l,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}},bw=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function WC(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hz();const e=Ye=>WC(Ye);if(e.version="3.2.7",e.removed=[],!o||!o.document||o.document.nodeType!==Pc.document||!o.Element)return e.isSupported=!1,e;let{document:t}=o;const i=t,a=i.currentScript,{DocumentFragment:l,HTMLTemplateElement:h,Node:d,Element:p,NodeFilter:g,NamedNodeMap:A=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:_,DOMParser:b,trustedTypes:w}=o,E=p.prototype,C=Bc(E,"cloneNode"),T=Bc(E,"remove"),x=Bc(E,"nextSibling"),P=Bc(E,"childNodes"),M=Bc(E,"parentNode");if(typeof h=="function"){const Ye=t.createElement("template");Ye.content&&Ye.content.ownerDocument&&(t=Ye.content.ownerDocument)}let R,D="";const{implementation:G,createNodeIterator:U,createDocumentFragment:H,getElementsByTagName:k}=t,{importNode:$}=i;let Q=bw();e.isSupported=typeof VC=="function"&&typeof M=="function"&&G&&G.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Z,ERB_EXPR:X,TMPLIT_EXPR:s,DATA_ATTR:V,ARIA_ATTR:y,IS_SCRIPT_OR_DATA:ee,ATTR_WHITESPACE:I,CUSTOM_ELEMENT:re}=yw;let{IS_ALLOWED_URI:Ae}=yw,N=null;const n=At({},[...gw,...Fg,...$g,...zg,...mw]);let r=null;const c=At({},[...Aw,...Gg,..._w,...Xu]);let u=Object.seal(QC(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),f=null,m=null,v=!0,S=!0,B=!1,L=!0,F=!1,z=!0,O=!1,W=!1,Y=!1,te=!1,K=!1,ie=!1,de=!0,j=!1;const q="user-content-";let ae=!0,me=!1,fe={},he=null;const ve=At({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Re=null;const Le=At({},["audio","video","img","source","image","track"]);let Xe=null;const xe=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pe="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",Ue="http://www.w3.org/1999/xhtml";let Ne=Ue,et=!1,Ke=null;const gt=At({},[Pe,Ie,Ue],kg);let ne=At({},["mi","mo","mn","ms","mtext"]),Oe=At({},["annotation-xml"]);const ye=At({},["title","style","font","a","script"]);let we=null;const Ge=["application/xhtml+xml","text/html"],ze="text/html";let We=null,Ft=null;const Si=t.createElement("form"),It=function(le){return le instanceof RegExp||le instanceof Function},Zi=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ft&&Ft===le)){if((!le||typeof le!="object")&&(le={}),le=er(le),we=Ge.indexOf(le.PARSER_MEDIA_TYPE)===-1?ze:le.PARSER_MEDIA_TYPE,We=we==="application/xhtml+xml"?kg:Fd,N=rs(le,"ALLOWED_TAGS")?At({},le.ALLOWED_TAGS,We):n,r=rs(le,"ALLOWED_ATTR")?At({},le.ALLOWED_ATTR,We):c,Ke=rs(le,"ALLOWED_NAMESPACES")?At({},le.ALLOWED_NAMESPACES,kg):gt,Xe=rs(le,"ADD_URI_SAFE_ATTR")?At(er(xe),le.ADD_URI_SAFE_ATTR,We):xe,Re=rs(le,"ADD_DATA_URI_TAGS")?At(er(Le),le.ADD_DATA_URI_TAGS,We):Le,he=rs(le,"FORBID_CONTENTS")?At({},le.FORBID_CONTENTS,We):ve,f=rs(le,"FORBID_TAGS")?At({},le.FORBID_TAGS,We):er({}),m=rs(le,"FORBID_ATTR")?At({},le.FORBID_ATTR,We):er({}),fe=rs(le,"USE_PROFILES")?le.USE_PROFILES:!1,v=le.ALLOW_ARIA_ATTR!==!1,S=le.ALLOW_DATA_ATTR!==!1,B=le.ALLOW_UNKNOWN_PROTOCOLS||!1,L=le.ALLOW_SELF_CLOSE_IN_ATTR!==!1,F=le.SAFE_FOR_TEMPLATES||!1,z=le.SAFE_FOR_XML!==!1,O=le.WHOLE_DOCUMENT||!1,te=le.RETURN_DOM||!1,K=le.RETURN_DOM_FRAGMENT||!1,ie=le.RETURN_TRUSTED_TYPE||!1,Y=le.FORCE_BODY||!1,de=le.SANITIZE_DOM!==!1,j=le.SANITIZE_NAMED_PROPS||!1,ae=le.KEEP_CONTENT!==!1,me=le.IN_PLACE||!1,Ae=le.ALLOWED_URI_REGEXP||qC,Ne=le.NAMESPACE||Ue,ne=le.MATHML_TEXT_INTEGRATION_POINTS||ne,Oe=le.HTML_INTEGRATION_POINTS||Oe,u=le.CUSTOM_ELEMENT_HANDLING||{},le.CUSTOM_ELEMENT_HANDLING&&It(le.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=le.CUSTOM_ELEMENT_HANDLING.tagNameCheck),le.CUSTOM_ELEMENT_HANDLING&&It(le.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=le.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),le.CUSTOM_ELEMENT_HANDLING&&typeof le.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=le.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),F&&(S=!1),K&&(te=!0),fe&&(N=At({},mw),r=[],fe.html===!0&&(At(N,gw),At(r,Aw)),fe.svg===!0&&(At(N,Fg),At(r,Gg),At(r,Xu)),fe.svgFilters===!0&&(At(N,$g),At(r,Gg),At(r,Xu)),fe.mathMl===!0&&(At(N,zg),At(r,_w),At(r,Xu))),le.ADD_TAGS&&(N===n&&(N=er(N)),At(N,le.ADD_TAGS,We)),le.ADD_ATTR&&(r===c&&(r=er(r)),At(r,le.ADD_ATTR,We)),le.ADD_URI_SAFE_ATTR&&At(Xe,le.ADD_URI_SAFE_ATTR,We),le.FORBID_CONTENTS&&(he===ve&&(he=er(he)),At(he,le.FORBID_CONTENTS,We)),ae&&(N["#text"]=!0),O&&At(N,["html","head","body"]),N.table&&(At(N,["tbody"]),delete f.tbody),le.TRUSTED_TYPES_POLICY){if(typeof le.TRUSTED_TYPES_POLICY.createHTML!="function")throw Rc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof le.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Rc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');R=le.TRUSTED_TYPES_POLICY,D=R.createHTML("")}else R===void 0&&(R=uz(w,a)),R!==null&&typeof D=="string"&&(D=R.createHTML(""));fn&&fn(le),Ft=le}},kn=At({},[...Fg,...$g,...ez]),ic=At({},[...zg,...tz]),au=function(le){let Be=M(le);(!Be||!Be.tagName)&&(Be={namespaceURI:Ne,tagName:"template"});const J=Fd(le.tagName),oe=Fd(Be.tagName);return Ke[le.namespaceURI]?le.namespaceURI===Ie?Be.namespaceURI===Ue?J==="svg":Be.namespaceURI===Pe?J==="svg"&&(oe==="annotation-xml"||ne[oe]):!!kn[J]:le.namespaceURI===Pe?Be.namespaceURI===Ue?J==="math":Be.namespaceURI===Ie?J==="math"&&Oe[oe]:!!ic[J]:le.namespaceURI===Ue?Be.namespaceURI===Ie&&!Oe[oe]||Be.namespaceURI===Pe&&!ne[oe]?!1:!ic[J]&&(ye[J]||!kn[J]):!!(we==="application/xhtml+xml"&&Ke[le.namespaceURI]):!1},Ci=function(le){Ic(e.removed,{element:le});try{M(le).removeChild(le)}catch{T(le)}},Jn=function(le,Be){try{Ic(e.removed,{attribute:Be.getAttributeNode(le),from:Be})}catch{Ic(e.removed,{attribute:null,from:Be})}if(Be.removeAttribute(le),le==="is")if(te||K)try{Ci(Be)}catch{}else try{Be.setAttribute(le,"")}catch{}},nc=function(le){let Be=null,J=null;if(Y)le="<remove></remove>"+le;else{const ge=Ug(le,/^[\r\n\t ]+/);J=ge&&ge[0]}we==="application/xhtml+xml"&&Ne===Ue&&(le='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+le+"</body></html>");const oe=R?R.createHTML(le):le;if(Ne===Ue)try{Be=new b().parseFromString(oe,we)}catch{}if(!Be||!Be.documentElement){Be=G.createDocument(Ne,"template",null);try{Be.documentElement.innerHTML=et?D:oe}catch{}}const pe=Be.body||Be.documentElement;return le&&J&&pe.insertBefore(t.createTextNode(J),pe.childNodes[0]||null),Ne===Ue?k.call(Be,O?"html":"body")[0]:O?Be.documentElement:pe},sc=function(le){return U.call(le.ownerDocument||le,le,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},pr=function(le){return le instanceof _&&(typeof le.nodeName!="string"||typeof le.textContent!="string"||typeof le.removeChild!="function"||!(le.attributes instanceof A)||typeof le.removeAttribute!="function"||typeof le.setAttribute!="function"||typeof le.namespaceURI!="string"||typeof le.insertBefore!="function"||typeof le.hasChildNodes!="function")},rc=function(le){return typeof d=="function"&&le instanceof d};function mn(Ye,le,Be){Yu(Ye,J=>{J.call(e,le,Be,Ft)})}const ac=function(le){let Be=null;if(mn(Q.beforeSanitizeElements,le,null),pr(le))return Ci(le),!0;const J=We(le.nodeName);if(mn(Q.uponSanitizeElement,le,{tagName:J,allowedTags:N}),z&&le.hasChildNodes()&&!rc(le.firstElementChild)&&sn(/<[/\w!]/g,le.innerHTML)&&sn(/<[/\w!]/g,le.textContent)||le.nodeType===Pc.progressingInstruction||z&&le.nodeType===Pc.comment&&sn(/<[/\w]/g,le.data))return Ci(le),!0;if(!N[J]||f[J]){if(!f[J]&&ou(J)&&(u.tagNameCheck instanceof RegExp&&sn(u.tagNameCheck,J)||u.tagNameCheck instanceof Function&&u.tagNameCheck(J)))return!1;if(ae&&!he[J]){const oe=M(le)||le.parentNode,pe=P(le)||le.childNodes;if(pe&&oe){const ge=pe.length;for(let ce=ge-1;ce>=0;--ce){const Ce=C(pe[ce],!0);Ce.__removalCount=(le.__removalCount||0)+1,oe.insertBefore(Ce,x(le))}}}return Ci(le),!0}return le instanceof p&&!au(le)||(J==="noscript"||J==="noembed"||J==="noframes")&&sn(/<\/no(script|embed|frames)/i,le.innerHTML)?(Ci(le),!0):(F&&le.nodeType===Pc.text&&(Be=le.textContent,Yu([Z,X,s],oe=>{Be=Mc(Be,oe," ")}),le.textContent!==Be&&(Ic(e.removed,{element:le.cloneNode()}),le.textContent=Be)),mn(Q.afterSanitizeElements,le,null),!1)},oc=function(le,Be,J){if(de&&(Be==="id"||Be==="name")&&(J in t||J in Si))return!1;if(!(S&&!m[Be]&&sn(V,Be))){if(!(v&&sn(y,Be))){if(!r[Be]||m[Be]){if(!(ou(le)&&(u.tagNameCheck instanceof RegExp&&sn(u.tagNameCheck,le)||u.tagNameCheck instanceof Function&&u.tagNameCheck(le))&&(u.attributeNameCheck instanceof RegExp&&sn(u.attributeNameCheck,Be)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(Be,le))||Be==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&sn(u.tagNameCheck,J)||u.tagNameCheck instanceof Function&&u.tagNameCheck(J))))return!1}else if(!Xe[Be]){if(!sn(Ae,Mc(J,I,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&le!=="script"&&X$(J,"data:")===0&&Re[le])){if(!(B&&!sn(ee,Mc(J,I,"")))){if(J)return!1}}}}}}return!0},ou=function(le){return le!=="annotation-xml"&&Ug(le,re)},lu=function(le){mn(Q.beforeSanitizeAttributes,le,null);const{attributes:Be}=le;if(!Be||pr(le))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:r,forceKeepAttr:void 0};let oe=Be.length;for(;oe--;){const pe=Be[oe],{name:ge,namespaceURI:ce,value:Ce}=pe,ke=We(ge),Ve=Ce;let De=ge==="value"?Ve:K$(Ve);if(J.attrName=ke,J.attrValue=De,J.keepAttr=!0,J.forceKeepAttr=void 0,mn(Q.uponSanitizeAttribute,le,J),De=J.attrValue,j&&(ke==="id"||ke==="name")&&(Jn(ge,le),De=q+De),z&&sn(/((--!?|])>)|<\/(style|title|textarea)/i,De)){Jn(ge,le);continue}if(ke==="attributename"&&Ug(De,"href")){Jn(ge,le);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){Jn(ge,le);continue}if(!L&&sn(/\/>/i,De)){Jn(ge,le);continue}F&&Yu([Z,X,s],st=>{De=Mc(De,st," ")});const it=We(le.nodeName);if(!oc(it,ke,De)){Jn(ge,le);continue}if(R&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!ce)switch(w.getAttributeType(it,ke)){case"TrustedHTML":{De=R.createHTML(De);break}case"TrustedScriptURL":{De=R.createScriptURL(De);break}}if(De!==Ve)try{ce?le.setAttributeNS(ce,ge,De):le.setAttribute(ge,De),pr(le)?Ci(le):pw(e.removed)}catch{Jn(ge,le)}}mn(Q.afterSanitizeAttributes,le,null)},lp=function Ye(le){let Be=null;const J=sc(le);for(mn(Q.beforeSanitizeShadowDOM,le,null);Be=J.nextNode();)mn(Q.uponSanitizeShadowNode,Be,null),ac(Be),lu(Be),Be.content instanceof l&&Ye(Be.content);mn(Q.afterSanitizeShadowDOM,le,null)};return e.sanitize=function(Ye){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,J=null,oe=null,pe=null;if(et=!Ye,et&&(Ye="<!-->"),typeof Ye!="string"&&!rc(Ye))if(typeof Ye.toString=="function"){if(Ye=Ye.toString(),typeof Ye!="string")throw Rc("dirty is not a string, aborting")}else throw Rc("toString is not a function");if(!e.isSupported)return Ye;if(W||Zi(le),e.removed=[],typeof Ye=="string"&&(me=!1),me){if(Ye.nodeName){const Ce=We(Ye.nodeName);if(!N[Ce]||f[Ce])throw Rc("root node is forbidden and cannot be sanitized in-place")}}else if(Ye instanceof d)Be=nc("<!---->"),J=Be.ownerDocument.importNode(Ye,!0),J.nodeType===Pc.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?Be=J:Be.appendChild(J);else{if(!te&&!F&&!O&&Ye.indexOf("<")===-1)return R&&ie?R.createHTML(Ye):Ye;if(Be=nc(Ye),!Be)return te?null:ie?D:""}Be&&Y&&Ci(Be.firstChild);const ge=sc(me?Ye:Be);for(;oe=ge.nextNode();)ac(oe),lu(oe),oe.content instanceof l&&lp(oe.content);if(me)return Ye;if(te){if(K)for(pe=H.call(Be.ownerDocument);Be.firstChild;)pe.appendChild(Be.firstChild);else pe=Be;return(r.shadowroot||r.shadowrootmode)&&(pe=$.call(i,pe,!0)),pe}let ce=O?Be.outerHTML:Be.innerHTML;return O&&N["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&sn(jC,Be.ownerDocument.doctype.name)&&(ce="<!DOCTYPE "+Be.ownerDocument.doctype.name+`>
|
|
5413
|
+
`}}O_([ue({attribute:zh.label.name})],Zh.prototype,"label");O_([ue({attribute:zh.imgSrc.name})],Zh.prototype,"imgSrc");O_([ue({attribute:zh.state.name})],Zh.prototype,"state");window.customElements.get(dw)||window.customElements.define(dw,Zh);/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:VC,setPrototypeOf:fw,isFrozen:Q$,getPrototypeOf:q$,getOwnPropertyDescriptor:j$}=Object;let{freeze:fn,seal:Xn,create:QC}=Object,{apply:a0,construct:o0}=typeof Reflect<"u"&&Reflect;fn||(fn=function(e){return e});Xn||(Xn=function(e){return e});a0||(a0=function(e,t){for(var i=arguments.length,a=new Array(i>2?i-2:0),l=2;l<i;l++)a[l-2]=arguments[l];return e.apply(t,a)});o0||(o0=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];return new e(...i)});const Yu=pn(Array.prototype.forEach),W$=pn(Array.prototype.lastIndexOf),pw=pn(Array.prototype.pop),Ic=pn(Array.prototype.push),Y$=pn(Array.prototype.splice),Fd=pn(String.prototype.toLowerCase),kg=pn(String.prototype.toString),Ug=pn(String.prototype.match),Mc=pn(String.prototype.replace),X$=pn(String.prototype.indexOf),K$=pn(String.prototype.trim),rs=pn(Object.prototype.hasOwnProperty),sn=pn(RegExp.prototype.test),Rc=J$(TypeError);function pn(o){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];return a0(o,e,i)}}function J$(o){return function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o0(o,t)}}function At(o,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fd;fw&&fw(o,null);let i=e.length;for(;i--;){let a=e[i];if(typeof a=="string"){const l=t(a);l!==a&&(Q$(e)||(e[i]=l),a=l)}o[a]=!0}return o}function Z$(o){for(let e=0;e<o.length;e++)rs(o,e)||(o[e]=null);return o}function er(o){const e=QC(null);for(const[t,i]of VC(o))rs(o,t)&&(Array.isArray(i)?e[t]=Z$(i):i&&typeof i=="object"&&i.constructor===Object?e[t]=er(i):e[t]=i);return e}function Bc(o,e){for(;o!==null;){const i=j$(o,e);if(i){if(i.get)return pn(i.get);if(typeof i.value=="function")return pn(i.value)}o=q$(o)}function t(){return null}return t}const gw=fn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Fg=fn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),$g=fn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ez=fn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),zg=fn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),tz=fn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mw=fn(["#text"]),Aw=fn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Gg=fn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),_w=fn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Xu=fn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),iz=Xn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nz=Xn(/<%[\w\W]*|[\w\W]*%>/gm),sz=Xn(/\$\{[\w\W]*/gm),rz=Xn(/^data-[\-\w.\u00B7-\uFFFF]+$/),az=Xn(/^aria-[\-\w]+$/),qC=Xn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oz=Xn(/^(?:\w+script|data):/i),lz=Xn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),jC=Xn(/^html$/i),cz=Xn(/^[a-z][.\w]*(-[.\w]+)+$/i);var yw=Object.freeze({__proto__:null,ARIA_ATTR:az,ATTR_WHITESPACE:lz,CUSTOM_ELEMENT:cz,DATA_ATTR:rz,DOCTYPE_NAME:jC,ERB_EXPR:nz,IS_ALLOWED_URI:qC,IS_SCRIPT_OR_DATA:oz,MUSTACHE_EXPR:iz,TMPLIT_EXPR:sz});const Pc={element:1,text:3,progressingInstruction:7,comment:8,document:9},hz=function(){return typeof window>"u"?null:window},uz=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(i=t.getAttribute(a));const l="dompurify"+(i?"#"+i:"");try{return e.createPolicy(l,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}},bw=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function WC(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hz();const e=Ye=>WC(Ye);if(e.version="3.2.7",e.removed=[],!o||!o.document||o.document.nodeType!==Pc.document||!o.Element)return e.isSupported=!1,e;let{document:t}=o;const i=t,a=i.currentScript,{DocumentFragment:l,HTMLTemplateElement:h,Node:d,Element:p,NodeFilter:g,NamedNodeMap:A=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:_,DOMParser:b,trustedTypes:w}=o,E=p.prototype,C=Bc(E,"cloneNode"),T=Bc(E,"remove"),x=Bc(E,"nextSibling"),P=Bc(E,"childNodes"),M=Bc(E,"parentNode");if(typeof h=="function"){const Ye=t.createElement("template");Ye.content&&Ye.content.ownerDocument&&(t=Ye.content.ownerDocument)}let R,D="";const{implementation:G,createNodeIterator:U,createDocumentFragment:H,getElementsByTagName:k}=t,{importNode:$}=i;let Q=bw();e.isSupported=typeof VC=="function"&&typeof M=="function"&&G&&G.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Z,ERB_EXPR:X,TMPLIT_EXPR:s,DATA_ATTR:V,ARIA_ATTR:y,IS_SCRIPT_OR_DATA:ee,ATTR_WHITESPACE:I,CUSTOM_ELEMENT:re}=yw;let{IS_ALLOWED_URI:Ae}=yw,N=null;const n=At({},[...gw,...Fg,...$g,...zg,...mw]);let r=null;const c=At({},[...Aw,...Gg,..._w,...Xu]);let u=Object.seal(QC(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),f=null,m=null,v=!0,S=!0,B=!1,L=!0,F=!1,z=!0,O=!1,W=!1,Y=!1,te=!1,K=!1,ie=!1,de=!0,j=!1;const q="user-content-";let ae=!0,me=!1,fe={},he=null;const ve=At({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Re=null;const Le=At({},["audio","video","img","source","image","track"]);let Xe=null;const xe=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pe="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let Ne=Fe,et=!1,Ke=null;const gt=At({},[Pe,Ie,Fe],kg);let ne=At({},["mi","mo","mn","ms","mtext"]),Oe=At({},["annotation-xml"]);const ye=At({},["title","style","font","a","script"]);let we=null;const Ge=["application/xhtml+xml","text/html"],ze="text/html";let We=null,Ft=null;const Si=t.createElement("form"),It=function(le){return le instanceof RegExp||le instanceof Function},Zi=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ft&&Ft===le)){if((!le||typeof le!="object")&&(le={}),le=er(le),we=Ge.indexOf(le.PARSER_MEDIA_TYPE)===-1?ze:le.PARSER_MEDIA_TYPE,We=we==="application/xhtml+xml"?kg:Fd,N=rs(le,"ALLOWED_TAGS")?At({},le.ALLOWED_TAGS,We):n,r=rs(le,"ALLOWED_ATTR")?At({},le.ALLOWED_ATTR,We):c,Ke=rs(le,"ALLOWED_NAMESPACES")?At({},le.ALLOWED_NAMESPACES,kg):gt,Xe=rs(le,"ADD_URI_SAFE_ATTR")?At(er(xe),le.ADD_URI_SAFE_ATTR,We):xe,Re=rs(le,"ADD_DATA_URI_TAGS")?At(er(Le),le.ADD_DATA_URI_TAGS,We):Le,he=rs(le,"FORBID_CONTENTS")?At({},le.FORBID_CONTENTS,We):ve,f=rs(le,"FORBID_TAGS")?At({},le.FORBID_TAGS,We):er({}),m=rs(le,"FORBID_ATTR")?At({},le.FORBID_ATTR,We):er({}),fe=rs(le,"USE_PROFILES")?le.USE_PROFILES:!1,v=le.ALLOW_ARIA_ATTR!==!1,S=le.ALLOW_DATA_ATTR!==!1,B=le.ALLOW_UNKNOWN_PROTOCOLS||!1,L=le.ALLOW_SELF_CLOSE_IN_ATTR!==!1,F=le.SAFE_FOR_TEMPLATES||!1,z=le.SAFE_FOR_XML!==!1,O=le.WHOLE_DOCUMENT||!1,te=le.RETURN_DOM||!1,K=le.RETURN_DOM_FRAGMENT||!1,ie=le.RETURN_TRUSTED_TYPE||!1,Y=le.FORCE_BODY||!1,de=le.SANITIZE_DOM!==!1,j=le.SANITIZE_NAMED_PROPS||!1,ae=le.KEEP_CONTENT!==!1,me=le.IN_PLACE||!1,Ae=le.ALLOWED_URI_REGEXP||qC,Ne=le.NAMESPACE||Fe,ne=le.MATHML_TEXT_INTEGRATION_POINTS||ne,Oe=le.HTML_INTEGRATION_POINTS||Oe,u=le.CUSTOM_ELEMENT_HANDLING||{},le.CUSTOM_ELEMENT_HANDLING&&It(le.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=le.CUSTOM_ELEMENT_HANDLING.tagNameCheck),le.CUSTOM_ELEMENT_HANDLING&&It(le.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=le.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),le.CUSTOM_ELEMENT_HANDLING&&typeof le.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=le.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),F&&(S=!1),K&&(te=!0),fe&&(N=At({},mw),r=[],fe.html===!0&&(At(N,gw),At(r,Aw)),fe.svg===!0&&(At(N,Fg),At(r,Gg),At(r,Xu)),fe.svgFilters===!0&&(At(N,$g),At(r,Gg),At(r,Xu)),fe.mathMl===!0&&(At(N,zg),At(r,_w),At(r,Xu))),le.ADD_TAGS&&(N===n&&(N=er(N)),At(N,le.ADD_TAGS,We)),le.ADD_ATTR&&(r===c&&(r=er(r)),At(r,le.ADD_ATTR,We)),le.ADD_URI_SAFE_ATTR&&At(Xe,le.ADD_URI_SAFE_ATTR,We),le.FORBID_CONTENTS&&(he===ve&&(he=er(he)),At(he,le.FORBID_CONTENTS,We)),ae&&(N["#text"]=!0),O&&At(N,["html","head","body"]),N.table&&(At(N,["tbody"]),delete f.tbody),le.TRUSTED_TYPES_POLICY){if(typeof le.TRUSTED_TYPES_POLICY.createHTML!="function")throw Rc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof le.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Rc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');R=le.TRUSTED_TYPES_POLICY,D=R.createHTML("")}else R===void 0&&(R=uz(w,a)),R!==null&&typeof D=="string"&&(D=R.createHTML(""));fn&&fn(le),Ft=le}},kn=At({},[...Fg,...$g,...ez]),ic=At({},[...zg,...tz]),au=function(le){let Be=M(le);(!Be||!Be.tagName)&&(Be={namespaceURI:Ne,tagName:"template"});const J=Fd(le.tagName),oe=Fd(Be.tagName);return Ke[le.namespaceURI]?le.namespaceURI===Ie?Be.namespaceURI===Fe?J==="svg":Be.namespaceURI===Pe?J==="svg"&&(oe==="annotation-xml"||ne[oe]):!!kn[J]:le.namespaceURI===Pe?Be.namespaceURI===Fe?J==="math":Be.namespaceURI===Ie?J==="math"&&Oe[oe]:!!ic[J]:le.namespaceURI===Fe?Be.namespaceURI===Ie&&!Oe[oe]||Be.namespaceURI===Pe&&!ne[oe]?!1:!ic[J]&&(ye[J]||!kn[J]):!!(we==="application/xhtml+xml"&&Ke[le.namespaceURI]):!1},Ci=function(le){Ic(e.removed,{element:le});try{M(le).removeChild(le)}catch{T(le)}},Jn=function(le,Be){try{Ic(e.removed,{attribute:Be.getAttributeNode(le),from:Be})}catch{Ic(e.removed,{attribute:null,from:Be})}if(Be.removeAttribute(le),le==="is")if(te||K)try{Ci(Be)}catch{}else try{Be.setAttribute(le,"")}catch{}},nc=function(le){let Be=null,J=null;if(Y)le="<remove></remove>"+le;else{const ge=Ug(le,/^[\r\n\t ]+/);J=ge&&ge[0]}we==="application/xhtml+xml"&&Ne===Fe&&(le='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+le+"</body></html>");const oe=R?R.createHTML(le):le;if(Ne===Fe)try{Be=new b().parseFromString(oe,we)}catch{}if(!Be||!Be.documentElement){Be=G.createDocument(Ne,"template",null);try{Be.documentElement.innerHTML=et?D:oe}catch{}}const pe=Be.body||Be.documentElement;return le&&J&&pe.insertBefore(t.createTextNode(J),pe.childNodes[0]||null),Ne===Fe?k.call(Be,O?"html":"body")[0]:O?Be.documentElement:pe},sc=function(le){return U.call(le.ownerDocument||le,le,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},pr=function(le){return le instanceof _&&(typeof le.nodeName!="string"||typeof le.textContent!="string"||typeof le.removeChild!="function"||!(le.attributes instanceof A)||typeof le.removeAttribute!="function"||typeof le.setAttribute!="function"||typeof le.namespaceURI!="string"||typeof le.insertBefore!="function"||typeof le.hasChildNodes!="function")},rc=function(le){return typeof d=="function"&&le instanceof d};function mn(Ye,le,Be){Yu(Ye,J=>{J.call(e,le,Be,Ft)})}const ac=function(le){let Be=null;if(mn(Q.beforeSanitizeElements,le,null),pr(le))return Ci(le),!0;const J=We(le.nodeName);if(mn(Q.uponSanitizeElement,le,{tagName:J,allowedTags:N}),z&&le.hasChildNodes()&&!rc(le.firstElementChild)&&sn(/<[/\w!]/g,le.innerHTML)&&sn(/<[/\w!]/g,le.textContent)||le.nodeType===Pc.progressingInstruction||z&&le.nodeType===Pc.comment&&sn(/<[/\w]/g,le.data))return Ci(le),!0;if(!N[J]||f[J]){if(!f[J]&&ou(J)&&(u.tagNameCheck instanceof RegExp&&sn(u.tagNameCheck,J)||u.tagNameCheck instanceof Function&&u.tagNameCheck(J)))return!1;if(ae&&!he[J]){const oe=M(le)||le.parentNode,pe=P(le)||le.childNodes;if(pe&&oe){const ge=pe.length;for(let ce=ge-1;ce>=0;--ce){const Ce=C(pe[ce],!0);Ce.__removalCount=(le.__removalCount||0)+1,oe.insertBefore(Ce,x(le))}}}return Ci(le),!0}return le instanceof p&&!au(le)||(J==="noscript"||J==="noembed"||J==="noframes")&&sn(/<\/no(script|embed|frames)/i,le.innerHTML)?(Ci(le),!0):(F&&le.nodeType===Pc.text&&(Be=le.textContent,Yu([Z,X,s],oe=>{Be=Mc(Be,oe," ")}),le.textContent!==Be&&(Ic(e.removed,{element:le.cloneNode()}),le.textContent=Be)),mn(Q.afterSanitizeElements,le,null),!1)},oc=function(le,Be,J){if(de&&(Be==="id"||Be==="name")&&(J in t||J in Si))return!1;if(!(S&&!m[Be]&&sn(V,Be))){if(!(v&&sn(y,Be))){if(!r[Be]||m[Be]){if(!(ou(le)&&(u.tagNameCheck instanceof RegExp&&sn(u.tagNameCheck,le)||u.tagNameCheck instanceof Function&&u.tagNameCheck(le))&&(u.attributeNameCheck instanceof RegExp&&sn(u.attributeNameCheck,Be)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(Be,le))||Be==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&sn(u.tagNameCheck,J)||u.tagNameCheck instanceof Function&&u.tagNameCheck(J))))return!1}else if(!Xe[Be]){if(!sn(Ae,Mc(J,I,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&le!=="script"&&X$(J,"data:")===0&&Re[le])){if(!(B&&!sn(ee,Mc(J,I,"")))){if(J)return!1}}}}}}return!0},ou=function(le){return le!=="annotation-xml"&&Ug(le,re)},lu=function(le){mn(Q.beforeSanitizeAttributes,le,null);const{attributes:Be}=le;if(!Be||pr(le))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:r,forceKeepAttr:void 0};let oe=Be.length;for(;oe--;){const pe=Be[oe],{name:ge,namespaceURI:ce,value:Ce}=pe,ke=We(ge),Ve=Ce;let De=ge==="value"?Ve:K$(Ve);if(J.attrName=ke,J.attrValue=De,J.keepAttr=!0,J.forceKeepAttr=void 0,mn(Q.uponSanitizeAttribute,le,J),De=J.attrValue,j&&(ke==="id"||ke==="name")&&(Jn(ge,le),De=q+De),z&&sn(/((--!?|])>)|<\/(style|title|textarea)/i,De)){Jn(ge,le);continue}if(ke==="attributename"&&Ug(De,"href")){Jn(ge,le);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){Jn(ge,le);continue}if(!L&&sn(/\/>/i,De)){Jn(ge,le);continue}F&&Yu([Z,X,s],st=>{De=Mc(De,st," ")});const it=We(le.nodeName);if(!oc(it,ke,De)){Jn(ge,le);continue}if(R&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!ce)switch(w.getAttributeType(it,ke)){case"TrustedHTML":{De=R.createHTML(De);break}case"TrustedScriptURL":{De=R.createScriptURL(De);break}}if(De!==Ve)try{ce?le.setAttributeNS(ce,ge,De):le.setAttribute(ge,De),pr(le)?Ci(le):pw(e.removed)}catch{Jn(ge,le)}}mn(Q.afterSanitizeAttributes,le,null)},lp=function Ye(le){let Be=null;const J=sc(le);for(mn(Q.beforeSanitizeShadowDOM,le,null);Be=J.nextNode();)mn(Q.uponSanitizeShadowNode,Be,null),ac(Be),lu(Be),Be.content instanceof l&&Ye(Be.content);mn(Q.afterSanitizeShadowDOM,le,null)};return e.sanitize=function(Ye){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,J=null,oe=null,pe=null;if(et=!Ye,et&&(Ye="<!-->"),typeof Ye!="string"&&!rc(Ye))if(typeof Ye.toString=="function"){if(Ye=Ye.toString(),typeof Ye!="string")throw Rc("dirty is not a string, aborting")}else throw Rc("toString is not a function");if(!e.isSupported)return Ye;if(W||Zi(le),e.removed=[],typeof Ye=="string"&&(me=!1),me){if(Ye.nodeName){const Ce=We(Ye.nodeName);if(!N[Ce]||f[Ce])throw Rc("root node is forbidden and cannot be sanitized in-place")}}else if(Ye instanceof d)Be=nc("<!---->"),J=Be.ownerDocument.importNode(Ye,!0),J.nodeType===Pc.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?Be=J:Be.appendChild(J);else{if(!te&&!F&&!O&&Ye.indexOf("<")===-1)return R&&ie?R.createHTML(Ye):Ye;if(Be=nc(Ye),!Be)return te?null:ie?D:""}Be&&Y&&Ci(Be.firstChild);const ge=sc(me?Ye:Be);for(;oe=ge.nextNode();)ac(oe),lu(oe),oe.content instanceof l&&lp(oe.content);if(me)return Ye;if(te){if(K)for(pe=H.call(Be.ownerDocument);Be.firstChild;)pe.appendChild(Be.firstChild);else pe=Be;return(r.shadowroot||r.shadowrootmode)&&(pe=$.call(i,pe,!0)),pe}let ce=O?Be.outerHTML:Be.innerHTML;return O&&N["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&sn(jC,Be.ownerDocument.doctype.name)&&(ce="<!DOCTYPE "+Be.ownerDocument.doctype.name+`>
|
|
5414
5414
|
`+ce),F&&Yu([Z,X,s],Ce=>{ce=Mc(ce,Ce," ")}),R&&ie?R.createHTML(ce):ce},e.setConfig=function(){let Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zi(Ye),W=!0},e.clearConfig=function(){Ft=null,W=!1},e.isValidAttribute=function(Ye,le,Be){Ft||Zi({});const J=We(Ye),oe=We(le);return oc(J,oe,Be)},e.addHook=function(Ye,le){typeof le=="function"&&Ic(Q[Ye],le)},e.removeHook=function(Ye,le){if(le!==void 0){const Be=W$(Q[Ye],le);return Be===-1?void 0:Y$(Q[Ye],Be,1)[0]}return pw(Q[Ye])},e.removeHooks=function(Ye){Q[Ye]=[]},e.removeAllHooks=function(){Q=bw()},e}var dz=WC();/**
|
|
5415
5415
|
* @license
|
|
5416
5416
|
* Copyright 2017 Google LLC
|
|
5417
5417
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5418
|
-
*/let l0=class extends L_{constructor(e){if(super(e),this.it
|
|
5418
|
+
*/let l0=class extends L_{constructor(e){if(super(e),this.it=Ue,e.type!==B_.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Ue||e==null)return this._t=void 0,this.it=e;if(e===Xr)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};l0.directiveName="unsafeHTML",l0.resultType=1;const fz=P_(l0);var pz=Object.defineProperty,eu=(o,e,t,i)=>{for(var a=void 0,l=o.length-1,h;l>=0;l--)(h=o[l])&&(a=h(e,t,a)||a);return a&&pz(e,t,a),a},Zc=(o=>(o.LEFT="left",o.RIGHT="right",o))(Zc||{});class Kl extends Vi{constructor(){super(...arguments),this.hidden=!1,this.mobile=!1,this.showNextButton=!1,this.showPreviousButton=!1}static{this.styles=[super.styles,ct`
|
|
5419
5419
|
:host {
|
|
5420
5420
|
--card-padding: 24px;
|
|
5421
5421
|
display: flex;
|
|
@@ -5455,6 +5455,10 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
5455
5455
|
}
|
|
5456
5456
|
}
|
|
5457
5457
|
|
|
5458
|
+
:host(.navigation-hidden) {
|
|
5459
|
+
padding-bottom: 20px;
|
|
5460
|
+
}
|
|
5461
|
+
|
|
5458
5462
|
.card-header {
|
|
5459
5463
|
display: flex;
|
|
5460
5464
|
flex-direction: column;
|
|
@@ -5630,7 +5634,7 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
5630
5634
|
</div>
|
|
5631
5635
|
</div>
|
|
5632
5636
|
</div>
|
|
5633
|
-
`}__renderCarousel(){if(!this.data.carousel?.mediaItems)return
|
|
5637
|
+
`}__renderCarousel(){if(!this.data.carousel?.mediaItems)return Ue;const e=this.data.carousel.mediaItems.length<=1;return Ee`
|
|
5634
5638
|
<div class="card-carousel">
|
|
5635
5639
|
<epg-carousel
|
|
5636
5640
|
nested
|
|
@@ -5644,7 +5648,7 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
5644
5648
|
<pre class="preformatted-text">${fz(e)}</pre>
|
|
5645
5649
|
</slot>
|
|
5646
5650
|
</div>
|
|
5647
|
-
|
|
5651
|
+
`:Ue}__renderCardNavigations(){return this.data.showNavigationButtons?Ee`
|
|
5648
5652
|
<div class="card-navigation">
|
|
5649
5653
|
<!-- Back -->
|
|
5650
5654
|
<epg-tool-control
|
|
@@ -5673,7 +5677,7 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
5673
5677
|
style=${this.showNextButton?"":"display: none;"}
|
|
5674
5678
|
></epg-tool-control>
|
|
5675
5679
|
</div>
|
|
5676
|
-
|
|
5680
|
+
`:Ue}__renderCardAnimationControls(){return Ee`
|
|
5677
5681
|
<div class="card-animations">
|
|
5678
5682
|
<!-- Previous -->
|
|
5679
5683
|
<epg-tool-control
|
|
@@ -5703,7 +5707,7 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
5703
5707
|
size="medium"
|
|
5704
5708
|
></epg-tool-control>
|
|
5705
5709
|
</div>
|
|
5706
|
-
`}render(){return Ee`
|
|
5710
|
+
`}render(){return this.data.showNavigationButtons||this.shadowRoot?.host.classList.add("navigation-hidden"),Ee`
|
|
5707
5711
|
${super.render()}
|
|
5708
5712
|
|
|
5709
5713
|
<slot name="replace-all">
|
|
@@ -5722,7 +5726,7 @@ vec3 texelOld = texture2D(previousShadowMap, vUv).rgb;
|
|
|
5722
5726
|
<!-- Card Animations -->
|
|
5723
5727
|
<!-- ${this.__renderCardAnimationControls()} -->
|
|
5724
5728
|
</slot>
|
|
5725
|
-
`}}eu([ue({type:Boolean,attribute:Nl.hidden.name})],Kl.prototype,"hidden");eu([ue({type:Boolean,attribute:Nl.mobile.name})],Kl.prototype,"mobile");eu([ue({type:Boolean,attribute:Nl.showNextButton.name})],Kl.prototype,"showNextButton");eu([ue({type:Boolean,attribute:Nl.showPreviousButton.name})],Kl.prototype,"showPreviousButton");eu([ue({attribute:!1})],Kl.prototype,"data");window.customElements.get(Kv)||window.customElements.define(Kv,Kl);const vw="epg-file-uploader",Cf={label:{name:"label",defaultValue:"Starter Component"},acceptedFileTypes:{name:"accepted-file-types",defaultValue:".glb"}};function Hg(o){throw new Error('Could not dynamically require "'+o+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Vg={},ww;function gz(){return ww||(ww=1,(function(o){var e=typeof process<"u"&&(process.versions||{}).hasOwnProperty("node"),t=e?Object.create(globalThis):globalThis;if(t.scheduleImmediate=typeof setImmediate<"u"?function(a){setImmediate(a)}:function(a){setTimeout(a,0)},typeof Hg<"u"&&(t.require=Hg),t.exports=o,typeof process<"u"&&(t.process=process),typeof __dirname<"u"&&(t.__dirname=__dirname),typeof __filename<"u"&&(t.__filename=__filename),typeof Buffer<"u"&&(t.Buffer=Buffer),e){var i=(typeof __webpack_require__<"u"?__non_webpack_require__:Hg)("url");Object.defineProperty(t,"location",{value:{get href(){return i.pathToFileURL?i.pathToFileURL(process.cwd()).href+"/":"file://"+(function(){var a=process.cwd();return process.platform!="win32"?a:"/"+a.replace(/\\/g,"/")})()+"/"}}}),(function(){function a(){try{throw new Error}catch(A){var h=A.stack,d=new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$","mg"),p=null;do{var g=d.exec(h);g!=null&&(p=g)}while(g!=null);return p[1]}}var l=null;Object.defineProperty(t,"document",{value:{get currentScript(){return l==null&&(l={src:a()}),l}}})})(),t.dartDeferredLibraryLoader=function(a,l,h){try{load(a),l()}catch(d){h(d)}}}(function(){function l(n,r){for(var c=Object.keys(n),u=0;u<c.length;u++){var f=c[u];r[f]=n[f]}}function h(n,r){for(var c=Object.keys(n),u=0;u<c.length;u++){var f=c[u];r.hasOwnProperty(f)||(r[f]=n[f])}}function d(n,r){Object.assign(r,n)}var p=(function(){var n=function(){};n.prototype={p:{}};var r=new n;if(!(r.__proto__&&r.__proto__.p===n.prototype.p))return!1;try{if(typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Chrome/")>=0)return!0;if(typeof version=="function"&&version.length==0){var c=version();if(/^\d+\.\d+\.\d+\.\d+$/.test(c))return!0}}catch{}return!1})();function g(n,r){if(n.prototype.constructor=n,n.prototype["$i"+n.name]=n,r!=null){if(p){n.prototype.__proto__=r.prototype;return}var c=Object.create(r.prototype);l(n.prototype,c),n.prototype=c}}function A(n,r){for(var c=0;c<r.length;c++)g(r[c],n)}function _(n,r){d(r.prototype,n.prototype),n.prototype.constructor=n}function b(n,r){h(r.prototype,n.prototype),n.prototype.constructor=n}function w(n,r,c,u){var f=n;n[r]=f,n[c]=function(){n[c]=function(){s.xP(r)};var m,v=u;try{n[r]===f?(m=n[r]=v,m=n[r]=u()):m=n[r]}finally{m===v&&(n[r]=null),n[c]=function(){return this[r]}}return m}}function E(n,r,c,u){var f=n;n[r]=f,n[c]=function(){return n[r]===f&&(n[r]=u()),n[c]=function(){return this[r]},n[r]}}function C(n,r,c,u){var f=n;n[r]=f,n[c]=function(){if(n[r]===f){var m=u();n[r]!==f&&s.nU(r),n[r]=m}var v=n[r];return n[c]=function(){return v},v}}function T(n){return n.immutable$list=Array,n.fixed$length=Array,n}function x(n){return n}function P(n){for(var r=0;r<n.length;++r)n[r]}function M(n,r){var c=null;return n?function(u){return c===null&&(c=s.nO(r)),new c(u,this)}:function(){return c===null&&(c=s.nO(r)),new c(this,null)}}function R(n){var r=null;return function(){return r===null&&(r=s.nO(n).prototype),r}}var D=0;function G(n,r,c,u,f,m,v,S,B,L){return typeof S=="number"&&(S+=D),{co:n,iS:r,iI:c,rC:u,dV:f,cs:m,fs:v,fT:S,aI:B||0,nDA:L}}function U(n,r,c,u,f,m,v,S){var B=G(n,!0,!1,c,u,f,m,v,S,!1),L=R(B);n[r]=L}function H(n,r,c,u,f,m,v,S,B,L){c=!!c;var F=G(n,!1,c,u,f,m,v,S,B,!!L),z=M(c,F);n[r]=z}function k(n){var r=re.interceptorsByTag;if(!r){re.interceptorsByTag=n;return}l(n,r)}function $(n){var r=re.leafTags;if(!r){re.leafTags=n;return}l(n,r)}function Q(n){var r=re.types,c=r.length;return r.push.apply(r,n),c}function Z(n,r){return l(r,n),n}var X=(function(){var n=function(c,u,f,m,v){return function(S,B,L,F){return H(S,B,c,u,f,m,[L],F,v,!1)}},r=function(c,u,f,m){return function(v,S,B,L){return U(v,S,c,u,f,[B],L,m)}};return{inherit:g,inheritMany:A,mixin:_,mixinHard:b,installStaticTearOff:U,installInstanceTearOff:H,_instance_0u:n(0,0,null,["$0"],0),_instance_1u:n(0,1,null,["$1"],0),_instance_2u:n(0,2,null,["$2"],0),_instance_0i:n(1,0,null,["$0"],0),_instance_1i:n(1,1,null,["$1"],0),_instance_2i:n(1,2,null,["$2"],0),_static_0:r(0,null,["$0"],0),_static_1:r(1,null,["$1"],0),_static_2:r(2,null,["$2"],0),makeConstList:T,lazy:E,lazyFinal:C,lazyOld:w,updateHolder:Z,convertToFastObject:x,updateTypes:Q,setOrUpdateInterceptorsByTag:k,setOrUpdateLeafTags:$}})(),s={ns:function(){},he(n,r,c){return r.h("q<0>").b(n)?new s.dZ(n,r.h("@<0>").I(c).h("dZ<1,2>")):new s.c5(n,r.h("@<0>").I(c).h("c5<1,2>"))},uG(n){return new s.f1("Field '"+s.b(n)+"' has been assigned during initialization.")},bg(n){return new s.fm(n)},mW(n){var r,c=n^48;return c<=9?c:(r=n|32,97<=r&&r<=102?r-87:-1)},pW(n,r){var c=s.mW(y.a.B(n,r)),u=s.mW(y.a.B(n,r+1));return c*16+u-(u&256)},bU(n,r,c){if(n==null)throw s.d(new s.dI(r,c.h("dI<0>")));return n},dQ(n,r,c,u){return s.aW(r,"start"),c!=null&&(s.aW(c,"end"),r>c&&s.Z(s.Y(r,0,c,"start",null))),new s.dP(n,r,c,u.h("dP<0>"))},jQ(n,r,c,u){return N.O.b(n)?new s.c9(n,r,c.h("@<0>").I(u).h("c9<1,2>")):new s.bd(n,r,c.h("@<0>").I(u).h("bd<1,2>"))},p0(n,r,c){var u="count";return N.O.b(n)?(s.h8(r,u),s.aW(r,u),new s.cR(n,r,c.h("cR<0>"))):(s.h8(r,u),s.aW(r,u),new s.bh(n,r,c.h("bh<0>")))},nq(){return new s.bJ("No element")},ui(){return new s.bJ("Too few elements")},bM:function(){},dm:function(r,c){this.a=r,this.$ti=c},c5:function(r,c){this.a=r,this.$ti=c},dZ:function(r,c){this.a=r,this.$ti=c},dU:function(){},b5:function(r,c){this.a=r,this.$ti=c},c6:function(r,c){this.a=r,this.$ti=c},hf:function(r,c){this.a=r,this.b=c},f1:function(r){this.a=r},fm:function(r){this.a=r},c8:function(r){this.a=r},nd:function(){},dI:function(r,c){this.a=r,this.$ti=c},q:function(){},ah:function(){},dP:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.$ti=f},aa:function(r,c,u){var f=this;f.a=r,f.b=c,f.c=0,f.d=null,f.$ti=u},bd:function(r,c,u){this.a=r,this.b=c,this.$ti=u},c9:function(r,c,u){this.a=r,this.b=c,this.$ti=u},dD:function(r,c,u){var f=this;f.a=null,f.b=r,f.c=c,f.$ti=u},ab:function(r,c,u){this.a=r,this.b=c,this.$ti=u},lK:function(r,c,u){this.a=r,this.b=c,this.$ti=u},cF:function(r,c,u){this.a=r,this.b=c,this.$ti=u},bh:function(r,c,u){this.a=r,this.b=c,this.$ti=u},cR:function(r,c,u){this.a=r,this.b=c,this.$ti=u},dN:function(r,c,u){this.a=r,this.b=c,this.$ti=u},b7:function(r){this.$ti=r},dq:function(r){this.$ti=r},ds:function(){},fy:function(){},d4:function(){},d3:function(r){this.a=r},ep:function(){},u2(){throw s.d(s.ad("Cannot modify unmodifiable Map"))},ub(n){return typeof n=="number"?y.c1.gE(n):N.fo.b(n)?n.gE(n):N.dd.b(n)?s.d0(n):s.fZ(n)},uc(n){return new s.hY(n)},q2(n){var r=re.mangledGlobalNames[n];return r??"minified:"+n},pU(n,r){var c;return r!=null&&(c=r.x,c!=null)?c:N.aU.b(n)},b(n){var r;if(typeof n=="string")return n;if(typeof n=="number"){if(n!==0)return""+n}else{if(n===!0)return"true";if(n===!1)return"false";if(n==null)return"null"}if(r=V.as(n),typeof r!="string")throw s.d(s.h7(n,"object","toString method returned 'null'"));return r},d0(n){var r,c=I.oR;return c==null&&(c=I.oR=Symbol("identityHashCode")),r=n[c],r==null&&(r=Math.random()*1073741823|0,n[c]=r),r},oY(n,r){var c,u,f,m,v,S,B=null;if(typeof n!="string"&&s.Z(s.cL(n)),c=/^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(n),c==null)return B;if(u=c[3],r==null)return u!=null?parseInt(n,10):c[2]!=null?parseInt(n,16):B;if(r<2||r>36)throw s.d(s.Y(r,2,36,"radix",B));if(r===10&&u!=null)return parseInt(n,10);if(r<10||u==null){for(f=r<=10?47+r:86+r,m=c[1],v=m.length,S=0;S<v;++S)if((y.a.J(m,S)|32)>f)return B}return parseInt(n,r)},ka(n){return s.uZ(n)},uZ(n){var r,c,u,f;if(n instanceof s.c)return s.ar(s.ak(n),null);if(r=V.bV(n),r===y.bW||r===y.c3||N.ak.b(n)){if(c=y.a9(n),c!=="Object"&&c!=="")return c;if(u=n.constructor,typeof u=="function"&&(f=u.name,typeof f=="string"&&f!=="Object"&&f!==""))return f}return s.ar(s.ak(n),null)},oQ(n){var r,c,u,f,m=n.length;if(m<=500)return String.fromCharCode.apply(null,n);for(r="",c=0;c<m;c=u)u=c+500,f=u<m?u:m,r+=String.fromCharCode.apply(null,n.slice(c,f));return r},v1(n){var r,c,u,f=s.a([],N.Z);for(r=n.length,c=0;c<n.length;n.length===r||(0,s.cN)(n),++c){if(u=n[c],!s.aI(u))throw s.d(s.cL(u));if(u<=65535)f.push(u);else if(u<=1114111)f.push(55296+(y.c.ai(u-65536,10)&1023)),f.push(56320+(u&1023));else throw s.d(s.cL(u))}return s.oQ(f)},v0(n){var r,c,u;for(r=n.length,c=0;c<r;++c){if(u=n[c],!s.aI(u)||u<0)throw s.d(s.cL(u));if(u>65535)return s.v1(n)}return s.oQ(n)},v2(n,r,c){var u,f,m,v;if(c<=500&&r===0&&c===n.length)return String.fromCharCode.apply(null,n);for(u=r,f="";u<c;u=m)m=u+500,v=m<c?m:c,f+=String.fromCharCode.apply(null,n.subarray(u,v));return f},be(n){var r;if(0<=n){if(n<=65535)return String.fromCharCode(n);if(n<=1114111)return r=n-65536,String.fromCharCode((y.c.ai(r,10)|55296)>>>0,r&1023|56320)}throw s.d(s.Y(n,0,1114111,null,null))},ax(n){return n.date===void 0&&(n.date=new Date(n.a)),n.date},fk(n){return n.b?s.ax(n).getUTCFullYear()+0:s.ax(n).getFullYear()+0},oW(n){return n.b?s.ax(n).getUTCMonth()+1:s.ax(n).getMonth()+1},oS(n){return n.b?s.ax(n).getUTCDate()+0:s.ax(n).getDate()+0},oT(n){return n.b?s.ax(n).getUTCHours()+0:s.ax(n).getHours()+0},oV(n){return n.b?s.ax(n).getUTCMinutes()+0:s.ax(n).getMinutes()+0},oX(n){return n.b?s.ax(n).getUTCSeconds()+0:s.ax(n).getSeconds()+0},oU(n){return n.b?s.ax(n).getUTCMilliseconds()+0:s.ax(n).getMilliseconds()+0},bE(n,r,c){var u,f,m={};return m.a=0,u=[],f=[],m.a=r.length,y.d.D(u,r),m.b="",c!=null&&c.a!==0&&c.M(0,new s.k9(m,f,u)),V.tB(n,new s.iJ(y.dM,0,u,f,0))},v_(n,r,c){var u,f,m;if(Array.isArray(r)?u=c==null||c.a===0:u=!1,u){if(f=r.length,f===0){if(n.$0)return n.$0()}else if(f===1){if(n.$1)return n.$1(r[0])}else if(f===2){if(n.$2)return n.$2(r[0],r[1])}else if(f===3){if(n.$3)return n.$3(r[0],r[1],r[2])}else if(f===4){if(n.$4)return n.$4(r[0],r[1],r[2],r[3])}else if(f===5&&n.$5)return n.$5(r[0],r[1],r[2],r[3],r[4]);if(m=n["$"+f],m!=null)return m.apply(n,r)}return s.uY(n,r,c)},uY(n,r,c){var u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie;if(r!=null?u=Array.isArray(r)?r:s.bc(r,!0,N.z):u=[],f=u.length,m=n.$R,f<m)return s.bE(n,u,c);if(v=n.$D,S=v==null,B=S?null:v(),L=V.bV(n),F=L.$C,typeof F=="string"&&(F=L[F]),S)return c!=null&&c.a!==0?s.bE(n,u,c):f===m?F.apply(n,u):s.bE(n,u,c);if(Array.isArray(B))return c!=null&&c.a!==0?s.bE(n,u,c):(z=m+B.length,f>z?s.bE(n,u,null):(f<z&&(O=B.slice(f-m),u===r&&(u=s.bc(u,!0,N.z)),y.d.D(u,O)),F.apply(n,u)));if(f>m)return s.bE(n,u,c);if(u===r&&(u=s.bc(u,!0,N.z)),W=Object.keys(B),c==null)for(S=W.length,Y=0;Y<W.length;W.length===S||(0,s.cN)(W),++Y){if(te=B[W[Y]],y.ad===te)return s.bE(n,u,c);y.d.C(u,te)}else{for(S=W.length,K=0,Y=0;Y<W.length;W.length===S||(0,s.cN)(W),++Y)if(ie=W[Y],c.v(ie))++K,y.d.C(u,c.i(0,ie));else{if(te=B[ie],y.ad===te)return s.bE(n,u,c);y.d.C(u,te)}if(K!==c.a)return s.bE(n,u,c)}return F.apply(n,u)},eA(n,r){var c,u="index",f=null;return s.aI(r)?(c=V.a3(n),r<0||r>=c?s.eW(r,c,n,f,u):new s.dL(f,f,!0,r,u,"Value not in range")):new s.at(!0,r,u,f)},x0(n,r,c){return n<0||n>c?s.Y(n,0,c,"start",null):r!=null&&(r<n||r>c)?s.Y(r,n,c,"end",null):new s.at(!0,r,"end",null)},cL(n){return new s.at(!0,n,null,null)},d(n){var r,c;return n==null&&(n=new s.fg),r=new Error,r.dartException=n,c=s.xQ,"defineProperty"in Object?(Object.defineProperty(r,"message",{get:c}),r.name=""):r.toString=c,r},xQ(){return V.as(this.dartException)},Z(n){throw s.d(n)},cN(n){throw s.d(s.ag(n))},bl(n){var r,c,u,f,m,v;return n=s.pZ(n.replace(String({}),"$receiver$")),r=n.match(/\\\$[a-zA-Z]+\\\$/g),r==null&&(r=s.a([],N.s)),c=r.indexOf("\\$arguments\\$"),u=r.indexOf("\\$argumentsExpr\\$"),f=r.indexOf("\\$expr\\$"),m=r.indexOf("\\$method\\$"),v=r.indexOf("\\$receiver\\$"),new s.lt(n.replace(new RegExp("\\\\\\$arguments\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$argumentsExpr\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$expr\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$method\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$receiver\\\\\\$","g"),"((?:x|[^x])*)"),c,u,f,m,v)},lu(n){return(function(r){var c="$arguments$";try{r.$method$(c)}catch(u){return u.message}})(n)},p3(n){return(function(r){try{r.$method$}catch(c){return c.message}})(n)},nt(n,r){var c=r==null,u=c?null:r.method;return new s.f0(n,u,c?null:r.receiver)},M(n){return n==null?new s.fh(n):n instanceof s.dr?s.bW(n,n.a):typeof n!="object"?n:"dartException"in n?s.bW(n,n.dartException):s.wH(n)},bW(n,r){return N.Q.b(r)&&r.$thrownJsError==null&&(r.$thrownJsError=n),r},wH(n){var r,c,u,f,m,v,S,B,L,F,z,O,W,Y,te=null;if(!("message"in n))return n;if(r=n.message,"number"in n&&typeof n.number=="number"&&(c=n.number,u=c&65535,(y.c.ai(c,16)&8191)===10))switch(u){case 438:return s.bW(n,s.nt(s.b(r)+" (Error "+u+")",te));case 445:case 5007:return f=s.b(r),s.bW(n,new s.dJ(f+" (Error "+u+")",te))}return n instanceof TypeError?(m=I.tb(),v=I.tc(),S=I.td(),B=I.te(),L=I.th(),F=I.ti(),z=I.tg(),I.tf(),O=I.tk(),W=I.tj(),Y=m.a9(r),Y!=null?s.bW(n,s.nt(r,Y)):(Y=v.a9(r),Y!=null?(Y.method="call",s.bW(n,s.nt(r,Y))):(Y=S.a9(r),Y==null?(Y=B.a9(r),Y==null?(Y=L.a9(r),Y==null?(Y=F.a9(r),Y==null?(Y=z.a9(r),Y==null?(Y=B.a9(r),Y==null?(Y=O.a9(r),Y==null?(Y=W.a9(r),f=Y!=null):f=!0):f=!0):f=!0):f=!0):f=!0):f=!0):f=!0,f?s.bW(n,new s.dJ(r,Y==null?te:Y.method)):s.bW(n,new s.fx(typeof r=="string"?r:""))))):n instanceof RangeError?typeof r=="string"&&r.indexOf("call stack")!==-1?new s.dO:(r=(function(K){try{return String(K)}catch{}return null})(n),s.bW(n,new s.at(!1,te,te,typeof r=="string"?r.replace(/^RangeError:\s*/,""):r))):typeof InternalError=="function"&&n instanceof InternalError&&typeof r=="string"&&r==="too much recursion"?new s.dO:n},aS(n){var r;return n instanceof s.dr?n.b:n==null?new s.ed(n):(r=n.$cachedTrace,r??(n.$cachedTrace=new s.ed(n)))},fZ(n){return n==null||typeof n!="object"?V.bY(n):s.d0(n)},pN(n,r){var c,u,f,m=n.length;for(c=0;c<m;c=f)u=c+1,f=u+1,r.m(0,n[c],n[u]);return r},x4(n,r){var c,u=n.length;for(c=0;c<u;++c)r.C(0,n[c]);return r},xg(n,r,c,u,f,m){switch(r){case 0:return n.$0();case 1:return n.$1(c);case 2:return n.$2(c,u);case 3:return n.$3(c,u,f);case 4:return n.$4(c,u,f,m)}throw s.d(s.u9("Unsupported number of arguments for wrapped closure"))},mO(n,r){var c;return n==null?null:(c=n.$identity,c||(c=(function(u,f,m){return function(v,S,B,L){return m(u,f,v,S,B,L)}})(n,r,s.xg),n.$identity=c,c))},u1(n){var r,c,u,f,m,v,S,B,L,F,z=n.co,O=n.iS,W=n.iI,Y=n.nDA,te=n.aI,K=n.fs,ie=n.cs,de=K[0],j=ie[0],q=z[de],ae=n.fT;for(ae.toString,r=Object.create(O?new s.fq().constructor.prototype:new s.cP(null,null).constructor.prototype),r.$initialize=r.constructor,O?c=function(){this.$initialize()}:c=function(fe,he){this.$initialize(fe,he)},r.constructor=c,c.prototype=r,r.$_name=de,r.$_target=q,u=!O,u?f=s.ox(de,q,W,Y):(r.$static_name=de,f=q),r.$S=s.tY(ae,O,W),r[j]=f,m=f,v=1;v<K.length;++v)S=K[v],typeof S=="string"?(B=z[S],L=S,S=B):L="",F=ie[v],F!=null&&(u&&(S=s.ox(L,S,W,Y)),r[F]=S),v===te&&(m=S);return r.$C=m,r.$R=n.rC,r.$D=n.dV,c},tY(n,r,c){if(typeof n=="number")return n;if(typeof n=="string"){if(r)throw s.d("Cannot compute signature for static tearoff.");return(function(u,f){return function(){return f(this,u)}})(n,s.tR)}throw s.d("Error in functionType of tearoff")},tZ(n,r,c,u){var f=s.ow;switch(r?-1:n){case 0:return(function(m,v){return function(){return v(this)[m]()}})(c,f);case 1:return(function(m,v){return function(S){return v(this)[m](S)}})(c,f);case 2:return(function(m,v){return function(S,B){return v(this)[m](S,B)}})(c,f);case 3:return(function(m,v){return function(S,B,L){return v(this)[m](S,B,L)}})(c,f);case 4:return(function(m,v){return function(S,B,L,F){return v(this)[m](S,B,L,F)}})(c,f);case 5:return(function(m,v){return function(S,B,L,F,z){return v(this)[m](S,B,L,F,z)}})(c,f);default:return(function(m,v){return function(){return m.apply(v(this),arguments)}})(u,f)}},ox(n,r,c,u){var f,m;return c?s.u0(n,r,u):(f=r.length,m=s.tZ(f,u,n,r),m)},u_(n,r,c,u){var f=s.ow,m=s.tS;switch(r?-1:n){case 0:throw s.d(new s.fp("Intercepted function with no arguments."));case 1:return(function(v,S,B){return function(){return S(this)[v](B(this))}})(c,m,f);case 2:return(function(v,S,B){return function(L){return S(this)[v](B(this),L)}})(c,m,f);case 3:return(function(v,S,B){return function(L,F){return S(this)[v](B(this),L,F)}})(c,m,f);case 4:return(function(v,S,B){return function(L,F,z){return S(this)[v](B(this),L,F,z)}})(c,m,f);case 5:return(function(v,S,B){return function(L,F,z,O){return S(this)[v](B(this),L,F,z,O)}})(c,m,f);case 6:return(function(v,S,B){return function(L,F,z,O,W){return S(this)[v](B(this),L,F,z,O,W)}})(c,m,f);default:return(function(v,S,B){return function(){var L=[B(this)];return Array.prototype.push.apply(L,arguments),v.apply(S(this),L)}})(u,m,f)}},u0(n,r,c){var u,f;return I.ou==null&&(I.ou=s.ot("interceptor")),I.ov==null&&(I.ov=s.ot("receiver")),u=r.length,f=s.u_(u,c,n,r),f},nO(n){return s.u1(n)},tR(n,r){return s.mt(re.typeUniverse,s.ak(n.a),r)},ow(n){return n.a},tS(n){return n.b},ot(n){var r,c,u,f=new s.cP("receiver","interceptor"),m=V.nr(Object.getOwnPropertyNames(f));for(r=m.length,c=0;c<r;++c)if(u=m[c],f[u]===n)return u;throw s.d(s.K("Field name "+n+" not found.",null))},xP(n){throw s.d(new s.eQ(n))},xa(n){return re.getIsolateTag(n)},uH(n,r,c){var u=new s.cx(n,r,c.h("cx<0>"));return u.c=n.e,u},Bh(n,r,c){Object.defineProperty(n,r,{value:c,enumerable:!1,writable:!0,configurable:!0})},xC(n){var r,c,u,f,m,v=I.pR.$1(n),S=I.mP[v];if(S!=null)return Object.defineProperty(n,re.dispatchPropertyName,{value:S,enumerable:!1,writable:!0,configurable:!0}),S.i;if(r=I.n_[v],r!=null)return r;if(c=re.interceptorsByTag[v],c==null&&(u=I.pJ.$2(n,v),u!=null)){if(S=I.mP[u],S!=null)return Object.defineProperty(n,re.dispatchPropertyName,{value:S,enumerable:!1,writable:!0,configurable:!0}),S.i;if(r=I.n_[u],r!=null)return r;c=re.interceptorsByTag[u],v=u}if(c==null)return null;if(r=c.prototype,f=v[0],f==="!")return S=s.nc(r),I.mP[v]=S,Object.defineProperty(n,re.dispatchPropertyName,{value:S,enumerable:!1,writable:!0,configurable:!0}),S.i;if(f==="~")return I.n_[v]=r,r;if(f==="-")return m=s.nc(r),Object.defineProperty(Object.getPrototypeOf(n),re.dispatchPropertyName,{value:m,enumerable:!1,writable:!0,configurable:!0}),m.i;if(f==="+")return s.pX(n,r);if(f==="*")throw s.d(s.p4(v));return re.leafTags[v]===!0?(m=s.nc(r),Object.defineProperty(Object.getPrototypeOf(n),re.dispatchPropertyName,{value:m,enumerable:!1,writable:!0,configurable:!0}),m.i):s.pX(n,r)},pX(n,r){var c=Object.getPrototypeOf(n);return Object.defineProperty(c,re.dispatchPropertyName,{value:V.nS(r,c,null,null),enumerable:!1,writable:!0,configurable:!0}),r},nc(n){return V.nS(n,!1,null,!!n.$iav)},xE(n,r,c){var u=r.prototype;return re.leafTags[n]===!0?s.nc(u):V.nS(u,c,null,null)},xe(){I.nQ!==!0&&(I.nQ=!0,s.xf())},xf(){var n,r,c,u,f,m,v,S;if(I.mP=Object.create(null),I.n_=Object.create(null),s.xd(),n=re.interceptorsByTag,r=Object.getOwnPropertyNames(n),typeof window<"u")for(c=function(){},u=0;u<r.length;++u)f=r[u],m=I.pY.$1(f),m!=null&&(v=s.xE(f,n[f],m),v!=null&&(Object.defineProperty(m,re.dispatchPropertyName,{value:v,enumerable:!1,writable:!0,configurable:!0}),c.prototype=m));for(u=0;u<r.length;++u)f=r[u],/^[A-Za-z_]/.test(f)&&(S=n[f],n["!"+f]=S,n["~"+f]=S,n["-"+f]=S,n["+"+f]=S,n["*"+f]=S)},xd(){var n,r,c,u,f,m,v=y.bb();if(v=s.di(y.bc,s.di(y.bd,s.di(y.aa,s.di(y.aa,s.di(y.be,s.di(y.bf,s.di(y.bg(y.a9),v))))))),typeof dartNativeDispatchHooksTransformer<"u"&&(n=dartNativeDispatchHooksTransformer,typeof n=="function"&&(n=[n]),n.constructor==Array))for(r=0;r<n.length;++r)c=n[r],typeof c=="function"&&(v=c(v)||v);u=v.getTag,f=v.getUnknownTag,m=v.prototypeForTag,I.pR=new s.mX(u),I.pJ=new s.mY(f),I.pY=new s.mZ(m)},di(n,r){return n(r)||r},uk(n,r,c,u,f,m){var v=r?"m":"",S=c?"":"i",B=u?"u":"",L=f?"s":"",F=m?"g":"",z=(function(O,W){try{return new RegExp(O,W)}catch(Y){return Y}})(n,v+S+B+L+F);if(z instanceof RegExp)return z;throw s.d(s.R("Illegal RegExp pattern ("+String(z)+")",n,null))},x1(n){return n.indexOf("$",0)>=0?n.replace(/\$/g,"$$$$"):n},pZ(n){return/[[\]{}()*+?.\\^$|]/.test(n)?n.replace(/[[\]{}()*+?.\\^$|]/g,"\\$&"):n},q0(n,r,c){var u=s.xN(n,r,c);return u},xN(n,r,c){var u,f,m,v;if(r===""){if(n==="")return c;for(u=n.length,f=c,m=0;m<u;++m)f=f+n[m]+c;return f.charCodeAt(0)==0,f}return v=n.indexOf(r,0),v<0?n:n.length<500||c.indexOf("$",0)>=0?n.split(r).join(c):n.replace(new RegExp(s.pZ(r),"g"),s.x1(c))},dn:function(r,c){this.a=r,this.$ti=c},cQ:function(){},aJ:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.$ti=f},dW:function(r,c){this.a=r,this.$ti=c},X:function(r,c){this.a=r,this.$ti=c},hY:function(r){this.a=r},iJ:function(r,c,u,f,m){var v=this;v.a=r,v.c=c,v.d=u,v.e=f,v.f=m},k9:function(r,c,u){this.a=r,this.b=c,this.c=u},lt:function(r,c,u,f,m,v){var S=this;S.a=r,S.b=c,S.c=u,S.d=f,S.e=m,S.f=v},dJ:function(r,c){this.a=r,this.b=c},f0:function(r,c,u){this.a=r,this.b=c,this.c=u},fx:function(r){this.a=r},fh:function(r){this.a=r},dr:function(r,c){this.a=r,this.b=c},ed:function(r){this.a=r,this.b=null},c7:function(){},eL:function(){},eM:function(){},ft:function(){},fq:function(){},cP:function(r,c){this.a=r,this.b=c},fp:function(r){this.a=r},mm:function(){},aC:function(r){var c=this;c.a=0,c.f=c.e=c.d=c.c=c.b=null,c.r=0,c.$ti=r},iP:function(r){this.a=r},jN:function(r,c){this.a=r,this.b=c,this.c=null},aO:function(r,c){this.a=r,this.$ti=c},cx:function(r,c,u){var f=this;f.a=r,f.b=c,f.d=f.c=null,f.$ti=u},mX:function(r){this.a=r},mY:function(r){this.a=r},mZ:function(r){this.a=r},iK:function(r,c){var u=this;u.a=r,u.b=c,u.d=u.c=null},mk:function(r){this.b=r},de(n,r,c){if(!s.aI(r))throw s.d(s.K("Invalid view offsetInBytes "+s.b(r),null))},w8(n){return n},f7(n,r,c){return s.de(n,r,c),c==null?new DataView(n,r):new DataView(n,r,c)},uQ(n){return new Float32Array(n)},uR(n){return new Int8Array(n)},oO(n,r,c){return s.de(n,r,c),new Uint16Array(n,r,c)},oP(n,r,c){return s.de(n,r,c),new Uint32Array(n,r,c)},uS(n){return new Uint8Array(n)},nw(n,r,c){var u;return s.de(n,r,c),u=new Uint8Array(n,r,c),u},bo(n,r,c){if(n>>>0!==n||n>=c)throw s.d(s.eA(r,n))},bR(n,r,c){var u;if(n>>>0===n?u=r>>>0!==r||n>r||r>c:u=!0,u)throw s.d(s.x0(n,r,c));return r},dF:function(){},d_:function(){},dE:function(){},aw:function(){},f8:function(){},f9:function(){},fa:function(){},fb:function(){},fc:function(){},fd:function(){},fe:function(){},dG:function(){},cy:function(){},e7:function(){},e8:function(){},e9:function(){},ea:function(){},v5(n,r){var c=r.c;return c??(r.c=s.nG(n,r.y,!0))},oZ(n,r){var c=r.c;return c??(r.c=s.ek(n,"a5",[r.y]))},p_(n){var r=n.x;return r===6||r===7||r===8?s.p_(n.y):r===12||r===13},v4(n){return n.at},aR(n){return s.fT(re.typeUniverse,n,!1)},bT(n,r,c,u){var f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q=r.x;switch(q){case 5:case 1:case 2:case 3:case 4:return r;case 6:return f=r.y,m=s.bT(n,f,c,u),m===f?r:s.pl(n,m,!0);case 7:return f=r.y,m=s.bT(n,f,c,u),m===f?r:s.nG(n,m,!0);case 8:return f=r.y,m=s.bT(n,f,c,u),m===f?r:s.pk(n,m,!0);case 9:return v=r.z,S=s.ey(n,v,c,u),S===v?r:s.ek(n,r.y,S);case 10:return B=r.y,L=s.bT(n,B,c,u),F=r.z,z=s.ey(n,F,c,u),L===B&&z===F?r:s.nE(n,L,z);case 12:return O=r.y,W=s.bT(n,O,c,u),Y=r.z,te=s.wE(n,Y,c,u),W===O&&te===Y?r:s.pj(n,W,te);case 13:return K=r.z,u+=K.length,ie=s.ey(n,K,c,u),B=r.y,L=s.bT(n,B,c,u),ie===K&&L===B?r:s.nF(n,L,ie,!0);case 14:return de=r.y,de<u||(j=c[de-u],j==null)?r:j;default:throw s.d(s.eG("Attempted to substitute unexpected RTI kind "+q))}},ey(n,r,c,u){var f,m,v,S,B=r.length,L=s.mv(B);for(f=!1,m=0;m<B;++m)v=r[m],S=s.bT(n,v,c,u),S!==v&&(f=!0),L[m]=S;return f?L:r},wF(n,r,c,u){var f,m,v,S,B,L,F=r.length,z=s.mv(F);for(f=!1,m=0;m<F;m+=3)v=r[m],S=r[m+1],B=r[m+2],L=s.bT(n,B,c,u),L!==B&&(f=!0),z.splice(m,3,v,S,L);return f?z:r},wE(n,r,c,u){var f,m=r.a,v=s.ey(n,m,c,u),S=r.b,B=s.ey(n,S,c,u),L=r.c,F=s.wF(n,L,c,u);return v===m&&B===S&&F===L?r:(f=new s.fK,f.a=v,f.b=B,f.c=F,f)},a(n,r){return n[re.arrayRti]=r,n},wY(n){var r,c=n.$S;return c!=null?typeof c=="number"?s.xb(c):(r=n.$S(),r):null},pT(n,r){var c;return s.p_(r)&&n instanceof s.c7&&(c=s.wY(n),c!=null)?c:s.ak(n)},ak(n){var r;return n instanceof s.c?(r=n.$ti,r??s.nJ(n)):Array.isArray(n)?s.a_(n):s.nJ(V.bV(n))},a_(n){var r=n[re.arrayRti],c=N.b;return r==null||r.constructor!==c.constructor?c:r},A(n){var r=n.$ti;return r??s.nJ(n)},nJ(n){var r=n.constructor,c=r.$ccache;return c??s.wj(n,r)},wj(n,r){var c=n instanceof s.c7?n.__proto__.__proto__.constructor:r,u=s.vH(re.typeUniverse,c.name);return r.$ccache=u,u},xb(n){var r,c=re.types,u=c[n];return typeof u=="string"?(r=s.fT(re.typeUniverse,u,!1),c[n]=r,r):u},pL(n){var r,c,u,f=n.w;return f??(r=n.at,c=r.replace(/\*/g,""),c===r?n.w=new s.eh(n):(u=s.fT(re.typeUniverse,c,!0),f=u.w,n.w=f??(u.w=new s.eh(u))))},u(n){return s.pL(s.fT(re.typeUniverse,n,!1))},wi(n){var r,c,u,f=this,m=N.K;if(f===m)return s.df(f,n,s.wn);if(s.bq(f)?m=!0:f!==N._?m=f===m:m=!0,m)return s.df(f,n,s.wr);if(m=f.x,r=m===6?f.y:f,r===N.S?c=s.aI:r===N.gR||r===N.di?c=s.wm:r===N.R?c=s.wp:c=r===N.y?s.eu:null,c!=null)return s.df(f,n,c);if(r.x===9){if(u=r.y,r.z.every(s.xh))return f.r="$i"+u,u==="o"?s.df(f,n,s.wl):s.df(f,n,s.wq)}else if(m===7)return s.df(f,n,s.wb);return s.df(f,n,s.w9)},df(n,r,c){return n.b=c,n.b(r)},wh(n){var r,c,u=this;return s.bq(u)?r=!0:u!==N._?r=u===N.K:r=!0,r?c=s.w1:u===N.K?c=s.w_:c=s.wa,u.a=c,u.a(n)},fX(n){var r,c=n.x;return s.bq(n)?r=!0:n!==N._&&n!==N.A&&c!==7?c===6&&s.fX(n.y)?r=!0:r=c===8&&s.fX(n.y)||n===N.P||n===N.T:r=!0,r},w9(n){var r=this;return n==null?s.fX(r):s.a7(re.typeUniverse,s.pT(n,r),null,r,null)},wb(n){return n==null?!0:this.y.b(n)},wq(n){var r,c=this;return n==null?s.fX(c):(r=c.r,n instanceof s.c?!!n[r]:!!V.bV(n)[r])},wl(n){var r,c=this;return n==null?s.fX(c):typeof n!="object"?!1:Array.isArray(n)?!0:(r=c.r,n instanceof s.c?!!n[r]:!!V.bV(n)[r])},Ba(n){var r=this;if(n==null)return n;if(r.b(n))return n;s.pw(n,r)},wa(n){var r=this;if(n==null)return n;if(r.b(n))return n;s.pw(n,r)},pw(n,r){throw s.d(s.vw(s.pd(n,s.pT(n,r),s.ar(r,null))))},pd(n,r,c){var u=s.cS(n);return u+": type '"+s.b(s.ar(r??s.ak(n),null))+"' is not a subtype of type '"+s.b(c)+"'"},vw(n){return new s.ei("TypeError: "+n)},aq(n,r){return new s.ei("TypeError: "+s.pd(n,null,r))},wn(n){return n!=null},w_(n){return n},wr(n){return!0},w1(n){return n},eu(n){return n===!0||n===!1},AW(n){if(n===!0)return!0;if(n===!1)return!1;throw s.d(s.aq(n,"bool"))},AY(n){if(n===!0)return!0;if(n===!1)return!1;if(n==null)return n;throw s.d(s.aq(n,"bool"))},AX(n){if(n===!0)return!0;if(n===!1)return!1;if(n==null)return n;throw s.d(s.aq(n,"bool?"))},AZ(n){if(typeof n=="number")return n;throw s.d(s.aq(n,"double"))},B0(n){if(typeof n=="number"||n==null)return n;throw s.d(s.aq(n,"double"))},B_(n){if(typeof n=="number"||n==null)return n;throw s.d(s.aq(n,"double?"))},aI(n){return typeof n=="number"&&Math.floor(n)===n},B1(n){if(typeof n=="number"&&Math.floor(n)===n)return n;throw s.d(s.aq(n,"int"))},B3(n){if(typeof n=="number"&&Math.floor(n)===n||n==null)return n;throw s.d(s.aq(n,"int"))},B2(n){if(typeof n=="number"&&Math.floor(n)===n||n==null)return n;throw s.d(s.aq(n,"int?"))},wm(n){return typeof n=="number"},B4(n){if(typeof n=="number")return n;throw s.d(s.aq(n,"num"))},B6(n){if(typeof n=="number"||n==null)return n;throw s.d(s.aq(n,"num"))},B5(n){if(typeof n=="number"||n==null)return n;throw s.d(s.aq(n,"num?"))},wp(n){return typeof n=="string"},B7(n){if(typeof n=="string")return n;throw s.d(s.aq(n,"String"))},w0(n){if(typeof n=="string"||n==null)return n;throw s.d(s.aq(n,"String"))},B8(n){if(typeof n=="string"||n==null)return n;throw s.d(s.aq(n,"String?"))},pF(n,r){var c,u,f;for(c="",u="",f=0;f<n.length;++f,u=", ")c+=y.a.ae(u,s.ar(n[f],r));return c},wz(n,r){var c,u,f,m,v,S,B=n.y,L=n.z;if(B==="")return"("+s.pF(L,r)+")";for(c=L.length,u=B.split(","),f=u.length-c,m="(",v="",S=0;S<c;++S,v=", ")m+=v,f===0&&(m+="{"),m=y.a.ae(m,s.ar(L[S],r)),f>=0&&(m+=" "+u[f]),++f;return m+"})"},py(n,r,c){var u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q,ae,me,fe,he,ve=", ";if(c!=null){for(u=c.length,r==null?(r=s.a([],N.s),f=null):f=r.length,m=r.length,v=u;v>0;--v)r.push("T"+(m+v));for(S=N.cK,B=N._,L=N.K,F="<",z="",v=0;v<u;++v,z=ve)F=y.a.ae(F+z,r[r.length-1-v]),O=c[v],W=O.x,W===2||W===3||W===4||W===5||O===S?Y=!0:O!==B?Y=O===L:Y=!0,Y||(F+=y.a.ae(" extends ",s.ar(O,r)));F+=">"}else F="",f=null;for(S=n.y,te=n.z,K=te.a,ie=K.length,de=te.b,j=de.length,q=te.c,ae=q.length,me=s.ar(S,r),fe="",he="",v=0;v<ie;++v,he=ve)fe+=y.a.ae(he,s.ar(K[v],r));if(j>0){for(fe+=he+"[",he="",v=0;v<j;++v,he=ve)fe+=y.a.ae(he,s.ar(de[v],r));fe+="]"}if(ae>0){for(fe+=he+"{",he="",v=0;v<ae;v+=3,he=ve)fe+=he,q[v+1]&&(fe+="required "),fe+=V.om(s.ar(q[v+2],r)," ")+q[v];fe+="}"}return f!=null&&(r.toString,r.length=f),F+"("+fe+") => "+s.b(me)},ar(n,r){var c,u,f,m,v,S,B=n.x;return B===5?"erased":B===2?"dynamic":B===3?"void":B===1?"Never":B===4?"any":B===6?(c=s.ar(n.y,r),c):B===7?(u=n.y,c=s.ar(u,r),f=u.x,V.om(f===12||f===13?y.a.ae("(",c)+")":c,"?")):B===8?"FutureOr<"+s.b(s.ar(n.y,r))+">":B===9?(m=s.wG(n.y),v=n.z,v.length>0?m+("<"+s.pF(v,r)+">"):m):B===11?s.wz(n,r):B===12?s.py(n,r,null):B===13?s.py(n.y,r,n.z):B===14?(r.toString,S=n.y,r[r.length-1-S]):"?"},wG(n){var r=re.mangledGlobalNames[n];return r??"minified:"+n},vI(n,r){for(var c=n.tR[r];typeof c=="string";)c=n.tR[c];return c},vH(n,r){var c,u,f,m,v,S=n.eT,B=S[r];if(B==null)return s.fT(n,r,!1);if(typeof B=="number"){for(c=B,u=s.el(n,5,"#"),f=s.mv(c),m=0;m<c;++m)f[m]=u;return v=s.ek(n,r,f),S[r]=v,v}else return B},vF(n,r){return s.pt(n.tR,r)},vE(n,r){return s.pt(n.eT,r)},fT(n,r,c){var u,f=n.eC,m=f.get(r);return m??(u=s.pi(s.pg(n,null,r,c)),f.set(r,u),u)},mt(n,r,c){var u,f,m=r.Q;return m==null&&(m=r.Q=new Map),u=m.get(c),u??(f=s.pi(s.pg(n,r,c,!0)),m.set(c,f),f)},vG(n,r,c){var u,f,m,v=r.as;return v==null&&(v=r.as=new Map),u=c.at,f=v.get(u),f??(m=s.nE(n,r,c.x===10?c.z:[c]),v.set(u,m),m)},bn(n,r){return r.a=s.wh,r.b=s.wi,r},el(n,r,c){var u,f,m=n.eC.get(c);return m??(u=new s.aF(null,null),u.x=r,u.at=c,f=s.bn(n,u),n.eC.set(c,f),f)},pl(n,r,c){var u,f=r.at+"*",m=n.eC.get(f);return m??(u=s.vB(n,r,f,c),n.eC.set(f,u),u)},vB(n,r,c,u){var f,m,v;return u&&(f=r.x,s.bq(r)?m=!0:m=r===N.P||r===N.T||f===7||f===6,m)?r:(v=new s.aF(null,null),v.x=6,v.y=r,v.at=c,s.bn(n,v))},nG(n,r,c){var u,f=r.at+"?",m=n.eC.get(f);return m??(u=s.vA(n,r,f,c),n.eC.set(f,u),u)},vA(n,r,c,u){var f,m,v,S;if(u){if(f=r.x,s.bq(r)||r===N.P||r===N.T?m=!0:f!==7?m=f===8&&s.n0(r.y):m=!0,m)return r;if(f===1||r===N.A)return N.P;if(f===6)return v=r.y,v.x===8&&s.n0(v.y)?v:s.v5(n,r)}return S=new s.aF(null,null),S.x=7,S.y=r,S.at=c,s.bn(n,S)},pk(n,r,c){var u,f=r.at+"/",m=n.eC.get(f);return m??(u=s.vy(n,r,f,c),n.eC.set(f,u),u)},vy(n,r,c,u){var f,m,v;if(u){if(f=r.x,s.bq(r)?m=!0:r!==N._?m=r===N.K:m=!0,m||r===N.K)return r;if(f===1)return s.ek(n,"a5",[r]);if(r===N.P||r===N.T)return N.eH}return v=new s.aF(null,null),v.x=8,v.y=r,v.at=c,s.bn(n,v)},vC(n,r){var c,u,f=""+r+"^",m=n.eC.get(f);return m??(c=new s.aF(null,null),c.x=14,c.y=r,c.at=f,u=s.bn(n,c),n.eC.set(f,u),u)},ej(n){var r,c,u,f=n.length;for(r="",c="",u=0;u<f;++u,c=",")r+=c+n[u].at;return r},vx(n){var r,c,u,f,m,v=n.length;for(r="",c="",u=0;u<v;u+=3,c=",")f=n[u],m=n[u+1]?"!":":",r+=c+f+m+n[u+2].at;return r},ek(n,r,c){var u,f,m,v=r;return c.length>0&&(v+="<"+s.ej(c)+">"),u=n.eC.get(v),u??(f=new s.aF(null,null),f.x=9,f.y=r,f.z=c,c.length>0&&(f.c=c[0]),f.at=v,m=s.bn(n,f),n.eC.set(v,m),m)},nE(n,r,c){var u,f,m,v,S,B;return r.x===10?(u=r.y,f=r.z.concat(c)):(f=c,u=r),m=u.at+(";<"+s.ej(f)+">"),v=n.eC.get(m),v??(S=new s.aF(null,null),S.x=10,S.y=u,S.z=f,S.at=m,B=s.bn(n,S),n.eC.set(m,B),B)},vD(n,r,c){var u,f,m="+"+(r+"("+s.ej(c)+")"),v=n.eC.get(m);return v??(u=new s.aF(null,null),u.x=11,u.y=r,u.z=c,u.at=m,f=s.bn(n,u),n.eC.set(m,f),f)},pj(n,r,c){var u,f,m,v,S,B=r.at,L=c.a,F=L.length,z=c.b,O=z.length,W=c.c,Y=W.length,te="("+s.ej(L);return O>0&&(u=F>0?",":"",te+=u+"["+s.ej(z)+"]"),Y>0&&(u=F>0?",":"",te+=u+"{"+s.vx(W)+"}"),f=B+(te+")"),m=n.eC.get(f),m??(v=new s.aF(null,null),v.x=12,v.y=r,v.z=c,v.at=f,S=s.bn(n,v),n.eC.set(f,S),S)},nF(n,r,c,u){var f,m=r.at+("<"+s.ej(c)+">"),v=n.eC.get(m);return v??(f=s.vz(n,r,c,m,u),n.eC.set(m,f),f)},vz(n,r,c,u,f){var m,v,S,B,L,F,z,O;if(f){for(m=c.length,v=s.mv(m),S=0,B=0;B<m;++B)L=c[B],L.x===1&&(v[B]=L,++S);if(S>0)return F=s.bT(n,r,v,0),z=s.ey(n,c,v,0),s.nF(n,F,z,c!==z)}return O=new s.aF(null,null),O.x=13,O.y=r,O.z=c,O.at=u,s.bn(n,O)},pg(n,r,c,u){return{u:n,e:r,r:c,s:[],p:0,n:u}},pi(n){var r,c,u,f,m,v,S,B,L,F,z=n.r,O=n.s;for(r=z.length,c=0;c<r;)if(u=z.charCodeAt(c),u>=48&&u<=57)c=s.vr(c+1,u,z,O);else if((((u|32)>>>0)-97&65535)<26||u===95||u===36||u===124)c=s.ph(n,c,z,O,!1);else if(u===46)c=s.ph(n,c,z,O,!0);else switch(++c,u){case 44:break;case 58:O.push(!1);break;case 33:O.push(!0);break;case 59:O.push(s.bQ(n.u,n.e,O.pop()));break;case 94:O.push(s.vC(n.u,O.pop()));break;case 35:O.push(s.el(n.u,5,"#"));break;case 64:O.push(s.el(n.u,2,"@"));break;case 126:O.push(s.el(n.u,3,"~"));break;case 60:O.push(n.p),n.p=O.length;break;case 62:if(f=n.u,m=O.splice(n.p),s.nD(n.u,n.e,m),n.p=O.pop(),v=O.pop(),typeof v=="string")O.push(s.ek(f,v,m));else switch(S=s.bQ(f,n.e,v),S.x){case 12:O.push(s.nF(f,S,m,n.n));break;default:O.push(s.nE(f,S,m));break}break;case 38:s.vs(n,O);break;case 42:B=n.u,O.push(s.pl(B,s.bQ(B,n.e,O.pop()),n.n));break;case 63:B=n.u,O.push(s.nG(B,s.bQ(B,n.e,O.pop()),n.n));break;case 47:B=n.u,O.push(s.pk(B,s.bQ(B,n.e,O.pop()),n.n));break;case 40:O.push(-3),O.push(n.p),n.p=O.length;break;case 41:s.vq(n,O);break;case 91:O.push(n.p),n.p=O.length;break;case 93:m=O.splice(n.p),s.nD(n.u,n.e,m),n.p=O.pop(),O.push(m),O.push(-1);break;case 123:O.push(n.p),n.p=O.length;break;case 125:m=O.splice(n.p),s.vu(n.u,n.e,m),n.p=O.pop(),O.push(m),O.push(-2);break;case 43:L=z.indexOf("(",c),O.push(z.substring(c,L)),O.push(-4),O.push(n.p),n.p=O.length,c=L+1;break;default:throw"Bad character "+u}return F=O.pop(),s.bQ(n.u,n.e,F)},vr(n,r,c,u){var f,m,v=r-48;for(f=c.length;n<f&&(m=c.charCodeAt(n),m>=48&&m<=57);++n)v=v*10+(m-48);return u.push(v),n},ph(n,r,c,u,f){var m,v,S,B,L,F,z=r+1;for(m=c.length;z<m;++z)if(v=c.charCodeAt(z),v===46){if(f)break;f=!0}else if((((v|32)>>>0)-97&65535)<26||v===95||v===36||v===124?S=!0:S=v>=48&&v<=57,!S)break;return B=c.substring(r,z),f?(m=n.u,L=n.e,L.x===10&&(L=L.y),F=s.vI(m,L.y)[B],F==null&&s.Z('No "'+B+'" in "'+s.v4(L)+'"'),u.push(s.mt(m,L,F))):u.push(B),z},vq(n,r){var c,u,f,m,v,S=null,B=n.u,L=r.pop();if(typeof L=="number")switch(L){case-1:c=r.pop(),u=S;break;case-2:u=r.pop(),c=S;break;default:r.push(L),u=S,c=u;break}else r.push(L),u=S,c=u;switch(f=s.vp(n,r),L=r.pop(),L){case-3:L=r.pop(),c==null&&(c=B.sEA),u==null&&(u=B.sEA),m=s.bQ(B,n.e,L),v=new s.fK,v.a=f,v.b=c,v.c=u,r.push(s.pj(B,m,v));return;case-4:r.push(s.vD(B,r.pop(),f));return;default:throw s.d(s.eG("Unexpected state under `()`: "+s.b(L)))}},vs(n,r){var c=r.pop();if(c===0){r.push(s.el(n.u,1,"0&"));return}if(c===1){r.push(s.el(n.u,4,"1&"));return}throw s.d(s.eG("Unexpected extended operation "+s.b(c)))},vp(n,r){var c=r.splice(n.p);return s.nD(n.u,n.e,c),n.p=r.pop(),c},bQ(n,r,c){return typeof c=="string"?s.ek(n,c,n.sEA):typeof c=="number"?(r.toString,s.vt(n,r,c)):c},nD(n,r,c){var u,f=c.length;for(u=0;u<f;++u)c[u]=s.bQ(n,r,c[u])},vu(n,r,c){var u,f=c.length;for(u=2;u<f;u+=3)c[u]=s.bQ(n,r,c[u])},vt(n,r,c){var u,f,m=r.x;if(m===10){if(c===0)return r.y;if(u=r.z,f=u.length,c<=f)return u[c-1];c-=f,r=r.y,m=r.x}else if(c===0)return r;if(m!==9)throw s.d(s.eG("Indexed base must be an interface type"));if(u=r.z,c<=u.length)return u[c-1];throw s.d(s.eG("Bad index "+c+" for "+r.k(0)))},a7(n,r,c,u,f){var m,v,S,B,L,F,z,O,W,Y;if(r===u||(s.bq(u)?m=!0:u!==N._?m=u===N.K:m=!0,m)||(v=r.x,v===4))return!0;if(s.bq(r))return!1;if(r.x!==1?m=r===N.P||r===N.T:m=!0,m||(S=v===14,S&&s.a7(n,c[r.y],c,u,f)))return!0;if(B=u.x,v===6)return s.a7(n,r.y,c,u,f);if(B===6)return m=u.y,s.a7(n,r,c,m,f);if(v===8)return s.a7(n,r.y,c,u,f)?s.a7(n,s.oZ(n,r),c,u,f):!1;if(v===7)return m=s.a7(n,r.y,c,u,f),m;if(B===8)return s.a7(n,r,c,u.y,f)?!0:s.a7(n,r,c,s.oZ(n,u),f);if(B===7)return m=s.a7(n,r,c,u.y,f),m;if(S)return!1;if(m=v!==12,(!m||v===13)&&u===N.b8)return!0;if(B===13){if(r===N.g)return!0;if(v!==13||(L=r.z,F=u.z,z=L.length,z!==F.length))return!1;for(c=c==null?L:L.concat(c),f=f==null?F:F.concat(f),O=0;O<z;++O)if(W=L[O],Y=F[O],!s.a7(n,W,c,Y,f)||!s.a7(n,Y,f,W,c))return!1;return s.pA(n,r.y,c,u.y,f)}return B===12?r===N.g?!0:m?!1:s.pA(n,r,c,u,f):v===9?B!==9?!1:s.wk(n,r,c,u,f):(m=v===11,m&&u===N.gT?!0:m&&B===11?s.wo(n,r,c,u,f):!1)},pA(n,r,c,u,f){var m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q,ae,me,fe,he,ve;if(!s.a7(n,r.y,c,u.y,f)||(m=r.z,v=u.z,S=m.a,B=v.a,L=S.length,F=B.length,L>F)||(z=F-L,O=m.b,W=v.b,Y=O.length,te=W.length,L+Y<F+te))return!1;for(K=0;K<L;++K)if(ie=S[K],!s.a7(n,B[K],f,ie,c))return!1;for(K=0;K<z;++K)if(ie=O[K],!s.a7(n,B[L+K],f,ie,c))return!1;for(K=0;K<te;++K)if(ie=O[z+K],!s.a7(n,W[K],f,ie,c))return!1;for(de=m.c,j=v.c,q=de.length,ae=j.length,me=0,fe=0;fe<ae;fe+=3)for(he=j[fe];;){if(me>=q||(ve=de[me],me+=3,he<ve))return!1;if(!(ve<he)){if(ie=de[me-1],!s.a7(n,j[fe+2],f,ie,c))return!1;break}}return!0},wk(n,r,c,u,f){for(var m,v,S,B,L,F,z,O=r.y,W=u.y;O!==W;){if(m=n.tR[O],m==null)return!1;if(typeof m=="string"){O=m;continue}if(v=m[W],v==null)return!1;for(S=v.length,B=S>0?new Array(S):re.typeUniverse.sEA,L=0;L<S;++L)B[L]=s.mt(n,r,v[L]);return s.pu(n,B,null,c,u.z,f)}return F=r.z,z=u.z,s.pu(n,F,null,c,z,f)},pu(n,r,c,u,f,m){var v,S,B,L=r.length;for(v=0;v<L;++v)if(S=r[v],B=f[v],!s.a7(n,S,u,B,m))return!1;return!0},wo(n,r,c,u,f){var m,v=r.z,S=u.z,B=v.length;if(B!==S.length||r.y!==u.y)return!1;for(m=0;m<B;++m)if(!s.a7(n,v[m],c,S[m],f))return!1;return!0},n0(n){var r,c=n.x;return n===N.P||n===N.T||s.bq(n)?r=!0:c!==7?c===6&&s.n0(n.y)?r=!0:r=c===8&&s.n0(n.y):r=!0,r},xh(n){var r;return s.bq(n)?r=!0:n!==N._?r=n===N.K:r=!0,r},bq(n){var r=n.x;return r===2||r===3||r===4||r===5||n===N.cK},pt(n,r){var c,u,f=Object.keys(r),m=f.length;for(c=0;c<m;++c)u=f[c],n[u]=r[u]},mv(n){return n>0?new Array(n):re.typeUniverse.sEA},aF:function(r,c){var u=this;u.a=r,u.b=c,u.w=u.r=u.c=null,u.x=0,u.at=u.as=u.Q=u.z=u.y=null},fK:function(){this.c=this.b=this.a=null},eh:function(r){this.a=r},fJ:function(){},ei:function(r){this.a=r},vg(){var n,r,c={};return t.scheduleImmediate!=null?s.wP():t.MutationObserver!=null&&t.document!=null?(n=t.document.createElement("div"),r=t.document.createElement("span"),c.a=null,new t.MutationObserver(s.mO(new s.lW(c),1)).observe(n,{childList:!0}),new s.lV(c,n,r)):t.setImmediate!=null?s.wQ():s.wR()},vh(n){t.scheduleImmediate(s.mO(new s.lX(n),0))},vi(n){t.setImmediate(s.mO(new s.lY(n),0))},vj(n){s.vv(0,n)},vv(n,r){var c=new s.mr;return c.dg(n,r),c},ex(n){return new s.fD(new s.C(I.B,n.h("C<0>")),n.h("fD<0>"))},et(n,r){return n.$2(0,null),r.b=!0,r.a},dd(n,r){s.w2(n,r)},es(n,r){r.a3(n)},er(n,r){r.bK(s.M(n),s.aS(n))},w2(n,r){var c,u,f=new s.mx(r),m=new s.my(r);n instanceof s.C?n.cz(f,m,N.z):(c=N.z,N.d.b(n)?n.au(0,f,m,c):(u=new s.C(I.B,N.eI),u.a=8,u.c=n,u.cz(f,m,c)))},ez(n){var r=(function(c,u){return function(f,m){for(;;)try{c(f,m);break}catch(v){m=v,f=u}}})(n,1);return I.B.c1(new s.mN(r))},mf(n){return new s.d7(n,1)},bO(){return y.eo},bP(n){return new s.d7(n,3)},bS(n,r){return new s.eg(n,r.h("eg<0>"))},h9(n,r){var c=s.bU(n,"error",N.K);return new s.eH(c,r??s.eI(n))},eI(n){var r;return N.Q.b(n)&&(r=n.gb2(),r!=null)?r:y.bk},nz(n,r){for(var c,u;c=n.a,(c&4)!==0;)n=n.c;(c&24)!==0?(u=r.bb(),r.by(n),s.d6(r,u)):(u=r.c,r.a=r.a&1|4,r.c=n,n.cs(u))},d6(n,r){var c,u,f,m,v,S,B,L,F,z,O,W,Y,te={},K=te.a=n;for(c=N.d;;){if(u={},f=K.a,m=(f&16)===0,v=!m,r==null){v&&(f&1)===0&&(K=K.c,s.dh(K.a,K.b));return}for(u.a=r,S=r.a,K=r;S!=null;K=S,S=B)K.a=null,s.d6(te.a,K),u.a=S,B=S.a;if(f=te.a,L=f.c,u.b=v,u.c=L,m?(F=K.c,F=(F&1)!==0||(F&15)===8):F=!0,F){if(z=K.b.b,v?(f=f.b===z,f=!(f||f)):f=!1,f){s.dh(L.a,L.b);return}if(O=I.B,O!==z?I.B=z:O=null,K=K.c,(K&15)===8?new s.md(u,te,v).$0():m?(K&1)!==0&&new s.mc(u,L).$0():(K&2)!==0&&new s.mb(te,u).$0(),O!=null&&(I.B=O),K=u.c,c.b(K)?(f=u.a.$ti,f=f.h("a5<2>").b(K)||!f.z[1].b(K)):f=!1,f){if(W=u.a.b,K instanceof s.C)if((K.a&24)!==0){Y=W.c,W.c=null,r=W.bc(Y),W.a=K.a&30|W.a&1,W.c=K.c,te.a=K;continue}else s.nz(K,W);else W.ce(K);return}}W=u.a.b,Y=W.c,W.c=null,r=W.bc(Y),K=u.b,f=u.c,K?(W.a=W.a&1|16,W.c=f):(W.a=8,W.c=f),te.a=W,K=W}},wA(n,r){if(N.C.b(n))return r.c1(n);if(N.v.b(n))return n;throw s.d(s.h7(n,"onError",Ae.c))},wv(){var n,r;for(n=I.dg;n!=null;n=I.dg)I.ew=null,r=n.b,I.dg=r,r==null&&(I.ev=null),n.a.$0()},wC(){I.nK=!0;try{s.wv()}finally{I.ew=null,I.nK=!1,I.dg!=null&&I.oj().$1(s.pK())}},pH(n){var r=new s.fE(n),c=I.ev;c==null?(I.dg=I.ev=r,I.nK||I.oj().$1(s.pK())):I.ev=c.b=r},wB(n){var r,c,u,f=I.dg;if(f==null){s.pH(n),I.ew=I.ev;return}r=new s.fE(n),c=I.ew,c==null?(r.b=f,I.dg=I.ew=r):(u=c.b,r.b=u,I.ew=c.b=r,u==null&&(I.ev=r))},q_(n){var r,c=null,u=I.B;if(y.i===u){s.cI(c,c,y.i,n);return}if(r=!1,r){s.cI(c,c,u,n);return}s.cI(c,c,u,u.cB(n))},fs(n,r){var c=null,u=r.h("aZ<0>"),f=new s.aZ(c,c,c,c,u);return f.aJ(n),f.aK(),new s.aj(f,u.h("aj<1>"))},v9(n,r){var c=null,u=r.h("db<0>"),f=new s.db(c,c,c,c,u);return n.au(0,new s.ln(f,r),new s.lo(f),N.P),new s.aj(f,u.h("aj<1>"))},AG(n){return s.bU(n,"stream",N.K),new s.fQ},p1(n,r,c,u){return new s.aZ(null,r,c,n,u.h("aZ<0>"))},nM(n){var r,c;if(n!=null)try{n.$0()}catch(u){r=s.M(u),c=s.aS(u),s.dh(r,c)}},vn(n,r){if(r==null&&(r=s.wS()),N.k.b(r))return n.c1(r);if(N.d5.b(r))return r;throw s.d(s.K("handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace.",null))},ww(n,r){s.dh(n,r)},dh(n,r){s.wB(new s.mK(n,r))},pC(n,r,c,u){var f,m=I.B;if(m===c)return u.$0();I.B=c,f=m;try{return m=u.$0(),m}finally{I.B=f}},pE(n,r,c,u,f){var m,v=I.B;if(v===c)return u.$1(f);I.B=c,m=v;try{return v=u.$1(f),v}finally{I.B=m}},pD(n,r,c,u,f,m){var v,S=I.B;if(S===c)return u.$2(f,m);I.B=c,v=S;try{return S=u.$2(f,m),S}finally{I.B=v}},cI(n,r,c,u){y.i!==c&&(u=c.cB(u)),s.pH(u)},lW:function(r){this.a=r},lV:function(r,c,u){this.a=r,this.b=c,this.c=u},lX:function(r){this.a=r},lY:function(r){this.a=r},mr:function(){},ms:function(r,c){this.a=r,this.b=c},fD:function(r,c){this.a=r,this.b=!1,this.$ti=c},mx:function(r){this.a=r},my:function(r){this.a=r},mN:function(r){this.a=r},d7:function(r,c){this.a=r,this.b=c},aH:function(r,c){var u=this;u.a=r,u.d=u.c=u.b=null,u.$ti=c},eg:function(r,c){this.a=r,this.$ti=c},eH:function(r,c){this.a=r,this.b=c},fG:function(){},ay:function(r,c){this.a=r,this.$ti=c},bN:function(r,c,u,f,m){var v=this;v.a=null,v.b=r,v.c=c,v.d=u,v.e=f,v.$ti=m},C:function(r,c){var u=this;u.a=0,u.b=r,u.c=null,u.$ti=c},m3:function(r,c){this.a=r,this.b=c},ma:function(r,c){this.a=r,this.b=c},m6:function(r){this.a=r},m7:function(r){this.a=r},m8:function(r,c,u){this.a=r,this.b=c,this.c=u},m5:function(r,c){this.a=r,this.b=c},m9:function(r,c){this.a=r,this.b=c},m4:function(r,c,u){this.a=r,this.b=c,this.c=u},md:function(r,c,u){this.a=r,this.b=c,this.c=u},me:function(r){this.a=r},mc:function(r,c){this.a=r,this.b=c},mb:function(r,c){this.a=r,this.b=c},fE:function(r){this.a=r,this.b=null},bi:function(){},ln:function(r,c){this.a=r,this.b=c},lo:function(r){this.a=r},lp:function(r,c){this.a=r,this.b=c},lq:function(r,c){this.a=r,this.b=c},fr:function(){},da:function(){},mq:function(r){this.a=r},mp:function(r){this.a=r},fS:function(){},fF:function(){},aZ:function(r,c,u,f,m){var v=this;v.a=null,v.b=0,v.c=null,v.d=r,v.e=c,v.f=u,v.r=f,v.$ti=m},db:function(r,c,u,f,m){var v=this;v.a=null,v.b=0,v.c=null,v.d=r,v.e=c,v.f=u,v.r=f,v.$ti=m},aj:function(r,c){this.a=r,this.$ti=c},dX:function(r,c,u,f,m,v){var S=this;S.w=r,S.a=c,S.b=u,S.c=f,S.d=m,S.e=v,S.r=S.f=null},dT:function(){},m0:function(r,c,u){this.a=r,this.b=c,this.c=u},m_:function(r){this.a=r},ee:function(){},fI:function(){},cG:function(r){this.b=r,this.a=null},dY:function(r,c){this.b=r,this.c=c,this.a=null},m1:function(){},eb:function(){this.a=0,this.c=this.b=null},ml:function(r,c){this.a=r,this.b=c},fQ:function(){},mw:function(){},mK:function(r,c){this.a=r,this.b=c},mn:function(){},mo:function(r,c){this.a=r,this.b=c},pe(n,r){var c=n[r];return c===n?null:c},nA(n,r,c){c==null?n[r]=n:n[r]=c},pf(){var n=Object.create(null);return s.nA(n,"<non-identifier-key>",n),delete n["<non-identifier-key>"],n},uI(n,r,c,u){return s.vo(s.wZ(),n,r,c,u)},nu(n,r,c){return s.pN(n,new s.aC(r.h("@<0>").I(c).h("aC<1,2>")))},a9(n,r){return new s.aC(n.h("@<0>").I(r).h("aC<1,2>"))},vo(n,r,c,u,f){var m=c??new s.mi(u);return new s.e5(n,r,m,u.h("@<0>").I(f).h("e5<1,2>"))},oH(n){return new s.b_(n.h("b_<0>"))},aD(n){return new s.b_(n.h("b_<0>"))},aP(n,r){return s.x4(n,new s.b_(r.h("b_<0>")))},nC(){var n=Object.create(null);return n["<non-identifier-key>"]=n,delete n["<non-identifier-key>"],n},nB(n,r,c){var u=new s.cH(n,r,c.h("cH<0>"));return u.c=n.e,u},w7(n,r){return V.af(n,r)},uh(n,r,c){var u,f;if(s.nL(n))return r==="("&&c===")"?"(...)":r+"..."+c;u=s.a([],N.s),I.cJ.push(n);try{s.ws(n,u)}finally{I.cJ.pop()}return f=s.ny(r,u,", ")+c,f.charCodeAt(0)==0,f},iI(n,r,c){var u,f;if(s.nL(n))return r+"..."+c;u=new s.ac(r),I.cJ.push(n);try{f=u,f.a=s.ny(f.a,n,", ")}finally{I.cJ.pop()}return u.a+=c,f=u.a,f.charCodeAt(0)==0,f},nL(n){var r,c;for(r=I.cJ.length,c=0;c<r;++c)if(n===I.cJ[c])return!0;return!1},ws(n,r){for(var c,u,f,m,v,S,B,L=n.gH(n),F=0,z=0;F<80||z<3;){if(!L.q())return;c=s.b(L.gt()),r.push(c),F+=c.length+2,++z}if(L.q())if(m=L.gt(),++z,L.q()){for(v=L.gt(),++z;L.q();m=v,v=S)if(S=L.gt(),++z,z>100){for(;F>75&&z>3;)F-=r.pop().length+2,--z;r.push("...");return}f=s.b(m),u=s.b(v),F+=u.length+f.length+4}else{if(z<=4){r.push(s.b(m));return}u=s.b(m),f=r.pop(),F+=u.length+2}else{if(z<=5)return;u=r.pop(),f=r.pop()}for(z>r.length+2?(F+=5,B="..."):B=null;F>80&&r.length>3;)F-=r.pop().length+2,B==null&&(F+=5,B="...");B!=null&&r.push(B),r.push(f),r.push(u)},uJ(n,r){var c,u,f=s.oH(r);for(c=n.length,u=0;u<n.length;n.length===c||(0,s.cN)(n),++u)f.C(0,r.a(n[u]));return f},nv(n){var r,c={};if(s.nL(n))return"{...}";r=new s.ac("");try{I.cJ.push(n),r.a+="{",c.a=!0,n.M(0,new s.jO(c,r)),r.a+="}"}finally{I.cJ.pop()}return c=r.a,c.charCodeAt(0)==0,c},e1:function(){},e4:function(r){var c=this;c.a=0,c.e=c.d=c.c=c.b=null,c.$ti=r},e2:function(r,c){this.a=r,this.$ti=c},e3:function(r,c,u){var f=this;f.a=r,f.b=c,f.c=0,f.d=null,f.$ti=u},e5:function(r,c,u,f){var m=this;m.w=r,m.x=c,m.y=u,m.a=0,m.f=m.e=m.d=m.c=m.b=null,m.r=0,m.$ti=f},mi:function(r){this.a=r},b_:function(r){var c=this;c.a=0,c.f=c.e=c.d=c.c=c.b=null,c.r=0,c.$ti=r},mj:function(r){this.a=r,this.c=this.b=null},cH:function(r,c,u){var f=this;f.a=r,f.b=c,f.d=f.c=null,f.$ti=u},aX:function(r,c){this.a=r,this.$ti=c},dw:function(){},dA:function(){},p:function(){},dB:function(){},jO:function(r,c){this.a=r,this.b=c},I:function(){},jP:function(r){this.a=r},fU:function(){},dC:function(){},bm:function(r,c){this.a=r,this.$ti=c},dM:function(){},ec:function(){},e6:function(){},em:function(){},eq:function(){},pB(n,r){var c,u,f=null;try{f=JSON.parse(n)}catch(m){throw c=s.M(m),u=s.R(String(c),null,null),s.d(u)}return u=s.mA(f),u},mA(n){var r;if(n==null)return null;if(typeof n!="object")return n;if(Object.getPrototypeOf(n)!==Array.prototype)return new s.fM(n,Object.create(null));for(r=0;r<n.length;++r)n[r]=s.mA(n[r]);return n},ve(n,r,c,u){var f,m;return r instanceof Uint8Array?(f=r,u=f.length,u-c<15||(m=s.vf(n,f,c,u),m!=null&&n&&m.indexOf("�")>=0)?null:m):null},vf(n,r,c,u){var f=n?I.tm():I.tl();return f==null?null:c===0&&u===r.length?s.p8(f,r):s.p8(f,r.subarray(c,s.aQ(c,u,r.length)))},p8(n,r){var c;try{return c=n.decode(r),c}catch{}return null},os(n,r,c,u,f,m){if(y.c.br(m,4)!==0)throw s.d(s.R("Invalid base64 padding, padded length must be multiple of four, is "+m,n,c));if(u+f!==m)throw s.d(s.R("Invalid base64 padding, '=' not at the end",n,r));if(f>2)throw s.d(s.R("Invalid base64 padding, more than two '=' characters",n,r))},vm(n,r,c,u,f,m){var v,S,B,L,F,z,O="Invalid encoding before padding",W="Invalid character",Y=y.c.ai(m,2),te=m&3,K=I.ok();for(v=r,S=0;v<c;++v){if(B=y.a.B(n,v),S|=B,L=K[B&127],L>=0){Y=(Y<<6|L)&16777215,te=te+1&3,te===0&&(F=f+1,u[f]=Y>>>16&255,f=F+1,u[F]=Y>>>8&255,F=f+1,u[f]=Y&255,f=F,Y=0);continue}else if(L===-1&&te>1){if(S>127)break;if(te===3){if((Y&3)!==0)throw s.d(s.R(O,n,v));u[f]=Y>>>10,u[f+1]=Y>>>2}else{if((Y&15)!==0)throw s.d(s.R(O,n,v));u[f]=Y>>>4}return z=(3-te)*3,B===37&&(z+=2),s.pc(n,v+1,c,-z-1)}throw s.d(s.R(W,n,v))}if(S>=0&&S<=127)return(Y<<2|te)>>>0;for(v=r;v<c&&(B=y.a.B(n,v),!(B>127));++v);throw s.d(s.R(W,n,v))},vk(n,r,c,u){var f=s.vl(n,r,c),m=(u&3)+(f-r),v=y.c.ai(m,2)*3,S=m&3;return S!==0&&f<c&&(v+=S-1),v>0?new Uint8Array(v):I.tn()},vl(n,r,c){for(var u,f=c,m=f,v=0;m>r&&v<2;)e:{if(--m,u=y.a.B(n,m),u===61){++v,f=m;break e}if((u|32)===100){if(m===r)break;--m,u=y.a.B(n,m)}if(u===51){if(m===r)break;--m,u=y.a.B(n,m)}if(u===37){++v,f=m;break e}break}return f},pc(n,r,c,u){var f,m;if(r===c)return u;for(f=-u-1;f>0;){if(m=y.a.B(n,r),f===3){if(m===61){f-=3,++r;break}if(m===37){if(--f,++r,r===c)break;m=y.a.B(n,r)}else break}if((f>3?f-3:f)===2){if(m!==51||(++r,--f,r===c))break;m=y.a.B(n,r)}if((m|32)!==100||(++r,--f,r===c))break}if(r!==c)throw s.d(s.R("Invalid padding character",n,r));return-f-1},ps(n){switch(n){case 65:return"Missing extension byte";case 67:return"Unexpected extension byte";case 69:return"Invalid UTF-8 byte";case 71:return"Overlong encoding";case 73:return"Out of unicode range";case 75:return"Encoded surrogate";case 77:return"Unfinished UTF-8 octet sequence";default:return""}},vZ(n,r,c){var u,f,m,v=c-r,S=new Uint8Array(v);for(u=V.V(n),f=0;f<v;++f)m=u.i(n,r+f),S[f]=(m&4294967040)>>>0?255:m;return S},fM:function(r,c){this.a=r,this.b=c,this.c=null},fN:function(r){this.a=r},mh:function(r,c,u){this.b=r,this.c=c,this.a=u},lD:function(){},lC:function(){},ha:function(){},hc:function(){},hb:function(){},lZ:function(){this.a=0},hd:function(){},eJ:function(){},fO:function(r,c,u){this.a=r,this.b=c,this.$ti=u},eN:function(){},eP:function(){},hW:function(){},iQ:function(){},iR:function(r){this.a=r},lr:function(){},ls:function(){},ef:function(){},mu:function(r,c,u){this.a=r,this.b=c,this.c=u},lA:function(){},lB:function(r){this.a=r},fV:function(r){this.a=r,this.b=16,this.c=0},cM(n,r){var c=s.oY(n,r);if(c!=null)return c;throw s.d(s.R(n,null,null))},u6(n){return n instanceof s.c7?n.k(0):"Instance of '"+s.b(s.ka(n))+"'"},u7(n,r){throw n=s.d(n),n.stack=V.as(r),n},U(n,r,c,u){var f,m=V.b8(n,u);if(n!==0&&r!=null)for(f=0;f<n;++f)m[f]=r;return m},uK(n,r){var c,u=s.a([],r.h("D<0>"));for(c=n.gH(n);c.q();)u.push(c.gt());return u},bc(n,r,c){var u;return r?s.oI(n,c):(u=V.nr(s.oI(n,c)),u)},oI(n,r){var c,u;if(Array.isArray(n))return s.a(n.slice(0),r.h("D<0>"));for(c=s.a([],r.h("D<0>")),u=V.aA(n);u.q();)c.push(u.gt());return c},oJ(n,r,c,u){var f,m=V.b8(n,u);for(f=0;f<n;++f)m[f]=r.$1(f);return m},p2(n,r,c){return N.bm.b(n)?s.v2(n,r,s.aQ(r,c,n.length)):s.va(n,r,c)},va(n,r,c){var u,f,m,v,S=null;if(r<0)throw s.d(s.Y(r,0,n.length,S,S));if(u=c==null,!u&&c<r)throw s.d(s.Y(c,r,n.length,S,S));for(f=new s.aa(n,n.length,s.ak(n).h("aa<p.E>")),m=0;m<r;++m)if(!f.q())throw s.d(s.Y(r,0,m,S,S));if(v=[],u)for(;f.q();)v.push(f.d);else for(m=r;m<c;++m){if(!f.q())throw s.d(s.Y(c,r,m,S,S));v.push(f.d)}return s.v0(v)},nx(n){return new s.iK(n,s.uk(n,!1,!0,!1,!1,!1))},ny(n,r,c){var u=V.aA(r);if(!u.q())return n;if(c.length===0)do n+=s.b(u.gt());while(u.q());else for(n+=s.b(u.gt());u.q();)n=n+c+s.b(u.gt());return n},uT(n,r,c,u,f){return new s.dH(n,r,c,u,f)},oy(n){var r=Math.abs(n),c=n<0?"-":"";return r>=1e3?""+n:r>=100?c+"0"+r:r>=10?c+"00"+r:c+"000"+r},u5(n){var r=Math.abs(n),c=n<0?"-":"+";return r>=1e5?c+r:c+"0"+r},oz(n){return n>=100?""+n:n>=10?"0"+n:"00"+n},b6(n){return n>=10?""+n:"0"+n},cS(n){return typeof n=="number"||s.eu(n)||n==null?V.as(n):typeof n=="string"?JSON.stringify(n):s.u6(n)},u8(n,r){s.bU(n,"error",N.K),s.bU(r,"stackTrace",N.gm),s.u7(n,r),s.bg(Ae.g)},eG(n){return new s.eF(n)},K(n,r){return new s.at(!1,null,r,n)},h7(n,r,c){return new s.at(!0,n,r,c)},h8(n,r){return n},Y(n,r,c,u,f){return new s.dL(r,c,!0,n,u,"Invalid value")},aQ(n,r,c){if(0>n||n>c)throw s.d(s.Y(n,0,c,"start",null));if(r!=null){if(n>r||r>c)throw s.d(s.Y(r,n,c,"end",null));return r}return c},aW(n,r){if(n<0)throw s.d(s.Y(n,0,null,r,null));return n},eW(n,r,c,u,f){return new s.eV(r,!0,n,f,"Index out of range")},ad(n){return new s.fz(n)},p4(n){return new s.fu(n)},d2(n){return new s.bJ(n)},ag(n){return new s.eO(n)},u9(n){return new s.e_(n)},R(n,r,c){return new s.aK(n,r,c)},oE(n,r,c){return n<=0?new s.b7(c.h("b7<0>")):new s.e0(n,r,c.h("e0<0>"))},oK(n,r,c,u,f){return new s.c6(n,r.h("@<0>").I(c).I(u).I(f).h("c6<1,2,3,4>"))},k6(n){var r,c,u=I.to();for(r=n.length,c=0;c<r;++c)u=u+V.bY(n[c])&536870911,u=u+((u&524287)<<10)&536870911,u^=u>>>6;return u=u+((u&67108863)<<3)&536870911,u^=u>>>11,u+((u&16383)<<15)&536870911},p6(n){var r,c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q,ae,me,fe,he=null,ve=n.length;if(ve>=5){if(r=s.pI(n,0),r===0)return c=s.lw(ve<ve?y.a.u(n,0,ve):n,5,he),c.gbo(c);if(r===32)return c=s.lw(y.a.u(n,5,ve),0,he),c.gbo(c)}return u=s.U(8,0,!1,N.S),u[0]=0,u[1]=-1,u[2]=-1,u[7]=-1,u[3]=0,u[4]=0,u[5]=ve,u[6]=ve,s.pG(n,0,ve,0,u)>=14&&(u[7]=ve),f=u[1],f>=0&&s.pG(n,0,f,20,u)===20&&(u[7]=f),m=u[2]+1,v=u[3],S=u[4],B=u[5],L=u[6],L<B&&(B=L),S<m?S=B:S<=f&&(S=f+1),v<m&&(v=S),F=u[7]<0,F?m>f+3?(z=he,F=!1):(c=v>0,c&&v+1===S?(z=he,F=!1):(y.a.U(n,"\\",S)?O=!0:m>0?O=y.a.U(n,"\\",m-1)||y.a.U(n,"\\",m-2):O=!1,O?(z=he,F=!1):(B<ve&&B===S+2&&y.a.U(n,"..",S)?O=!0:O=B>S+2&&y.a.U(n,"/..",B-3),O?(z=he,F=!1):(f===4?y.a.U(n,"file",0)?(m<=0?(y.a.U(n,"/",S)?(W="file://",Y=2):(W="file:///",Y=3),n=W+y.a.u(n,S,ve),f-=0,c=Y-0,B+=c,L+=c,ve=n.length,m=7,v=7,S=7):S===B&&(++L,te=B+1,n=y.a.aH(n,S,B,"/"),++ve,B=te),z="file"):y.a.U(n,"http",0)?(c&&v+3===S&&y.a.U(n,"80",v+1)&&(L-=3,K=S-3,B-=3,n=y.a.aH(n,v,S,""),ve-=3,S=K),z="http"):z=he:f===5&&y.a.U(n,"https",0)?(c&&v+4===S&&y.a.U(n,"443",v+1)&&(L-=4,K=S-4,B-=4,n=y.a.aH(n,v,S,""),ve-=3,S=K),z="https"):z=he,F=!0)))):z=he,F?(ve<n.length&&(n=y.a.u(n,0,ve),f-=0,m-=0,v-=0,S-=0,B-=0,L-=0),new s.fP(n,f,m,v,S,B,L,z)):(z==null&&(f>0?z=s.vS(n,0,f):(f===0&&(s.dc(n,0,"Invalid empty scheme"),s.bg(Ae.g)),z="")),m>0?(ie=f+3,de=ie<m?s.vT(n,ie,m-1):"",j=s.vO(n,m,v,!1),c=v+1,c<S?(q=s.oY(y.a.u(n,c,S),he),ae=s.vQ(q??s.Z(s.R("Invalid port",n,c)),z)):ae=he):(ae=he,j=ae,de=""),me=s.vP(n,S,B,he,z,j!=null),fe=B<L?s.vR(n,B+1,L,he):he,s.vJ(z,de,j,ae,me,fe,L<ve?s.vN(n,L+1,ve):he))},vd(n,r,c){var u,f,m,v,S,B,L="IPv4 address should contain exactly 4 parts",F="each part must be in the range 0..255",z=new s.lx(n),O=new Uint8Array(4);for(u=r,f=u,m=0;u<c;++u)v=y.a.B(n,u),v!==46?(v^48)>9&&z.$2("invalid character",u):(m===3&&z.$2(L,u),S=s.cM(y.a.u(n,f,u),null),S>255&&z.$2(F,f),B=m+1,O[m]=S,f=u+1,m=B);return m!==3&&z.$2(L,c),S=s.cM(y.a.u(n,f,c),null),S>255&&z.$2(F,f),O[m]=S,O},p7(n,r,c){var u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie=null,de=new s.ly(n),j=new s.lz(de,n);for(n.length<2&&de.$2("address is too short",ie),u=s.a([],N.Z),f=r,m=f,v=!1,S=!1;f<c;++f)B=y.a.B(n,f),B===58?(f===r&&(++f,y.a.B(n,f)!==58&&de.$2("invalid start colon.",f),m=f),f===m?(v&&de.$2("only one wildcard `::` is allowed",f),u.push(-1),v=!0):u.push(j.$2(m,f)),m=f+1):B===46&&(S=!0);for(u.length===0&&de.$2("too few parts",ie),L=m===c,F=y.d.gaV(u),L&&F!==-1&&de.$2("expected a part after last `:`",c),L||(S?(z=s.vd(n,m,c),u.push((z[0]<<8|z[1])>>>0),u.push((z[2]<<8|z[3])>>>0)):u.push(j.$2(m,c))),v?u.length>7&&de.$2("an address with a wildcard must have less than 7 parts",ie):u.length!==8&&de.$2("an address without a wildcard must contain exactly 8 parts",ie),O=new Uint8Array(16),F=u.length,W=9-F,f=0,Y=0;f<F;++f)if(te=u[f],te===-1)for(K=0;K<W;++K)O[Y]=0,O[Y+1]=0,Y+=2;else O[Y]=y.c.ai(te,8),O[Y+1]=te&255,Y+=2;return O},vJ(n,r,c,u,f,m,v){return new s.en(n,r,c,u,f,m,v)},pm(n){return n==="http"?80:n==="https"?443:0},dc(n,r,c){throw s.d(s.R(c,n,r))},vQ(n,r){var c=s.pm(r);return n===c?null:n},vO(n,r,c,u){var f,m,v,S,B,L;if(r===c)return"";if(y.a.B(n,r)===91)return f=c-1,y.a.B(n,f)!==93&&(s.dc(n,r,"Missing end `]` to match `[` in host"),s.bg(Ae.g)),m=r+1,v=s.vL(n,m,f),v<f?(S=v+1,B=s.pr(n,y.a.U(n,"25",S)?v+3:S,f,"%25")):B="",s.p7(n,m,v),y.a.u(n,r,v).toLowerCase()+B+"]";for(L=r;L<c;++L)if(y.a.B(n,L)===58)return v=y.a.bg(n,"%",r),v=v>=r&&v<c?v:c,v<c?(S=v+1,B=s.pr(n,y.a.U(n,"25",S)?v+3:S,c,"%25")):B="",s.p7(n,r,v),"["+y.a.u(n,r,v)+B+"]";return s.vV(n,r,c)},vL(n,r,c){var u=y.a.bg(n,"%",r);return u>=r&&u<c?u:c},pr(n,r,c,u){var f,m,v,S,B,L,F,z,O,W,Y=u!==""?new s.ac(u):null;for(f=r,m=f,v=!0;f<c;)if(S=y.a.B(n,f),S===37){if(B=s.nI(n,f,!0),L=B==null,L&&v){f+=3;continue}Y==null&&(Y=new s.ac("")),F=Y.a+=y.a.u(n,m,f),L?B=y.a.u(n,f,f+3):B==="%"&&(s.dc(n,f,"ZoneID should not contain % anymore"),s.bg(Ae.g)),Y.a=F+B,f+=3,m=f,v=!0}else S<127&&(y.av[S>>>4]&1<<(S&15))!==0?(v&&65<=S&&90>=S&&(Y==null&&(Y=new s.ac("")),m<f&&(Y.a+=y.a.u(n,m,f),m=f),v=!1),++f):((S&64512)===55296&&f+1<c?(z=y.a.B(n,f+1),(z&64512)===56320?(S=(S&1023)<<10|z&1023|65536,O=2):O=1):O=1,W=y.a.u(n,m,f),Y==null&&(Y=new s.ac("")),L=Y,L.a+=W,L.a+=s.nH(S),f+=O,m=f);return Y==null?y.a.u(n,r,c):(m<c&&(Y.a+=y.a.u(n,m,c)),L=Y.a,L.charCodeAt(0)==0,L)},vV(n,r,c){var u,f,m,v,S,B,L,F,z,O,W;for(u=r,f=u,m=null,v=!0;u<c;)if(S=y.a.B(n,u),S===37){if(B=s.nI(n,u,!0),L=B==null,L&&v){u+=3;continue}m==null&&(m=new s.ac("")),F=y.a.u(n,f,u),z=m.a+=v?F:F.toLowerCase(),L?(B=y.a.u(n,u,u+3),O=3):B==="%"?(B="%25",O=1):O=3,m.a=z+B,u+=O,f=u,v=!0}else S<127&&(y.db[S>>>4]&1<<(S&15))!==0?(v&&65<=S&&90>=S&&(m==null&&(m=new s.ac("")),f<u&&(m.a+=y.a.u(n,f,u),f=u),v=!1),++u):S<=93&&(y.an[S>>>4]&1<<(S&15))!==0?(s.dc(n,u,"Invalid character"),s.bg(Ae.g)):((S&64512)===55296&&u+1<c?(W=y.a.B(n,u+1),(W&64512)===56320?(S=(S&1023)<<10|W&1023|65536,O=2):O=1):O=1,F=y.a.u(n,f,u),v||(F=F.toLowerCase()),m==null&&(m=new s.ac("")),L=m,L.a+=F,L.a+=s.nH(S),u+=O,f=u);return m==null?y.a.u(n,r,c):(f<c&&(F=y.a.u(n,f,c),m.a+=v?F:F.toLowerCase()),L=m.a,L.charCodeAt(0)==0,L)},vS(n,r,c){var u,f,m,v=Ae.g;if(r===c)return"";for(s.po(y.a.J(n,r))||(s.dc(n,r,"Scheme not starting with alphabetic character"),s.bg(v)),u=r,f=!1;u<c;++u)m=y.a.J(n,u),m<128&&(y.as[m>>>4]&1<<(m&15))!==0||(s.dc(n,u,"Illegal scheme character"),s.bg(v)),65<=m&&m<=90&&(f=!0);return n=y.a.u(n,r,c),s.vK(f?n.toLowerCase():n)},vK(n){return n==="http"?"http":n==="file"?"file":n==="https"?"https":n==="package"?"package":n},vT(n,r,c){return s.eo(n,r,c,y.cQ,!1,!1)},vP(n,r,c,u,f,m){var v=f==="file",S=v||m,B=s.eo(n,r,c,y.ax,!0,!0);if(B.length===0){if(v)return"/"}else S&&!y.a.Y(B,"/")&&(B="/"+B);return s.vU(B,f,m)},vU(n,r,c){var u=r.length===0;return u&&!c&&!y.a.Y(n,"/")&&!y.a.Y(n,"\\")?s.vW(n,!u||c):s.vX(n)},vR(n,r,c,u){return s.eo(n,r,c,y.D,!0,!1)},vN(n,r,c){return s.eo(n,r,c,y.D,!0,!1)},nI(n,r,c){var u,f,m,v,S,B=r+2;return B>=n.length||(u=y.a.B(n,r+1),f=y.a.B(n,B),m=s.mW(u),v=s.mW(f),m<0||v<0)?"%":(S=m*16+v,S<127&&(y.av[y.c.ai(S,4)]&1<<(S&15))!==0?s.be(c&&65<=S&&90>=S?(S|32)>>>0:S):u>=97||f>=97?y.a.u(n,r,r+3).toUpperCase():null)},nH(n){var r,c,u,f,m,v="0123456789ABCDEF";if(n<128)r=new Uint8Array(3),r[0]=37,r[1]=y.a.J(v,n>>>4),r[2]=y.a.J(v,n&15);else for(n>2047?n>65535?(c=240,u=4):(c=224,u=3):(c=192,u=2),r=new Uint8Array(3*u),f=0;--u,u>=0;c=128)m=y.c.dT(n,6*u)&63|c,r[f]=37,r[f+1]=y.a.J(v,m>>>4),r[f+2]=y.a.J(v,m&15),f+=3;return s.p2(r,0,null)},eo(n,r,c,u,f,m){var v=s.pq(n,r,c,u,f,m);return v??y.a.u(n,r,c)},pq(n,r,c,u,f,m){var v,S,B,L,F,z,O,W,Y,te,K=null;for(v=!f,S=r,B=S,L=K;S<c;)if(F=y.a.B(n,S),F<127&&(u[F>>>4]&1<<(F&15))!==0)++S;else{if(F===37){if(z=s.nI(n,S,!1),z==null){S+=3;continue}z==="%"?(z="%25",O=1):O=3}else F===92&&m?(z="/",O=1):v&&F<=93&&(y.an[F>>>4]&1<<(F&15))!==0?(s.dc(n,S,"Invalid character"),s.bg(Ae.g),O=K,z=O):((F&64512)===55296?(W=S+1,W<c?(Y=y.a.B(n,W),(Y&64512)===56320?(F=(F&1023)<<10|Y&1023|65536,O=2):O=1):O=1):O=1,z=s.nH(F));L==null&&(L=new s.ac("")),W=L,te=W.a+=y.a.u(n,B,S),W.a=te+s.b(z),S+=O,B=S}return L==null?K:(B<c&&(L.a+=y.a.u(n,B,c)),v=L.a,v.charCodeAt(0)==0,v)},pp(n){return y.a.Y(n,".")?!0:y.a.bR(n,"/.")!==-1},vX(n){var r,c,u,f,m,v;if(!s.pp(n))return n;for(r=s.a([],N.s),c=n.split("/"),u=c.length,f=!1,m=0;m<u;++m)v=c[m],V.af(v,"..")?(r.length!==0&&(r.pop(),r.length===0&&r.push("")),f=!0):v==="."?f=!0:(r.push(v),f=!1);return f&&r.push(""),y.d.cQ(r,"/")},vW(n,r){var c,u,f,m,v,S;if(!s.pp(n))return r?n:s.pn(n);for(c=s.a([],N.s),u=n.split("/"),f=u.length,m=!1,v=0;v<f;++v)S=u[v],S===".."?c.length!==0&&y.d.gaV(c)!==".."?(c.pop(),m=!0):(c.push(".."),m=!1):S==="."?m=!0:(c.push(S),m=!1);return u=c.length,u!==0?u=u===1&&c[0].length===0:u=!0,u?"./":((m||y.d.gaV(c)==="..")&&c.push(""),r||(c[0]=s.pn(c[0])),y.d.cQ(c,"/"))},pn(n){var r,c,u=n.length;if(u>=2&&s.po(y.a.J(n,0)))for(r=1;r<u;++r){if(c=y.a.J(n,r),c===58)return y.a.u(n,0,r)+"%3A"+y.a.bu(n,r+1);if(c>127||(y.as[c>>>4]&1<<(c&15))===0)break}return n},vM(n,r){var c,u,f;for(c=0,u=0;u<2;++u)if(f=y.a.B(n,r+u),48<=f&&f<=57)c=c*16+f-48;else if(f|=32,97<=f&&f<=102)c=c*16+f-87;else throw s.d(s.K("Invalid URL encoding",null));return c},vY(n,r,c,u,f){for(var m,v,S,B,L=r;;){if(!(L<c)){m=!0;break}if(v=y.a.B(n,L),v<=127&&v!==37?S=!1:S=!0,S){m=!1;break}++L}if(m){if(y.ac!==u?S=!1:S=!0,S)return y.a.u(n,r,c);B=new s.c8(y.a.u(n,r,c))}else for(B=s.a([],N.Z),S=n.length,L=r;L<c;++L){if(v=y.a.B(n,L),v>127)throw s.d(s.K("Illegal percent encoding in URI",null));if(v===37){if(L+3>S)throw s.d(s.K("Truncated URI",null));B.push(s.vM(n,L+1)),L+=2}else B.push(v)}return y.em.e_(B)},po(n){var r=n|32;return 97<=r&&r<=122},p5(n){var r;if(n.length>=5){if(r=s.pI(n,0),r===0)return s.lw(n,5,null);if(r===32)return s.lw(y.a.bu(n,5),0,null)}throw s.d(s.R("Does not start with 'data:'",n,0))},lw(n,r,c){var u,f,m,v,S,B,L,F,z="Invalid MIME type",O=s.a([r-1],N.Z);for(u=n.length,f=r,m=-1,v=null;f<u&&(v=y.a.J(n,f),!(v===44||v===59));++f)if(v===47){if(m<0){m=f;continue}throw s.d(s.R(z,n,f))}if(m<0&&f>r)throw s.d(s.R(z,n,f));for(;v!==44;){for(O.push(f),++f,S=-1;f<u;++f)if(v=y.a.J(n,f),v===61)S<0&&(S=f);else if(v===59||v===44)break;if(S>=0)O.push(S);else{if(B=y.d.gaV(O),v!==44||f!==B+7||!y.a.U(n,"base64",B+1))throw s.d(s.R("Expecting '='",n,f));break}}return O.push(f),L=f+1,(O.length&1)===1?n=y.b7.ee(n,L,u):(F=s.pq(n,L,u,y.D,!0,!1),F!=null&&(n=y.a.aH(n,L,u,F))),new s.lv(n,O,c)},w6(){var n,r,c,u,f,m="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~!$&'()*+,;=",v=".",S=":",B="/",L="\\",F="?",z="#",O="/\\",W=s.a(new Array(22),N.gN);for(n=0;n<22;++n)W[n]=new Uint8Array(96);return r=new s.mB(W),c=new s.mC,u=new s.mD,f=r.$2(0,225),c.$3(f,m,1),c.$3(f,v,14),c.$3(f,S,34),c.$3(f,B,3),c.$3(f,L,227),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(14,225),c.$3(f,m,1),c.$3(f,v,15),c.$3(f,S,34),c.$3(f,O,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(15,225),c.$3(f,m,1),c.$3(f,"%",225),c.$3(f,S,34),c.$3(f,B,9),c.$3(f,L,233),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(1,225),c.$3(f,m,1),c.$3(f,S,34),c.$3(f,B,10),c.$3(f,L,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(2,235),c.$3(f,m,139),c.$3(f,B,131),c.$3(f,L,131),c.$3(f,v,146),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(3,235),c.$3(f,m,11),c.$3(f,B,68),c.$3(f,L,68),c.$3(f,v,18),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(4,229),c.$3(f,m,5),u.$3(f,"AZ",229),c.$3(f,S,102),c.$3(f,"@",68),c.$3(f,"[",232),c.$3(f,B,138),c.$3(f,L,138),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(5,229),c.$3(f,m,5),u.$3(f,"AZ",229),c.$3(f,S,102),c.$3(f,"@",68),c.$3(f,B,138),c.$3(f,L,138),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(6,231),u.$3(f,"19",7),c.$3(f,"@",68),c.$3(f,B,138),c.$3(f,L,138),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(7,231),u.$3(f,"09",7),c.$3(f,"@",68),c.$3(f,B,138),c.$3(f,L,138),c.$3(f,F,172),c.$3(f,z,205),c.$3(r.$2(8,8),"]",5),f=r.$2(9,235),c.$3(f,m,11),c.$3(f,v,16),c.$3(f,O,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(16,235),c.$3(f,m,11),c.$3(f,v,17),c.$3(f,O,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(17,235),c.$3(f,m,11),c.$3(f,B,9),c.$3(f,L,233),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(10,235),c.$3(f,m,11),c.$3(f,v,18),c.$3(f,B,10),c.$3(f,L,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(18,235),c.$3(f,m,11),c.$3(f,v,19),c.$3(f,O,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(19,235),c.$3(f,m,11),c.$3(f,O,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(11,235),c.$3(f,m,11),c.$3(f,B,10),c.$3(f,L,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(12,236),c.$3(f,m,12),c.$3(f,F,12),c.$3(f,z,205),f=r.$2(13,237),c.$3(f,m,13),c.$3(f,F,13),u.$3(r.$2(20,245),"az",21),f=r.$2(21,245),u.$3(f,"az",21),u.$3(f,"09",21),c.$3(f,"+-.",21),W},pG(n,r,c,u,f){var m,v,S,B,L=I.ts();for(m=r;m<c;++m)v=L[u],S=y.a.J(n,m)^96,B=v[S>95?31:S],u=B&31,f[B>>>5]=m;return u},pI(n,r){return((y.a.J(n,r+4)^58)*3|y.a.J(n,r)^100|y.a.J(n,r+1)^97|y.a.J(n,r+2)^116|y.a.J(n,r+3)^97)>>>0},k2:function(r,c){this.a=r,this.b=c},dp:function(r,c){this.a=r,this.b=c},m2:function(){},H:function(){},eF:function(r){this.a=r},aG:function(){},fg:function(){},at:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},dL:function(r,c,u,f,m,v){var S=this;S.e=r,S.f=c,S.a=u,S.b=f,S.c=m,S.d=v},eV:function(r,c,u,f,m){var v=this;v.f=r,v.a=c,v.b=u,v.c=f,v.d=m},dH:function(r,c,u,f,m){var v=this;v.a=r,v.b=c,v.c=u,v.d=f,v.e=m},fz:function(r){this.a=r},fu:function(r){this.a=r},bJ:function(r){this.a=r},eO:function(r){this.a=r},fi:function(){},dO:function(){},eQ:function(r){this.a=r},e_:function(r){this.a=r},aK:function(r,c,u){this.a=r,this.b=c,this.c=u},j:function(){},e0:function(r,c,u){this.a=r,this.b=c,this.$ti=u},P:function(){},cY:function(r,c,u){this.a=r,this.b=c,this.$ti=u},l:function(){},c:function(){},fR:function(){},ac:function(r){this.a=r},lx:function(r){this.a=r},ly:function(r){this.a=r},lz:function(r,c){this.a=r,this.b=c},en:function(r,c,u,f,m,v,S){var B=this;B.a=r,B.b=c,B.c=u,B.d=f,B.e=m,B.f=v,B.r=S,B.y=B.w=I},lv:function(r,c,u){this.a=r,this.b=c,this.c=u},mB:function(r){this.a=r},mC:function(){},mD:function(){},fP:function(r,c,u,f,m,v,S,B){var L=this;L.a=r,L.b=c,L.c=u,L.d=f,L.e=m,L.f=v,L.r=S,L.w=B,L.x=null},fH:function(r,c,u,f,m,v,S){var B=this;B.a=r,B.b=c,B.c=u,B.d=f,B.e=m,B.f=v,B.r=S,B.y=B.w=I},nR(n){if(!N.I.b(n)&&!N.j.b(n))throw s.d(s.K("object must be a Map or Iterable",null));return s.w5(n)},w5(n){var r=new s.mz(new s.e4(N.aH)).$1(n);return r.toString,r},mz:function(r){this.a=r},tN(n,r){var c,u,f,m,v,S,B,L,F,z,O,W,Y,te="byteOffset",K=null,ie="normalized";switch(s.w(n,y.cZ,r),c=s.W(n,"bufferView",r,!1),c===-1?(u=n.v(te),u&&r.l(I.cO(),s.a(["bufferView"],N.M),te),f=0):f=s.a0(n,te,r,0,K,-1,0,!1),m=s.a0(n,"componentType",r,-1,y.cu,-1,0,!0),v=s.a0(n,"count",r,-1,K,-1,1,!0),S=s.J(n,"type",r,K,y.m.gN(),K,!0),B=s.pO(n,ie,r),S!=null&&m!==-1?(L=y.m.i(0,S),L!=null?m===5126?(u=N.V,F=s.ae(n,"min",r,K,s.a([L],u),1/0,-1/0,!0),z=s.ae(n,"max",r,K,s.a([L],u),1/0,-1/0,!0)):(F=s.pP(n,"min",r,m,L),z=s.pP(n,"max",r,m,L)):(F=K,z=F)):(F=K,z=F),O=s.T(n,"sparse",r,s.wK(),!1),B?u=m===5126||m===5125:u=!1,u&&r.n(I.ru(),ie),(S==="MAT2"||S==="MAT3"||S==="MAT4")&&f!==-1&&(f&3)!==0&&r.n(I.rt(),te),m){case 5120:case 5121:case 5122:case 5123:case 5125:u=N.w,u.a(z),u.a(F),s.J(n,"name",r,K,K,K,!1),u=s.t(n,y.S,r,K),W=s.x(n,r),Y=new s.fC(c,f,m,v,S,B,z,F,O,s.b0(m),u,W,!1),F!=null&&(u=r.S(),W=N.e,r.a_(Y,new s.f6(s.U(F.length,0,!1,W),s.U(F.length,0,!1,W),V.h4(F,!1),u))),z!=null&&(u=r.S(),W=N.e,r.a_(Y,new s.f4(s.U(z.length,0,!1,W),s.U(z.length,0,!1,W),V.h4(z,!1),u)));break;default:u=N.fy,u.a(z),u.a(F),s.J(n,"name",r,K,K,K,!1),u=s.t(n,y.S,r,K),W=s.x(n,r),Y=new s.fB(c,f,m,v,S,B,z,F,O,s.b0(m),u,W,!1),r.a_(Y,new s.eY(r.S())),F!=null&&(u=r.S(),r.a_(Y,new s.f5(s.U(F.length,0,!1,N.e),s.U(F.length,0,!1,N.F),V.h4(F,!1),u))),z!=null&&(u=r.S(),r.a_(Y,new s.f3(s.U(z.length,0,!1,N.e),s.U(z.length,0,!1,N.F),V.h4(z,!1),u)));break}return Y},bu(n,r,c,u,f,m){var v,S,B="byteOffset";if(n===-1)return!1;if(n%r!==0)if(m!=null)m.l(I.rv(),s.a([n,r],N.M),B);else return!1;if(v=u.x,v===-1)return!1;if(S=v+n,S%r!==0)if(m!=null)m.F(I.qM(),s.a([S,r],N.M));else return!1;if(v=u.y,n>v)if(m!=null)m.l(I.o3(),s.a([n,c,f,v],N.M),B);else return!1;else if(n+c>v)if(m!=null)m.F(I.o3(),s.a([n,c,f,v],N.M));else return!1;return!0},np(n,r,c,u){var f=r.byteLength,m=s.b0(n);if(f<c+m*u)return null;switch(n){case 5121:return s.nw(r,c,u);case 5123:return s.oO(r,c,u);case 5125:return s.oP(r,c,u);default:return null}},oq(n,r,c,u){var f=r.byteLength,m=s.b0(n);if(f<c+m*u)return null;switch(n){case 5126:return s.de(r,c,u),new Float32Array(r,c,u);default:return null}},or(n,r,c,u){var f=r.byteLength,m=s.b0(n);if(f<c+m*u)return null;switch(n){case 5120:return s.de(r,c,u),f=new Int8Array(r,c,u),f;case 5121:return s.nw(r,c,u);case 5122:return s.de(r,c,u),new Int16Array(r,c,u);case 5123:return s.oO(r,c,u);case 5125:return s.oP(r,c,u);default:return null}},tM(n,r){var c,u,f;return s.w(n,y.cH,r),c=s.a0(n,"count",r,-1,null,-1,1,!0),u=s.T(n,"indices",r,s.wI(),!0),f=s.T(n,"values",r,s.wJ(),!0),c===-1||u==null||f==null?null:new s.bZ(c,u,f,s.t(n,y.dP,r,null),s.x(n,r),!1)},tK(n,r){return s.w(n,y.cA,r),new s.c_(s.W(n,"bufferView",r,!0),s.a0(n,"byteOffset",r,0,null,-1,0,!1),s.a0(n,"componentType",r,-1,y.ce,-1,0,!0),s.t(n,y.dN,r,null),s.x(n,r),!1)},tL(n,r){return s.w(n,y.cD,r),new s.c0(s.W(n,"bufferView",r,!0),s.a0(n,"byteOffset",r,0,null,-1,0,!1),s.t(n,y.dO,r,null),s.x(n,r),!1)},a4:function(){},fC:function(r,c,u,f,m,v,S,B,L,F,z,O,W){var Y=this;Y.w=r,Y.x=c,Y.y=u,Y.z=f,Y.Q=m,Y.as=v,Y.at=S,Y.ax=B,Y.ay=L,Y.ch=F,Y.CW=null,Y.cx=0,Y.fr=Y.dy=null,Y.a=z,Y.b=O,Y.a$=W},lR:function(r,c,u,f,m){var v=this;v.a=r,v.b=c,v.c=u,v.d=f,v.e=m},lS:function(r){this.a=r},lT:function(){},lU:function(r,c,u,f,m){var v=this;v.a=r,v.b=c,v.c=u,v.d=f,v.e=m},lP:function(r){this.a=r},lQ:function(r){this.a=r},fB:function(r,c,u,f,m,v,S,B,L,F,z,O,W){var Y=this;Y.w=r,Y.x=c,Y.y=u,Y.z=f,Y.Q=m,Y.as=v,Y.at=S,Y.ax=B,Y.ay=L,Y.ch=F,Y.CW=null,Y.cx=0,Y.fr=Y.dy=null,Y.a=z,Y.b=O,Y.a$=W},lL:function(r,c,u,f,m){var v=this;v.a=r,v.b=c,v.c=u,v.d=f,v.e=m},lM:function(r){this.a=r},lN:function(){},lO:function(r,c,u,f,m){var v=this;v.a=r,v.b=c,v.c=u,v.d=f,v.e=m},bZ:function(r,c,u,f,m,v){var S=this;S.d=r,S.e=c,S.f=u,S.a=f,S.b=m,S.a$=v},c_:function(r,c,u,f,m,v){var S=this;S.d=r,S.e=c,S.f=u,S.r=null,S.a=f,S.b=m,S.a$=v},c0:function(r,c,u,f,m){var v=this;v.d=r,v.e=c,v.f=null,v.a=u,v.b=f,v.a$=m},eY:function(r){this.a=r},f5:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},f3:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},f6:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},f4:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},tP(n,r){var c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie=null,de="channels",j="extras",q="samplers";if(s.w(n,y.cF,r),c=s.eB(n,de,r),c!=null){for(u=c.gj(c),f=s.U(u,ie,!1,N.aA),m=new s.F(f,u,de,N.eq),u=r.c,u.push(de),v=N.h,S=0;S<c.gj(c);++S)B=c.i(0,S),u.push(y.c.k(S)),s.w(B,y.di,r),L=s.W(B,"sampler",r,!0),F=s.T(B,"target",r,s.wM(),!0),z=s.t(B,y.dQ,r,ie),O=B.i(0,j),O!=null&&!v.b(O)&&r.n(I.dk(),j),f[S]=new s.b2(L,F,z,O,!1),u.pop();u.pop()}else m=ie;if(W=s.eB(n,q,r),W!=null){for(u=W.gj(W),f=s.U(u,ie,!1,N.gW),Y=new s.F(f,u,q,N.az),u=r.c,u.push(q),v=N.h,S=0;S<W.gj(W);++S)te=W.i(0,S),u.push(y.c.k(S)),s.w(te,y.cW,r),L=s.W(te,"input",r,!0),F=s.J(te,"interpolation",r,"LINEAR",y.cq,ie,!1),z=s.W(te,"output",r,!0),K=s.t(te,y.dR,r,ie),O=te.i(0,j),O!=null&&!v.b(O)&&r.n(I.dk(),j),f[S]=new s.b3(L,F,z,K,O,!1),u.pop();u.pop()}else Y=ie;return s.J(n,"name",r,ie,ie,ie,!1),new s.bv(m,Y,s.t(n,y.T,r,ie),s.x(n,r),!1)},tO(n,r){var c,u;return s.w(n,y.d3,r),c=s.t(n,y.aC,r,y.T),u=new s.bw(s.W(n,"node",r,!1),s.J(n,"path",r,null,r.fy,null,!0),c,s.x(n,r),!1),r.W(u,s.bc(c.gX(),!0,N._)),u},bv:function(r,c,u,f,m){var v=this;v.w=r,v.x=c,v.a=u,v.b=f,v.a$=m},h5:function(r,c){this.a=r,this.b=c},h6:function(r,c,u){this.a=r,this.b=c,this.c=u},b2:function(r,c,u,f,m){var v=this;v.d=r,v.e=c,v.f=null,v.a=u,v.b=f,v.a$=m},bw:function(r,c,u,f,m){var v=this;v.d=r,v.e=c,v.f=null,v.a=u,v.b=f,v.a$=m},b3:function(r,c,u,f,m,v){var S=this;S.d=r,S.e=c,S.f=u,S.w=S.r=null,S.a=f,S.b=m,S.a$=v},eE:function(r){this.a=0,this.b=r},dK:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.e=m.d=0,m.$ti=f},tQ(n,r){var c,u,f,m,v=null,S="minVersion";return s.w(n,y.cC,r),s.J(n,"copyright",r,v,v,v,!1),c=s.J(n,"generator",r,v,v,v,!1),u=I.br(),f=s.J(n,"version",r,v,v,u,!0),u=s.J(n,S,r,v,v,u,!1),m=new s.bx(c,f,u,s.t(n,y.dS,r,v),s.x(n,r),!1),u!=null&&f!=null&&(m.gcS()<=m.gbj()?c=m.gcS()===m.gbj()&&m.ged()>m.gbW():c=!0,c&&r.l(I.rV(),s.a([u,f],N.M),S)),m},bx:function(r,c,u,f,m,v){var S=this;S.e=r,S.f=c,S.r=u,S.a=f,S.b=m,S.a$=v},tU(n,r){var c,u,f,m,v,S,B,L=null,F="uri";if(s.w(n,y.dk,r),m=s.a0(n,"byteLength",r,-1,L,-1,1,!0),c=null,v=n.v(F),v){if(u=s.J(n,F,r,L,L,L,!1),u!=null){r.dx&&r.n(I.o2(),F),f=null;try{f=s.p5(u)}catch(z){if(s.M(z)instanceof s.aK)c=s.pS(u,r);else throw z}if(f!=null)switch(r.dx&&r.n(I.o1(),F),f.gbV().toLowerCase()){case"application/gltf-buffer":case"application/octet-stream":S=f.cD();break;default:r.l(I.ry(),s.a([f.gbV()],N.M),F),S=L;break}else S=L}else S=L;v=!0}else S=L;return B=c,s.J(n,"name",r,L,L,L,!1),new s.aT(B,m,v,S,s.t(n,y.dT,r,L),s.x(n,r),!1)},aT:function(r,c,u,f,m,v,S){var B=this;B.w=r,B.x=c,B.y=u,B.z=f,B.a=m,B.b=v,B.a$=S},tT(n,r){var c,u,f,m,v,S=null,B="byteStride";return s.w(n,y.cp,r),c=s.a0(n,"byteLength",r,-1,S,-1,1,!0),u=s.a0(n,B,r,-1,S,252,4,!1),f=s.a0(n,"target",r,-1,y.cb,-1,0,!1),u!==-1&&(c!==-1&&u>c&&r.l(I.rz(),s.a([u,c],N.M),B),u%4!==0&&r.l(I.rr(),s.a([u,4],N.M),B),f===34963&&r.n(I.nj(),B)),m=s.W(n,"buffer",r,!0),v=s.a0(n,"byteOffset",r,0,S,-1,0,!1),s.J(n,"name",r,S,S,S,!1),new s.by(m,v,c,u,f,s.t(n,y.aD,r,S),s.x(n,r),!1)},by:function(r,c,u,f,m,v,S,B){var L=this;L.w=r,L.x=c,L.y=u,L.z=f,L.Q=m,L.at=L.as=null,L.ax=-1,L.a=v,L.b=S,L.a$=B},tX(n,r){var c=null,u="orthographic",f="perspective";switch(s.w(n,y.dj,r),n.v(u)&&n.v(f)&&r.F(I.oe(),y.aw),s.J(n,"type",r,c,y.aw,c,!0)){case"orthographic":s.T(n,u,r,s.wV(),!0);break;case"perspective":s.T(n,f,r,s.wW(),!0);break}return s.J(n,"name",r,c,c,c,!1),new s.bz(s.t(n,y.dW,r,c),s.x(n,r),!1)},tV(n,r){var c,u,f,m,v="xmag",S="ymag";return s.w(n,y.dq,r),c=s.E(n,v,r,NaN,1/0,-1/0,1/0,-1/0,!0,NaN),u=s.E(n,S,r,NaN,1/0,-1/0,1/0,-1/0,!0,NaN),f=s.E(n,"zfar",r,NaN,1/0,0,1/0,-1/0,!0,NaN),m=s.E(n,"znear",r,NaN,1/0,-1/0,1/0,0,!0,NaN),f<=m&&r.L(I.oh()),c===0?r.n(I.og(),v):c<0&&r.n(I.of(),v),u===0?r.n(I.og(),S):u<0&&r.n(I.of(),S),new s.c3(s.t(n,y.dU,r,null),s.x(n,r),!1)},tW(n,r){var c,u,f;return s.w(n,y.cB,r),c=s.E(n,"yfov",r,NaN,1/0,0,1/0,-1/0,!0,NaN),c>=3.141592653589793&&r.L(I.rA()),u=s.E(n,"zfar",r,NaN,1/0,0,1/0,-1/0,!1,NaN),f=s.E(n,"znear",r,NaN,1/0,0,1/0,-1/0,!0,NaN),u<=f&&r.L(I.oh()),s.E(n,"aspectRatio",r,NaN,1/0,0,1/0,-1/0,!1,NaN),new s.c4(s.t(n,y.dV,r,null),s.x(n,r),!1)},bz:function(r,c,u){this.a=r,this.b=c,this.a$=u},c3:function(r,c,u){this.a=r,this.b=c,this.a$=u},c4:function(r,c,u){this.a=r,this.b=c,this.a$=u},oC(n,r){var c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q,ae,me,fe,he,ve,Re,Le,Xe,xe,Pe,Ie,Ue,Ne,et,Ke,gt,ne="extensionsRequired",Oe="extensionsUsed",ye=null,we=new s.iw(r);if(we.$0(),s.w(n,y.dr,r),n.v(ne)&&!n.v(Oe)&&r.l(I.cO(),s.a(["extensionsUsed"],N.M),ne),c=s.pQ(n,Oe,r),c==null&&(c=s.a([],N.i)),u=s.pQ(n,ne,r),u==null&&(u=s.a([],N.i)),r.e9(c,u),f=new s.ix(n,we,r),m=new s.iy(we,n,r).$1$3$req("asset",s.wO(),!0,N.gP),(m==null?ye:m.f)==null)return ye;if(m.gbj()!==2)return v=I.t8(),S=m.gbj(),r.l(v,s.a([S],N.M),"version"),ye;for(m.gbW()>0&&(v=I.t9(),S=m.gbW(),r.l(v,s.a([S],N.M),"version")),B=f.$1$2("accessors",s.wL(),N.W),L=f.$1$2("animations",s.wN(),N.bj),F=f.$1$2("buffers",s.wT(),N.cT),z=f.$1$2("bufferViews",s.wU(),N.r),O=f.$1$2("cameras",s.wX(),N.h2),W=f.$1$2("images",s.xc(),N.ec),Y=f.$1$2("materials",s.xF(),N.fC),te=f.$1$2("meshes",s.xI(),N.eM),v=N.L,K=f.$1$2("nodes",s.xJ(),v),ie=f.$1$2("samplers",s.xK(),N.c2),de=f.$1$2("scenes",s.xL(),N.bn),we.$0(),j=s.W(n,"scene",r,!1),q=de.i(0,j),j!==-1&&q==null&&r.l(I.Q(),s.a([j],N.M),"scene"),ae=f.$1$2("skins",s.xM(),N.aV),me=f.$1$2("textures",s.xO(),N.ai),we.$0(),fe=s.t(n,y.U,r,ye),we.$0(),he=new s.du(c,u,B,L,m,F,z,O,W,Y,te,K,ie,q,ae,me,fe,s.x(n,r),!1),ve=new s.iu(r,he),ve.$2(z,y.aD),ve.$2(B,y.S),ve.$2(W,y.aE),ve.$2(me,y.W),ve.$2(Y,y.f),ve.$2(te,y.aG),ve.$2(K,y.V),ve.$2(ae,y.aK),ve.$2(L,y.T),ve.$2(de,y.aJ),fe.a!==0&&(S=r.c,S.push("extensions"),fe.M(0,new s.is(r,he)),S.pop()),S=r.c,S.push("nodes"),K.a4(new s.it(r,s.aD(v))),S.pop(),Re=[B,F,z,O,W,Y,te,K,ie,ae,me],Le=0;Le<11;++Le)if(Xe=Re[Le],Xe.gj(Xe)!==0){for(S.push(Xe.c),v=Xe.b,xe=Xe.a,Pe=xe.length,Ie=0;Ie<v;++Ie)Ue=Ie>=Pe,Ue=Ue?ye:xe[Ie],(Ue==null?ye:Ue.a$)===!1&&r.Z(I.h1(),Ie);S.pop()}if(v=r.x,v.a!==0){for(xe=s.uH(v,v.r,s.A(v).c);xe.q();)if(Pe=xe.d,Pe.gj(Pe)!==0)for(Ne=v.i(0,Pe),y.d.P(S),y.d.D(S,Ne),Ue=Pe.b,Pe=Pe.a,et=Pe.length,Ie=0;Ie<Ue;++Ie)Ke=Ie>=et,Ke=Ke?ye:Pe[Ie],(Ke==null?ye:Ke.a$)===!1&&r.Z(I.h1(),Ie);y.d.P(S)}for(S.push("meshes"),v=te.b,xe=te.a,Pe=xe.length,Ie=0;Ie<v;++Ie)Ue=Ie>=Pe,gt=Ue?ye:xe[Ie],(gt==null?ye:gt.x)!=null&>.a$&&!gt.y&&(S.push(y.c.k(Ie)),r.n(I.ro(),"weights"),S.pop());return y.d.P(S),he},du:function(r,c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j){var q=this;q.d=r,q.e=c,q.f=u,q.r=f,q.w=m,q.x=v,q.y=S,q.z=B,q.Q=L,q.as=F,q.at=z,q.ax=O,q.ay=W,q.ch=Y,q.cx=te,q.cy=K,q.a=ie,q.b=de,q.a$=j},iw:function(r){this.a=r},ix:function(r,c,u){this.a=r,this.b=c,this.c=u},iy:function(r,c,u){this.a=r,this.b=c,this.c=u},iu:function(r,c){this.a=r,this.b=c},iv:function(r,c){this.a=r,this.b=c},is:function(r,c){this.a=r,this.b=c},it:function(r,c){this.a=r,this.b=c},iq:function(){},ir:function(){},iz:function(r,c){this.a=r,this.b=c},iA:function(r,c){this.a=r,this.b=c},m:function(){},k:function(){},eR:function(){},fL:function(){},ug(n,r){var c,u,f,m,v,S,B,L,F="bufferView",z=null,O="uri";if(s.w(n,y.cE,r),m=s.W(n,F,r,!1),v=s.J(n,"mimeType",r,z,r.dy,z,!1),c=s.J(n,O,r,z,z,z,!1),S=m===-1,B=!S,B&&v==null&&r.l(I.cO(),s.a(["mimeType"],N.M),F),B&&c!=null?S=!0:S=S&&c==null,S&&r.F(I.oe(),s.a(["bufferView","uri"],N.M)),u=null,c!=null){r.dx&&r.n(I.o2(),O),f=null;try{f=s.p5(c)}catch(W){if(s.M(W)instanceof s.aK)u=s.pS(c,r);else throw W}f!=null?(r.dx&&r.n(I.o1(),O),L=f.cD(),S=s.oD(L),S=S==null?z:y.ci[S.a],S=S!==f.gbV().toLowerCase(),S&&(r.l(I.od(),s.a([c,"The declared mediatype does not match the embedded content."],N.M),O),L=z)):L=z}else L=z;return S=u,s.J(n,"name",r,z,z,z,!1),new s.aU(m,v,S,L,s.t(n,y.aE,r,z),s.x(n,r),!1)},aU:function(r,c,u,f,m,v,S){var B=this;B.w=r,B.x=c,B.y=u,B.z=f,B.as=B.Q=null,B.a=m,B.b=v,B.a$=S},uL(n,r){var c,u,f,m,v,S,B,L,F,z,O=null,W="alphaCutoff";return s.w(n,y.cs,r),c=s.T(n,"pbrMetallicRoughness",r,s.xH(),!1),u=s.T(n,"normalTexture",r,s.pV(),!1),f=s.T(n,"occlusionTexture",r,s.xG(),!1),m=s.T(n,"emissiveTexture",r,s.ao(),!1),v=s.ae(n,"emissiveFactor",r,y.ak,y.l,1,0,!1),S=s.J(n,"alphaMode",r,"OPAQUE",y.cr,O,!1),s.E(n,W,r,.5,1/0,-1/0,1/0,0,!1,NaN),S!=="MASK"&&n.v(W)&&r.n(I.rO(),W),B=s.pO(n,"doubleSided",r),L=s.t(n,y.f,r,O),s.J(n,"name",r,O,O,O,!1),F=new s.ai(c,u,f,m,v,B,s.a9(N.X,N.e),L,s.x(n,r),!1),z=s.a([c,u,f,m],N.M),y.d.D(z,L.gX()),r.W(F,z),F},uX(n,r){var c,u,f,m,v;return s.w(n,y.cG,r),s.ae(n,"baseColorFactor",r,y.al,y.P,1,0,!1),c=s.T(n,"baseColorTexture",r,s.ao(),!1),s.E(n,"metallicFactor",r,1,1/0,-1/0,1,0,!1,NaN),s.E(n,"roughnessFactor",r,1,1/0,-1/0,1,0,!1,NaN),u=s.T(n,"metallicRoughnessTexture",r,s.ao(),!1),f=s.t(n,y.ej,r,null),m=new s.cB(c,u,f,s.x(n,r),!1),v=s.a([c,u],N.M),y.d.D(v,f.gX()),r.W(m,v),m},uW(n,r){var c,u,f,m;return s.w(n,y.cU,r),c=s.t(n,y.aI,r,y.f),u=s.W(n,"index",r,!0),f=s.a0(n,"texCoord",r,0,null,-1,0,!1),s.E(n,"strength",r,1,1/0,-1/0,1,0,!1,NaN),m=new s.cA(u,f,c,s.x(n,r),!1),r.W(m,c.gX()),m},uV(n,r){var c,u,f,m;return s.w(n,y.cT,r),c=s.t(n,y.aH,r,y.f),u=s.W(n,"index",r,!0),f=s.a0(n,"texCoord",r,0,null,-1,0,!1),s.E(n,"scale",r,1,1/0,-1/0,1/0,-1/0,!1,NaN),m=new s.cz(u,f,c,s.x(n,r),!1),r.W(m,c.gX()),m},vb(n,r){var c,u;return s.w(n,y.cS,r),c=s.t(n,y.aL,r,y.f),u=new s.bj(s.W(n,"index",r,!0),s.a0(n,"texCoord",r,0,null,-1,0,!1),c,s.x(n,r),!1),r.W(u,c.gX()),u},ai:function(r,c,u,f,m,v,S,B,L,F){var z=this;z.w=r,z.x=c,z.y=u,z.z=f,z.Q=m,z.ax=v,z.ay=!1,z.ch=S,z.a=B,z.b=L,z.a$=F},jR:function(r,c){this.a=r,this.b=c},cB:function(r,c,u,f,m){var v=this;v.e=r,v.w=c,v.a=u,v.b=f,v.a$=m},cA:function(r,c,u,f,m){var v=this;v.d=r,v.e=c,v.f=null,v.a=u,v.b=f,v.a$=m},cz:function(r,c,u,f,m){var v=this;v.d=r,v.e=c,v.f=null,v.a=u,v.b=f,v.a$=m},bj:function(r,c,u,f,m){var v=this;v.d=r,v.e=c,v.f=null,v.a=u,v.b=f,v.a$=m},dl(n){return new s.y(n.Q,n.y,n.as)},c2:function(r){this.a=r},c1:function(r){this.a=r},y:function(r,c,u){this.a=r,this.b=c,this.c=u},uP(n,r){var c,u,f,m,v,S,B,L,F,z,O=null,W="primitives";if(s.w(n,y.da,r),c=s.ae(n,"weights",r,O,O,1/0,-1/0,!1),u=s.eB(n,W,r),u!=null){for(f=u.gj(u),m=s.U(f,O,!1,N.ft),v=new s.F(m,f,W,N.b_),f=r.c,f.push(W),S=0,B=0;B<u.gj(u);++B)f.push(y.c.k(B)),L=s.uO(u.i(0,B),r),F=L.w,z=F==null?O:F.length,z==null&&(z=0),B===0?S=z:S!==z&&(F=I.rU(),r.n(F,z>0?"targets":O)),m[B]=L,f.pop();f.pop(),c!=null&&S!==c.length&&r.l(I.rP(),s.a([c.length,S],N.M),"weights")}else v=O;return s.J(n,"name",r,O,O,O,!1),new s.aV(v,c,s.t(n,y.aG,r,O),s.x(n,r),!1)},uN(n,r,c,u,f,m,v,S,B,L,F,z,O,W){var Y,te=V.oF(z,N.e);for(Y=0;Y<z;++Y)te[Y]=Y;return new s.aE(n,r,c,u,f,v,S,L,F,z,s.a9(N.X,N.W),te,O,W,!1)},uO(n,r){var c,u,f,m,v,S,B,L,F="attributes",z={};return s.w(n,y.cY,r),z.a=z.b=z.c=!1,z.d=0,z.e=-1,z.f=0,z.r=-1,z.w=0,z.x=-1,z.y=0,z.z=-1,c=new s.jV,u=s.a0(n,"mode",r,4,null,6,0,!1),f=s.x5(n,F,r,new s.jS(z,r,c)),f!=null&&(m=r.c,m.push(F),z.c||r.L(I.rS()),!z.b&&z.a&&r.n(I.rT(),"TANGENT"),v=new s.jT(r),z.d=v.$3(z.e,z.d,"COLOR"),z.f=v.$3(z.r,z.f,"JOINTS"),z.w=v.$3(z.x,z.w,"WEIGHTS"),z.y=v.$3(z.z,z.y,"TEXCOORD"),v=z.f,S=z.w,v!==S&&(r.F(I.rR(),s.a([v,S],N.M)),z.w=z.f=0),m.pop()),B=s.x6(n,"targets",r,new s.jU(c,r)),L=s.uN(f,s.W(n,"indices",r,!1),s.W(n,"material",r,!1),u,B,z.c,z.b,z.a,z.d,z.f,z.w,z.y,s.t(n,y.aF,r,null),s.x(n,r)),r.W(L,L.a.gX()),L},aV:function(r,c,u,f,m){var v=this;v.w=r,v.x=c,v.y=!1,v.a=u,v.b=f,v.a$=m},k1:function(r,c){this.a=r,this.b=c},k0:function(r,c){this.a=r,this.b=c},aE:function(r,c,u,f,m,v,S,B,L,F,z,O,W,Y,te){var K=this;K.d=r,K.e=c,K.f=u,K.r=f,K.w=m,K.y=v,K.z=S,K.as=B,K.at=L,K.ax=F,K.ay=z,K.CW=K.ch=-1,K.db=K.cy=K.cx=null,K.dx=O,K.a=W,K.b=Y,K.a$=te},jV:function(){},jS:function(r,c,u){this.a=r,this.b=c,this.c=u},jT:function(r){this.a=r},jU:function(r,c){this.a=r,this.b=c},jX:function(r,c,u){this.a=r,this.b=c,this.c=u},jY:function(r,c){this.a=r,this.b=c},jZ:function(){},k_:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},jW:function(){},eU:function(r,c,u,f,m,v){var S=this;S.a=r,S.b=c,S.c=u,S.w=f,S.Q=S.z=0,S.as=m,S.at=v},uU(n,r){var c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q,ae,me,fe,he,ve,Re,Le,Xe,xe,Pe,Ie=null,Ue="matrix",Ne="translation",et="rotation";return s.w(n,y.cj,r),n.v(Ue)?(c=s.ae(n,Ue,r,Ie,y.c6,1/0,-1/0,!1),c!=null?(u=new Float32Array(16),f=new s.cZ(u),m=c[0],v=c[1],S=c[2],B=c[3],L=c[4],F=c[5],z=c[6],O=c[7],W=c[8],Y=c[9],te=c[10],K=c[11],ie=c[12],de=c[13],j=c[14],u[15]=c[15],u[14]=j,u[13]=de,u[12]=ie,u[11]=K,u[10]=te,u[9]=Y,u[8]=W,u[7]=O,u[6]=z,u[5]=F,u[4]=L,u[3]=B,u[2]=S,u[1]=v,u[0]=m):f=Ie):f=Ie,n.v(Ne)?(q=s.ae(n,Ne,r,Ie,y.l,1/0,-1/0,!1),ae=q!=null?s.pb(q):Ie):ae=Ie,n.v(et)?(me=s.ae(n,et,r,Ie,y.P,1,-1,!1),me!=null?(u=me[0],m=me[1],v=me[2],S=me[3],B=new Float32Array(4),fe=new s.fl(B),B[0]=u,B[1]=m,B[2]=v,B[3]=S,u=Math.sqrt(fe.gaW()),Math.abs(1-u)>.00769&&r.n(I.t5(),et)):fe=Ie):fe=Ie,n.v("scale")?(he=s.ae(n,"scale",r,Ie,y.l,1/0,-1/0,!1),ve=he!=null?s.pb(he):Ie):ve=Ie,Re=s.W(n,"camera",r,!1),Le=s.mR(n,"children",r,!1),Xe=s.W(n,"mesh",r,!1),xe=s.W(n,"skin",r,!1),Pe=s.ae(n,"weights",r,Ie,Ie,1/0,-1/0,!1),Xe===-1&&(xe!==-1&&r.l(I.cO(),s.a(["mesh"],N.M),"skin"),Pe!=null&&r.l(I.cO(),s.a(["mesh"],N.M),"weights")),f!=null&&((ae!=null||fe!=null||ve!=null)&&r.n(I.rZ(),Ue),f.cP()?r.n(I.rX(),Ue):s.xi(f)||r.n(I.t_(),Ue)),s.J(n,"name",r,Ie,Ie,Ie,!1),new s.ap(Re,Le,xe,f,Xe,ae,fe,ve,Pe,s.aD(N.bn),s.t(n,y.V,r,Ie),s.x(n,r),!1)},ap:function(r,c,u,f,m,v,S,B,L,F,z,O,W){var Y=this;Y.w=r,Y.x=c,Y.y=u,Y.z=f,Y.Q=m,Y.as=v,Y.at=S,Y.ax=B,Y.ay=L,Y.ch=F,Y.dx=Y.db=Y.cy=Y.cx=Y.CW=null,Y.dy=!1,Y.a=z,Y.b=O,Y.a$=W},k3:function(){},k4:function(){},k5:function(r,c){this.a=r,this.b=c},v6(n,r){var c=null;return s.w(n,y.dc,r),s.a0(n,"magFilter",r,-1,y.cg,-1,0,!1),s.a0(n,"minFilter",r,-1,y.ck,-1,0,!1),s.a0(n,"wrapS",r,10497,y.ao,-1,0,!1),s.a0(n,"wrapT",r,10497,y.ao,-1,0,!1),s.J(n,"name",r,c,c,c,!1),new s.bF(s.t(n,y.ek,r,c),s.x(n,r),!1)},bF:function(r,c,u){this.a=r,this.b=c,this.a$=u},v7(n,r){var c,u=null;return s.w(n,y.d4,r),c=s.mR(n,"nodes",r,!1),s.J(n,"name",r,u,u,u,!1),new s.bG(c,s.t(n,y.aJ,r,u),s.x(n,r),!1)},bG:function(r,c,u,f){var m=this;m.w=r,m.x=null,m.a=c,m.b=u,m.a$=f},ke:function(r,c){this.a=r,this.b=c},v8(n,r){var c,u,f,m=null;return s.w(n,y.cw,r),c=s.W(n,"inverseBindMatrices",r,!1),u=s.W(n,"skeleton",r,!1),f=s.mR(n,"joints",r,!0),s.J(n,"name",r,m,m,m,!1),new s.bI(c,u,f,s.aD(N.L),s.t(n,y.aK,r,m),s.x(n,r),!1)},bI:function(r,c,u,f,m,v,S){var B=this;B.w=r,B.x=c,B.y=u,B.as=B.Q=B.z=null,B.at=f,B.a=m,B.b=v,B.a$=S},lm:function(r){this.a=r},eT:function(r){this.a=r},vc(n,r){var c,u,f=null;return s.w(n,y.de,r),c=s.W(n,"sampler",r,!1),u=s.W(n,"source",r,!1),s.J(n,"name",r,f,f,f,!1),new s.bK(c,u,s.t(n,y.W,r,f),s.x(n,r),!1)},bK:function(r,c,u,f,m){var v=this;v.w=r,v.x=c,v.z=v.y=null,v.a=u,v.b=f,v.a$=m},p9(n,r,c,u){var f,m=N.X,v=s.aD(m);return m=s.aD(m),f=r??0,n!=null&&v.D(0,n),c!=null&&m.D(0,c),new s.lE(f,v,m,u)},u4(){return new s.ab(y.au,new s.hh,N.gw)},u3(n){var r,c,u,f,m=null,v=N.i,S=s.a([],v),B=N._,L=s.a([],N.d6),F=s.a9(N.al,N.f9),z=s.a([],v),O=s.a([],v),W=s.a([],N.fh),Y=s.a([],N.a9);return v=s.a(["image/jpeg","image/png"],v),r=N.aD,c=N.X,u=N.cn,f=s.nu(["POSITION",s.aP([y.k],r),"NORMAL",s.aP([y.k],r),"TANGENT",s.aP([y.n],r),"TEXCOORD",s.aP([y.a4,y.a0,y.a3],r),"COLOR",s.aP([y.k,y.H,y.I,y.n,y.y,y.z],r),"JOINTS",s.aP([y.b_,y.b0],r),"WEIGHTS",s.aP([y.n,y.y,y.z],r)],c,u),u=s.nu(["POSITION",s.aP([y.k],r),"NORMAL",s.aP([y.k],r),"TANGENT",s.aP([y.k],r),"TEXCOORD",s.aP([y.a4,y.a_,y.a0,y.a2,y.a3],r),"COLOR",s.aP([y.k,y.w,y.H,y.x,y.I,y.n,y.J,y.y,y.K,y.z],r)],c,u),c=s.bc(y.R,!0,c),r=n??s.p9(m,m,m,m),c=new s.i(r,S,s.a9(N.W,N.b7),s.a9(B,B),s.a9(N.f7,N.an),L,s.a9(N.r,N.gz),s.a9(N.b5,N.eG),F,z,O,W,s.aD(N.af),Y,new s.ac(""),v,f,u,c),u=N.em,c.ay=new s.aX(O,u),c.at=new s.aX(z,u),c.Q=new s.bm(F,N.f8),c.CW=new s.aX(W,N.go),c},lE:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},i:function(n,r,c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de){var j=this;j.b=n,j.c=r,j.d=c,j.e=u,j.f=f,j.r=m,j.w=v,j.x=S,j.y=!1,j.z=B,j.Q=null,j.as=L,j.at=null,j.ax=F,j.ay=null,j.ch=z,j.CW=null,j.cx=O,j.cy=W,j.db=Y,j.dx=!1,j.dy=te,j.fr=K,j.fx=ie,j.fy=de},hh:function(){},hg:function(){},hi:function(){},hl:function(r){this.a=r},hm:function(r){this.a=r},hj:function(r){this.a=r},hk:function(){},hn:function(r,c){this.a=r,this.b=c},bA:function(){},uf(n){var r,c,u={};return u.a=u.b=null,r=new s.C(I.B,N.dD),c=new s.ay(r,N.eP),u.c=!1,u.a=n.bT(new s.iC(u,c),new s.iD(u),new s.iE(u,c)),r},oD(n){var r,c;return n.length<14?null:(r=s.f7(n.buffer,n.byteOffset,14),c=r.getUint32(0,!0),(c&16777215)===16767231?y.ag:c===1196314761&&r.getUint32(4,!0)===169478669?y.ah:c===1179011410&&r.getUint32(8,!0)===1346520407&&r.getUint16(12,!0)===20566?y.ai:c===1481919403&&r.getUint32(4,!0)===3140497952&&r.getUint32(8,!0)===169478669?y.bV:null)},cU:function(r,c){this.a=r,this.b=c},dV:function(r,c){this.a=r,this.b=c},d5:function(r,c){this.a=r,this.b=c},cc:function(r,c){this.a=r,this.b=c},cd:function(r,c,u,f,m,v,S,B,L){var F=this;F.a=r,F.b=c,F.c=u,F.d=f,F.e=m,F.f=v,F.r=S,F.w=B,F.x=L},iC:function(r,c){this.a=r,this.b=c},iE:function(r,c){this.a=r,this.b=c},iD:function(r){this.a=r},iB:function(){},iM:function(r,c){var u=this;u.f=u.e=u.d=u.c=0,u.r=null,u.a=r,u.b=c},iO:function(){},iN:function(){},k7:function(r,c,u,f,m,v){var S=this;S.x=S.w=S.r=S.f=S.e=S.d=S.c=0,S.z=S.y=!1,S.Q=r,S.as=c,S.at=!1,S.ax=u,S.ay=f,S.a=m,S.b=v},k8:function(r){this.a=r},lJ:function(r,c,u){var f=this;f.c=r,f.d=0,f.a=c,f.b=u},dS:function(){},dR:function(){},aL:function(r){this.a=r},d9:function(r,c){this.a=r,this.b=c},fn:function(r){var c=this;c.a=r,c.f=c.e=c.d=c.c=c.b=null},kb:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},kc:function(r,c,u){this.a=r,this.b=c,this.c=u},kd:function(r,c){this.a=r,this.b=c},mJ(n){return n==null||n.Q==null||n.y===-1||n.z===-1||n.CW==null&&n.ay==null?null:n},xS(n,r){var c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q;for(n.f.a4(new s.ne(r)),s.wx(r),c=s.a([],N.b2),u=s.a([],N.bd),f=r.c,y.d.P(f),f.push("meshes"),m=n.at,v=m.b,S=n.ax,B=S.$ti.h("aa<p.E>"),L=n.cx,m=m.a,F=m.length,z=0;z<v;++z)if(O={},W=z>=F,Y=W?null:m[z],(Y==null?null:Y.w)!=null&&(W=Y.w,!W.be(W,new s.nf))){for(O.a=O.b=-1,te=new s.aa(S,S.gj(S),B);te.q();)K=te.d,K.cy==Y?(ie=K.dx,ie=(ie==null?null:ie.Q)!=null):ie=!1,ie&&(K=K.dx,de=K.Q.length,ie=O.b,(ie===-1||de<ie)&&(O.b=de,O.a=L.bR(L,K)));O.b<1||(f.push(y.c.k(z)),f.push("primitives"),W.a4(new s.ng(O,r,c,u)),f.pop(),f.pop())}if(f.pop(),c.length!==0)for(;s.wD(c);)for(f=u.length,j=0;j<u.length;u.length===f||(0,s.cN)(u),++j)q=u[j],q.w||q.dY(r)},wD(n){var r,c;for(r=n.length,c=0;c<n.length;n.length===r||(0,s.cN)(n),++c)n[c].q();return n.fixed$length&&s.Z(s.ad("removeWhere")),y.d.dP(n,new s.mL,!0),n.length!==0},wx(n){var r,c,u,f,m,v,S,B,L,F,z,O;for(r=n.d.ge4(),r=r.gH(r),c=n.c;r.q();)if(u=r.gt(),f=s.mJ(u.a),f!=null){for(m=y.m.i(0,f.Q),m==null&&(m=0),v=u.b,y.d.P(c),u=f.af(),u=new s.aH(u.a(),s.A(u).h("aH<1>")),S=V.V(v),B=0,L=0,F=!1;u.q();F=!0){for(z=u.gt(),O=0;O<S.gj(v);++O)S.i(v,O).a0(n,B,L,z);++L,L===m&&(L=0),++B}if(F)for(O=0;O<S.gj(v);++O)S.i(v,O).aF(n)}},ne:function(r){this.a=r},nf:function(){},ng:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},mL:function(){},eX:function(r,c,u,f,m,v){var S=this;S.a=r,S.b=c,S.c=u,S.d=f,S.e=m,S.r=S.f=0,S.w=!1,S.y=S.x=0,S.z=v},G(n,r,c){return new s.ho(c,n,r)},am(n,r,c){return new s.kf(c,n,r)},r(n,r,c){return new s.kw(c,n,r)},v(n,r,c){return new s.iY(c,n,r)},al(n,r,c){return new s.hZ(c,n,r)},wy(n){return"'"+s.b(n)+"'"},wu(n){return typeof n=="string"?"'"+n+"'":V.as(n)},bH:function(r,c){this.a=r,this.b=c},iH:function(){},ho:function(r,c,u){this.a=r,this.b=c,this.c=u},hL:function(){},hM:function(){},hE:function(){},hD:function(){},ht:function(){},hs:function(){},hI:function(){},hz:function(){},hr:function(){},hF:function(){},hx:function(){},hu:function(){},hw:function(){},hv:function(){},hp:function(){},hq:function(){},hH:function(){},hG:function(){},hy:function(){},hO:function(){},hQ:function(){},hT:function(){},hU:function(){},hR:function(){},hS:function(){},hP:function(){},hV:function(){},hN:function(){},hB:function(){},hA:function(){},hJ:function(){},hK:function(){},hC:function(){},iF:function(r,c,u){this.a=r,this.b=c,this.c=u},iG:function(){},kf:function(r,c,u){this.a=r,this.b=c,this.c=u},kh:function(){},ki:function(){},kg:function(){},kk:function(){},kl:function(){},km:function(){},kj:function(){},kn:function(){},ko:function(){},kp:function(){},ku:function(){},kv:function(){},kt:function(){},kq:function(){},kr:function(){},ks:function(){},kw:function(r,c,u){this.a=r,this.b=c,this.c=u},lj:function(){},lk:function(){},l4:function(){},kL:function(){},ky:function(){},kz:function(){},kx:function(){},kA:function(){},kB:function(){},kC:function(){},kE:function(){},kD:function(){},kF:function(){},kG:function(){},kH:function(){},kI:function(){},kX:function(){},l_:function(){},l3:function(){},l1:function(){},kZ:function(){},l2:function(){},l0:function(){},kY:function(){},l8:function(){},l6:function(){},l9:function(){},lg:function(){},ll:function(){},lf:function(){},kK:function(){},l7:function(){},lc:function(){},lb:function(){},la:function(){},lh:function(){},li:function(){},le:function(){},l5:function(){},ld:function(){},kJ:function(){},kM:function(){},kN:function(){},kO:function(){},kP:function(){},kQ:function(){},kR:function(){},kS:function(){},kW:function(){},kV:function(){},kT:function(){},kU:function(){},iY:function(r,c,u){this.a=r,this.b=c,this.c=u},j0:function(){},iZ:function(){},j_:function(){},j1:function(){},j4:function(){},j2:function(){},j3:function(){},j8:function(){},j6:function(){},ja:function(){},j7:function(){},j9:function(){},j5:function(){},jb:function(){},je:function(){},jd:function(){},jc:function(){},jf:function(){},jg:function(){},jh:function(){},jl:function(){},jm:function(){},ju:function(){},jk:function(){},jj:function(){},jq:function(){},jp:function(){},jo:function(){},jv:function(){},jt:function(){},jn:function(){},jw:function(){},js:function(){},jr:function(){},jx:function(){},jy:function(){},jB:function(){},jz:function(){},jA:function(){},jC:function(){},jE:function(){},jD:function(){},jF:function(){},jG:function(){},jH:function(){},jI:function(){},jJ:function(){},jM:function(){},jL:function(){},jK:function(){},ji:function(){},hZ:function(r,c,u){this.a=r,this.b=c,this.c=u},i5:function(){},i6:function(){},i8:function(){},i_:function(){},i7:function(){},i0:function(){},i3:function(){},i2:function(){},i1:function(){},ib:function(){},ia:function(){},ic:function(){},id:function(){},i9:function(){},ie:function(){},i4:function(){},cW:function(r,c,u,f,m){var v=this;v.a=r,v.b=c,v.c=u,v.d=f,v.e=m},we(n){n.dy.push("image/webp")},ua(n,r){return r.toString,s.w(n,y.df,r),new s.ca(s.W(n,"source",r,!1),s.t(n,y.dY,r,null),s.x(n,r),!1)},ca:function(r,c,u,f){var m=this;m.d=r,m.e=null,m.a=c,m.b=u,m.a$=f},un(n,r){return r.toString,s.w(n,y.d9,r),s.J(n,"pointer",r,null,null,I.qK(),!0),new s.cf(s.t(n,y.dZ,r,null),s.x(n,r),!1)},wf(n){n.fy.push("pointer")},cf:function(r,c,u){this.a=r,this.b=c,this.a$=u},uo(n,r){var c,u,f,m,v,S,B,L,F,z,O,W=null,Y="lights",te="spot";if(r.toString,s.w(n,y.d0,r),c=s.eB(n,Y,r),u=N.cp,c!=null){for(f=c.gj(c),u=s.U(f,W,!1,u),m=new s.F(u,f,Y,N.E),f=r.c,f.push(Y),v=N.h,S=0;S<c.gj(c);++S)B=c.i(0,S),f.push(y.c.k(S)),s.w(B,y.co,r),s.ae(B,"color",r,y.C,y.l,1,0,!1),s.E(B,"intensity",r,1,1/0,-1/0,1/0,0,!1,NaN),L=s.J(B,"type",r,W,y.cJ,W,!0),L==="spot"?s.T(B,te,r,s.xm(),!0):(F=B.v(te),F&&r.n(I.oi(),te)),z=s.E(B,"range",r,NaN,1/0,0,1/0,-1/0,!1,NaN),L==="directional"&&!isNaN(z)&&r.n(I.oi(),"range"),s.J(B,"name",r,W,W,W,!1),F=s.t(B,y.e1,r,W),O=B.i(0,"extras"),O!=null&&!v.b(O)&&r.n(I.dk(),"extras"),u[S]=new s.ba(F,O,!1),f.pop();f.pop()}else u=V.b8(0,u),m=new s.F(u,0,Y,N.E);return new s.bC(m,s.t(n,y.e_,r,W),s.x(n,r),!1)},up(n,r){var c,u,f="outerConeAngle";return s.w(n,y.cV,r),c=s.E(n,"innerConeAngle",r,0,1.5707963267948966,-1/0,1/0,0,!1,NaN),u=s.E(n,f,r,.7853981633974483,1/0,0,1.5707963267948966,-1/0,!1,NaN),u<=c&&r.l(I.rF(),s.a([c,u],N.M),f),new s.cg(s.t(n,y.e0,r,null),s.x(n,r),!1)},uq(n,r){return r.toString,s.w(n,y.d_,r),new s.ch(s.W(n,"light",r,!0),s.t(n,y.e2,r,null),s.x(n,r),!1)},bC:function(r,c,u,f){var m=this;m.d=r,m.a=c,m.b=u,m.a$=f},iS:function(r,c){this.a=r,this.b=c},ba:function(r,c,u){this.a=r,this.b=c,this.a$=u},cg:function(r,c,u){this.a=r,this.b=c,this.a$=u},ch:function(r,c,u,f){var m=this;m.d=r,m.e=null,m.a=c,m.b=u,m.a$=f},ur(n,r){var c,u,f,m;return r.toString,s.w(n,y.cv,r),s.E(n,"anisotropyStrength",r,0,1/0,-1/0,1,0,!1,NaN),s.E(n,"anisotropyRotation",r,0,1/0,-1/0,1/0,-1/0,!1,NaN),c=s.T(n,"anisotropyTexture",r,s.ao(),!1),u=s.t(n,y.e3,r,null),f=new s.ci(c,u,s.x(n,r),!1),m=s.a([c],N.M),y.d.D(m,u.gX()),r.W(f,m),f},ci:function(r,c,u,f){var m=this;m.f=r,m.a=c,m.b=u,m.a$=f},us(n,r){var c,u,f,m,v,S;return r.toString,s.w(n,y.ca,r),s.E(n,"clearcoatFactor",r,0,1/0,-1/0,1,0,!1,NaN),c=s.T(n,"clearcoatTexture",r,s.ao(),!1),s.E(n,"clearcoatRoughnessFactor",r,0,1/0,-1/0,1,0,!1,NaN),u=s.T(n,"clearcoatRoughnessTexture",r,s.ao(),!1),f=s.T(n,"clearcoatNormalTexture",r,s.pV(),!1),m=s.t(n,y.e4,r,null),v=new s.cj(c,u,f,m,s.x(n,r),!1),S=s.a([c,u,f],N.M),y.d.D(S,m.gX()),r.W(v,S),v},cj:function(r,c,u,f,m,v){var S=this;S.e=r,S.r=c,S.w=u,S.a=f,S.b=m,S.a$=v},ut(n,r){return r.toString,s.w(n,y.cK,r),s.E(n,"dispersion",r,0,1/0,-1/0,1/0,0,!1,NaN),new s.ck(s.t(n,y.e5,r,null),s.x(n,r),!1)},ck:function(r,c,u){this.a=r,this.b=c,this.a$=u},uu(n,r){return r.toString,s.w(n,y.cL,r),new s.cl(s.E(n,"emissiveStrength",r,1,1/0,-1/0,1/0,0,!1,NaN),s.t(n,y.e6,r,null),s.x(n,r),!1)},cl:function(r,c,u,f){var m=this;m.d=r,m.a=c,m.b=u,m.a$=f},uv(n,r){return r.toString,s.w(n,y.cX,r),s.E(n,"ior",r,1.5,1/0,-1/0,1/0,1,!1,0),new s.cm(s.t(n,y.e7,r,null),s.x(n,r),!1)},cm:function(r,c,u){this.a=r,this.b=c,this.a$=u},uw(n,r){var c,u,f,m,v,S,B,L="iridescenceThicknessMinimum",F="iridescenceThicknessTexture";return r.toString,s.w(n,y.dg,r),s.E(n,"iridescenceFactor",r,0,1/0,-1/0,1,0,!1,NaN),c=s.T(n,"iridescenceTexture",r,s.ao(),!1),s.E(n,"iridescenceIor",r,1.3,1/0,-1/0,1/0,1,!1,NaN),u=s.E(n,L,r,100,1/0,-1/0,1/0,0,!1,NaN),f=s.E(n,"iridescenceThicknessMaximum",r,400,1/0,-1/0,1/0,0,!1,NaN),m=s.T(n,F,r,s.ao(),!1),m!=null?u===f&&r.n(I.rL(),F):!isNaN(u)&&n.v(L)&&r.n(I.rK(),L),v=s.t(n,y.e8,r,null),S=new s.cn(c,m,v,s.x(n,r),!1),B=s.a([c,m],N.M),y.d.D(B,v.gX()),r.W(S,B),S},cn:function(r,c,u,f,m){var v=this;v.e=r,v.x=c,v.a=u,v.b=f,v.a$=m},ux(n,r){var c,u,f,m,v;return r.toString,s.w(n,y.cI,r),s.ae(n,"diffuseFactor",r,y.al,y.P,1,0,!1),c=s.T(n,"diffuseTexture",r,s.ao(),!1),s.ae(n,"specularFactor",r,y.C,y.l,1,0,!1),s.E(n,"glossinessFactor",r,1,1/0,-1/0,1,0,!1,NaN),u=s.T(n,"specularGlossinessTexture",r,s.ao(),!1),f=s.t(n,y.dX,r,null),m=new s.co(c,u,f,s.x(n,r),!1),v=s.a([c,u],N.M),y.d.D(v,f.gX()),r.W(m,v),m},co:function(r,c,u,f,m){var v=this;v.e=r,v.w=c,v.a=u,v.b=f,v.a$=m},uy(n,r){var c,u,f,m,v;return r.toString,s.w(n,y.c9,r),s.ae(n,"sheenColorFactor",r,y.ak,y.l,1,0,!1),c=s.T(n,"sheenColorTexture",r,s.ao(),!1),s.E(n,"sheenRoughnessFactor",r,0,1/0,-1/0,1,0,!1,NaN),u=s.T(n,"sheenRoughnessTexture",r,s.ao(),!1),f=s.t(n,y.e9,r,null),m=new s.cp(c,u,f,s.x(n,r),!1),v=s.a([c,u],N.M),y.d.D(v,f.gX()),r.W(m,v),m},cp:function(r,c,u,f,m){var v=this;v.e=r,v.r=c,v.a=u,v.b=f,v.a$=m},uz(n,r){var c,u,f,m,v;return r.toString,s.w(n,y.cc,r),s.E(n,"specularFactor",r,1,1/0,-1/0,1,0,!1,NaN),c=s.T(n,"specularTexture",r,s.ao(),!1),s.ae(n,"specularColorFactor",r,y.C,y.l,1/0,0,!1),u=s.T(n,"specularColorTexture",r,s.ao(),!1),f=s.t(n,y.ea,r,null),m=new s.cq(c,u,f,s.x(n,r),!1),v=s.a([c,u],N.M),y.d.D(v,f.gX()),r.W(m,v),m},cq:function(r,c,u,f,m){var v=this;v.e=r,v.r=c,v.a=u,v.b=f,v.a$=m},uA(n,r){var c,u,f,m;return r.toString,s.w(n,y.cf,r),s.E(n,"transmissionFactor",r,0,1/0,-1/0,1,0,!1,NaN),c=s.T(n,"transmissionTexture",r,s.ao(),!1),u=s.t(n,y.eb,r,null),f=new s.cr(c,u,s.x(n,r),!1),m=s.a([c],N.M),y.d.D(m,u.gX()),r.W(f,m),f},cr:function(r,c,u,f){var m=this;m.e=r,m.a=c,m.b=u,m.a$=f},uB(n,r){return r.toString,s.w(n,y.cM,r),new s.cs(s.t(n,y.ec,r,null),s.x(n,r),!1)},cs:function(r,c,u){this.a=r,this.b=c,this.a$=u},uC(n,r){var c,u,f,m,v,S,B,L,F,z=null,O="variants";if(r.toString,s.w(n,y.dl,r),c=s.eB(n,O,r),u=N.J,c!=null){for(f=c.gj(c),u=s.U(f,z,!1,u),m=new s.F(u,f,O,N.u),f=r.c,f.push(O),v=N.h,S=0;S<c.gj(c);++S)B=c.i(0,S),f.push(y.c.k(S)),s.w(B,y.d2,r),s.J(B,"name",r,z,z,z,!0),L=s.t(B,y.ef,r,z),F=B.i(0,"extras"),F!=null&&!v.b(F)&&r.n(I.dk(),"extras"),u[S]=new s.aM(L,F,!1),f.pop();f.pop()}else u=V.b8(0,u),m=new s.F(u,0,O,N.u);return new s.bD(m,s.t(n,y.ed,r,z),s.x(n,r),!1)},uD(n,r){var c,u,f,m,v,S,B,L,F,z,O,W,Y=null,te="mappings";if(r.toString,s.w(n,y.d1,r),c=s.eB(n,te,r),u=N.aa,c!=null){for(f=c.gj(c),u=s.U(f,Y,!1,u),m=new s.F(u,f,te,N.B),f=r.c,f.push(te),v=N.h,S=0;S<c.gj(c);++S)B=c.i(0,S),f.push(y.c.k(S)),s.w(B,y.dm,r),L=s.mR(B,"variants",r,!0),F=s.W(B,"material",r,!0),s.J(B,"name",r,Y,Y,Y,!1),z=s.t(B,y.ee,r,Y),O=B.i(0,"extras"),O!=null&&!v.b(O)&&r.n(I.dk(),"extras"),u[S]=new s.bb(L,F,z,O,!1),f.pop();f.pop()}else u=V.b8(0,u),m=new s.F(u,0,te,N.B);return W=new s.ct(m,s.t(n,y.el,r,Y),s.x(n,r),!1),r.W(W,s.bc(m,!0,N._)),W},bD:function(r,c,u,f){var m=this;m.d=r,m.a=c,m.b=u,m.a$=f},iT:function(r,c){this.a=r,this.b=c},aM:function(r,c,u){this.a=r,this.b=c,this.a$=u},ct:function(r,c,u,f){var m=this;m.d=r,m.a=c,m.b=u,m.a$=f},iW:function(r,c,u){this.a=r,this.b=c,this.c=u},bb:function(r,c,u,f,m){var v=this;v.d=r,v.e=c,v.r=null,v.a=u,v.b=f,v.a$=m},iU:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},iV:function(r,c){this.a=r,this.b=c},uE(n,r){var c,u,f,m,v;return r.toString,s.w(n,y.dp,r),s.ae(n,"attenuationColor",r,y.C,y.l,1,0,!1),s.E(n,"attenuationDistance",r,NaN,1/0,0,1/0,-1/0,!1,NaN),c=s.E(n,"thicknessFactor",r,0,1/0,-1/0,1/0,0,!1,NaN),u=s.T(n,"thicknessTexture",r,s.ao(),!1),f=s.t(n,y.eg,r,null),m=new s.cu(c,u,f,s.x(n,r),!1),v=s.a([u],N.M),y.d.D(v,f.gX()),r.W(m,v),m},cu:function(r,c,u,f,m){var v=this;v.f=r,v.r=c,v.a=u,v.b=f,v.a$=m},iX:function(){},uF(n,r){return r.toString,s.w(n,y.d8,r),s.ae(n,"offset",r,y.c5,y.am,1/0,-1/0,!1),s.E(n,"rotation",r,0,1/0,-1/0,1/0,-1/0,!1,NaN),s.ae(n,"scale",r,y.c7,y.am,1/0,-1/0,!1),new s.cv(s.a0(n,"texCoord",r,-1,null,-1,0,!1),s.t(n,y.eh,r,null),s.x(n,r),!1)},cv:function(r,c,u,f){var m=this;m.r=r,m.a=c,m.b=u,m.a$=f},L:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},O:function(r,c,u){this.a=r,this.b=c,this.c=u},cb:function(r,c){this.a=r,this.b=c},cw:function(r,c){this.a=r,this.b=c},fo:function(r,c){this.a=r,this.b=c},oA(n,r){var c=null,u=new Uint8Array(12),f=new s.dt(u,n,new s.ay(new s.C(I.B,N.f),N.G));return r.dx=!0,f.f=r,f.b=s.f7(u.buffer,0,c),f.ch=s.p1(c,c,c,N.w),f},dt:function(r,c,u){var f=this;f.a=r,f.b=null,f.c=c,f.d=null,f.e=u,f.f=null,f.as=f.Q=f.z=f.y=f.x=f.w=f.r=0,f.at=!1,f.ch=f.ay=f.ax=null,f.CW=!1,f.cx=null},ii:function(r){this.a=r},ij:function(r){this.a=r},ig:function(r){this.a=r},ih:function(r){this.a=r},ue(n,r){var c,u={},f=new s.C(I.B,N.eD);return u.a=!1,u.b=null,c=s.p1(new s.il(u),new s.im(u),new s.io(u),N.w),u.b=n.ea(new s.ip(u,c,new s.ay(f,N.a_),r),c.gdZ()),f},oB(n,r){var c=new s.cT(n,new s.ay(new s.C(I.B,N.f),N.G));return c.e=r,c},ud(n,r){var c,u,f,m=null,v=null;try{v=y.ab.e1(n)}catch(S){if(f=s.M(S),f instanceof s.aK)return c=f,r.aE(I.h3(),s.a([c],N.M),!0),m;throw S}if(N.t.b(v))try{return u=s.oC(v,r),new s.au("model/gltf+json",u,m)}catch(S){if(s.M(S)instanceof s.bA)return m;throw S}else return r.aE(I.a2(),s.a([v,"object"],N.M),!0),m},au:function(r,c,u){this.a=r,this.b=c,this.c=u},im:function(r){this.a=r},io:function(r){this.a=r},il:function(r){this.a=r},ip:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},cT:function(r,c){var u=this;u.a=r,u.b=null,u.c=c,u.e=u.d=null,u.f=!0},ik:function(r){this.a=r},dv:function(){},az(n,r,c,u){var f=n.i(0,r);return f==null&&n.v(r)&&u.l(I.a2(),s.a([null,c],N.M),r),f},mM(n){return typeof n=="number"&&Math.floor(n)===n?V.no(n):n},W(n,r,c,u){var f=s.mM(s.az(n,r,"integer",c));if(s.aI(f)){if(f>=0)return f;c.n(I.h2(),r)}else f==null?u&&c.F(I.bs(),s.a([r],N.M)):c.l(I.a2(),s.a([f,"integer"],N.M),r);return-1},pO(n,r,c){var u=s.az(n,r,"boolean",c);return u==null?!1:s.eu(u)?u:(c.l(I.a2(),s.a([u,"boolean"],N.M),r),!1)},a0(n,r,c,u,f,m,v,S){var B,L=s.mM(s.az(n,r,"integer",c));if(s.aI(L)){if(f!=null){if(!s.nN(r,L,f,c,!1))return-1}else if(L<v?B=!0:B=m!==-1&&L>m,B)return c.l(I.ni(),s.a([L],N.M),r),-1;return L}else if(L==null){if(!S)return u;c.F(I.bs(),s.a([r],N.M))}else c.l(I.a2(),s.a([L,"integer"],N.M),r);return-1},E(n,r,c,u,f,m,v,S,B,L){var F,z=s.az(n,r,"number",c);if(typeof z=="number")return z!==L?F=z<S||z<=m||z>v||z>=f:F=!1,F?(c.l(I.ni(),s.a([z],N.M),r),NaN):z;if(z==null){if(!B)return u;c.F(I.bs(),s.a([r],N.M))}else c.l(I.a2(),s.a([z,"number"],N.M),r);return NaN},J(n,r,c,u,f,m,v){var S,B=s.az(n,r,"string",c);if(typeof B=="string"){if(f!=null)s.nN(r,B,f,c,!1);else if(m==null?S=null:(S=m.b,S=S.test(B)),S===!1)return c.l(I.rp(),s.a([B,m.a],N.M),r),null;return B}else if(B==null){if(!v)return u;c.F(I.bs(),s.a([r],N.M))}else c.l(I.a2(),s.a([B,"string"],N.M),r);return null},pS(n,r){var c,u,f;try{return c=s.p6(n),f=c,(f.gcK()||f.gbN()||f.gcJ()||f.gbP()||f.gbO())&&r.l(I.t3(),s.a([n],N.M),"uri"),c}catch(m){if(f=s.M(m),f instanceof s.aK)return u=f,r.l(I.od(),s.a([n,u],N.M),"uri"),null;throw m}},nP(n,r,c,u){var f=s.az(n,r,"object",c);if(N.t.b(f))return f;if(f==null){if(u)return c.F(I.bs(),s.a([r],N.M)),null}else if(c.l(I.a2(),s.a([f,"object"],N.M),r),u)return null;return s.a9(N.X,N._)},T(n,r,c,u,f){var m,v,S=s.az(n,r,"object",c);return N.t.b(S)?(m=c.c,m.push(r),v=u.$2(S,c),m.pop(),v):(S==null?f&&c.F(I.bs(),s.a([r],N.M)):c.l(I.a2(),s.a([S,"object"],N.M),r),null)},mR(n,r,c,u){var f,m,v,S,B,L,F=s.az(n,r,"array",c);if(N.m.b(F)){if(f=V.V(F),f.gA(F))return c.n(I.bX(),r),null;for(m=c.c,m.push(r),v=N.e,S=s.aD(v),B=0;B<f.gj(F);++B)L=f.i(F,B),typeof L=="number"&&Math.floor(L)===L&&(L=V.no(L)),s.aI(L)&&L>=0?(S.C(0,L)||c.Z(I.ob(),B),f.m(F,B,L)):(f.m(F,B,-1),c.Z(I.h2(),B));return m.pop(),f.aj(F,v)}else F==null?u&&c.F(I.bs(),s.a([r],N.M)):c.l(I.a2(),s.a([F,"array"],N.M),r);return null},x5(n,r,c,u){var f,m=s.az(n,r,"object",c);return N.t.b(m)?m.gA(m)?(c.n(I.bX(),r),null):(f=c.c,f.push(r),m.M(0,new s.mS(u,m,c)),f.pop(),m.ak(0,N.X,N.e)):(f=N.M,m==null?c.F(I.bs(),s.a([r],f)):c.l(I.a2(),s.a([m,"object"],f),r),null)},x6(n,r,c,u){var f,m,v,S,B,L,F,z=s.az(n,r,"array",c);if(N.m.b(z)){if(f=V.V(z),f.gA(z))return c.n(I.bX(),r),null;for(m=c.c,m.push(r),v=N.M,S=N.t,B=!1,L=0;L<f.gj(z);++L)F=f.i(z,L),S.b(F)?F.gA(F)?(c.Z(I.bX(),L),B=!0):(m.push(y.c.k(L)),F.M(0,new s.mT(u,F,c)),m.pop()):(c.F(I.eC(),s.a([F,"object"],v)),B=!0);return m.pop(),B?null:(f=V.nn(z,N.h),m=s.A(f).h("ab<p.E,h<e*,f*>*>"),s.bc(new s.ab(f,new s.mU,m),!1,m.h("ah.E")))}else z!=null&&c.l(I.a2(),s.a([z,"array"],N.M),r);return null},ae(n,r,c,u,f,m,v,S){var B,L,F,z,O,W,Y,te,K=null,ie=s.az(n,r,"array",c);if(N.m.b(ie)){if(B=V.V(ie),B.gA(ie))return c.n(I.bX(),r),K;if(f!=null&&!s.nN(r,B.gj(ie),f,c,!0))return K;for(L=s.U(B.gj(ie),0,!1,N.F),F=N.M,z=c.c,O=!1,W=0;W<B.gj(ie);++W)Y=B.i(ie,W),typeof Y=="number"?(te=Y==1/0||Y==-1/0||Y<v||Y>m,te&&(z.push(r),c.ao(I.ni(),s.a([Y],F),W),z.pop(),O=!0),S?(te=I.ol(),te[0]=Y,L[W]=te[0]):L[W]=Y):(c.l(I.eC(),s.a([Y,"number"],F),r),O=!0);return O?K:L}else{if(ie==null)return u==null?B=K:B=V.cX(u.slice(0),s.a_(u).c),B;c.l(I.a2(),s.a([ie,"array"],N.M),r)}return K},pP(n,r,c,u,f){var m,v,S,B,L,F,z,O,W,Y=s.az(n,r,"array",c);if(N.m.b(Y)){if(m=V.V(Y),m.gj(Y)!==f)return c.l(I.oc(),s.a([m.gj(Y),s.a([f],N.V)],N.M),r),null;for(v=s.xR(u),S=s.q1(u),B=s.x_(u,f),L=N.M,F=!1,z=0;z<m.gj(Y);++z)O=m.i(Y,z),typeof O=="number"&&Math.floor(O)===O&&(O=V.no(O)),s.aI(O)?(W=O<v||O>S,W&&(c.l(I.rC(),s.a([O,y.ay.i(0,u)],L),r),F=!0),B[z]=O):(c.l(I.eC(),s.a([O,"integer"],L),r),F=!0);return F?null:B}else Y!=null&&c.l(I.a2(),s.a([Y,"array"],N.M),r);return null},pQ(n,r,c){var u,f,m,v,S,B,L,F,z=s.az(n,r,"array",c);if(N.m.b(z)){if(u=V.V(z),u.gA(z))return c.n(I.bX(),r),null;for(f=c.c,f.push(r),m=N.X,v=s.aD(m),S=N.M,B=!1,L=0;L<u.gj(z);++L)F=u.i(z,L),typeof F=="string"?v.C(0,F)||c.Z(I.ob(),L):(c.ao(I.eC(),s.a([F,"string"],S),L),B=!0);return f.pop(),B?null:u.aj(z,m)}else z!=null&&c.l(I.a2(),s.a([z,"array"],N.M),r);return null},eB(n,r,c){var u,f,m,v,S,B,L=s.az(n,r,"array",c);if(N.m.b(L)){if(u=V.V(L),u.gA(L))return c.n(I.bX(),r),null;for(f=u.gH(L),m=N.t,v=N.M,S=!1;f.q();)B=f.gt(),m.b(B)||(c.l(I.eC(),s.a([B,"object"],v),r),S=!0);return S?null:u.aj(L,m)}else u=N.M,L==null?c.F(I.bs(),s.a([r],u)):c.l(I.a2(),s.a([L,"array"],u),r);return null},t(n,r,c,u){var f,m,v,S,B,L,F,z,O,W,Y,te,K="extensions",ie=s.a9(N.X,N._),de=s.nP(n,K,c,!1);if(de.gA(de))return ie;for(f=c.c,f.push(K),m=de.gN(),m=m.gH(m),v=N.ax,S=N.c,B=u==null,L=c.f,F=c.r;m.q();){if(z=m.gt(),O=s.nP(de,z,c,!1),W=c.ay,!W.G(W,z)){W=c.at,W=W.G(W,z),W||c.n(I.rk(),z),ie.m(0,z,O);continue}if(Y=c.Q.a.i(0,new s.cb(r,z)),Y==null){c.n(I.rl(),z);continue}de.gj(de)>1&&Y.b&&c.n(I.rW(),z),O!=null&&(f.push(z),te=Y.a.$2(O,c),ie.m(0,z,te),!Y.c&&S.b(te)&&(z=B?r:u,z=L.c_(z,new s.mQ),W=s.a(f.slice(0),s.a_(f)),W.fixed$length=Array,V.nm(z,new s.cw(te,W))),v.b(te)&&(z=s.a(f.slice(0),s.a_(f)),z.fixed$length=Array,F.push(new s.fo(te,z))),f.pop())}return f.pop(),ie},x(n,r){var c=n.i(0,"extras");return c!=null&&!N.h.b(c)&&r.n(I.dk(),"extras"),c},nN(n,r,c,u,f){var m;return V.on(c,r)?!0:(m=f?I.oc():I.rs(),u.l(m,s.a([r,c],N.M),n),!1)},w(n,r,c){var u,f,m;for(u=n.gN(),u=u.gH(u);u.q();)f=u.gt(),y.d.G(r,f)?m=!1:(m=y.d.G(y.cP,f),m=!m),m&&c.n(I.rq(),f)},nT(n,r,c,u,f,m){var v,S,B,L,F,z,O=f.c;for(O.push(u),v=N.M,S=c.a,B=S.length,L=0;L<n.gj(n);++L)F=n.i(0,L),F!==-1&&(z=F==null||F<0||F>=B?null:S[F],z!=null?(z.a$=!0,r[L]=z,m.$3(z,F,L)):f.ao(I.Q(),s.a([F],v),L));O.pop()},xi(n){var r,c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q,ae,me,fe,he,ve,Re,Le,Xe,xe,Pe,Ie,Ue,Ne,et,Ke,gt,ne=n.a;return ne[3]!==0||ne[7]!==0||ne[11]!==0||ne[15]!==1||n.cG()===0?!1:(r=I.tt(),c=I.tq(),u=I.tr(),f=I.oN,f==null&&(f=I.oN=new s.cE(new Float32Array(3))),f.bt(ne[0],ne[1],ne[2]),m=Math.sqrt(f.gaW()),f.bt(ne[4],ne[5],ne[6]),v=Math.sqrt(f.gaW()),f.bt(ne[8],ne[9],ne[10]),S=Math.sqrt(f.gaW()),n.cG()<0&&(m=-m),r=r.a,r[0]=ne[12],r[1]=ne[13],r[2]=ne[14],B=1/m,L=1/v,F=1/S,z=I.oL,z==null&&(z=I.oL=new s.cZ(new Float32Array(16))),O=z.a,O[15]=ne[15],O[14]=ne[14],O[13]=ne[13],O[12]=ne[12],O[11]=ne[11],O[10]=ne[10],O[9]=ne[9],O[8]=ne[8],O[7]=ne[7],O[6]=ne[6],O[5]=ne[5],O[4]=ne[4],O[3]=ne[3],O[2]=ne[2],O[1]=ne[1],O[0]=ne[0],O[0]=O[0]*B,O[1]=O[1]*B,O[2]=O[2]*B,O[4]=O[4]*L,O[5]=O[5]*L,O[6]=O[6]*L,O[8]=O[8]*F,O[9]=O[9]*F,O[10]=O[10]*F,W=I.oM,W==null&&(W=I.oM=new s.f2(new Float32Array(9))),Y=W.a,Y[0]=O[0],Y[1]=O[1],Y[2]=O[2],Y[3]=O[4],Y[4]=O[5],Y[5]=O[6],Y[6]=O[8],Y[7]=O[9],Y[8]=O[10],c.toString,ne=Y[0],O=Y[4],te=Y[8],K=0+ne+O+te,K>0?(ie=Math.sqrt(K+1),ne=c.a,ne[3]=ie*.5,ie=.5/ie,ne[0]=(Y[5]-Y[7])*ie,ne[1]=(Y[6]-Y[2])*ie,ne[2]=(Y[1]-Y[3])*ie):(ne<O?de=O<te?2:1:de=ne<te?2:0,j=(de+1)%3,q=(de+2)%3,ne=de*3,O=j*3,te=q*3,ie=Math.sqrt(Y[ne+de]-Y[O+j]-Y[te+q]+1),c=c.a,c[de]=ie*.5,ie=.5/ie,c[3]=(Y[O+q]-Y[te+j])*ie,c[j]=(Y[ne+j]+Y[O+de])*ie,c[q]=(Y[ne+q]+Y[te+de])*ie,ne=c),u=u.a,u[0]=m,u[1]=v,u[2]=S,c=I.tp(),ae=ne[0],me=ne[1],fe=ne[2],he=ne[3],ve=ae+ae,Re=me+me,Le=fe+fe,Xe=ae*ve,xe=ae*Re,Pe=ae*Le,Ie=me*Re,Ue=me*Le,Ne=fe*Le,et=he*ve,Ke=he*Re,gt=he*Le,ne=c.a,ne[0]=1-(Ie+Ne),ne[1]=xe+gt,ne[2]=Pe-Ke,ne[3]=0,ne[4]=xe-gt,ne[5]=1-(Xe+Ne),ne[6]=Ue+et,ne[7]=0,ne[8]=Pe+Ke,ne[9]=Ue-et,ne[10]=1-(Xe+Ie),ne[11]=0,ne[12]=r[0],ne[13]=r[1],ne[14]=r[2],ne[15]=1,m=u[0],v=u[1],S=u[2],ne[0]=ne[0]*m,ne[1]=ne[1]*m,ne[2]=ne[2]*m,ne[3]=ne[3]*m,ne[4]=ne[4]*v,ne[5]=ne[5]*v,ne[6]=ne[6]*v,ne[7]=ne[7]*v,ne[8]=ne[8]*S,ne[9]=ne[9]*S,ne[10]=ne[10]*S,ne[11]=ne[11]*S,ne[12]=ne[12],ne[13]=ne[13],ne[14]=ne[14],ne[15]=ne[15],Math.abs(c.cL()-n.cL())<5e-5)},x_(n,r){switch(n){case 5120:return new Int8Array(r);case 5121:return new Uint8Array(r);case 5122:return new Int16Array(r);case 5123:return new Uint16Array(r);case 5124:return new Int32Array(r);case 5125:return new Uint32Array(r);default:throw s.d(s.K(null,null))}},mS:function(r,c,u){this.a=r,this.b=c,this.c=u},mT:function(r,c,u){this.a=r,this.b=c,this.c=u},mU:function(){},mQ:function(){},F:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.$ti=f},a1:function(){},fv:function(r,c){this.a=0,this.b=r,this.c=c},fw:function(r,c){this.a=0,this.b=r,this.c=c},eK:function(r){this.a=r},lF:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},lI:function(r,c){this.a=r,this.b=c},lH:function(){},lG:function(){},uM(){return new s.cZ(new Float32Array(16))},v3(){return new s.fl(new Float32Array(4))},pb(n){var r=new Float32Array(3);return r[2]=n[2],r[1]=n[1],r[0]=n[0],new s.cE(r)},pa(){return new s.cE(new Float32Array(3))},f2:function(r){this.a=r},cZ:function(r){this.a=r},fl:function(r){this.a=r},cE:function(r){this.a=r},fA:function(r){this.a=r},xD(){var n=new s.nb;V.tE(t.exports,s.cK(new s.n7(n))),V.tF(t.exports,s.cK(new s.n8(n))),V.tG(t.exports,s.cK(new s.n9)),V.tD(t.exports,s.cK(new s.na))},h_(n,r){return s.xT(n,r)},xT(n,r){var c=0,u=s.ex(N.t),f,m=2,v,S,B,L,F,z,O,W,Y,te=s.ez(function(K,ie){for(K===1&&(v=ie,c=m);;)switch(c){case 0:if(!N.a.b(n))throw s.d(s.K("data: Argument must be a Uint8Array.",null));L=s.pv(r),S=s.pz(L),B=null,F=s.w0(L==null?null:V.tw(L));case 3:switch(F==null?null:F.toLowerCase()){case"glb":c=5;break;case"gltf":c=6;break;default:c=7;break}break;case 5:B=s.oA(s.fs(n,N.w),S),c=4;break;case 6:B=s.oB(s.fs(n,N.w),S),c=4;break;case 7:return m=9,c=12,s.dd(s.ue(s.fs(n,N.w),S),te);case 12:B=ie,m=2,c=11;break;case 9:throw m=8,z=v,s.M(z)instanceof s.dv,z;case 8:c=2;break;case 11:case 4:return O=s,W=L,Y=S,c=13,s.dd(B.c0(),te);case 13:f=O.fY(W,Y,ie),c=1;break;case 1:return s.es(f,u);case 2:return s.er(v,u)}});return s.et(te,u)},nV(n,r){var c=0,u=s.ex(N.t),f,m,v,S=s.ez(function(B,L){if(B===1)return s.er(L,u);for(;;)switch(c){case 0:if(typeof n!="string")throw s.d(s.K("json: Argument must be a string.",null));m=s.pv(r),v=s.pz(m),f=s.fY(m,v,s.ud(n,v)),c=1;break;case 1:return s.es(f,u)}});return s.et(S,u)},pv(n){var r;if(n!=null?r=typeof n=="number"||s.eu(n)||typeof n=="string"||N.l.b(n):r=!1,r)throw s.d(s.K("options: Value must be an object.",null));return N.bv.a(n)},fY(n,r,c){var u=0,f=s.ex(N.t),m,v,S,B,L,F=s.ez(function(z,O){if(z===1)return s.er(O,f);for(;;)switch(u){case 0:if(L=n==null,L)S=null,B=null;else{if(v=V.b1(n),S=s.wd(v.gbo(n)),v.gbL(n)!=null&&!N.b1.b(v.gbL(n)))throw s.d(s.K("options.externalResourceFunction: Value must be a function.",null));if(B=v.gbL(n),v.gc6(n)!=null&&!s.eu(v.gc6(n)))throw s.d(s.K("options.writeTimestamp: Value must be a boolean.",null))}u=(c==null?null:c.b)!=null?3:4;break;case 3:return u=5,s.dd(s.wc(r,c,B).aX(),F);case 5:case 4:L=L?null:V.tz(n),m=new s.lF(S,r,c,L??!0).bn(),u=1;break;case 1:return s.es(m,f)}});return s.et(F,f)},wd(n){var r,c;if(n!=null)if(typeof n=="string")try{return c=s.p6(n),c}catch(u){throw c=s.M(u),c instanceof s.aK?(r=c,s.d(s.K("options.uri: "+s.b(r)+".",null))):u}else throw s.d(s.K("options.uri: Value must be a string.",null));return null},pz(n){var r,c,u,f,m,v,S,B,L,F,z=null,O="]: Value must be a non-empty String.";if(n!=null){if(r=V.b1(n),r.gbM(n)!=null&&typeof r.gbM(n)!="string")throw s.d(s.K("options.format: Value must be a string.",z));if(r.gbk(n)!=null?c=!s.aI(r.gbk(n))||r.gbk(n)<0:c=!1,c)throw s.d(s.K("options.maxIssues: Value must be a non-negative integer.",z));if(r.gaY(n)!=null&&r.gaU(n)!=null)throw s.d(s.K("options.onlyIssues cannot be used along with options.ignoredIssues.",z));if(r.gaY(n)!=null){if(!N.l.b(r.gaY(n)))throw s.d(s.K("options.onlyIssues: Value must be an array.",z));for(u=s.a([],N.i),f=0;f<V.a3(r.gaY(n));++f)if(m=V.nl(r.gaY(n),f),typeof m=="string"&&m.length!==0)u.push(m);else throw s.d(s.K("options.onlyIssues["+f+O,z))}else u=z;if(r.gaU(n)!=null){if(!N.l.b(r.gaU(n)))throw s.d(s.K("options.ignoredIssues: Value must be an array.",z));for(v=s.a([],N.i),f=0;f<V.a3(r.gaU(n));++f)if(m=V.nl(r.gaU(n),f),typeof m=="string"&&m.length!==0)v.push(m);else throw s.d(s.K("options.ignoredIssues["+f+O,z))}else v=z;if(r.gam(n)!=null){if(typeof r.gam(n)=="number"||s.eu(r.gam(n))||typeof r.gam(n)=="string"||N.l.b(r.gam(n)))throw s.d(s.K("options.severityOverrides: Value must be an object.",z));for(c=N.X,S=s.a9(c,N.dz),c=V.nn(t.Object.keys(r.gam(n)),c),c=new s.aa(c,c.gj(c),s.A(c).h("aa<p.E>"));c.q();)if(B=c.d,L=r.gam(n)[B],s.aI(L)&&L>=0&&L<=3)S.m(0,B,y.cn[L]);else throw s.d(s.K('options.severityOverrides["'+s.b(B)+'"]: Value must be one of [0, 1, 2, 3].',z))}else S=z;F=s.p9(v,r.gbk(n),u,S)}else F=z;return s.u3(F)},wc(n,r,c){var u=new s.mG(c),f=new s.e_("options.externalResourceFunction is required to load this resource.");return new s.kb(r.b,n,new s.mE(n,r,c,u,f),new s.mF(c,u,f))},bf:function(){},hX:function(){},d8:function(){},nb:function(){},n7:function(r){this.a=r},n6:function(r,c,u){this.a=r,this.b=c,this.c=u},n3:function(r){this.a=r},n4:function(r,c){this.a=r,this.b=c},n8:function(r){this.a=r},n5:function(r,c,u){this.a=r,this.b=c,this.c=u},n1:function(r){this.a=r},n2:function(r,c){this.a=r,this.b=c},n9:function(){},na:function(){},mG:function(r){this.a=r},mH:function(r){this.a=r},mI:function(r){this.a=r},mE:function(r,c,u,f,m){var v=this;v.a=r,v.b=c,v.c=u,v.d=f,v.e=m},mF:function(r,c,u){this.a=r,this.b=c,this.c=u},ff:function(r){this.a=r},nU(n){return s.Z(s.uG(n))},w4(n){var r,c=n.$dart_jsFunction;return c??(r=(function(u,f){return function(){return u(f,Array.prototype.slice.apply(arguments))}})(s.w3,n),r[I.nW()]=n,n.$dart_jsFunction=r,r)},w3(n,r){return s.v_(n,r,null)},cK(n){return typeof n=="function"?n:s.w4(n)},wg(n){var r="POSITION",c="TEXCOORD",u=n.fr;u.i(0,r).D(0,y.dh),u.i(0,"NORMAL").D(0,y.Q),u.i(0,"TANGENT").D(0,y.ds),u.i(0,c).D(0,y.cd),u=n.fx,u.i(0,r).D(0,y.cx),u.i(0,"NORMAL").D(0,y.Q),u.i(0,"TANGENT").D(0,y.Q),u.i(0,c).D(0,y.dn)},b0(n){switch(n){case 5120:case 5121:return 1;case 5122:case 5123:return 2;case 5124:case 5125:case 5126:return 4;default:return-1}},xR(n){switch(n){case 5121:case 5123:case 5125:return 0;case 5120:return-128;case 5122:return-32768;case 5124:return-2147483648;default:throw s.d(s.K(null,null))}},q1(n){switch(n){case 5120:return 127;case 5121:return 255;case 5122:return 32767;case 5123:return 65535;case 5124:return 2147483647;case 5125:return 4294967295;default:throw s.d(s.K(null,null))}},fW(n,r){var c=n+r&536870911;return c=c+((c&524287)<<10)&536870911,c^c>>>6},px(n){var r=n+((n&67108863)<<3)&536870911;return r^=r>>>11,r+((r&16383)<<15)&536870911}},V={nS(n,r,c,u){return{i:n,p:r,e:c,x:u}},mV(n){var r,c,u,f,m,v=n[re.dispatchPropertyName];if(v==null&&I.nQ==null&&(s.xe(),v=n[re.dispatchPropertyName]),v!=null){if(r=v.p,r===!1)return v.i;if(r===!0)return n;if(c=Object.getPrototypeOf(n),r===c)return v.i;if(v.e===c)throw s.d(s.p4("Return interceptor for "+s.b(r(n,v))))}return u=n.constructor,u==null?f=null:(m=I.mg,m==null&&(m=I.mg=re.getIsolateTag("_$dart_js")),f=u[m]),f!=null||(f=s.xC(n),f!=null)?f:typeof n=="function"?y.c2:(r=Object.getPrototypeOf(n),r==null||r===Object.prototype?y.aA:(typeof u=="function"&&(m=I.mg,m==null&&(m=I.mg=re.getIsolateTag("_$dart_js")),Object.defineProperty(u,m,{value:y.X,enumerable:!1,writable:!0,configurable:!0})),y.X))},b8(n,r){if(n<0||n>4294967295)throw s.d(s.Y(n,0,4294967295,"length",null));return V.cX(new Array(n),r)},oF(n,r){if(n>4294967295)throw s.d(s.Y(n,0,4294967295,"length",null));return V.cX(new Array(n),r)},cX(n,r){return V.nr(s.a(n,r.h("D<0>")))},nr(n){return n.fixed$length=Array,n},uj(n){if(n<256)switch(n){case 9:case 10:case 11:case 12:case 13:case 32:case 133:case 160:return!0;default:return!1}switch(n){case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8232:case 8233:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}},oG(n,r){for(var c,u;r>0&&(c=r-1,u=y.a.B(n,c),!(u!==32&&u!==13&&!V.uj(u)));r=c);return r},bV(n){return typeof n=="number"?Math.floor(n)==n?V.dy.prototype:V.eZ.prototype:typeof n=="string"?V.bB.prototype:n==null?V.dz.prototype:typeof n=="boolean"?V.dx.prototype:n.constructor==Array?V.D.prototype:typeof n!="object"?typeof n=="function"?V.b9.prototype:n:n instanceof s.c?n:V.mV(n)},V(n){return typeof n=="string"?V.bB.prototype:n==null?n:n.constructor==Array?V.D.prototype:typeof n!="object"?typeof n=="function"?V.b9.prototype:n:n instanceof s.c?n:V.mV(n)},bp(n){return n==null?n:n.constructor==Array?V.D.prototype:typeof n!="object"?typeof n=="function"?V.b9.prototype:n:n instanceof s.c?n:V.mV(n)},x7(n){return typeof n=="number"?V.ce.prototype:n==null||n instanceof s.c?n:V.bL.prototype},x8(n){return typeof n=="number"?V.ce.prototype:typeof n=="string"?V.bB.prototype:n==null||n instanceof s.c?n:V.bL.prototype},x9(n){return typeof n=="string"?V.bB.prototype:n==null||n instanceof s.c?n:V.bL.prototype},b1(n){return n==null?n:typeof n!="object"?typeof n=="function"?V.b9.prototype:n:n instanceof s.c?n:V.mV(n)},om(n,r){return typeof n=="number"&&typeof r=="number"?n+r:V.x8(n).ae(n,r)},af(n,r){return n==null?r==null:typeof n!="object"?r!=null&&n===r:V.bV(n).O(n,r)},nl(n,r){return typeof r=="number"&&(n.constructor==Array||typeof n=="string"||s.pU(n,n[re.dispatchPropertyName]))&&r>>>0===r&&r<n.length?n[r]:V.V(n).i(n,r)},tv(n,r,c){return typeof r=="number"&&(n.constructor==Array||s.pU(n,n[re.dispatchPropertyName]))&&!n.immutable$list&&r>>>0===r&&r<n.length?n[r]=c:V.bp(n).m(n,r,c)},nm(n,r){return V.bp(n).C(n,r)},nn(n,r){return V.bp(n).aj(n,r)},on(n,r){return V.bp(n).G(n,r)},eD(n,r){return V.bp(n).V(n,r)},tw(n){return V.b1(n).gbM(n)},bY(n){return V.bV(n).gE(n)},oo(n){return V.V(n).gA(n)},tx(n){return V.V(n).ga8(n)},aA(n){return V.bp(n).gH(n)},a3(n){return V.V(n).gj(n)},ty(n){return V.b1(n).ger(n)},tz(n){return V.b1(n).gc6(n)},tA(n,r,c){return V.bp(n).b0(n,r,c)},bt(n,r,c){return V.bp(n).al(n,r,c)},tB(n,r){return V.bV(n).bm(n,r)},tC(n,r){return V.V(n).sj(n,r)},tD(n,r){return V.b1(n).sdf(n,r)},tE(n,r){return V.b1(n).seB(n,r)},tF(n,r){return V.b1(n).seD(n,r)},tG(n,r){return V.b1(n).seE(n,r)},op(n,r){return V.bp(n).a6(n,r)},tH(n,r,c){return V.b1(n).d1(n,r,c)},tI(n,r,c){return V.b1(n).es(n,r,c)},no(n){return V.x7(n).eu(n)},h4(n,r){return V.bp(n).b_(n,r)},as(n){return V.bV(n).k(n)},tJ(n){return V.x9(n).ey(n)},cV:function(){},dx:function(){},dz:function(){},f_:function(){},aN:function(){},fj:function(){},bL:function(){},b9:function(){},D:function(r){this.$ti=r},iL:function(r){this.$ti=r},b4:function(r,c,u){var f=this;f.a=r,f.b=c,f.c=0,f.d=null,f.$ti=u},ce:function(){},dy:function(){},eZ:function(){},bB:function(){}},y={},ee=[s,V,y],I={};s.ns.prototype={},V.cV.prototype={O(n,r){return n===r},gE(n){return s.d0(n)},k(n){return"Instance of '"+s.b(s.ka(n))+"'"},bm(n,r){throw s.d(new s.dH(n,r.gcT(),r.gcX(),r.gcU(),null))}},V.dx.prototype={k(n){return String(n)},gE(n){return n?519018:218159},$iS:1},V.dz.prototype={O(n,r){return r==null},k(n){return"null"},gE(n){return 0},bm(n,r){return this.d6(n,r)},$il:1},V.f_.prototype={},V.aN.prototype={gE(n){return 0},k(n){return String(n)},$ibf:1,$id8:1,ger(n){return n.then},d1(n,r){return n.then(r)},es(n,r,c){return n.then(r,c)},seB(n,r){return n.validateBytes=r},seD(n,r){return n.validateString=r},seE(n,r){return n.version=r},sdf(n,r){return n.supportedExtensions=r},gbo(n){return n.uri},gbM(n){return n.format},gbL(n){return n.externalResourceFunction},gc6(n){return n.writeTimestamp},gbk(n){return n.maxIssues},gaU(n){return n.ignoredIssues},gaY(n){return n.onlyIssues},gam(n){return n.severityOverrides}},V.fj.prototype={},V.bL.prototype={},V.b9.prototype={k(n){var r=n[I.nW()];return r==null?this.da(n):"JavaScript function for "+s.b(V.as(r))},$iaB:1},V.D.prototype={aj(n,r){return new s.b5(n,s.a_(n).h("@<1>").I(r).h("b5<1,2>"))},C(n,r){n.fixed$length&&s.Z(s.ad("add")),n.push(r)},dP(n,r,c){var u,f,m,v=[],S=n.length;for(u=0;u<S;++u)if(f=n[u],r.$1(f)||v.push(f),n.length!==S)throw s.d(s.ag(n));if(m=v.length,m!==S)for(this.sj(n,m),u=0;u<v.length;++u)n[u]=v[u]},D(n,r){var c;if(n.fixed$length&&s.Z(s.ad("addAll")),Array.isArray(r)){this.di(n,r);return}for(c=V.aA(r);c.q();)n.push(c.gt())},di(n,r){var c,u=r.length;if(u!==0){if(n===r)throw s.d(s.ag(n));for(c=0;c<u;++c)n.push(r[c])}},P(n){n.fixed$length&&s.Z(s.ad("clear")),n.length=0},al(n,r,c){return new s.ab(n,r,s.a_(n).h("@<1>").I(c).h("ab<1,2>"))},cQ(n,r){var c,u=s.U(n.length,"",!1,N.R);for(c=0;c<n.length;++c)u[c]=s.b(n[c]);return u.join(r)},a6(n,r){return s.dQ(n,r,null,s.a_(n).c)},bf(n,r,c){var u,f,m=n.length;for(u=0;u<m;++u){if(f=n[u],r.$1(f))return f;if(n.length!==m)throw s.d(s.ag(n))}return c.$0()},V(n,r){return n[r]},a1(n,r,c){if(r<0||r>n.length)throw s.d(s.Y(r,0,n.length,"start",null));if(c<r||c>n.length)throw s.d(s.Y(c,r,n.length,"end",null));return r===c?s.a([],s.a_(n)):s.a(n.slice(r,c),s.a_(n))},b0(n,r,c){return s.aQ(r,c,n.length),s.dQ(n,r,c,s.a_(n).c)},gaV(n){var r=n.length;if(r>0)return n[r-1];throw s.d(s.nq())},G(n,r){var c;for(c=0;c<n.length;++c)if(V.af(n[c],r))return!0;return!1},gA(n){return n.length===0},ga8(n){return n.length!==0},k(n){return s.iI(n,"[","]")},b_(n,r){var c=V.cX(n.slice(0),s.a_(n).c);return c},c3(n){return s.uJ(n,s.a_(n).c)},gH(n){return new V.b4(n,n.length,s.a_(n).h("b4<1>"))},gE(n){return s.d0(n)},gj(n){return n.length},sj(n,r){if(n.fixed$length&&s.Z(s.ad("set length")),r<0)throw s.d(s.Y(r,0,null,"newLength",null));n.length=r},i(n,r){if(!(r>=0&&r<n.length))throw s.d(s.eA(n,r));return n[r]},m(n,r,c){if(n.immutable$list&&s.Z(s.ad("indexed set")),!(r>=0&&r<n.length))throw s.d(s.eA(n,r));n[r]=c},$iq:1,$ij:1,$io:1},V.iL.prototype={},V.b4.prototype={gt(){return this.d},q(){var n,r=this,c=r.a,u=c.length;if(r.b!==u)throw s.d(s.cN(c));return n=r.c,n>=u?(r.d=null,!1):(r.d=c[n],r.c=n+1,!0)},$iP:1},V.ce.prototype={eu(n){var r;if(n>=-2147483648&&n<=2147483647)return n|0;if(isFinite(n))return r=n<0?Math.ceil(n):Math.floor(n),r+0;throw s.d(s.ad(""+n+".toInt()"))},av(n,r){var c,u,f,m;if(r<2||r>36)throw s.d(s.Y(r,2,36,"radix",null));return c=n.toString(r),y.a.B(c,c.length-1)!==41?c:(u=/^([\da-z]+)(?:\.([\da-z]+))?\(e\+(\d+)\)$/.exec(c),u==null&&s.Z(s.ad("Unexpected toString result: "+c)),c=u[1],f=+u[3],m=u[2],m!=null&&(c+=m,f-=m.length),c+y.a.bs("0",f))},k(n){return n===0&&1/n<0?"-0.0":""+n},gE(n){var r,c,u,f,m=n|0;return n===m?m&536870911:(r=Math.abs(n),c=Math.log(r)/.6931471805599453|0,u=Math.pow(2,c),f=r<1?r/u:u/r,((f*9007199254740992|0)+(f*0xc95a6c285a6c9|0))*599197+c*1259&536870911)},br(n,r){var c=n%r;return c===0?0:c>0?c:c+r},aw(n,r){return(n|0)===n&&(r>=1||r<-1)?n/r|0:this.cv(n,r)},bJ(n,r){return(n|0)===n?n/r|0:this.cv(n,r)},cv(n,r){var c=n/r;if(c>=-2147483648&&c<=2147483647)return c|0;if(c>0){if(c!==1/0)return Math.floor(c)}else if(c>-1/0)return Math.ceil(c);throw s.d(s.ad("Result of truncating division is "+s.b(c)+": "+s.b(n)+" ~/ "+r))},aI(n,r){if(r<0)throw s.d(s.cL(r));return r>31?0:n<<r>>>0},ai(n,r){var c;return n>0?c=this.cu(n,r):(c=r>31?31:r,c=n>>c>>>0),c},dT(n,r){if(0>r)throw s.d(s.cL(r));return this.cu(n,r)},cu(n,r){return r>31?0:n>>>r},$iz:1,$iN:1},V.dy.prototype={$if:1},V.eZ.prototype={},V.bB.prototype={B(n,r){if(r<0)throw s.d(s.eA(n,r));return r>=n.length&&s.Z(s.eA(n,r)),n.charCodeAt(r)},J(n,r){if(r>=n.length)throw s.d(s.eA(n,r));return n.charCodeAt(r)},ae(n,r){if(typeof r!="string")throw s.d(s.h7(r,null,null));return n+r},aH(n,r,c,u){var f=s.aQ(r,c,n.length);return n.substring(0,r)+u+n.substring(f)},U(n,r,c){var u;if(c<0||c>n.length)throw s.d(s.Y(c,0,n.length,null,null));return u=c+r.length,u>n.length?!1:r===n.substring(c,u)},Y(n,r){return this.U(n,r,0)},u(n,r,c){return n.substring(r,s.aQ(r,c,n.length))},bu(n,r){return this.u(n,r,null)},ey(n){var r,c,u;if(typeof n.trimRight<"u"){if(r=n.trimRight(),c=r.length,c===0)return r;u=c-1,this.B(r,u)===133&&(c=V.oG(r,u))}else c=V.oG(n,n.length),r=n;return c===r.length?r:c===0?"":r.substring(0,c)},bs(n,r){var c,u;if(0>=r)return"";if(r===1||n.length===0)return n;if(r!==r>>>0)throw s.d(y.bh);for(c=n,u="";(r&1)===1&&(u=c+u),r=r>>>1,r!==0;)c+=c;return u},aq(n,r,c){var u=r-n.length;return u<=0?n:this.bs(c,u)+n},bg(n,r,c){var u;if(c<0||c>n.length)throw s.d(s.Y(c,0,n.length,null,null));return u=n.indexOf(r,c),u},bR(n,r){return this.bg(n,r,0)},k(n){return n},gE(n){var r,c,u;for(r=n.length,c=0,u=0;u<r;++u)c=c+n.charCodeAt(u)&536870911,c=c+((c&524287)<<10)&536870911,c^=c>>6;return c=c+((c&67108863)<<3)&536870911,c^=c>>11,c+((c&16383)<<15)&536870911},gj(n){return n.length},$ie:1},s.bM.prototype={gH(n){var r=s.A(this);return new s.dm(V.aA(this.gaa()),r.h("@<1>").I(r.z[1]).h("dm<1,2>"))},gj(n){return V.a3(this.gaa())},gA(n){return V.oo(this.gaa())},ga8(n){return V.tx(this.gaa())},a6(n,r){var c=s.A(this);return s.he(V.op(this.gaa(),r),c.c,c.z[1])},V(n,r){return s.A(this).z[1].a(V.eD(this.gaa(),r))},G(n,r){return V.on(this.gaa(),r)},k(n){return V.as(this.gaa())}},s.dm.prototype={q(){return this.a.q()},gt(){return this.$ti.z[1].a(this.a.gt())},$iP:1},s.c5.prototype={gaa(){return this.a}},s.dZ.prototype={$iq:1},s.dU.prototype={i(n,r){return this.$ti.z[1].a(V.nl(this.a,r))},m(n,r,c){V.tv(this.a,r,this.$ti.c.a(c))},sj(n,r){V.tC(this.a,r)},C(n,r){V.nm(this.a,this.$ti.c.a(r))},b0(n,r,c){var u=this.$ti;return s.he(V.tA(this.a,r,c),u.c,u.z[1])},$iq:1,$io:1},s.b5.prototype={aj(n,r){return new s.b5(this.a,this.$ti.h("@<1>").I(r).h("b5<1,2>"))},gaa(){return this.a}},s.c6.prototype={ak(n,r,c){var u=this.$ti;return new s.c6(this.a,u.h("@<1>").I(u.z[1]).I(r).I(c).h("c6<1,2,3,4>"))},v(n){return this.a.v(n)},i(n,r){return this.$ti.h("4?").a(this.a.i(0,r))},m(n,r,c){var u=this.$ti;this.a.m(0,u.c.a(r),u.z[1].a(c))},M(n,r){this.a.M(0,new s.hf(this,r))},gN(){var n=this.$ti;return s.he(this.a.gN(),n.c,n.z[2])},gj(n){var r=this.a;return r.gj(r)},gA(n){var r=this.a;return r.gA(r)}},s.hf.prototype={$2(n,r){var c=this.a.$ti;this.b.$2(c.z[2].a(n),c.z[3].a(r))},$S(){return this.a.$ti.h("~(1,2)")}},s.f1.prototype={k(n){return"LateInitializationError: "+this.a}},s.fm.prototype={k(n){return"ReachabilityError: "+this.a}},s.c8.prototype={gj(n){return this.a.length},i(n,r){return y.a.B(this.a,r)}},s.nd.prototype={$0(){var n=new s.C(I.B,N.U);return n.ah(null),n},$S:47},s.dI.prototype={k(n){return"Null is not a valid value for '"+this.a+"' of type '"+s.pL(this.$ti.c).k(0)+"'"},$iaG:1},s.q.prototype={},s.ah.prototype={gH(n){var r=this;return new s.aa(r,r.gj(r),s.A(r).h("aa<ah.E>"))},gA(n){return this.gj(this)===0},G(n,r){var c,u=this,f=u.gj(u);for(c=0;c<f;++c){if(V.af(u.V(0,c),r))return!0;if(f!==u.gj(u))throw s.d(s.ag(u))}return!1},al(n,r,c){return new s.ab(this,r,s.A(this).h("@<ah.E>").I(c).h("ab<1,2>"))},a6(n,r){return s.dQ(this,r,null,s.A(this).h("ah.E"))}},s.dP.prototype={gdu(){var n=V.a3(this.a),r=this.c;return r==null||r>n?n:r},gdU(){var n=V.a3(this.a),r=this.b;return r>n?n:r},gj(n){var r,c=V.a3(this.a),u=this.b;return u>=c?0:(r=this.c,r==null||r>=c?c-u:r-u)},V(n,r){var c=this,u=c.gdU()+r;if(r<0||u>=c.gdu())throw s.d(s.eW(r,c.gj(c),c,null,"index"));return V.eD(c.a,u)},a6(n,r){var c,u,f=this;return s.aW(r,"count"),c=f.b+r,u=f.c,u!=null&&c>=u?new s.b7(f.$ti.h("b7<1>")):s.dQ(f.a,c,u,f.$ti.c)},b_(n,r){var c,u,f,m=this,v=m.b,S=m.a,B=V.V(S),L=B.gj(S),F=m.c;if(F!=null&&F<L&&(L=F),c=L-v,c<=0)return S=V.b8(0,m.$ti.c),S;for(u=s.U(c,B.V(S,v),!1,m.$ti.c),f=1;f<c;++f)if(u[f]=B.V(S,v+f),B.gj(S)<L)throw s.d(s.ag(m));return u}},s.aa.prototype={gt(){return this.d},q(){var n,r=this,c=r.a,u=V.V(c),f=u.gj(c);if(r.b!==f)throw s.d(s.ag(c));return n=r.c,n>=f?(r.d=null,!1):(r.d=u.V(c,n),++r.c,!0)},$iP:1},s.bd.prototype={gH(n){var r=s.A(this);return new s.dD(V.aA(this.a),this.b,r.h("@<1>").I(r.z[1]).h("dD<1,2>"))},gj(n){return V.a3(this.a)},gA(n){return V.oo(this.a)},V(n,r){return this.b.$1(V.eD(this.a,r))}},s.c9.prototype={$iq:1},s.dD.prototype={q(){var n=this,r=n.b;return r.q()?(n.a=n.c.$1(r.gt()),!0):(n.a=null,!1)},gt(){return this.a}},s.ab.prototype={gj(n){return V.a3(this.a)},V(n,r){return this.b.$1(V.eD(this.a,r))}},s.lK.prototype={gH(n){return new s.cF(V.aA(this.a),this.b,this.$ti.h("cF<1>"))},al(n,r,c){return new s.bd(this,r,this.$ti.h("@<1>").I(c).h("bd<1,2>"))}},s.cF.prototype={q(){var n,r;for(n=this.a,r=this.b;n.q();)if(r.$1(n.gt()))return!0;return!1},gt(){return this.a.gt()}},s.bh.prototype={a6(n,r){return s.h8(r,"count"),s.aW(r,"count"),new s.bh(this.a,this.b+r,s.A(this).h("bh<1>"))},gH(n){return new s.dN(V.aA(this.a),this.b,s.A(this).h("dN<1>"))}},s.cR.prototype={gj(n){var r=V.a3(this.a)-this.b;return r>=0?r:0},a6(n,r){return s.h8(r,"count"),s.aW(r,"count"),new s.cR(this.a,this.b+r,this.$ti)},$iq:1},s.dN.prototype={q(){var n,r;for(n=this.a,r=0;r<this.b;++r)n.q();return this.b=0,n.q()},gt(){return this.a.gt()}},s.b7.prototype={gH(n){return y.b9},gA(n){return!0},gj(n){return 0},V(n,r){throw s.d(s.Y(r,0,0,"index",null))},G(n,r){return!1},al(n,r,c){return new s.b7(c.h("b7<0>"))},a6(n,r){return s.aW(r,"count"),this}},s.dq.prototype={q(){return!1},gt(){throw s.d(s.nq())},$iP:1},s.ds.prototype={sj(n,r){throw s.d(s.ad("Cannot change the length of a fixed-length list"))},C(n,r){throw s.d(s.ad("Cannot add to a fixed-length list"))}},s.fy.prototype={m(n,r,c){throw s.d(s.ad("Cannot modify an unmodifiable list"))},sj(n,r){throw s.d(s.ad("Cannot change the length of an unmodifiable list"))},C(n,r){throw s.d(s.ad("Cannot add to an unmodifiable list"))}},s.d4.prototype={},s.d3.prototype={gE(n){var r=this._hashCode;return r!=null||(r=664597*V.bY(this.a)&536870911,this._hashCode=r),r},k(n){return'Symbol("'+s.b(this.a)+'")'},O(n,r){return r==null?!1:r instanceof s.d3&&this.a==r.a},$icD:1},s.ep.prototype={},s.dn.prototype={},s.cQ.prototype={ak(n,r,c){var u=s.A(this);return s.oK(this,u.c,u.z[1],r,c)},gA(n){return this.gj(this)===0},k(n){return s.nv(this)},m(n,r,c){s.u2(),s.bg(Ae.g)},$ih:1},s.aJ.prototype={gj(n){return this.a},v(n){return typeof n!="string"||n==="__proto__"?!1:this.b.hasOwnProperty(n)},i(n,r){return this.v(r)?this.b[r]:null},M(n,r){var c,u,f,m,v=this.c;for(c=v.length,u=this.b,f=0;f<c;++f)m=v[f],r.$2(m,u[m])},gN(){return new s.dW(this,this.$ti.h("dW<1>"))}},s.dW.prototype={gH(n){var r=this.a.c;return new V.b4(r,r.length,s.a_(r).h("b4<1>"))},gj(n){return this.a.c.length}},s.X.prototype={aM(){var n,r,c=this,u=c.$map;return u==null&&(n=c.$ti,r=s.uc(n.h("1?")),u=s.uI(s.wt(),r,n.c,n.z[1]),s.pN(c.a,u),c.$map=u),u},v(n){return this.aM().v(n)},i(n,r){return this.aM().i(0,r)},M(n,r){this.aM().M(0,r)},gN(){var n=this.aM();return new s.aO(n,s.A(n).h("aO<1>"))},gj(n){return this.aM().a}},s.hY.prototype={$1(n){return this.a.b(n)},$S:14},s.iJ.prototype={gcT(){var n=this.a;return n},gcX(){var n,r,c,u,f=this;if(f.c===1||(n=f.d,r=n.length-f.e.length-f.f,r===0))return y.at;for(c=[],u=0;u<r;++u)c.push(n[u]);return c.fixed$length=Array,c.immutable$list=Array,c},gcU(){var n,r,c,u,f,m,v=this;if(v.c!==0||(n=v.e,r=n.length,c=v.d,u=c.length-r-v.f,r===0))return y.az;for(f=new s.aC(N.eo),m=0;m<r;++m)f.m(0,new s.d3(n[m]),c[u+m]);return new s.dn(f,N.gF)}},s.k9.prototype={$2(n,r){var c=this.a;c.b=c.b+"$"+s.b(n),this.b.push(n),this.c.push(r),++c.a},$S:69},s.lt.prototype={a9(n){var r,c,u=this,f=new RegExp(u.a).exec(n);return f==null?null:(r=Object.create(null),c=u.b,c!==-1&&(r.arguments=f[c+1]),c=u.c,c!==-1&&(r.argumentsExpr=f[c+1]),c=u.d,c!==-1&&(r.expr=f[c+1]),c=u.e,c!==-1&&(r.method=f[c+1]),c=u.f,c!==-1&&(r.receiver=f[c+1]),r)}},s.dJ.prototype={k(n){var r=this.b;return r==null?"NoSuchMethodError: "+s.b(this.a):"NoSuchMethodError: method not found: '"+r+"' on null"}},s.f0.prototype={k(n){var r,c=this,u="NoSuchMethodError: method not found: '",f=c.b;return f==null?"NoSuchMethodError: "+s.b(c.a):(r=c.c,r==null?u+f+"' ("+s.b(c.a)+")":u+f+"' on '"+r+"' ("+s.b(c.a)+")")}},s.fx.prototype={k(n){var r=this.a;return r.length===0?"Error":"Error: "+r}},s.fh.prototype={k(n){return"Throw of null ('"+(this.a===null?"null":"undefined")+"' from JavaScript)"},$ia8:1},s.dr.prototype={},s.ed.prototype={k(n){var r,c=this.b;return c??(c=this.a,r=c!==null&&typeof c=="object"?c.stack:null,this.b=r??"")},$ian:1},s.c7.prototype={k(n){var r=this.constructor,c=r==null?null:r.name;return"Closure '"+s.q2(c??"unknown")+"'"},$iaB:1,geF(){return this},$C:"$1",$R:1,$D:null},s.eL.prototype={$C:"$0",$R:0},s.eM.prototype={$C:"$2",$R:2},s.ft.prototype={},s.fq.prototype={k(n){var r=this.$static_name;return r==null?"Closure of unknown static method":"Closure '"+s.q2(r)+"'"}},s.cP.prototype={O(n,r){return r==null?!1:this===r?!0:r instanceof s.cP?this.$_target===r.$_target&&this.a===r.a:!1},gE(n){return(s.fZ(this.a)^s.d0(this.$_target))>>>0},k(n){return"Closure '"+s.b(this.$_name)+"' of "+("Instance of '"+s.b(s.ka(this.a))+"'")}},s.fp.prototype={k(n){return"RuntimeError: "+this.a}},s.mm.prototype={},s.aC.prototype={gj(n){return this.a},gA(n){return this.a===0},gN(){return new s.aO(this,s.A(this).h("aO<1>"))},gX(){var n=s.A(this);return s.jQ(new s.aO(this,n.h("aO<1>")),new s.iP(this),n.c,n.z[1])},v(n){var r,c;return typeof n=="string"?(r=this.b,r==null?!1:r[n]!=null):typeof n=="number"&&(n&1073741823)===n?(c=this.c,c==null?!1:c[n]!=null):this.cM(n)},cM(n){var r=this.d;return r==null?!1:this.bi(r[this.bh(n)],n)>=0},i(n,r){var c,u,f,m,v=null;return typeof r=="string"?(c=this.b,c==null?v:(u=c[r],f=u==null?v:u.b,f)):typeof r=="number"&&(r&1073741823)===r?(m=this.c,m==null?v:(u=m[r],f=u==null?v:u.b,f)):this.cN(r)},cN(n){var r,c,u=this.d;return u==null||(r=u[this.bh(n)],c=this.bi(r,n),c<0)?null:r[c].b},m(n,r,c){var u,f,m=this;typeof r=="string"?(u=m.b,m.ca(u??(m.b=m.bH()),r,c)):typeof r=="number"&&(r&1073741823)===r?(f=m.c,m.ca(f??(m.c=m.bH()),r,c)):m.cO(r,c)},cO(n,r){var c,u,f,m=this,v=m.d;v==null&&(v=m.d=m.bH()),c=m.bh(n),u=v[c],u==null?v[c]=[m.bI(n,r)]:(f=m.bi(u,n),f>=0?u[f].b=r:u.push(m.bI(n,r)))},c_(n,r){var c;return this.v(n)?this.i(0,n):(c=r.$0(),this.m(0,n,c),c)},M(n,r){for(var c=this,u=c.e,f=c.r;u!=null;){if(r.$2(u.a,u.b),f!==c.r)throw s.d(s.ag(c));u=u.c}},ca(n,r,c){var u=n[r];u==null?n[r]=this.bI(r,c):u.b=c},bI(n,r){var c=this,u=new s.jN(n,r);return c.e==null?c.e=c.f=u:c.f=c.f.c=u,++c.a,c.r=c.r+1&1073741823,u},bh(n){return V.bY(n)&1073741823},bi(n,r){var c,u;if(n==null)return-1;for(c=n.length,u=0;u<c;++u)if(V.af(n[u].a,r))return u;return-1},k(n){return s.nv(this)},bH(){var n=Object.create(null);return n["<non-identifier-key>"]=n,delete n["<non-identifier-key>"],n}},s.iP.prototype={$1(n){return this.a.i(0,n)},$S(){return s.A(this.a).h("2(1)")}},s.jN.prototype={},s.aO.prototype={gj(n){return this.a.a},gA(n){return this.a.a===0},gH(n){var r=this.a,c=new s.cx(r,r.r,this.$ti.h("cx<1>"));return c.c=r.e,c},G(n,r){return this.a.v(r)}},s.cx.prototype={gt(){return this.d},q(){var n,r=this,c=r.a;if(r.b!==c.r)throw s.d(s.ag(c));return n=r.c,n==null?(r.d=null,!1):(r.d=n.a,r.c=n.c,!0)},$iP:1},s.mX.prototype={$1(n){return this.a(n)},$S:30},s.mY.prototype={$2(n,r){return this.a(n,r)},$S:33},s.mZ.prototype={$1(n){return this.a(n)},$S:50},s.iK.prototype={k(n){return"RegExp/"+this.a+"/"+this.b.flags},aT(n){var r;return typeof n!="string"&&s.Z(s.cL(n)),r=this.b.exec(n),r==null?null:new s.mk(r)}},s.mk.prototype={},s.dF.prototype={dE(n,r,c,u){var f=s.Y(r,0,c,u,null);throw s.d(f)},ci(n,r,c,u){(r>>>0!==r||r>c)&&this.dE(n,r,c,u)}},s.d_.prototype={gj(n){return n.length},dS(n,r,c,u,f){var m,v,S=n.length;if(this.ci(n,r,S,"start"),this.ci(n,c,S,"end"),r>c)throw s.d(s.Y(r,0,c,null,null));if(m=c-r,f<0)throw s.d(s.K(f,null));if(v=u.length,v-f<m)throw s.d(s.d2("Not enough elements"));(f!==0||v!==m)&&(u=u.subarray(f,f+m)),n.set(u,r)},$iav:1},s.dE.prototype={i(n,r){return s.bo(r,n,n.length),n[r]},m(n,r,c){s.bo(r,n,n.length),n[r]=c},$iq:1,$ij:1,$io:1},s.aw.prototype={m(n,r,c){s.bo(r,n,n.length),n[r]=c},a5(n,r,c,u,f){if(N.eB.b(u)){this.dS(n,r,c,u,f);return}this.dc(n,r,c,u,f)},d5(n,r,c,u){return this.a5(n,r,c,u,0)},$iq:1,$ij:1,$io:1},s.f8.prototype={a1(n,r,c){return new Float32Array(n.subarray(r,s.bR(r,c,n.length)))}},s.f9.prototype={a1(n,r,c){return new Float64Array(n.subarray(r,s.bR(r,c,n.length)))}},s.fa.prototype={i(n,r){return s.bo(r,n,n.length),n[r]},a1(n,r,c){return new Int16Array(n.subarray(r,s.bR(r,c,n.length)))}},s.fb.prototype={i(n,r){return s.bo(r,n,n.length),n[r]},a1(n,r,c){return new Int32Array(n.subarray(r,s.bR(r,c,n.length)))}},s.fc.prototype={i(n,r){return s.bo(r,n,n.length),n[r]},a1(n,r,c){return new Int8Array(n.subarray(r,s.bR(r,c,n.length)))}},s.fd.prototype={i(n,r){return s.bo(r,n,n.length),n[r]},a1(n,r,c){return new Uint16Array(n.subarray(r,s.bR(r,c,n.length)))}},s.fe.prototype={i(n,r){return s.bo(r,n,n.length),n[r]},a1(n,r,c){return new Uint32Array(n.subarray(r,s.bR(r,c,n.length)))}},s.dG.prototype={gj(n){return n.length},i(n,r){return s.bo(r,n,n.length),n[r]},a1(n,r,c){return new Uint8ClampedArray(n.subarray(r,s.bR(r,c,n.length)))}},s.cy.prototype={gj(n){return n.length},i(n,r){return s.bo(r,n,n.length),n[r]},a1(n,r,c){return new Uint8Array(n.subarray(r,s.bR(r,c,n.length)))},$icy:1,$ia6:1},s.e7.prototype={},s.e8.prototype={},s.e9.prototype={},s.ea.prototype={},s.aF.prototype={h(n){return s.mt(re.typeUniverse,this,n)},I(n){return s.vG(re.typeUniverse,this,n)}},s.fK.prototype={},s.eh.prototype={k(n){return s.ar(this.a,null)},$ibk:1},s.fJ.prototype={k(n){return this.a}},s.ei.prototype={$iaG:1},s.lW.prototype={$1(n){var r=this.a,c=r.a;r.a=null,c.$0()},$S:15},s.lV.prototype={$1(n){var r,c;this.a.a=n,r=this.b,c=this.c,r.firstChild?r.removeChild(c):r.appendChild(c)},$S:122},s.lX.prototype={$0(){this.a.$0()},$S:2},s.lY.prototype={$0(){this.a.$0()},$S:2},s.mr.prototype={dg(n,r){if(t.setTimeout!=null)t.setTimeout(s.mO(new s.ms(this,r),0),n);else throw s.d(s.ad("`setTimeout()` not found."))}},s.ms.prototype={$0(){this.b.$0()},$S:1},s.fD.prototype={a3(n){var r,c=this;c.b?(r=c.a,c.$ti.h("a5<1>").b(n)?r.cf(n):r.bA(n)):c.a.ah(n)},bK(n,r){var c;r==null&&(r=s.eI(n)),c=this.a,this.b?c.aA(n,r):c.b5(n,r)}},s.mx.prototype={$1(n){return this.a.$2(0,n)},$S:34},s.my.prototype={$2(n,r){this.a.$2(1,new s.dr(n,r))},$S:42},s.mN.prototype={$2(n,r){this.a(n,r)},$S:48},s.d7.prototype={k(n){return"IterationMarker("+this.b+", "+s.b(this.a)+")"}},s.aH.prototype={gt(){var n=this.c;return n==null?this.b:n.gt()},q(){for(var n,r,c,u,f,m=this;;){if(n=m.c,n!=null){if(n.q())return!0;m.c=null}if(r=(function(v,S,B){for(var L,F=S;;)try{return v(F,L)}catch(z){L=z,F=B}})(m.a,0,1),r instanceof s.d7)if(c=r.b,c===2){if(u=m.d,u==null||u.length===0)return m.b=null,!1;m.a=u.pop();continue}else{if(n=r.a,c===3)throw n;if(f=V.aA(n),f instanceof s.aH){n=m.d,n==null&&(n=m.d=[]),n.push(m.a),m.a=f.a;continue}else{m.c=f;continue}}else return m.b=r,!0}return!1},$iP:1},s.eg.prototype={gH(n){return new s.aH(this.a(),this.$ti.h("aH<1>"))}},s.eH.prototype={k(n){return s.b(this.a)},$iH:1,gb2(){return this.b}},s.fG.prototype={bK(n,r){var c;if(s.bU(n,"error",N.K),c=this.a,(c.a&30)!==0)throw s.d(s.d2("Future already completed"));r==null&&(r=s.eI(n)),c.b5(n,r)},R(n){return this.bK(n,null)}},s.ay.prototype={a3(n){var r=this.a;if((r.a&30)!==0)throw s.d(s.d2("Future already completed"));r.ah(n)},bd(){return this.a3(null)}},s.bN.prototype={ec(n){return(this.c&15)!==6?!0:this.b.b.c2(this.d,n.a)},e7(n){var r=this.e,c=null,u=this.b.b;N.C.b(r)?c=u.el(r,n.a,n.b):c=u.c2(r,n.a);try{return u=c,u}catch(f){throw N.eK.b(s.M(f))?(this.c&1)!==0?s.d(s.K("The error handler of Future.then must return a value of the returned future's type","onError")):s.d(s.K("The error handler of Future.catchError must return a value of the future's type","onError")):f}}},s.C.prototype={au(n,r,c,u){var f,m,v=I.B;if(v===y.i){if(c!=null&&!N.C.b(c)&&!N.v.b(c))throw s.d(s.h7(c,"onError",Ae.c))}else c!=null&&(c=s.wA(c,v));return f=new s.C(v,u.h("C<0>")),m=c==null?1:3,this.b4(new s.bN(f,m,r,c,this.$ti.h("@<1>").I(u).h("bN<1,2>"))),f},d1(n,r,c){return this.au(n,r,null,c)},cz(n,r,c){var u=new s.C(I.B,c.h("C<0>"));return this.b4(new s.bN(u,3,n,r,this.$ti.h("@<1>").I(c).h("bN<1,2>"))),u},bp(n){var r=this.$ti,c=new s.C(I.B,r);return this.b4(new s.bN(c,8,n,null,r.h("@<1>").I(r.c).h("bN<1,2>"))),c},dQ(n){this.a=this.a&1|16,this.c=n},by(n){this.a=n.a&30|this.a&1,this.c=n.c},b4(n){var r=this,c=r.a;if(c<=3)n.a=r.c,r.c=n;else{if((c&4)!==0){if(c=r.c,(c.a&24)===0){c.b4(n);return}r.by(c)}s.cI(null,null,r.b,new s.m3(r,n))}},cs(n){var r,c,u,f,m,v=this,S={};if(S.a=n,n!=null)if(r=v.a,r<=3){if(c=v.c,v.c=n,c!=null){for(u=n.a,f=n;u!=null;f=u,u=m)m=u.a;f.a=c}}else{if((r&4)!==0){if(r=v.c,(r.a&24)===0){r.cs(n);return}v.by(r)}S.a=v.bc(n),s.cI(null,null,v.b,new s.ma(S,v))}},bb(){var n=this.c;return this.c=null,this.bc(n)},bc(n){var r,c,u;for(r=n,c=null;r!=null;c=r,r=u)u=r.a,r.a=c;return c},ce(n){var r,c,u=this;u.a^=2;try{n.au(0,new s.m6(u),new s.m7(u),N.P)}catch(f){r=s.M(f),c=s.aS(f),s.q_(new s.m8(u,r,c))}},bA(n){var r=this,c=r.bb();r.a=8,r.c=n,s.d6(r,c)},aA(n,r){var c=this.bb();this.dQ(s.h9(n,r)),s.d6(this,c)},ah(n){if(this.$ti.h("a5<1>").b(n)){this.cf(n);return}this.dk(n)},dk(n){this.a^=2,s.cI(null,null,this.b,new s.m5(this,n))},cf(n){var r=this;if(r.$ti.b(n)){(n.a&16)!==0?(r.a^=2,s.cI(null,null,r.b,new s.m9(r,n))):s.nz(n,r);return}r.ce(n)},b5(n,r){this.a^=2,s.cI(null,null,this.b,new s.m4(this,n,r))},$ia5:1},s.m3.prototype={$0(){s.d6(this.a,this.b)},$S:1},s.ma.prototype={$0(){s.d6(this.b,this.a.a)},$S:1},s.m6.prototype={$1(n){var r,c,u=this.a;u.a^=2;try{u.bA(u.$ti.c.a(n))}catch(f){r=s.M(f),c=s.aS(f),u.aA(r,c)}},$S:15},s.m7.prototype={$2(n,r){this.a.aA(n,r)},$S:52},s.m8.prototype={$0(){this.a.aA(this.b,this.c)},$S:1},s.m5.prototype={$0(){this.a.bA(this.b)},$S:1},s.m9.prototype={$0(){s.nz(this.b,this.a)},$S:1},s.m4.prototype={$0(){this.a.aA(this.b,this.c)},$S:1},s.md.prototype={$0(){var n,r,c,u,f,m=this,v=null;try{c=m.a.a,v=c.b.b.cZ(c.d)}catch(S){n=s.M(S),r=s.aS(S),m.c?(c=m.b.a.c.a,u=n,u=c==null?u==null:c===u,c=u):c=!1,u=m.a,c?u.c=m.b.a.c:u.c=s.h9(n,r),u.b=!0;return}if(v instanceof s.C&&(v.a&24)!==0){(v.a&16)!==0&&(c=m.a,c.c=v.c,c.b=!0);return}N.d.b(v)&&(f=m.b.a,c=m.a,c.c=V.tH(v,new s.me(f),N.z),c.b=!1)},$S:1},s.me.prototype={$1(n){return this.a},$S:53},s.mc.prototype={$0(){var n,r,c,u;try{c=this.a,u=c.a,c.c=u.b.b.c2(u.d,this.b)}catch(f){n=s.M(f),r=s.aS(f),c=this.a,c.c=s.h9(n,r),c.b=!0}},$S:1},s.mb.prototype={$0(){var n,r,c,u,f,m,v,S=this;try{n=S.a.a.c,u=S.b,u.a.ec(n)&&u.a.e!=null&&(u.c=u.a.e7(n),u.b=!1)}catch(B){r=s.M(B),c=s.aS(B),u=S.a.a.c,f=u.a,m=r,v=S.b,(f==null?m==null:f===m)?v.c=u:v.c=s.h9(r,c),v.b=!0}},$S:1},s.fE.prototype={},s.bi.prototype={gj(n){var r={},c=new s.C(I.B,N.fJ);return r.a=0,this.bU(new s.lp(r,this),!0,new s.lq(r,c),c.gdq()),c}},s.ln.prototype={$1(n){var r=this.a;r.aJ(n),r.aK()},$S(){return this.b.h("l(0)")}},s.lo.prototype={$2(n,r){var c=this.a;c.b3(n,r),c.aK()},$S:55},s.lp.prototype={$1(n){++this.a.a},$S(){return this.b.$ti.h("~(1)")}},s.lq.prototype={$0(){var n=this.b,r=this.a.a,c=n.bb();n.a=8,n.c=r,s.d6(n,c)},$S:1},s.fr.prototype={},s.da.prototype={gdL(){return(this.b&8)===0?this.a:this.a.gc5()},b6(){var n,r=this;return(r.b&8)===0?(n=r.a,n??(r.a=new s.eb)):(n=r.a.gc5(),n)},gaD(){var n=this.a;return(this.b&8)!==0?n.gc5():n},bv(){return(this.b&4)!==0?new s.bJ("Cannot add event after closing"):new s.bJ("Cannot add event while adding a stream")},ck(){var n=this.c;return n==null&&(n=this.c=(this.b&2)!==0?I.h0():new s.C(I.B,N.D)),n},C(n,r){if(this.b>=4)throw s.d(this.bv());this.aJ(r)},a7(){var n=this,r=n.b;if((r&4)!==0)return n.ck();if(r>=4)throw s.d(n.bv());return n.aK(),n.ck()},aK(){var n=this.b|=4;(n&1)!==0?this.aO():(n&3)===0&&this.b6().C(0,y.M)},aJ(n){var r=this.b;(r&1)!==0?this.aC(n):(r&3)===0&&this.b6().C(0,new s.cG(n))},b3(n,r){var c=this.b;(c&1)!==0?this.aP(n,r):(c&3)===0&&this.b6().C(0,new s.dY(n,r))},dV(n,r,c,u){var f,m,v,S,B,L,F=this;if((F.b&3)!==0)throw s.d(s.d2("Stream has already been listened to."));return f=I.B,m=u?1:0,v=s.vn(f,r),S=new s.dX(F,n,v,c,f,m),B=F.gdL(),f=F.b|=1,(f&8)!==0?(L=F.a,L.sc5(S),L.ar()):F.a=S,S.dR(B),S.bF(new s.mq(F)),S},dN(n){var r,c,u,f,m,v,S=this,B=null;if((S.b&8)!==0&&(B=S.a.K()),S.a=null,S.b=S.b&4294967286|2,r=S.r,r!=null)if(B==null)try{c=r.$0(),N.bq.b(c)&&(B=c)}catch(L){u=s.M(L),f=s.aS(L),m=new s.C(I.B,N.D),m.b5(u,f),B=m}else B=B.bp(r);return v=new s.mp(S),B!=null?B=B.bp(v):v.$0(),B}},s.mq.prototype={$0(){s.nM(this.a.d)},$S:1},s.mp.prototype={$0(){var n=this.a.c;n!=null&&(n.a&30)===0&&n.ah(null)},$S:1},s.fS.prototype={aC(n){this.gaD().aJ(n)},aP(n,r){this.gaD().b3(n,r)},aO(){this.gaD().dn()}},s.fF.prototype={aC(n){this.gaD().az(new s.cG(n))},aP(n,r){this.gaD().az(new s.dY(n,r))},aO(){this.gaD().az(y.M)}},s.aZ.prototype={},s.db.prototype={},s.aj.prototype={gE(n){return(s.d0(this.a)^892482866)>>>0},O(n,r){return r==null?!1:this===r?!0:r instanceof s.aj&&r.a===this.a}},s.dX.prototype={cp(){return this.w.dN(this)},b9(){var n=this.w;(n.b&8)!==0&&n.a.aZ(),s.nM(n.e)},ba(){var n=this.w;(n.b&8)!==0&&n.a.ar(),s.nM(n.f)}},s.dT.prototype={dR(n){var r=this;n!=null&&(r.r=n,n.c!=null&&(r.e=(r.e|64)>>>0,n.b1(r)))},cW(n){var r,c,u=this,f=u.e;(f&8)===0&&(r=(f+128|4)>>>0,u.e=r,f<128&&(c=u.r,c!=null&&c.a===1&&(c.a=3)),(f&4)===0&&(r&32)===0&&u.bF(u.gcq()))},aZ(){return this.cW(null)},ar(){var n=this,r=n.e;(r&8)===0&&r>=128&&(r=n.e=r-128,r<128&&((r&64)!==0&&n.r.c!=null?n.r.b1(n):(r=(r&4294967291)>>>0,n.e=r,(r&32)===0&&n.bF(n.gcr()))))},K(){var n=this,r=(n.e&4294967279)>>>0;return n.e=r,(r&8)===0&&n.bw(),r=n.f,r??I.h0()},bw(){var n,r=this,c=r.e=(r.e|8)>>>0;(c&64)!==0&&(n=r.r,n.a===1&&(n.a=3)),(c&32)===0&&(r.r=null),r.f=r.cp()},aJ(n){var r=this.e;(r&8)===0&&(r<32?this.aC(n):this.az(new s.cG(n)))},b3(n,r){var c=this.e;(c&8)===0&&(c<32?this.aP(n,r):this.az(new s.dY(n,r)))},dn(){var n=this,r=n.e;(r&8)===0&&(r=(r|2)>>>0,n.e=r,r<32?n.aO():n.az(y.M))},b9(){},ba(){},cp(){return null},az(n){var r,c=this,u=c.r;u==null&&(u=c.r=new s.eb),u.C(0,n),r=c.e,(r&64)===0&&(r=(r|64)>>>0,c.e=r,r<128&&u.b1(c))},aC(n){var r=this,c=r.e;r.e=(c|32)>>>0,r.d.d0(r.a,n),r.e=(r.e&4294967263)>>>0,r.bx((c&4)!==0)},aP(n,r){var c,u=this,f=u.e,m=new s.m0(u,n,r);(f&1)!==0?(u.e=(f|16)>>>0,u.bw(),c=u.f,c!=null&&c!==I.h0()?c.bp(m):m.$0()):(m.$0(),u.bx((f&4)!==0))},aO(){var n,r=this,c=new s.m_(r);r.bw(),r.e=(r.e|16)>>>0,n=r.f,n!=null&&n!==I.h0()?n.bp(c):c.$0()},bF(n){var r=this,c=r.e;r.e=(c|32)>>>0,n.$0(),r.e=(r.e&4294967263)>>>0,r.bx((c&4)!==0)},bx(n){var r,c,u=this,f=u.e;for((f&64)!==0&&u.r.c==null&&(f=u.e=(f&4294967231)>>>0,(f&4)!==0&&f<128?(r=u.r,r=r==null?null:r.c==null,r=r!==!1):r=!1,r&&(f=(f&4294967291)>>>0,u.e=f));;n=c){if((f&8)!==0){u.r=null;return}if(c=(f&4)!==0,n===c)break;u.e=(f^32)>>>0,c?u.b9():u.ba(),f=(u.e&4294967263)>>>0,u.e=f}(f&64)!==0&&f<128&&u.r.b1(u)}},s.m0.prototype={$0(){var n,r,c=this.a,u=c.e;(u&8)!==0&&(u&16)===0||(c.e=(u|32)>>>0,n=c.b,u=this.b,r=c.d,N.k.b(n)?r.eo(n,u,this.c):r.d0(n,u),c.e=(c.e&4294967263)>>>0)},$S:1},s.m_.prototype={$0(){var n=this.a,r=n.e;(r&16)!==0&&(n.e=(r|42)>>>0,n.d.d_(n.c),n.e=(n.e&4294967263)>>>0)},$S:1},s.ee.prototype={bU(n,r,c,u){return this.a.dV(n,u,c,r===!0)},bT(n,r,c){return this.bU(n,null,r,c)},ea(n,r){return this.bU(n,null,r,null)}},s.fI.prototype={gaG(){return this.a},saG(n){return this.a=n}},s.cG.prototype={bY(n){n.aC(this.b)}},s.dY.prototype={bY(n){n.aP(this.b,this.c)}},s.m1.prototype={bY(n){n.aO()},gaG(){return null},saG(n){throw s.d(s.d2("No events after a done."))}},s.eb.prototype={b1(n){var r=this,c=r.a;if(c!==1){if(c>=1){r.a=1;return}s.q_(new s.ml(r,n)),r.a=1}},C(n,r){var c=this,u=c.c;u==null?c.b=c.c=r:(u.saG(r),c.c=r)}},s.ml.prototype={$0(){var n,r,c=this.a,u=c.a;c.a=0,u!==3&&(n=c.b,r=n.gaG(),c.b=r,r==null&&(c.c=null),n.bY(this.b))},$S:1},s.fQ.prototype={},s.mw.prototype={},s.mK.prototype={$0(){s.u8(this.a,this.b),s.bg(Ae.g)},$S:1},s.mn.prototype={d_(n){var r,c;try{if(y.i===I.B){n.$0();return}s.pC(null,null,this,n)}catch(u){r=s.M(u),c=s.aS(u),s.dh(r,c)}},eq(n,r){var c,u;try{if(y.i===I.B){n.$1(r);return}s.pE(null,null,this,n,r)}catch(f){c=s.M(f),u=s.aS(f),s.dh(c,u)}},d0(n,r){return this.eq(n,r,N.z)},en(n,r,c){var u,f;try{if(y.i===I.B){n.$2(r,c);return}s.pD(null,null,this,n,r,c)}catch(m){u=s.M(m),f=s.aS(m),s.dh(u,f)}},eo(n,r,c){return this.en(n,r,c,N.z,N.z)},cB(n){return new s.mo(this,n)},ek(n){return I.B===y.i?n.$0():s.pC(null,null,this,n)},cZ(n){return this.ek(n,N.z)},ep(n,r){return I.B===y.i?n.$1(r):s.pE(null,null,this,n,r)},c2(n,r){return this.ep(n,r,N.z,N.z)},em(n,r,c){return I.B===y.i?n.$2(r,c):s.pD(null,null,this,n,r,c)},el(n,r,c){return this.em(n,r,c,N.z,N.z,N.z)},eh(n){return n},c1(n){return this.eh(n,N.z,N.z,N.z)}},s.mo.prototype={$0(){return this.a.d_(this.b)},$S:1},s.e1.prototype={gj(n){return this.a},gA(n){return this.a===0},gN(){return new s.e2(this,this.$ti.h("e2<1>"))},v(n){var r,c;return typeof n=="string"&&n!=="__proto__"?(r=this.b,r==null?!1:r[n]!=null):typeof n=="number"&&(n&1073741823)===n?(c=this.c,c==null?!1:c[n]!=null):this.dt(n)},dt(n){var r=this.d;return r==null?!1:this.an(this.cl(r,n),n)>=0},i(n,r){var c,u,f;return typeof r=="string"&&r!=="__proto__"?(c=this.b,u=c==null?null:s.pe(c,r),u):typeof r=="number"&&(r&1073741823)===r?(f=this.c,u=f==null?null:s.pe(f,r),u):this.dw(r)},dw(n){var r,c,u=this.d;return u==null?null:(r=this.cl(u,n),c=this.an(r,n),c<0?null:r[c+1])},m(n,r,c){var u,f,m,v,S,B=this;typeof r=="string"&&r!=="__proto__"?(u=B.b,B.dj(u??(B.b=s.pf()),r,c)):(f=B.d,f==null&&(f=B.d=s.pf()),m=s.fZ(r)&1073741823,v=f[m],v==null?(s.nA(f,m,[r,c]),++B.a,B.e=null):(S=B.an(v,r),S>=0?v[S+1]=c:(v.push(r,c),++B.a,B.e=null)))},M(n,r){var c,u,f,m=this,v=m.cj();for(c=v.length,u=0;u<c;++u)if(f=v[u],r.$2(f,m.i(0,f)),v!==m.e)throw s.d(s.ag(m))},cj(){var n,r,c,u,f,m,v,S,B,L,F=this,z=F.e;if(z!=null)return z;if(z=s.U(F.a,null,!1,N.z),n=F.b,n!=null)for(r=Object.getOwnPropertyNames(n),c=r.length,u=0,f=0;f<c;++f)z[u]=r[f],++u;else u=0;if(m=F.c,m!=null)for(r=Object.getOwnPropertyNames(m),c=r.length,f=0;f<c;++f)z[u]=+r[f],++u;if(v=F.d,v!=null)for(r=Object.getOwnPropertyNames(v),c=r.length,f=0;f<c;++f)for(S=v[r[f]],B=S.length,L=0;L<B;L+=2)z[u]=S[L],++u;return F.e=z},dj(n,r,c){n[r]==null&&(++this.a,this.e=null),s.nA(n,r,c)},cl(n,r){return n[s.fZ(r)&1073741823]}},s.e4.prototype={an(n,r){var c,u,f;if(n==null)return-1;for(c=n.length,u=0;u<c;u+=2)if(f=n[u],f==null?r==null:f===r)return u;return-1}},s.e2.prototype={gj(n){return this.a.a},gA(n){return this.a.a===0},gH(n){var r=this.a;return new s.e3(r,r.cj(),this.$ti.h("e3<1>"))},G(n,r){return this.a.v(r)}},s.e3.prototype={gt(){return this.d},q(){var n=this,r=n.b,c=n.c,u=n.a;if(r!==u.e)throw s.d(s.ag(u));return c>=r.length?(n.d=null,!1):(n.d=r[c],n.c=c+1,!0)},$iP:1},s.e5.prototype={i(n,r){return this.y.$1(r)?this.d8(r):null},m(n,r,c){this.d9(r,c)},v(n){return this.y.$1(n)?this.d7(n):!1},bh(n){return this.x.$1(n)&1073741823},bi(n,r){var c,u,f;if(n==null)return-1;for(c=n.length,u=this.w,f=0;f<c;++f)if(u.$2(n[f].a,r))return f;return-1}},s.mi.prototype={$1(n){return this.a.b(n)},$S:63},s.b_.prototype={gH(n){var r=this,c=new s.cH(r,r.r,s.A(r).h("cH<1>"));return c.c=r.e,c},gj(n){return this.a},gA(n){return this.a===0},ga8(n){return this.a!==0},G(n,r){var c,u;return typeof r=="string"&&r!=="__proto__"?(c=this.b,c==null?!1:c[r]!=null):typeof r=="number"&&(r&1073741823)===r?(u=this.c,u==null?!1:u[r]!=null):this.ds(r)},ds(n){var r=this.d;return r==null?!1:this.an(r[this.bB(n)],n)>=0},C(n,r){var c,u,f=this;return typeof r=="string"&&r!=="__proto__"?(c=f.b,f.cc(c??(f.b=s.nC()),r)):typeof r=="number"&&(r&1073741823)===r?(u=f.c,f.cc(u??(f.c=s.nC()),r)):f.dh(r)},dh(n){var r,c,u=this,f=u.d;if(f==null&&(f=u.d=s.nC()),r=u.bB(n),c=f[r],c==null)f[r]=[u.bz(n)];else{if(u.an(c,n)>=0)return!1;c.push(u.bz(n))}return!0},ei(n,r){var c=this;return typeof r=="string"&&r!=="__proto__"?c.ct(c.b,r):typeof r=="number"&&(r&1073741823)===r?c.ct(c.c,r):c.dO(r)},dO(n){var r,c,u,f,m=this,v=m.d;return v==null||(r=m.bB(n),c=v[r],u=m.an(c,n),u<0)?!1:(f=c.splice(u,1)[0],c.length===0&&delete v[r],m.cA(f),!0)},dv(n,r){for(var c,u,f,m,v=this,S=v.e;S!=null;S=u){if(c=S.a,u=S.b,f=v.r,m=n.$1(c),f!==v.r)throw s.d(s.ag(v));m===!1&&v.ei(0,c)}},P(n){var r=this;r.a>0&&(r.b=r.c=r.d=r.e=r.f=null,r.a=0,r.bG())},cc(n,r){return n[r]!=null?!1:(n[r]=this.bz(r),!0)},ct(n,r){var c;return n==null||(c=n[r],c==null)?!1:(this.cA(c),delete n[r],!0)},bG(){this.r=this.r+1&1073741823},bz(n){var r,c=this,u=new s.mj(n);return c.e==null?c.e=c.f=u:(r=c.f,r.toString,u.c=r,c.f=r.b=u),++c.a,c.bG(),u},cA(n){var r=this,c=n.c,u=n.b;c==null?r.e=u:c.b=u,u==null?r.f=c:u.c=c,--r.a,r.bG()},bB(n){return V.bY(n)&1073741823},an(n,r){var c,u;if(n==null)return-1;for(c=n.length,u=0;u<c;++u)if(V.af(n[u].a,r))return u;return-1}},s.mj.prototype={},s.cH.prototype={gt(){return this.d},q(){var n=this,r=n.c,c=n.a;if(n.b!==c.r)throw s.d(s.ag(c));return r==null?(n.d=null,!1):(n.d=r.a,n.c=r.b,!0)},$iP:1},s.aX.prototype={aj(n,r){return new s.aX(V.nn(this.a,r),r.h("aX<0>"))},gj(n){return V.a3(this.a)},i(n,r){return V.eD(this.a,r)}},s.dw.prototype={},s.dA.prototype={$iq:1,$ij:1,$io:1},s.p.prototype={gH(n){return new s.aa(n,this.gj(n),s.ak(n).h("aa<p.E>"))},V(n,r){return this.i(n,r)},gA(n){return this.gj(n)===0},ga8(n){return!this.gA(n)},gcH(n){if(this.gj(n)===0)throw s.d(s.nq());return this.i(n,0)},G(n,r){var c,u=this.gj(n);for(c=0;c<u;++c){if(V.af(this.i(n,c),r))return!0;if(u!==this.gj(n))throw s.d(s.ag(n))}return!1},be(n,r){var c,u=this.gj(n);for(c=0;c<u;++c){if(!r.$1(this.i(n,c)))return!1;if(u!==this.gj(n))throw s.d(s.ag(n))}return!0},aR(n,r){var c,u=this.gj(n);for(c=0;c<u;++c){if(r.$1(this.i(n,c)))return!0;if(u!==this.gj(n))throw s.d(s.ag(n))}return!1},al(n,r,c){return new s.ab(n,r,s.ak(n).h("@<p.E>").I(c).h("ab<1,2>"))},a6(n,r){return s.dQ(n,r,null,s.ak(n).h("p.E"))},b_(n,r){var c,u,f,m,v=this;if(v.gA(n))return c=V.b8(0,s.ak(n).h("p.E")),c;for(u=v.i(n,0),f=s.U(v.gj(n),u,!1,s.ak(n).h("p.E")),m=1;m<v.gj(n);++m)f[m]=v.i(n,m);return f},c3(n){var r,c=s.oH(s.ak(n).h("p.E"));for(r=0;r<this.gj(n);++r)c.C(0,this.i(n,r));return c},C(n,r){var c=this.gj(n);this.sj(n,c+1),this.m(n,c,r)},aj(n,r){return new s.b5(n,s.ak(n).h("@<p.E>").I(r).h("b5<1,2>"))},a1(n,r,c){var u=this.gj(n);return s.aQ(r,c,u),s.uK(this.b0(n,r,c),s.ak(n).h("p.E"))},b0(n,r,c){return s.aQ(r,c,this.gj(n)),s.dQ(n,r,c,s.ak(n).h("p.E"))},e5(n,r,c,u){var f;for(s.aQ(r,c,this.gj(n)),f=r;f<c;++f)this.m(n,f,u)},a5(n,r,c,u,f){var m,v,S,B,L;if(s.aQ(r,c,this.gj(n)),m=c-r,m!==0){if(s.aW(f,"skipCount"),s.ak(n).h("o<p.E>").b(u)?(v=f,S=u):(S=V.op(u,f).b_(0,!1),v=0),B=V.V(S),v+m>B.gj(S))throw s.d(s.ui());if(v<r)for(L=m-1;L>=0;--L)this.m(n,r+L,B.i(S,v+L));else for(L=0;L<m;++L)this.m(n,r+L,B.i(S,v+L))}},bR(n,r){var c;for(c=0;c<this.gj(n);++c)if(V.af(this.i(n,c),r))return c;return-1},k(n){return s.iI(n,"[","]")}},s.dB.prototype={},s.jO.prototype={$2(n,r){var c,u=this.a;u.a||(this.b.a+=", "),u.a=!1,u=this.b,c=u.a+=s.b(n),u.a=c+": ",u.a+=s.b(r)},$S:64},s.I.prototype={ak(n,r,c){var u=s.A(this);return s.oK(this,u.h("I.K"),u.h("I.V"),r,c)},M(n,r){var c,u;for(c=this.gN(),c=c.gH(c);c.q();)u=c.gt(),r.$2(u,this.i(0,u))},ge4(){return this.gN().al(0,new s.jP(this),s.A(this).h("cY<I.K,I.V>"))},v(n){return this.gN().G(0,n)},gj(n){var r=this.gN();return r.gj(r)},gA(n){var r=this.gN();return r.gA(r)},k(n){return s.nv(this)},$ih:1},s.jP.prototype={$1(n){var r=this.a,c=s.A(r);return new s.cY(n,r.i(0,n),c.h("@<I.K>").I(c.h("I.V")).h("cY<1,2>"))},$S(){return s.A(this.a).h("cY<I.K,I.V>(I.K)")}},s.fU.prototype={m(n,r,c){throw s.d(s.ad("Cannot modify unmodifiable map"))}},s.dC.prototype={ak(n,r,c){return this.a.ak(0,r,c)},i(n,r){return this.a.i(0,r)},m(n,r,c){this.a.m(0,r,c)},v(n){return this.a.v(n)},M(n,r){this.a.M(0,r)},gA(n){var r=this.a;return r.gA(r)},gj(n){var r=this.a;return r.gj(r)},gN(){return this.a.gN()},k(n){return this.a.k(0)},$ih:1},s.bm.prototype={ak(n,r,c){return new s.bm(this.a.ak(0,r,c),r.h("@<0>").I(c).h("bm<1,2>"))}},s.dM.prototype={gA(n){return this.a===0},ga8(n){return this.a!==0},D(n,r){var c;for(c=V.aA(r);c.q();)this.C(0,c.gt())},al(n,r,c){return new s.c9(this,r,s.A(this).h("@<1>").I(c).h("c9<1,2>"))},k(n){return s.iI(this,"{","}")},be(n,r){var c;for(c=s.nB(this,this.r,s.A(this).c);c.q();)if(!r.$1(c.d))return!1;return!0},a6(n,r){return s.p0(this,r,s.A(this).c)},bf(n,r,c){var u,f;for(u=s.nB(this,this.r,s.A(this).c);u.q();)if(f=u.d,r.$1(f))return f;return c.$0()},V(n,r){var c,u,f,m=this,v="index";for(s.bU(r,v,N.S),s.aW(r,v),c=s.nB(m,m.r,s.A(m).c),u=0;c.q();){if(f=c.d,r===u)return f;++u}throw s.d(s.eW(r,u,m,null,v))}},s.ec.prototype={$iq:1,$ij:1,$id1:1},s.e6.prototype={},s.em.prototype={},s.eq.prototype={},s.fM.prototype={i(n,r){var c,u=this.b;return u==null?this.c.i(0,r):typeof r!="string"?null:(c=u[r],typeof c>"u"?this.dM(r):c)},gj(n){return this.b==null?this.c.a:this.aL().length},gA(n){return this.gj(this)===0},gN(){if(this.b==null){var n=this.c;return new s.aO(n,s.A(n).h("aO<1>"))}return new s.fN(this)},m(n,r,c){var u,f,m=this;m.b==null?m.c.m(0,r,c):m.v(r)?(u=m.b,u[r]=c,f=m.a,(f==null?u!=null:f!==u)&&(f[r]=null)):m.dW().m(0,r,c)},v(n){return this.b==null?this.c.v(n):typeof n!="string"?!1:Object.prototype.hasOwnProperty.call(this.a,n)},M(n,r){var c,u,f,m,v=this;if(v.b==null)return v.c.M(0,r);for(c=v.aL(),u=0;u<c.length;++u)if(f=c[u],m=v.b[f],typeof m>"u"&&(m=s.mA(v.a[f]),v.b[f]=m),r.$2(f,m),c!==v.c)throw s.d(s.ag(v))},aL(){var n=this.c;return n==null&&(n=this.c=s.a(Object.keys(this.a),N.s)),n},dW(){var n,r,c,u,f,m=this;if(m.b==null)return m.c;for(n=s.a9(N.R,N.z),r=m.aL(),c=0;u=r.length,c<u;++c)f=r[c],n.m(0,f,m.i(0,f));return u===0?r.push(""):y.d.P(r),m.a=m.b=null,m.c=n},dM(n){var r;return Object.prototype.hasOwnProperty.call(this.a,n)?(r=s.mA(this.a[n]),this.b[n]=r):null}},s.fN.prototype={gj(n){var r=this.a;return r.gj(r)},V(n,r){var c=this.a;return c.b==null?c.gN().V(0,r):c.aL()[r]},gH(n){var r=this.a;return r.b==null?(r=r.gN(),r=r.gH(r)):(r=r.aL(),r=new V.b4(r,r.length,s.a_(r).h("b4<1>"))),r},G(n,r){return this.a.v(r)}},s.mh.prototype={a7(){var n,r,c,u=this;u.de(),n=u.a,r=n.a,n.a="",n=u.c,c=n.b,c.push(s.pB((r.charCodeAt(0)==0,r),u.b)),n.a.$1(c)}},s.lD.prototype={$0(){var n;try{return n=new TextDecoder("utf-8",{fatal:!0}),n}catch{}return null},$S:7},s.lC.prototype={$0(){var n;try{return n=new TextDecoder("utf-8",{fatal:!1}),n}catch{}return null},$S:7},s.ha.prototype={ee(n,r,c){var u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j="Invalid base64 encoding length ";for(c=s.aQ(r,c,n.length),u=I.ok(),f=r,m=f,v=null,S=-1,B=-1,L=0;f<c;f=F){if(F=f+1,z=y.a.J(n,f),z===37?(O=F+2,O<=c?(W=s.pW(n,F),W===37&&(W=-1),F=O):W=-1):W=z,0<=W&&W<=127){if(Y=u[W],Y>=0){if(W=y.a.B("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y),W===z)continue;z=W}else{if(Y===-1&&(S<0&&(te=v==null?null:v.a.length,te==null&&(te=0),S=te+(f-m),B=f),++L,z===61))continue;z=W}if(Y!==-2){v==null&&(v=new s.ac("")),te=v,K=te.a+=y.a.u(n,m,f),te.a=K+s.be(z),m=F;continue}}throw s.d(s.R("Invalid base64 data",n,f))}if(v!=null){if(te=v.a+=y.a.u(n,m,c),K=te.length,S>=0)s.os(n,B,c,S,L,K);else{if(ie=y.c.br(K-1,4)+1,ie===1)throw s.d(s.R(j,n,c));for(;ie<4;)te+="=",v.a=te,++ie}return te=v.a,y.a.aH(n,r,c,(te.charCodeAt(0)==0,te))}if(de=c-r,S>=0)s.os(n,B,c,S,L,de);else{if(ie=y.c.br(de,4),ie===1)throw s.d(s.R(j,n,c));ie>1&&(n=y.a.aH(n,c,c,ie===2?"==":"="))}return n}},s.hc.prototype={},s.hb.prototype={e0(n,r){var c,u,f,m=s.aQ(r,null,n.length);return r===m?new Uint8Array(0):(c=new s.lZ,u=c.e2(n,r,m),u.toString,f=c.a,f<-1&&s.Z(s.R("Missing padding character",n,m)),f>0&&s.Z(s.R("Invalid length, must be multiple of four",n,m)),c.a=-1,u)}},s.lZ.prototype={e2(n,r,c){var u,f=this,m=f.a;return m<0?(f.a=s.pc(n,r,c,m),null):r===c?new Uint8Array(0):(u=s.vk(n,r,c,m),f.a=s.vm(n,r,c,u,0,f.a),u)}},s.hd.prototype={},s.eJ.prototype={},s.fO.prototype={},s.eN.prototype={},s.eP.prototype={},s.hW.prototype={},s.iQ.prototype={e1(n){var r=s.pB(n,this.gcF().a);return r},gcF(){return y.c4}},s.iR.prototype={},s.lr.prototype={},s.ls.prototype={},s.ef.prototype={a7(){}},s.mu.prototype={a7(){this.a.e6(this.c),this.b.a7()},dX(n,r,c,u){this.c.a+=this.a.cE(n,r,c,!1)}},s.lA.prototype={},s.lB.prototype={e_(n){var r=this.a,c=s.ve(r,n,0,null);return c??new s.fV(r).cE(n,0,null,!0)}},s.fV.prototype={cE(n,r,c,u){var f,m,v,S,B,L=this,F=s.aQ(r,c,V.a3(n));if(r===F)return"";if(N.gc.b(n)?(f=n,m=0):(f=s.vZ(n,r,F),F-=r,m=r,r=0),v=L.bC(f,r,F,u),S=L.b,(S&1)!==0)throw B=s.ps(S),L.b=0,s.d(s.R(B,n,m+L.c));return v},bC(n,r,c,u){var f,m,v=this;return c-r>1e3?(f=y.c.bJ(r+c,2),m=v.bC(n,r,f,!1),(v.b&1)!==0?m:m+v.bC(n,f,c,u)):v.e3(n,r,c,u)},e6(n){var r=this.b;if(this.b=0,!(r<=32))if(this.a)n.a+=s.be(65533);else throw s.d(s.R(s.ps(77),null,null))},e3(n,r,c,u){var f,m,v,S,B,L,F,z=this,O=65533,W=z.b,Y=z.c,te=new s.ac(""),K=r+1,ie=n[r];e:for(f=z.a;;){for(;;K=S){if(m=y.a.J("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHIHHHJEEBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBKCCCCCCCCCCCCDCLONNNMEEEEEEEEEEE",ie)&31,Y=W<=32?ie&61694>>>m:(ie&63|Y<<6)>>>0,W=y.a.J(" \x000:XECCCCCN:lDb \x000:XECCCCCNvlDb \x000:XECCCCCN:lDb AAAAA\0\0\0\0\0AAAAA00000AAAAA:::::AAAAAGG000AAAAA00KKKAAAAAG::::AAAAA:IIIIAAAAA0000AAAAA\0\0\0\0 AAAAA",W+m),W===0){if(te.a+=s.be(Y),K===c)break e;break}else if((W&1)!==0){if(f)switch(W){case 69:case 67:te.a+=s.be(O);break;case 65:te.a+=s.be(O),--K;break;default:v=te.a+=s.be(O),te.a=v+s.be(O);break}else return z.b=W,z.c=K-1,"";W=0}if(K===c)break e;S=K+1,ie=n[K]}if(S=K+1,ie=n[K],ie<128){for(;;){if(!(S<c)){B=c;break}if(L=S+1,ie=n[S],ie>=128){B=L-1,S=L;break}S=L}if(B-K<20)for(F=K;F<B;++F)te.a+=s.be(n[F]);else te.a+=s.p2(n,K,B);if(B===c)break e;K=S}else K=S}if(u&&W>32)if(f)te.a+=s.be(O);else return z.b=77,z.c=c,"";return z.b=W,z.c=Y,f=te.a,f.charCodeAt(0)==0,f}},s.k2.prototype={$2(n,r){var c=this.b,u=this.a,f=c.a+=u.a;f+=s.b(n.a),c.a=f,c.a=f+": ",c.a+=s.cS(r),u.a=", "},$S:75},s.dp.prototype={O(n,r){return r==null?!1:r instanceof s.dp&&this.a===r.a&&this.b===r.b},gE(n){var r=this.a;return(r^y.c.ai(r,30))&1073741823},ew(){var n,r;return this.b?this:(n=this.a,Math.abs(n)<=864e13?r=!1:r=!0,r&&s.Z(s.K("DateTime is outside valid range: "+n,null)),s.bU(!0,"isUtc",N.y),new s.dp(n,!0))},k(n){var r=this,c=s.oy(s.fk(r)),u=s.b6(s.oW(r)),f=s.b6(s.oS(r)),m=s.b6(s.oT(r)),v=s.b6(s.oV(r)),S=s.b6(s.oX(r)),B=s.oz(s.oU(r)),L=c+"-"+u;return r.b?L+"-"+f+" "+m+":"+v+":"+S+"."+B+"Z":L+"-"+f+" "+m+":"+v+":"+S+"."+B},ev(){var n=this,r=s.fk(n)>=-9999&&s.fk(n)<=9999?s.oy(s.fk(n)):s.u5(s.fk(n)),c=s.b6(s.oW(n)),u=s.b6(s.oS(n)),f=s.b6(s.oT(n)),m=s.b6(s.oV(n)),v=s.b6(s.oX(n)),S=s.oz(s.oU(n)),B=r+"-"+c;return n.b?B+"-"+u+"T"+f+":"+m+":"+v+"."+S+"Z":B+"-"+u+"T"+f+":"+m+":"+v+"."+S}},s.m2.prototype={k(n){return this.aB()}},s.H.prototype={gb2(){return s.aS(this.$thrownJsError)}},s.eF.prototype={k(n){var r=this.a;return r!=null?"Assertion failed: "+s.cS(r):"Assertion failed"}},s.aG.prototype={},s.fg.prototype={k(n){return"Throw of null."},$iaG:1},s.at.prototype={gbE(){return"Invalid argument"+(this.a?"":"(s)")},gbD(){return""},k(n){var r=this,c=r.c,u=c==null?"":" ("+c+")",f=r.d,m=f==null?"":": "+s.b(f),v=r.gbE()+u+m;return r.a?v+r.gbD()+": "+s.cS(r.gbS()):v},gbS(){return this.b}},s.dL.prototype={gbS(){return this.b},gbE(){return"RangeError"},gbD(){var n,r=this.e,c=this.f;return r==null?n=c!=null?": Not less than or equal to "+s.b(c):"":c==null?n=": Not greater than or equal to "+s.b(r):c>r?n=": Not in inclusive range "+s.b(r)+".."+s.b(c):n=c<r?": Valid value range is empty":": Only valid value is "+s.b(r),n}},s.eV.prototype={gbS(){return this.b},gbE(){return"RangeError"},gbD(){if(this.b<0)return": index must not be negative";var n=this.f;return n===0?": no indices are valid":": index should be less than "+n},gj(n){return this.f}},s.dH.prototype={k(n){var r,c,u,f,m,v,S,B,L=this,F={},z=new s.ac("");for(F.a="",r=L.c,c=r.length,u=0,f="",m="";u<c;++u,m=", ")v=r[u],z.a=f+m,f=z.a+=s.cS(v),F.a=", ";return L.d.M(0,new s.k2(F,z)),S=s.cS(L.a),B=z.k(0),"NoSuchMethodError: method not found: '"+s.b(L.b.a)+`'
|
|
5729
|
+
`}}eu([ue({type:Boolean,attribute:Nl.hidden.name})],Kl.prototype,"hidden");eu([ue({type:Boolean,attribute:Nl.mobile.name})],Kl.prototype,"mobile");eu([ue({type:Boolean,attribute:Nl.showNextButton.name})],Kl.prototype,"showNextButton");eu([ue({type:Boolean,attribute:Nl.showPreviousButton.name})],Kl.prototype,"showPreviousButton");eu([ue({attribute:!1})],Kl.prototype,"data");window.customElements.get(Kv)||window.customElements.define(Kv,Kl);const vw="epg-file-uploader",Cf={label:{name:"label",defaultValue:"Starter Component"},acceptedFileTypes:{name:"accepted-file-types",defaultValue:".glb"}};function Hg(o){throw new Error('Could not dynamically require "'+o+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Vg={},ww;function gz(){return ww||(ww=1,(function(o){var e=typeof process<"u"&&(process.versions||{}).hasOwnProperty("node"),t=e?Object.create(globalThis):globalThis;if(t.scheduleImmediate=typeof setImmediate<"u"?function(a){setImmediate(a)}:function(a){setTimeout(a,0)},typeof Hg<"u"&&(t.require=Hg),t.exports=o,typeof process<"u"&&(t.process=process),typeof __dirname<"u"&&(t.__dirname=__dirname),typeof __filename<"u"&&(t.__filename=__filename),typeof Buffer<"u"&&(t.Buffer=Buffer),e){var i=(typeof __webpack_require__<"u"?__non_webpack_require__:Hg)("url");Object.defineProperty(t,"location",{value:{get href(){return i.pathToFileURL?i.pathToFileURL(process.cwd()).href+"/":"file://"+(function(){var a=process.cwd();return process.platform!="win32"?a:"/"+a.replace(/\\/g,"/")})()+"/"}}}),(function(){function a(){try{throw new Error}catch(A){var h=A.stack,d=new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$","mg"),p=null;do{var g=d.exec(h);g!=null&&(p=g)}while(g!=null);return p[1]}}var l=null;Object.defineProperty(t,"document",{value:{get currentScript(){return l==null&&(l={src:a()}),l}}})})(),t.dartDeferredLibraryLoader=function(a,l,h){try{load(a),l()}catch(d){h(d)}}}(function(){function l(n,r){for(var c=Object.keys(n),u=0;u<c.length;u++){var f=c[u];r[f]=n[f]}}function h(n,r){for(var c=Object.keys(n),u=0;u<c.length;u++){var f=c[u];r.hasOwnProperty(f)||(r[f]=n[f])}}function d(n,r){Object.assign(r,n)}var p=(function(){var n=function(){};n.prototype={p:{}};var r=new n;if(!(r.__proto__&&r.__proto__.p===n.prototype.p))return!1;try{if(typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Chrome/")>=0)return!0;if(typeof version=="function"&&version.length==0){var c=version();if(/^\d+\.\d+\.\d+\.\d+$/.test(c))return!0}}catch{}return!1})();function g(n,r){if(n.prototype.constructor=n,n.prototype["$i"+n.name]=n,r!=null){if(p){n.prototype.__proto__=r.prototype;return}var c=Object.create(r.prototype);l(n.prototype,c),n.prototype=c}}function A(n,r){for(var c=0;c<r.length;c++)g(r[c],n)}function _(n,r){d(r.prototype,n.prototype),n.prototype.constructor=n}function b(n,r){h(r.prototype,n.prototype),n.prototype.constructor=n}function w(n,r,c,u){var f=n;n[r]=f,n[c]=function(){n[c]=function(){s.xP(r)};var m,v=u;try{n[r]===f?(m=n[r]=v,m=n[r]=u()):m=n[r]}finally{m===v&&(n[r]=null),n[c]=function(){return this[r]}}return m}}function E(n,r,c,u){var f=n;n[r]=f,n[c]=function(){return n[r]===f&&(n[r]=u()),n[c]=function(){return this[r]},n[r]}}function C(n,r,c,u){var f=n;n[r]=f,n[c]=function(){if(n[r]===f){var m=u();n[r]!==f&&s.nU(r),n[r]=m}var v=n[r];return n[c]=function(){return v},v}}function T(n){return n.immutable$list=Array,n.fixed$length=Array,n}function x(n){return n}function P(n){for(var r=0;r<n.length;++r)n[r]}function M(n,r){var c=null;return n?function(u){return c===null&&(c=s.nO(r)),new c(u,this)}:function(){return c===null&&(c=s.nO(r)),new c(this,null)}}function R(n){var r=null;return function(){return r===null&&(r=s.nO(n).prototype),r}}var D=0;function G(n,r,c,u,f,m,v,S,B,L){return typeof S=="number"&&(S+=D),{co:n,iS:r,iI:c,rC:u,dV:f,cs:m,fs:v,fT:S,aI:B||0,nDA:L}}function U(n,r,c,u,f,m,v,S){var B=G(n,!0,!1,c,u,f,m,v,S,!1),L=R(B);n[r]=L}function H(n,r,c,u,f,m,v,S,B,L){c=!!c;var F=G(n,!1,c,u,f,m,v,S,B,!!L),z=M(c,F);n[r]=z}function k(n){var r=re.interceptorsByTag;if(!r){re.interceptorsByTag=n;return}l(n,r)}function $(n){var r=re.leafTags;if(!r){re.leafTags=n;return}l(n,r)}function Q(n){var r=re.types,c=r.length;return r.push.apply(r,n),c}function Z(n,r){return l(r,n),n}var X=(function(){var n=function(c,u,f,m,v){return function(S,B,L,F){return H(S,B,c,u,f,m,[L],F,v,!1)}},r=function(c,u,f,m){return function(v,S,B,L){return U(v,S,c,u,f,[B],L,m)}};return{inherit:g,inheritMany:A,mixin:_,mixinHard:b,installStaticTearOff:U,installInstanceTearOff:H,_instance_0u:n(0,0,null,["$0"],0),_instance_1u:n(0,1,null,["$1"],0),_instance_2u:n(0,2,null,["$2"],0),_instance_0i:n(1,0,null,["$0"],0),_instance_1i:n(1,1,null,["$1"],0),_instance_2i:n(1,2,null,["$2"],0),_static_0:r(0,null,["$0"],0),_static_1:r(1,null,["$1"],0),_static_2:r(2,null,["$2"],0),makeConstList:T,lazy:E,lazyFinal:C,lazyOld:w,updateHolder:Z,convertToFastObject:x,updateTypes:Q,setOrUpdateInterceptorsByTag:k,setOrUpdateLeafTags:$}})(),s={ns:function(){},he(n,r,c){return r.h("q<0>").b(n)?new s.dZ(n,r.h("@<0>").I(c).h("dZ<1,2>")):new s.c5(n,r.h("@<0>").I(c).h("c5<1,2>"))},uG(n){return new s.f1("Field '"+s.b(n)+"' has been assigned during initialization.")},bg(n){return new s.fm(n)},mW(n){var r,c=n^48;return c<=9?c:(r=n|32,97<=r&&r<=102?r-87:-1)},pW(n,r){var c=s.mW(y.a.B(n,r)),u=s.mW(y.a.B(n,r+1));return c*16+u-(u&256)},bU(n,r,c){if(n==null)throw s.d(new s.dI(r,c.h("dI<0>")));return n},dQ(n,r,c,u){return s.aW(r,"start"),c!=null&&(s.aW(c,"end"),r>c&&s.Z(s.Y(r,0,c,"start",null))),new s.dP(n,r,c,u.h("dP<0>"))},jQ(n,r,c,u){return N.O.b(n)?new s.c9(n,r,c.h("@<0>").I(u).h("c9<1,2>")):new s.bd(n,r,c.h("@<0>").I(u).h("bd<1,2>"))},p0(n,r,c){var u="count";return N.O.b(n)?(s.h8(r,u),s.aW(r,u),new s.cR(n,r,c.h("cR<0>"))):(s.h8(r,u),s.aW(r,u),new s.bh(n,r,c.h("bh<0>")))},nq(){return new s.bJ("No element")},ui(){return new s.bJ("Too few elements")},bM:function(){},dm:function(r,c){this.a=r,this.$ti=c},c5:function(r,c){this.a=r,this.$ti=c},dZ:function(r,c){this.a=r,this.$ti=c},dU:function(){},b5:function(r,c){this.a=r,this.$ti=c},c6:function(r,c){this.a=r,this.$ti=c},hf:function(r,c){this.a=r,this.b=c},f1:function(r){this.a=r},fm:function(r){this.a=r},c8:function(r){this.a=r},nd:function(){},dI:function(r,c){this.a=r,this.$ti=c},q:function(){},ah:function(){},dP:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.$ti=f},aa:function(r,c,u){var f=this;f.a=r,f.b=c,f.c=0,f.d=null,f.$ti=u},bd:function(r,c,u){this.a=r,this.b=c,this.$ti=u},c9:function(r,c,u){this.a=r,this.b=c,this.$ti=u},dD:function(r,c,u){var f=this;f.a=null,f.b=r,f.c=c,f.$ti=u},ab:function(r,c,u){this.a=r,this.b=c,this.$ti=u},lK:function(r,c,u){this.a=r,this.b=c,this.$ti=u},cF:function(r,c,u){this.a=r,this.b=c,this.$ti=u},bh:function(r,c,u){this.a=r,this.b=c,this.$ti=u},cR:function(r,c,u){this.a=r,this.b=c,this.$ti=u},dN:function(r,c,u){this.a=r,this.b=c,this.$ti=u},b7:function(r){this.$ti=r},dq:function(r){this.$ti=r},ds:function(){},fy:function(){},d4:function(){},d3:function(r){this.a=r},ep:function(){},u2(){throw s.d(s.ad("Cannot modify unmodifiable Map"))},ub(n){return typeof n=="number"?y.c1.gE(n):N.fo.b(n)?n.gE(n):N.dd.b(n)?s.d0(n):s.fZ(n)},uc(n){return new s.hY(n)},q2(n){var r=re.mangledGlobalNames[n];return r??"minified:"+n},pU(n,r){var c;return r!=null&&(c=r.x,c!=null)?c:N.aU.b(n)},b(n){var r;if(typeof n=="string")return n;if(typeof n=="number"){if(n!==0)return""+n}else{if(n===!0)return"true";if(n===!1)return"false";if(n==null)return"null"}if(r=V.as(n),typeof r!="string")throw s.d(s.h7(n,"object","toString method returned 'null'"));return r},d0(n){var r,c=I.oR;return c==null&&(c=I.oR=Symbol("identityHashCode")),r=n[c],r==null&&(r=Math.random()*1073741823|0,n[c]=r),r},oY(n,r){var c,u,f,m,v,S,B=null;if(typeof n!="string"&&s.Z(s.cL(n)),c=/^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(n),c==null)return B;if(u=c[3],r==null)return u!=null?parseInt(n,10):c[2]!=null?parseInt(n,16):B;if(r<2||r>36)throw s.d(s.Y(r,2,36,"radix",B));if(r===10&&u!=null)return parseInt(n,10);if(r<10||u==null){for(f=r<=10?47+r:86+r,m=c[1],v=m.length,S=0;S<v;++S)if((y.a.J(m,S)|32)>f)return B}return parseInt(n,r)},ka(n){return s.uZ(n)},uZ(n){var r,c,u,f;if(n instanceof s.c)return s.ar(s.ak(n),null);if(r=V.bV(n),r===y.bW||r===y.c3||N.ak.b(n)){if(c=y.a9(n),c!=="Object"&&c!=="")return c;if(u=n.constructor,typeof u=="function"&&(f=u.name,typeof f=="string"&&f!=="Object"&&f!==""))return f}return s.ar(s.ak(n),null)},oQ(n){var r,c,u,f,m=n.length;if(m<=500)return String.fromCharCode.apply(null,n);for(r="",c=0;c<m;c=u)u=c+500,f=u<m?u:m,r+=String.fromCharCode.apply(null,n.slice(c,f));return r},v1(n){var r,c,u,f=s.a([],N.Z);for(r=n.length,c=0;c<n.length;n.length===r||(0,s.cN)(n),++c){if(u=n[c],!s.aI(u))throw s.d(s.cL(u));if(u<=65535)f.push(u);else if(u<=1114111)f.push(55296+(y.c.ai(u-65536,10)&1023)),f.push(56320+(u&1023));else throw s.d(s.cL(u))}return s.oQ(f)},v0(n){var r,c,u;for(r=n.length,c=0;c<r;++c){if(u=n[c],!s.aI(u)||u<0)throw s.d(s.cL(u));if(u>65535)return s.v1(n)}return s.oQ(n)},v2(n,r,c){var u,f,m,v;if(c<=500&&r===0&&c===n.length)return String.fromCharCode.apply(null,n);for(u=r,f="";u<c;u=m)m=u+500,v=m<c?m:c,f+=String.fromCharCode.apply(null,n.subarray(u,v));return f},be(n){var r;if(0<=n){if(n<=65535)return String.fromCharCode(n);if(n<=1114111)return r=n-65536,String.fromCharCode((y.c.ai(r,10)|55296)>>>0,r&1023|56320)}throw s.d(s.Y(n,0,1114111,null,null))},ax(n){return n.date===void 0&&(n.date=new Date(n.a)),n.date},fk(n){return n.b?s.ax(n).getUTCFullYear()+0:s.ax(n).getFullYear()+0},oW(n){return n.b?s.ax(n).getUTCMonth()+1:s.ax(n).getMonth()+1},oS(n){return n.b?s.ax(n).getUTCDate()+0:s.ax(n).getDate()+0},oT(n){return n.b?s.ax(n).getUTCHours()+0:s.ax(n).getHours()+0},oV(n){return n.b?s.ax(n).getUTCMinutes()+0:s.ax(n).getMinutes()+0},oX(n){return n.b?s.ax(n).getUTCSeconds()+0:s.ax(n).getSeconds()+0},oU(n){return n.b?s.ax(n).getUTCMilliseconds()+0:s.ax(n).getMilliseconds()+0},bE(n,r,c){var u,f,m={};return m.a=0,u=[],f=[],m.a=r.length,y.d.D(u,r),m.b="",c!=null&&c.a!==0&&c.M(0,new s.k9(m,f,u)),V.tB(n,new s.iJ(y.dM,0,u,f,0))},v_(n,r,c){var u,f,m;if(Array.isArray(r)?u=c==null||c.a===0:u=!1,u){if(f=r.length,f===0){if(n.$0)return n.$0()}else if(f===1){if(n.$1)return n.$1(r[0])}else if(f===2){if(n.$2)return n.$2(r[0],r[1])}else if(f===3){if(n.$3)return n.$3(r[0],r[1],r[2])}else if(f===4){if(n.$4)return n.$4(r[0],r[1],r[2],r[3])}else if(f===5&&n.$5)return n.$5(r[0],r[1],r[2],r[3],r[4]);if(m=n["$"+f],m!=null)return m.apply(n,r)}return s.uY(n,r,c)},uY(n,r,c){var u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie;if(r!=null?u=Array.isArray(r)?r:s.bc(r,!0,N.z):u=[],f=u.length,m=n.$R,f<m)return s.bE(n,u,c);if(v=n.$D,S=v==null,B=S?null:v(),L=V.bV(n),F=L.$C,typeof F=="string"&&(F=L[F]),S)return c!=null&&c.a!==0?s.bE(n,u,c):f===m?F.apply(n,u):s.bE(n,u,c);if(Array.isArray(B))return c!=null&&c.a!==0?s.bE(n,u,c):(z=m+B.length,f>z?s.bE(n,u,null):(f<z&&(O=B.slice(f-m),u===r&&(u=s.bc(u,!0,N.z)),y.d.D(u,O)),F.apply(n,u)));if(f>m)return s.bE(n,u,c);if(u===r&&(u=s.bc(u,!0,N.z)),W=Object.keys(B),c==null)for(S=W.length,Y=0;Y<W.length;W.length===S||(0,s.cN)(W),++Y){if(te=B[W[Y]],y.ad===te)return s.bE(n,u,c);y.d.C(u,te)}else{for(S=W.length,K=0,Y=0;Y<W.length;W.length===S||(0,s.cN)(W),++Y)if(ie=W[Y],c.v(ie))++K,y.d.C(u,c.i(0,ie));else{if(te=B[ie],y.ad===te)return s.bE(n,u,c);y.d.C(u,te)}if(K!==c.a)return s.bE(n,u,c)}return F.apply(n,u)},eA(n,r){var c,u="index",f=null;return s.aI(r)?(c=V.a3(n),r<0||r>=c?s.eW(r,c,n,f,u):new s.dL(f,f,!0,r,u,"Value not in range")):new s.at(!0,r,u,f)},x0(n,r,c){return n<0||n>c?s.Y(n,0,c,"start",null):r!=null&&(r<n||r>c)?s.Y(r,n,c,"end",null):new s.at(!0,r,"end",null)},cL(n){return new s.at(!0,n,null,null)},d(n){var r,c;return n==null&&(n=new s.fg),r=new Error,r.dartException=n,c=s.xQ,"defineProperty"in Object?(Object.defineProperty(r,"message",{get:c}),r.name=""):r.toString=c,r},xQ(){return V.as(this.dartException)},Z(n){throw s.d(n)},cN(n){throw s.d(s.ag(n))},bl(n){var r,c,u,f,m,v;return n=s.pZ(n.replace(String({}),"$receiver$")),r=n.match(/\\\$[a-zA-Z]+\\\$/g),r==null&&(r=s.a([],N.s)),c=r.indexOf("\\$arguments\\$"),u=r.indexOf("\\$argumentsExpr\\$"),f=r.indexOf("\\$expr\\$"),m=r.indexOf("\\$method\\$"),v=r.indexOf("\\$receiver\\$"),new s.lt(n.replace(new RegExp("\\\\\\$arguments\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$argumentsExpr\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$expr\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$method\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$receiver\\\\\\$","g"),"((?:x|[^x])*)"),c,u,f,m,v)},lu(n){return(function(r){var c="$arguments$";try{r.$method$(c)}catch(u){return u.message}})(n)},p3(n){return(function(r){try{r.$method$}catch(c){return c.message}})(n)},nt(n,r){var c=r==null,u=c?null:r.method;return new s.f0(n,u,c?null:r.receiver)},M(n){return n==null?new s.fh(n):n instanceof s.dr?s.bW(n,n.a):typeof n!="object"?n:"dartException"in n?s.bW(n,n.dartException):s.wH(n)},bW(n,r){return N.Q.b(r)&&r.$thrownJsError==null&&(r.$thrownJsError=n),r},wH(n){var r,c,u,f,m,v,S,B,L,F,z,O,W,Y,te=null;if(!("message"in n))return n;if(r=n.message,"number"in n&&typeof n.number=="number"&&(c=n.number,u=c&65535,(y.c.ai(c,16)&8191)===10))switch(u){case 438:return s.bW(n,s.nt(s.b(r)+" (Error "+u+")",te));case 445:case 5007:return f=s.b(r),s.bW(n,new s.dJ(f+" (Error "+u+")",te))}return n instanceof TypeError?(m=I.tb(),v=I.tc(),S=I.td(),B=I.te(),L=I.th(),F=I.ti(),z=I.tg(),I.tf(),O=I.tk(),W=I.tj(),Y=m.a9(r),Y!=null?s.bW(n,s.nt(r,Y)):(Y=v.a9(r),Y!=null?(Y.method="call",s.bW(n,s.nt(r,Y))):(Y=S.a9(r),Y==null?(Y=B.a9(r),Y==null?(Y=L.a9(r),Y==null?(Y=F.a9(r),Y==null?(Y=z.a9(r),Y==null?(Y=B.a9(r),Y==null?(Y=O.a9(r),Y==null?(Y=W.a9(r),f=Y!=null):f=!0):f=!0):f=!0):f=!0):f=!0):f=!0):f=!0,f?s.bW(n,new s.dJ(r,Y==null?te:Y.method)):s.bW(n,new s.fx(typeof r=="string"?r:""))))):n instanceof RangeError?typeof r=="string"&&r.indexOf("call stack")!==-1?new s.dO:(r=(function(K){try{return String(K)}catch{}return null})(n),s.bW(n,new s.at(!1,te,te,typeof r=="string"?r.replace(/^RangeError:\s*/,""):r))):typeof InternalError=="function"&&n instanceof InternalError&&typeof r=="string"&&r==="too much recursion"?new s.dO:n},aS(n){var r;return n instanceof s.dr?n.b:n==null?new s.ed(n):(r=n.$cachedTrace,r??(n.$cachedTrace=new s.ed(n)))},fZ(n){return n==null||typeof n!="object"?V.bY(n):s.d0(n)},pN(n,r){var c,u,f,m=n.length;for(c=0;c<m;c=f)u=c+1,f=u+1,r.m(0,n[c],n[u]);return r},x4(n,r){var c,u=n.length;for(c=0;c<u;++c)r.C(0,n[c]);return r},xg(n,r,c,u,f,m){switch(r){case 0:return n.$0();case 1:return n.$1(c);case 2:return n.$2(c,u);case 3:return n.$3(c,u,f);case 4:return n.$4(c,u,f,m)}throw s.d(s.u9("Unsupported number of arguments for wrapped closure"))},mO(n,r){var c;return n==null?null:(c=n.$identity,c||(c=(function(u,f,m){return function(v,S,B,L){return m(u,f,v,S,B,L)}})(n,r,s.xg),n.$identity=c,c))},u1(n){var r,c,u,f,m,v,S,B,L,F,z=n.co,O=n.iS,W=n.iI,Y=n.nDA,te=n.aI,K=n.fs,ie=n.cs,de=K[0],j=ie[0],q=z[de],ae=n.fT;for(ae.toString,r=Object.create(O?new s.fq().constructor.prototype:new s.cP(null,null).constructor.prototype),r.$initialize=r.constructor,O?c=function(){this.$initialize()}:c=function(fe,he){this.$initialize(fe,he)},r.constructor=c,c.prototype=r,r.$_name=de,r.$_target=q,u=!O,u?f=s.ox(de,q,W,Y):(r.$static_name=de,f=q),r.$S=s.tY(ae,O,W),r[j]=f,m=f,v=1;v<K.length;++v)S=K[v],typeof S=="string"?(B=z[S],L=S,S=B):L="",F=ie[v],F!=null&&(u&&(S=s.ox(L,S,W,Y)),r[F]=S),v===te&&(m=S);return r.$C=m,r.$R=n.rC,r.$D=n.dV,c},tY(n,r,c){if(typeof n=="number")return n;if(typeof n=="string"){if(r)throw s.d("Cannot compute signature for static tearoff.");return(function(u,f){return function(){return f(this,u)}})(n,s.tR)}throw s.d("Error in functionType of tearoff")},tZ(n,r,c,u){var f=s.ow;switch(r?-1:n){case 0:return(function(m,v){return function(){return v(this)[m]()}})(c,f);case 1:return(function(m,v){return function(S){return v(this)[m](S)}})(c,f);case 2:return(function(m,v){return function(S,B){return v(this)[m](S,B)}})(c,f);case 3:return(function(m,v){return function(S,B,L){return v(this)[m](S,B,L)}})(c,f);case 4:return(function(m,v){return function(S,B,L,F){return v(this)[m](S,B,L,F)}})(c,f);case 5:return(function(m,v){return function(S,B,L,F,z){return v(this)[m](S,B,L,F,z)}})(c,f);default:return(function(m,v){return function(){return m.apply(v(this),arguments)}})(u,f)}},ox(n,r,c,u){var f,m;return c?s.u0(n,r,u):(f=r.length,m=s.tZ(f,u,n,r),m)},u_(n,r,c,u){var f=s.ow,m=s.tS;switch(r?-1:n){case 0:throw s.d(new s.fp("Intercepted function with no arguments."));case 1:return(function(v,S,B){return function(){return S(this)[v](B(this))}})(c,m,f);case 2:return(function(v,S,B){return function(L){return S(this)[v](B(this),L)}})(c,m,f);case 3:return(function(v,S,B){return function(L,F){return S(this)[v](B(this),L,F)}})(c,m,f);case 4:return(function(v,S,B){return function(L,F,z){return S(this)[v](B(this),L,F,z)}})(c,m,f);case 5:return(function(v,S,B){return function(L,F,z,O){return S(this)[v](B(this),L,F,z,O)}})(c,m,f);case 6:return(function(v,S,B){return function(L,F,z,O,W){return S(this)[v](B(this),L,F,z,O,W)}})(c,m,f);default:return(function(v,S,B){return function(){var L=[B(this)];return Array.prototype.push.apply(L,arguments),v.apply(S(this),L)}})(u,m,f)}},u0(n,r,c){var u,f;return I.ou==null&&(I.ou=s.ot("interceptor")),I.ov==null&&(I.ov=s.ot("receiver")),u=r.length,f=s.u_(u,c,n,r),f},nO(n){return s.u1(n)},tR(n,r){return s.mt(re.typeUniverse,s.ak(n.a),r)},ow(n){return n.a},tS(n){return n.b},ot(n){var r,c,u,f=new s.cP("receiver","interceptor"),m=V.nr(Object.getOwnPropertyNames(f));for(r=m.length,c=0;c<r;++c)if(u=m[c],f[u]===n)return u;throw s.d(s.K("Field name "+n+" not found.",null))},xP(n){throw s.d(new s.eQ(n))},xa(n){return re.getIsolateTag(n)},uH(n,r,c){var u=new s.cx(n,r,c.h("cx<0>"));return u.c=n.e,u},Bh(n,r,c){Object.defineProperty(n,r,{value:c,enumerable:!1,writable:!0,configurable:!0})},xC(n){var r,c,u,f,m,v=I.pR.$1(n),S=I.mP[v];if(S!=null)return Object.defineProperty(n,re.dispatchPropertyName,{value:S,enumerable:!1,writable:!0,configurable:!0}),S.i;if(r=I.n_[v],r!=null)return r;if(c=re.interceptorsByTag[v],c==null&&(u=I.pJ.$2(n,v),u!=null)){if(S=I.mP[u],S!=null)return Object.defineProperty(n,re.dispatchPropertyName,{value:S,enumerable:!1,writable:!0,configurable:!0}),S.i;if(r=I.n_[u],r!=null)return r;c=re.interceptorsByTag[u],v=u}if(c==null)return null;if(r=c.prototype,f=v[0],f==="!")return S=s.nc(r),I.mP[v]=S,Object.defineProperty(n,re.dispatchPropertyName,{value:S,enumerable:!1,writable:!0,configurable:!0}),S.i;if(f==="~")return I.n_[v]=r,r;if(f==="-")return m=s.nc(r),Object.defineProperty(Object.getPrototypeOf(n),re.dispatchPropertyName,{value:m,enumerable:!1,writable:!0,configurable:!0}),m.i;if(f==="+")return s.pX(n,r);if(f==="*")throw s.d(s.p4(v));return re.leafTags[v]===!0?(m=s.nc(r),Object.defineProperty(Object.getPrototypeOf(n),re.dispatchPropertyName,{value:m,enumerable:!1,writable:!0,configurable:!0}),m.i):s.pX(n,r)},pX(n,r){var c=Object.getPrototypeOf(n);return Object.defineProperty(c,re.dispatchPropertyName,{value:V.nS(r,c,null,null),enumerable:!1,writable:!0,configurable:!0}),r},nc(n){return V.nS(n,!1,null,!!n.$iav)},xE(n,r,c){var u=r.prototype;return re.leafTags[n]===!0?s.nc(u):V.nS(u,c,null,null)},xe(){I.nQ!==!0&&(I.nQ=!0,s.xf())},xf(){var n,r,c,u,f,m,v,S;if(I.mP=Object.create(null),I.n_=Object.create(null),s.xd(),n=re.interceptorsByTag,r=Object.getOwnPropertyNames(n),typeof window<"u")for(c=function(){},u=0;u<r.length;++u)f=r[u],m=I.pY.$1(f),m!=null&&(v=s.xE(f,n[f],m),v!=null&&(Object.defineProperty(m,re.dispatchPropertyName,{value:v,enumerable:!1,writable:!0,configurable:!0}),c.prototype=m));for(u=0;u<r.length;++u)f=r[u],/^[A-Za-z_]/.test(f)&&(S=n[f],n["!"+f]=S,n["~"+f]=S,n["-"+f]=S,n["+"+f]=S,n["*"+f]=S)},xd(){var n,r,c,u,f,m,v=y.bb();if(v=s.di(y.bc,s.di(y.bd,s.di(y.aa,s.di(y.aa,s.di(y.be,s.di(y.bf,s.di(y.bg(y.a9),v))))))),typeof dartNativeDispatchHooksTransformer<"u"&&(n=dartNativeDispatchHooksTransformer,typeof n=="function"&&(n=[n]),n.constructor==Array))for(r=0;r<n.length;++r)c=n[r],typeof c=="function"&&(v=c(v)||v);u=v.getTag,f=v.getUnknownTag,m=v.prototypeForTag,I.pR=new s.mX(u),I.pJ=new s.mY(f),I.pY=new s.mZ(m)},di(n,r){return n(r)||r},uk(n,r,c,u,f,m){var v=r?"m":"",S=c?"":"i",B=u?"u":"",L=f?"s":"",F=m?"g":"",z=(function(O,W){try{return new RegExp(O,W)}catch(Y){return Y}})(n,v+S+B+L+F);if(z instanceof RegExp)return z;throw s.d(s.R("Illegal RegExp pattern ("+String(z)+")",n,null))},x1(n){return n.indexOf("$",0)>=0?n.replace(/\$/g,"$$$$"):n},pZ(n){return/[[\]{}()*+?.\\^$|]/.test(n)?n.replace(/[[\]{}()*+?.\\^$|]/g,"\\$&"):n},q0(n,r,c){var u=s.xN(n,r,c);return u},xN(n,r,c){var u,f,m,v;if(r===""){if(n==="")return c;for(u=n.length,f=c,m=0;m<u;++m)f=f+n[m]+c;return f.charCodeAt(0)==0,f}return v=n.indexOf(r,0),v<0?n:n.length<500||c.indexOf("$",0)>=0?n.split(r).join(c):n.replace(new RegExp(s.pZ(r),"g"),s.x1(c))},dn:function(r,c){this.a=r,this.$ti=c},cQ:function(){},aJ:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.$ti=f},dW:function(r,c){this.a=r,this.$ti=c},X:function(r,c){this.a=r,this.$ti=c},hY:function(r){this.a=r},iJ:function(r,c,u,f,m){var v=this;v.a=r,v.c=c,v.d=u,v.e=f,v.f=m},k9:function(r,c,u){this.a=r,this.b=c,this.c=u},lt:function(r,c,u,f,m,v){var S=this;S.a=r,S.b=c,S.c=u,S.d=f,S.e=m,S.f=v},dJ:function(r,c){this.a=r,this.b=c},f0:function(r,c,u){this.a=r,this.b=c,this.c=u},fx:function(r){this.a=r},fh:function(r){this.a=r},dr:function(r,c){this.a=r,this.b=c},ed:function(r){this.a=r,this.b=null},c7:function(){},eL:function(){},eM:function(){},ft:function(){},fq:function(){},cP:function(r,c){this.a=r,this.b=c},fp:function(r){this.a=r},mm:function(){},aC:function(r){var c=this;c.a=0,c.f=c.e=c.d=c.c=c.b=null,c.r=0,c.$ti=r},iP:function(r){this.a=r},jN:function(r,c){this.a=r,this.b=c,this.c=null},aO:function(r,c){this.a=r,this.$ti=c},cx:function(r,c,u){var f=this;f.a=r,f.b=c,f.d=f.c=null,f.$ti=u},mX:function(r){this.a=r},mY:function(r){this.a=r},mZ:function(r){this.a=r},iK:function(r,c){var u=this;u.a=r,u.b=c,u.d=u.c=null},mk:function(r){this.b=r},de(n,r,c){if(!s.aI(r))throw s.d(s.K("Invalid view offsetInBytes "+s.b(r),null))},w8(n){return n},f7(n,r,c){return s.de(n,r,c),c==null?new DataView(n,r):new DataView(n,r,c)},uQ(n){return new Float32Array(n)},uR(n){return new Int8Array(n)},oO(n,r,c){return s.de(n,r,c),new Uint16Array(n,r,c)},oP(n,r,c){return s.de(n,r,c),new Uint32Array(n,r,c)},uS(n){return new Uint8Array(n)},nw(n,r,c){var u;return s.de(n,r,c),u=new Uint8Array(n,r,c),u},bo(n,r,c){if(n>>>0!==n||n>=c)throw s.d(s.eA(r,n))},bR(n,r,c){var u;if(n>>>0===n?u=r>>>0!==r||n>r||r>c:u=!0,u)throw s.d(s.x0(n,r,c));return r},dF:function(){},d_:function(){},dE:function(){},aw:function(){},f8:function(){},f9:function(){},fa:function(){},fb:function(){},fc:function(){},fd:function(){},fe:function(){},dG:function(){},cy:function(){},e7:function(){},e8:function(){},e9:function(){},ea:function(){},v5(n,r){var c=r.c;return c??(r.c=s.nG(n,r.y,!0))},oZ(n,r){var c=r.c;return c??(r.c=s.ek(n,"a5",[r.y]))},p_(n){var r=n.x;return r===6||r===7||r===8?s.p_(n.y):r===12||r===13},v4(n){return n.at},aR(n){return s.fT(re.typeUniverse,n,!1)},bT(n,r,c,u){var f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q=r.x;switch(q){case 5:case 1:case 2:case 3:case 4:return r;case 6:return f=r.y,m=s.bT(n,f,c,u),m===f?r:s.pl(n,m,!0);case 7:return f=r.y,m=s.bT(n,f,c,u),m===f?r:s.nG(n,m,!0);case 8:return f=r.y,m=s.bT(n,f,c,u),m===f?r:s.pk(n,m,!0);case 9:return v=r.z,S=s.ey(n,v,c,u),S===v?r:s.ek(n,r.y,S);case 10:return B=r.y,L=s.bT(n,B,c,u),F=r.z,z=s.ey(n,F,c,u),L===B&&z===F?r:s.nE(n,L,z);case 12:return O=r.y,W=s.bT(n,O,c,u),Y=r.z,te=s.wE(n,Y,c,u),W===O&&te===Y?r:s.pj(n,W,te);case 13:return K=r.z,u+=K.length,ie=s.ey(n,K,c,u),B=r.y,L=s.bT(n,B,c,u),ie===K&&L===B?r:s.nF(n,L,ie,!0);case 14:return de=r.y,de<u||(j=c[de-u],j==null)?r:j;default:throw s.d(s.eG("Attempted to substitute unexpected RTI kind "+q))}},ey(n,r,c,u){var f,m,v,S,B=r.length,L=s.mv(B);for(f=!1,m=0;m<B;++m)v=r[m],S=s.bT(n,v,c,u),S!==v&&(f=!0),L[m]=S;return f?L:r},wF(n,r,c,u){var f,m,v,S,B,L,F=r.length,z=s.mv(F);for(f=!1,m=0;m<F;m+=3)v=r[m],S=r[m+1],B=r[m+2],L=s.bT(n,B,c,u),L!==B&&(f=!0),z.splice(m,3,v,S,L);return f?z:r},wE(n,r,c,u){var f,m=r.a,v=s.ey(n,m,c,u),S=r.b,B=s.ey(n,S,c,u),L=r.c,F=s.wF(n,L,c,u);return v===m&&B===S&&F===L?r:(f=new s.fK,f.a=v,f.b=B,f.c=F,f)},a(n,r){return n[re.arrayRti]=r,n},wY(n){var r,c=n.$S;return c!=null?typeof c=="number"?s.xb(c):(r=n.$S(),r):null},pT(n,r){var c;return s.p_(r)&&n instanceof s.c7&&(c=s.wY(n),c!=null)?c:s.ak(n)},ak(n){var r;return n instanceof s.c?(r=n.$ti,r??s.nJ(n)):Array.isArray(n)?s.a_(n):s.nJ(V.bV(n))},a_(n){var r=n[re.arrayRti],c=N.b;return r==null||r.constructor!==c.constructor?c:r},A(n){var r=n.$ti;return r??s.nJ(n)},nJ(n){var r=n.constructor,c=r.$ccache;return c??s.wj(n,r)},wj(n,r){var c=n instanceof s.c7?n.__proto__.__proto__.constructor:r,u=s.vH(re.typeUniverse,c.name);return r.$ccache=u,u},xb(n){var r,c=re.types,u=c[n];return typeof u=="string"?(r=s.fT(re.typeUniverse,u,!1),c[n]=r,r):u},pL(n){var r,c,u,f=n.w;return f??(r=n.at,c=r.replace(/\*/g,""),c===r?n.w=new s.eh(n):(u=s.fT(re.typeUniverse,c,!0),f=u.w,n.w=f??(u.w=new s.eh(u))))},u(n){return s.pL(s.fT(re.typeUniverse,n,!1))},wi(n){var r,c,u,f=this,m=N.K;if(f===m)return s.df(f,n,s.wn);if(s.bq(f)?m=!0:f!==N._?m=f===m:m=!0,m)return s.df(f,n,s.wr);if(m=f.x,r=m===6?f.y:f,r===N.S?c=s.aI:r===N.gR||r===N.di?c=s.wm:r===N.R?c=s.wp:c=r===N.y?s.eu:null,c!=null)return s.df(f,n,c);if(r.x===9){if(u=r.y,r.z.every(s.xh))return f.r="$i"+u,u==="o"?s.df(f,n,s.wl):s.df(f,n,s.wq)}else if(m===7)return s.df(f,n,s.wb);return s.df(f,n,s.w9)},df(n,r,c){return n.b=c,n.b(r)},wh(n){var r,c,u=this;return s.bq(u)?r=!0:u!==N._?r=u===N.K:r=!0,r?c=s.w1:u===N.K?c=s.w_:c=s.wa,u.a=c,u.a(n)},fX(n){var r,c=n.x;return s.bq(n)?r=!0:n!==N._&&n!==N.A&&c!==7?c===6&&s.fX(n.y)?r=!0:r=c===8&&s.fX(n.y)||n===N.P||n===N.T:r=!0,r},w9(n){var r=this;return n==null?s.fX(r):s.a7(re.typeUniverse,s.pT(n,r),null,r,null)},wb(n){return n==null?!0:this.y.b(n)},wq(n){var r,c=this;return n==null?s.fX(c):(r=c.r,n instanceof s.c?!!n[r]:!!V.bV(n)[r])},wl(n){var r,c=this;return n==null?s.fX(c):typeof n!="object"?!1:Array.isArray(n)?!0:(r=c.r,n instanceof s.c?!!n[r]:!!V.bV(n)[r])},Ba(n){var r=this;if(n==null)return n;if(r.b(n))return n;s.pw(n,r)},wa(n){var r=this;if(n==null)return n;if(r.b(n))return n;s.pw(n,r)},pw(n,r){throw s.d(s.vw(s.pd(n,s.pT(n,r),s.ar(r,null))))},pd(n,r,c){var u=s.cS(n);return u+": type '"+s.b(s.ar(r??s.ak(n),null))+"' is not a subtype of type '"+s.b(c)+"'"},vw(n){return new s.ei("TypeError: "+n)},aq(n,r){return new s.ei("TypeError: "+s.pd(n,null,r))},wn(n){return n!=null},w_(n){return n},wr(n){return!0},w1(n){return n},eu(n){return n===!0||n===!1},AW(n){if(n===!0)return!0;if(n===!1)return!1;throw s.d(s.aq(n,"bool"))},AY(n){if(n===!0)return!0;if(n===!1)return!1;if(n==null)return n;throw s.d(s.aq(n,"bool"))},AX(n){if(n===!0)return!0;if(n===!1)return!1;if(n==null)return n;throw s.d(s.aq(n,"bool?"))},AZ(n){if(typeof n=="number")return n;throw s.d(s.aq(n,"double"))},B0(n){if(typeof n=="number"||n==null)return n;throw s.d(s.aq(n,"double"))},B_(n){if(typeof n=="number"||n==null)return n;throw s.d(s.aq(n,"double?"))},aI(n){return typeof n=="number"&&Math.floor(n)===n},B1(n){if(typeof n=="number"&&Math.floor(n)===n)return n;throw s.d(s.aq(n,"int"))},B3(n){if(typeof n=="number"&&Math.floor(n)===n||n==null)return n;throw s.d(s.aq(n,"int"))},B2(n){if(typeof n=="number"&&Math.floor(n)===n||n==null)return n;throw s.d(s.aq(n,"int?"))},wm(n){return typeof n=="number"},B4(n){if(typeof n=="number")return n;throw s.d(s.aq(n,"num"))},B6(n){if(typeof n=="number"||n==null)return n;throw s.d(s.aq(n,"num"))},B5(n){if(typeof n=="number"||n==null)return n;throw s.d(s.aq(n,"num?"))},wp(n){return typeof n=="string"},B7(n){if(typeof n=="string")return n;throw s.d(s.aq(n,"String"))},w0(n){if(typeof n=="string"||n==null)return n;throw s.d(s.aq(n,"String"))},B8(n){if(typeof n=="string"||n==null)return n;throw s.d(s.aq(n,"String?"))},pF(n,r){var c,u,f;for(c="",u="",f=0;f<n.length;++f,u=", ")c+=y.a.ae(u,s.ar(n[f],r));return c},wz(n,r){var c,u,f,m,v,S,B=n.y,L=n.z;if(B==="")return"("+s.pF(L,r)+")";for(c=L.length,u=B.split(","),f=u.length-c,m="(",v="",S=0;S<c;++S,v=", ")m+=v,f===0&&(m+="{"),m=y.a.ae(m,s.ar(L[S],r)),f>=0&&(m+=" "+u[f]),++f;return m+"})"},py(n,r,c){var u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q,ae,me,fe,he,ve=", ";if(c!=null){for(u=c.length,r==null?(r=s.a([],N.s),f=null):f=r.length,m=r.length,v=u;v>0;--v)r.push("T"+(m+v));for(S=N.cK,B=N._,L=N.K,F="<",z="",v=0;v<u;++v,z=ve)F=y.a.ae(F+z,r[r.length-1-v]),O=c[v],W=O.x,W===2||W===3||W===4||W===5||O===S?Y=!0:O!==B?Y=O===L:Y=!0,Y||(F+=y.a.ae(" extends ",s.ar(O,r)));F+=">"}else F="",f=null;for(S=n.y,te=n.z,K=te.a,ie=K.length,de=te.b,j=de.length,q=te.c,ae=q.length,me=s.ar(S,r),fe="",he="",v=0;v<ie;++v,he=ve)fe+=y.a.ae(he,s.ar(K[v],r));if(j>0){for(fe+=he+"[",he="",v=0;v<j;++v,he=ve)fe+=y.a.ae(he,s.ar(de[v],r));fe+="]"}if(ae>0){for(fe+=he+"{",he="",v=0;v<ae;v+=3,he=ve)fe+=he,q[v+1]&&(fe+="required "),fe+=V.om(s.ar(q[v+2],r)," ")+q[v];fe+="}"}return f!=null&&(r.toString,r.length=f),F+"("+fe+") => "+s.b(me)},ar(n,r){var c,u,f,m,v,S,B=n.x;return B===5?"erased":B===2?"dynamic":B===3?"void":B===1?"Never":B===4?"any":B===6?(c=s.ar(n.y,r),c):B===7?(u=n.y,c=s.ar(u,r),f=u.x,V.om(f===12||f===13?y.a.ae("(",c)+")":c,"?")):B===8?"FutureOr<"+s.b(s.ar(n.y,r))+">":B===9?(m=s.wG(n.y),v=n.z,v.length>0?m+("<"+s.pF(v,r)+">"):m):B===11?s.wz(n,r):B===12?s.py(n,r,null):B===13?s.py(n.y,r,n.z):B===14?(r.toString,S=n.y,r[r.length-1-S]):"?"},wG(n){var r=re.mangledGlobalNames[n];return r??"minified:"+n},vI(n,r){for(var c=n.tR[r];typeof c=="string";)c=n.tR[c];return c},vH(n,r){var c,u,f,m,v,S=n.eT,B=S[r];if(B==null)return s.fT(n,r,!1);if(typeof B=="number"){for(c=B,u=s.el(n,5,"#"),f=s.mv(c),m=0;m<c;++m)f[m]=u;return v=s.ek(n,r,f),S[r]=v,v}else return B},vF(n,r){return s.pt(n.tR,r)},vE(n,r){return s.pt(n.eT,r)},fT(n,r,c){var u,f=n.eC,m=f.get(r);return m??(u=s.pi(s.pg(n,null,r,c)),f.set(r,u),u)},mt(n,r,c){var u,f,m=r.Q;return m==null&&(m=r.Q=new Map),u=m.get(c),u??(f=s.pi(s.pg(n,r,c,!0)),m.set(c,f),f)},vG(n,r,c){var u,f,m,v=r.as;return v==null&&(v=r.as=new Map),u=c.at,f=v.get(u),f??(m=s.nE(n,r,c.x===10?c.z:[c]),v.set(u,m),m)},bn(n,r){return r.a=s.wh,r.b=s.wi,r},el(n,r,c){var u,f,m=n.eC.get(c);return m??(u=new s.aF(null,null),u.x=r,u.at=c,f=s.bn(n,u),n.eC.set(c,f),f)},pl(n,r,c){var u,f=r.at+"*",m=n.eC.get(f);return m??(u=s.vB(n,r,f,c),n.eC.set(f,u),u)},vB(n,r,c,u){var f,m,v;return u&&(f=r.x,s.bq(r)?m=!0:m=r===N.P||r===N.T||f===7||f===6,m)?r:(v=new s.aF(null,null),v.x=6,v.y=r,v.at=c,s.bn(n,v))},nG(n,r,c){var u,f=r.at+"?",m=n.eC.get(f);return m??(u=s.vA(n,r,f,c),n.eC.set(f,u),u)},vA(n,r,c,u){var f,m,v,S;if(u){if(f=r.x,s.bq(r)||r===N.P||r===N.T?m=!0:f!==7?m=f===8&&s.n0(r.y):m=!0,m)return r;if(f===1||r===N.A)return N.P;if(f===6)return v=r.y,v.x===8&&s.n0(v.y)?v:s.v5(n,r)}return S=new s.aF(null,null),S.x=7,S.y=r,S.at=c,s.bn(n,S)},pk(n,r,c){var u,f=r.at+"/",m=n.eC.get(f);return m??(u=s.vy(n,r,f,c),n.eC.set(f,u),u)},vy(n,r,c,u){var f,m,v;if(u){if(f=r.x,s.bq(r)?m=!0:r!==N._?m=r===N.K:m=!0,m||r===N.K)return r;if(f===1)return s.ek(n,"a5",[r]);if(r===N.P||r===N.T)return N.eH}return v=new s.aF(null,null),v.x=8,v.y=r,v.at=c,s.bn(n,v)},vC(n,r){var c,u,f=""+r+"^",m=n.eC.get(f);return m??(c=new s.aF(null,null),c.x=14,c.y=r,c.at=f,u=s.bn(n,c),n.eC.set(f,u),u)},ej(n){var r,c,u,f=n.length;for(r="",c="",u=0;u<f;++u,c=",")r+=c+n[u].at;return r},vx(n){var r,c,u,f,m,v=n.length;for(r="",c="",u=0;u<v;u+=3,c=",")f=n[u],m=n[u+1]?"!":":",r+=c+f+m+n[u+2].at;return r},ek(n,r,c){var u,f,m,v=r;return c.length>0&&(v+="<"+s.ej(c)+">"),u=n.eC.get(v),u??(f=new s.aF(null,null),f.x=9,f.y=r,f.z=c,c.length>0&&(f.c=c[0]),f.at=v,m=s.bn(n,f),n.eC.set(v,m),m)},nE(n,r,c){var u,f,m,v,S,B;return r.x===10?(u=r.y,f=r.z.concat(c)):(f=c,u=r),m=u.at+(";<"+s.ej(f)+">"),v=n.eC.get(m),v??(S=new s.aF(null,null),S.x=10,S.y=u,S.z=f,S.at=m,B=s.bn(n,S),n.eC.set(m,B),B)},vD(n,r,c){var u,f,m="+"+(r+"("+s.ej(c)+")"),v=n.eC.get(m);return v??(u=new s.aF(null,null),u.x=11,u.y=r,u.z=c,u.at=m,f=s.bn(n,u),n.eC.set(m,f),f)},pj(n,r,c){var u,f,m,v,S,B=r.at,L=c.a,F=L.length,z=c.b,O=z.length,W=c.c,Y=W.length,te="("+s.ej(L);return O>0&&(u=F>0?",":"",te+=u+"["+s.ej(z)+"]"),Y>0&&(u=F>0?",":"",te+=u+"{"+s.vx(W)+"}"),f=B+(te+")"),m=n.eC.get(f),m??(v=new s.aF(null,null),v.x=12,v.y=r,v.z=c,v.at=f,S=s.bn(n,v),n.eC.set(f,S),S)},nF(n,r,c,u){var f,m=r.at+("<"+s.ej(c)+">"),v=n.eC.get(m);return v??(f=s.vz(n,r,c,m,u),n.eC.set(m,f),f)},vz(n,r,c,u,f){var m,v,S,B,L,F,z,O;if(f){for(m=c.length,v=s.mv(m),S=0,B=0;B<m;++B)L=c[B],L.x===1&&(v[B]=L,++S);if(S>0)return F=s.bT(n,r,v,0),z=s.ey(n,c,v,0),s.nF(n,F,z,c!==z)}return O=new s.aF(null,null),O.x=13,O.y=r,O.z=c,O.at=u,s.bn(n,O)},pg(n,r,c,u){return{u:n,e:r,r:c,s:[],p:0,n:u}},pi(n){var r,c,u,f,m,v,S,B,L,F,z=n.r,O=n.s;for(r=z.length,c=0;c<r;)if(u=z.charCodeAt(c),u>=48&&u<=57)c=s.vr(c+1,u,z,O);else if((((u|32)>>>0)-97&65535)<26||u===95||u===36||u===124)c=s.ph(n,c,z,O,!1);else if(u===46)c=s.ph(n,c,z,O,!0);else switch(++c,u){case 44:break;case 58:O.push(!1);break;case 33:O.push(!0);break;case 59:O.push(s.bQ(n.u,n.e,O.pop()));break;case 94:O.push(s.vC(n.u,O.pop()));break;case 35:O.push(s.el(n.u,5,"#"));break;case 64:O.push(s.el(n.u,2,"@"));break;case 126:O.push(s.el(n.u,3,"~"));break;case 60:O.push(n.p),n.p=O.length;break;case 62:if(f=n.u,m=O.splice(n.p),s.nD(n.u,n.e,m),n.p=O.pop(),v=O.pop(),typeof v=="string")O.push(s.ek(f,v,m));else switch(S=s.bQ(f,n.e,v),S.x){case 12:O.push(s.nF(f,S,m,n.n));break;default:O.push(s.nE(f,S,m));break}break;case 38:s.vs(n,O);break;case 42:B=n.u,O.push(s.pl(B,s.bQ(B,n.e,O.pop()),n.n));break;case 63:B=n.u,O.push(s.nG(B,s.bQ(B,n.e,O.pop()),n.n));break;case 47:B=n.u,O.push(s.pk(B,s.bQ(B,n.e,O.pop()),n.n));break;case 40:O.push(-3),O.push(n.p),n.p=O.length;break;case 41:s.vq(n,O);break;case 91:O.push(n.p),n.p=O.length;break;case 93:m=O.splice(n.p),s.nD(n.u,n.e,m),n.p=O.pop(),O.push(m),O.push(-1);break;case 123:O.push(n.p),n.p=O.length;break;case 125:m=O.splice(n.p),s.vu(n.u,n.e,m),n.p=O.pop(),O.push(m),O.push(-2);break;case 43:L=z.indexOf("(",c),O.push(z.substring(c,L)),O.push(-4),O.push(n.p),n.p=O.length,c=L+1;break;default:throw"Bad character "+u}return F=O.pop(),s.bQ(n.u,n.e,F)},vr(n,r,c,u){var f,m,v=r-48;for(f=c.length;n<f&&(m=c.charCodeAt(n),m>=48&&m<=57);++n)v=v*10+(m-48);return u.push(v),n},ph(n,r,c,u,f){var m,v,S,B,L,F,z=r+1;for(m=c.length;z<m;++z)if(v=c.charCodeAt(z),v===46){if(f)break;f=!0}else if((((v|32)>>>0)-97&65535)<26||v===95||v===36||v===124?S=!0:S=v>=48&&v<=57,!S)break;return B=c.substring(r,z),f?(m=n.u,L=n.e,L.x===10&&(L=L.y),F=s.vI(m,L.y)[B],F==null&&s.Z('No "'+B+'" in "'+s.v4(L)+'"'),u.push(s.mt(m,L,F))):u.push(B),z},vq(n,r){var c,u,f,m,v,S=null,B=n.u,L=r.pop();if(typeof L=="number")switch(L){case-1:c=r.pop(),u=S;break;case-2:u=r.pop(),c=S;break;default:r.push(L),u=S,c=u;break}else r.push(L),u=S,c=u;switch(f=s.vp(n,r),L=r.pop(),L){case-3:L=r.pop(),c==null&&(c=B.sEA),u==null&&(u=B.sEA),m=s.bQ(B,n.e,L),v=new s.fK,v.a=f,v.b=c,v.c=u,r.push(s.pj(B,m,v));return;case-4:r.push(s.vD(B,r.pop(),f));return;default:throw s.d(s.eG("Unexpected state under `()`: "+s.b(L)))}},vs(n,r){var c=r.pop();if(c===0){r.push(s.el(n.u,1,"0&"));return}if(c===1){r.push(s.el(n.u,4,"1&"));return}throw s.d(s.eG("Unexpected extended operation "+s.b(c)))},vp(n,r){var c=r.splice(n.p);return s.nD(n.u,n.e,c),n.p=r.pop(),c},bQ(n,r,c){return typeof c=="string"?s.ek(n,c,n.sEA):typeof c=="number"?(r.toString,s.vt(n,r,c)):c},nD(n,r,c){var u,f=c.length;for(u=0;u<f;++u)c[u]=s.bQ(n,r,c[u])},vu(n,r,c){var u,f=c.length;for(u=2;u<f;u+=3)c[u]=s.bQ(n,r,c[u])},vt(n,r,c){var u,f,m=r.x;if(m===10){if(c===0)return r.y;if(u=r.z,f=u.length,c<=f)return u[c-1];c-=f,r=r.y,m=r.x}else if(c===0)return r;if(m!==9)throw s.d(s.eG("Indexed base must be an interface type"));if(u=r.z,c<=u.length)return u[c-1];throw s.d(s.eG("Bad index "+c+" for "+r.k(0)))},a7(n,r,c,u,f){var m,v,S,B,L,F,z,O,W,Y;if(r===u||(s.bq(u)?m=!0:u!==N._?m=u===N.K:m=!0,m)||(v=r.x,v===4))return!0;if(s.bq(r))return!1;if(r.x!==1?m=r===N.P||r===N.T:m=!0,m||(S=v===14,S&&s.a7(n,c[r.y],c,u,f)))return!0;if(B=u.x,v===6)return s.a7(n,r.y,c,u,f);if(B===6)return m=u.y,s.a7(n,r,c,m,f);if(v===8)return s.a7(n,r.y,c,u,f)?s.a7(n,s.oZ(n,r),c,u,f):!1;if(v===7)return m=s.a7(n,r.y,c,u,f),m;if(B===8)return s.a7(n,r,c,u.y,f)?!0:s.a7(n,r,c,s.oZ(n,u),f);if(B===7)return m=s.a7(n,r,c,u.y,f),m;if(S)return!1;if(m=v!==12,(!m||v===13)&&u===N.b8)return!0;if(B===13){if(r===N.g)return!0;if(v!==13||(L=r.z,F=u.z,z=L.length,z!==F.length))return!1;for(c=c==null?L:L.concat(c),f=f==null?F:F.concat(f),O=0;O<z;++O)if(W=L[O],Y=F[O],!s.a7(n,W,c,Y,f)||!s.a7(n,Y,f,W,c))return!1;return s.pA(n,r.y,c,u.y,f)}return B===12?r===N.g?!0:m?!1:s.pA(n,r,c,u,f):v===9?B!==9?!1:s.wk(n,r,c,u,f):(m=v===11,m&&u===N.gT?!0:m&&B===11?s.wo(n,r,c,u,f):!1)},pA(n,r,c,u,f){var m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q,ae,me,fe,he,ve;if(!s.a7(n,r.y,c,u.y,f)||(m=r.z,v=u.z,S=m.a,B=v.a,L=S.length,F=B.length,L>F)||(z=F-L,O=m.b,W=v.b,Y=O.length,te=W.length,L+Y<F+te))return!1;for(K=0;K<L;++K)if(ie=S[K],!s.a7(n,B[K],f,ie,c))return!1;for(K=0;K<z;++K)if(ie=O[K],!s.a7(n,B[L+K],f,ie,c))return!1;for(K=0;K<te;++K)if(ie=O[z+K],!s.a7(n,W[K],f,ie,c))return!1;for(de=m.c,j=v.c,q=de.length,ae=j.length,me=0,fe=0;fe<ae;fe+=3)for(he=j[fe];;){if(me>=q||(ve=de[me],me+=3,he<ve))return!1;if(!(ve<he)){if(ie=de[me-1],!s.a7(n,j[fe+2],f,ie,c))return!1;break}}return!0},wk(n,r,c,u,f){for(var m,v,S,B,L,F,z,O=r.y,W=u.y;O!==W;){if(m=n.tR[O],m==null)return!1;if(typeof m=="string"){O=m;continue}if(v=m[W],v==null)return!1;for(S=v.length,B=S>0?new Array(S):re.typeUniverse.sEA,L=0;L<S;++L)B[L]=s.mt(n,r,v[L]);return s.pu(n,B,null,c,u.z,f)}return F=r.z,z=u.z,s.pu(n,F,null,c,z,f)},pu(n,r,c,u,f,m){var v,S,B,L=r.length;for(v=0;v<L;++v)if(S=r[v],B=f[v],!s.a7(n,S,u,B,m))return!1;return!0},wo(n,r,c,u,f){var m,v=r.z,S=u.z,B=v.length;if(B!==S.length||r.y!==u.y)return!1;for(m=0;m<B;++m)if(!s.a7(n,v[m],c,S[m],f))return!1;return!0},n0(n){var r,c=n.x;return n===N.P||n===N.T||s.bq(n)?r=!0:c!==7?c===6&&s.n0(n.y)?r=!0:r=c===8&&s.n0(n.y):r=!0,r},xh(n){var r;return s.bq(n)?r=!0:n!==N._?r=n===N.K:r=!0,r},bq(n){var r=n.x;return r===2||r===3||r===4||r===5||n===N.cK},pt(n,r){var c,u,f=Object.keys(r),m=f.length;for(c=0;c<m;++c)u=f[c],n[u]=r[u]},mv(n){return n>0?new Array(n):re.typeUniverse.sEA},aF:function(r,c){var u=this;u.a=r,u.b=c,u.w=u.r=u.c=null,u.x=0,u.at=u.as=u.Q=u.z=u.y=null},fK:function(){this.c=this.b=this.a=null},eh:function(r){this.a=r},fJ:function(){},ei:function(r){this.a=r},vg(){var n,r,c={};return t.scheduleImmediate!=null?s.wP():t.MutationObserver!=null&&t.document!=null?(n=t.document.createElement("div"),r=t.document.createElement("span"),c.a=null,new t.MutationObserver(s.mO(new s.lW(c),1)).observe(n,{childList:!0}),new s.lV(c,n,r)):t.setImmediate!=null?s.wQ():s.wR()},vh(n){t.scheduleImmediate(s.mO(new s.lX(n),0))},vi(n){t.setImmediate(s.mO(new s.lY(n),0))},vj(n){s.vv(0,n)},vv(n,r){var c=new s.mr;return c.dg(n,r),c},ex(n){return new s.fD(new s.C(I.B,n.h("C<0>")),n.h("fD<0>"))},et(n,r){return n.$2(0,null),r.b=!0,r.a},dd(n,r){s.w2(n,r)},es(n,r){r.a3(n)},er(n,r){r.bK(s.M(n),s.aS(n))},w2(n,r){var c,u,f=new s.mx(r),m=new s.my(r);n instanceof s.C?n.cz(f,m,N.z):(c=N.z,N.d.b(n)?n.au(0,f,m,c):(u=new s.C(I.B,N.eI),u.a=8,u.c=n,u.cz(f,m,c)))},ez(n){var r=(function(c,u){return function(f,m){for(;;)try{c(f,m);break}catch(v){m=v,f=u}}})(n,1);return I.B.c1(new s.mN(r))},mf(n){return new s.d7(n,1)},bO(){return y.eo},bP(n){return new s.d7(n,3)},bS(n,r){return new s.eg(n,r.h("eg<0>"))},h9(n,r){var c=s.bU(n,"error",N.K);return new s.eH(c,r??s.eI(n))},eI(n){var r;return N.Q.b(n)&&(r=n.gb2(),r!=null)?r:y.bk},nz(n,r){for(var c,u;c=n.a,(c&4)!==0;)n=n.c;(c&24)!==0?(u=r.bb(),r.by(n),s.d6(r,u)):(u=r.c,r.a=r.a&1|4,r.c=n,n.cs(u))},d6(n,r){var c,u,f,m,v,S,B,L,F,z,O,W,Y,te={},K=te.a=n;for(c=N.d;;){if(u={},f=K.a,m=(f&16)===0,v=!m,r==null){v&&(f&1)===0&&(K=K.c,s.dh(K.a,K.b));return}for(u.a=r,S=r.a,K=r;S!=null;K=S,S=B)K.a=null,s.d6(te.a,K),u.a=S,B=S.a;if(f=te.a,L=f.c,u.b=v,u.c=L,m?(F=K.c,F=(F&1)!==0||(F&15)===8):F=!0,F){if(z=K.b.b,v?(f=f.b===z,f=!(f||f)):f=!1,f){s.dh(L.a,L.b);return}if(O=I.B,O!==z?I.B=z:O=null,K=K.c,(K&15)===8?new s.md(u,te,v).$0():m?(K&1)!==0&&new s.mc(u,L).$0():(K&2)!==0&&new s.mb(te,u).$0(),O!=null&&(I.B=O),K=u.c,c.b(K)?(f=u.a.$ti,f=f.h("a5<2>").b(K)||!f.z[1].b(K)):f=!1,f){if(W=u.a.b,K instanceof s.C)if((K.a&24)!==0){Y=W.c,W.c=null,r=W.bc(Y),W.a=K.a&30|W.a&1,W.c=K.c,te.a=K;continue}else s.nz(K,W);else W.ce(K);return}}W=u.a.b,Y=W.c,W.c=null,r=W.bc(Y),K=u.b,f=u.c,K?(W.a=W.a&1|16,W.c=f):(W.a=8,W.c=f),te.a=W,K=W}},wA(n,r){if(N.C.b(n))return r.c1(n);if(N.v.b(n))return n;throw s.d(s.h7(n,"onError",Ae.c))},wv(){var n,r;for(n=I.dg;n!=null;n=I.dg)I.ew=null,r=n.b,I.dg=r,r==null&&(I.ev=null),n.a.$0()},wC(){I.nK=!0;try{s.wv()}finally{I.ew=null,I.nK=!1,I.dg!=null&&I.oj().$1(s.pK())}},pH(n){var r=new s.fE(n),c=I.ev;c==null?(I.dg=I.ev=r,I.nK||I.oj().$1(s.pK())):I.ev=c.b=r},wB(n){var r,c,u,f=I.dg;if(f==null){s.pH(n),I.ew=I.ev;return}r=new s.fE(n),c=I.ew,c==null?(r.b=f,I.dg=I.ew=r):(u=c.b,r.b=u,I.ew=c.b=r,u==null&&(I.ev=r))},q_(n){var r,c=null,u=I.B;if(y.i===u){s.cI(c,c,y.i,n);return}if(r=!1,r){s.cI(c,c,u,n);return}s.cI(c,c,u,u.cB(n))},fs(n,r){var c=null,u=r.h("aZ<0>"),f=new s.aZ(c,c,c,c,u);return f.aJ(n),f.aK(),new s.aj(f,u.h("aj<1>"))},v9(n,r){var c=null,u=r.h("db<0>"),f=new s.db(c,c,c,c,u);return n.au(0,new s.ln(f,r),new s.lo(f),N.P),new s.aj(f,u.h("aj<1>"))},AG(n){return s.bU(n,"stream",N.K),new s.fQ},p1(n,r,c,u){return new s.aZ(null,r,c,n,u.h("aZ<0>"))},nM(n){var r,c;if(n!=null)try{n.$0()}catch(u){r=s.M(u),c=s.aS(u),s.dh(r,c)}},vn(n,r){if(r==null&&(r=s.wS()),N.k.b(r))return n.c1(r);if(N.d5.b(r))return r;throw s.d(s.K("handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace.",null))},ww(n,r){s.dh(n,r)},dh(n,r){s.wB(new s.mK(n,r))},pC(n,r,c,u){var f,m=I.B;if(m===c)return u.$0();I.B=c,f=m;try{return m=u.$0(),m}finally{I.B=f}},pE(n,r,c,u,f){var m,v=I.B;if(v===c)return u.$1(f);I.B=c,m=v;try{return v=u.$1(f),v}finally{I.B=m}},pD(n,r,c,u,f,m){var v,S=I.B;if(S===c)return u.$2(f,m);I.B=c,v=S;try{return S=u.$2(f,m),S}finally{I.B=v}},cI(n,r,c,u){y.i!==c&&(u=c.cB(u)),s.pH(u)},lW:function(r){this.a=r},lV:function(r,c,u){this.a=r,this.b=c,this.c=u},lX:function(r){this.a=r},lY:function(r){this.a=r},mr:function(){},ms:function(r,c){this.a=r,this.b=c},fD:function(r,c){this.a=r,this.b=!1,this.$ti=c},mx:function(r){this.a=r},my:function(r){this.a=r},mN:function(r){this.a=r},d7:function(r,c){this.a=r,this.b=c},aH:function(r,c){var u=this;u.a=r,u.d=u.c=u.b=null,u.$ti=c},eg:function(r,c){this.a=r,this.$ti=c},eH:function(r,c){this.a=r,this.b=c},fG:function(){},ay:function(r,c){this.a=r,this.$ti=c},bN:function(r,c,u,f,m){var v=this;v.a=null,v.b=r,v.c=c,v.d=u,v.e=f,v.$ti=m},C:function(r,c){var u=this;u.a=0,u.b=r,u.c=null,u.$ti=c},m3:function(r,c){this.a=r,this.b=c},ma:function(r,c){this.a=r,this.b=c},m6:function(r){this.a=r},m7:function(r){this.a=r},m8:function(r,c,u){this.a=r,this.b=c,this.c=u},m5:function(r,c){this.a=r,this.b=c},m9:function(r,c){this.a=r,this.b=c},m4:function(r,c,u){this.a=r,this.b=c,this.c=u},md:function(r,c,u){this.a=r,this.b=c,this.c=u},me:function(r){this.a=r},mc:function(r,c){this.a=r,this.b=c},mb:function(r,c){this.a=r,this.b=c},fE:function(r){this.a=r,this.b=null},bi:function(){},ln:function(r,c){this.a=r,this.b=c},lo:function(r){this.a=r},lp:function(r,c){this.a=r,this.b=c},lq:function(r,c){this.a=r,this.b=c},fr:function(){},da:function(){},mq:function(r){this.a=r},mp:function(r){this.a=r},fS:function(){},fF:function(){},aZ:function(r,c,u,f,m){var v=this;v.a=null,v.b=0,v.c=null,v.d=r,v.e=c,v.f=u,v.r=f,v.$ti=m},db:function(r,c,u,f,m){var v=this;v.a=null,v.b=0,v.c=null,v.d=r,v.e=c,v.f=u,v.r=f,v.$ti=m},aj:function(r,c){this.a=r,this.$ti=c},dX:function(r,c,u,f,m,v){var S=this;S.w=r,S.a=c,S.b=u,S.c=f,S.d=m,S.e=v,S.r=S.f=null},dT:function(){},m0:function(r,c,u){this.a=r,this.b=c,this.c=u},m_:function(r){this.a=r},ee:function(){},fI:function(){},cG:function(r){this.b=r,this.a=null},dY:function(r,c){this.b=r,this.c=c,this.a=null},m1:function(){},eb:function(){this.a=0,this.c=this.b=null},ml:function(r,c){this.a=r,this.b=c},fQ:function(){},mw:function(){},mK:function(r,c){this.a=r,this.b=c},mn:function(){},mo:function(r,c){this.a=r,this.b=c},pe(n,r){var c=n[r];return c===n?null:c},nA(n,r,c){c==null?n[r]=n:n[r]=c},pf(){var n=Object.create(null);return s.nA(n,"<non-identifier-key>",n),delete n["<non-identifier-key>"],n},uI(n,r,c,u){return s.vo(s.wZ(),n,r,c,u)},nu(n,r,c){return s.pN(n,new s.aC(r.h("@<0>").I(c).h("aC<1,2>")))},a9(n,r){return new s.aC(n.h("@<0>").I(r).h("aC<1,2>"))},vo(n,r,c,u,f){var m=c??new s.mi(u);return new s.e5(n,r,m,u.h("@<0>").I(f).h("e5<1,2>"))},oH(n){return new s.b_(n.h("b_<0>"))},aD(n){return new s.b_(n.h("b_<0>"))},aP(n,r){return s.x4(n,new s.b_(r.h("b_<0>")))},nC(){var n=Object.create(null);return n["<non-identifier-key>"]=n,delete n["<non-identifier-key>"],n},nB(n,r,c){var u=new s.cH(n,r,c.h("cH<0>"));return u.c=n.e,u},w7(n,r){return V.af(n,r)},uh(n,r,c){var u,f;if(s.nL(n))return r==="("&&c===")"?"(...)":r+"..."+c;u=s.a([],N.s),I.cJ.push(n);try{s.ws(n,u)}finally{I.cJ.pop()}return f=s.ny(r,u,", ")+c,f.charCodeAt(0)==0,f},iI(n,r,c){var u,f;if(s.nL(n))return r+"..."+c;u=new s.ac(r),I.cJ.push(n);try{f=u,f.a=s.ny(f.a,n,", ")}finally{I.cJ.pop()}return u.a+=c,f=u.a,f.charCodeAt(0)==0,f},nL(n){var r,c;for(r=I.cJ.length,c=0;c<r;++c)if(n===I.cJ[c])return!0;return!1},ws(n,r){for(var c,u,f,m,v,S,B,L=n.gH(n),F=0,z=0;F<80||z<3;){if(!L.q())return;c=s.b(L.gt()),r.push(c),F+=c.length+2,++z}if(L.q())if(m=L.gt(),++z,L.q()){for(v=L.gt(),++z;L.q();m=v,v=S)if(S=L.gt(),++z,z>100){for(;F>75&&z>3;)F-=r.pop().length+2,--z;r.push("...");return}f=s.b(m),u=s.b(v),F+=u.length+f.length+4}else{if(z<=4){r.push(s.b(m));return}u=s.b(m),f=r.pop(),F+=u.length+2}else{if(z<=5)return;u=r.pop(),f=r.pop()}for(z>r.length+2?(F+=5,B="..."):B=null;F>80&&r.length>3;)F-=r.pop().length+2,B==null&&(F+=5,B="...");B!=null&&r.push(B),r.push(f),r.push(u)},uJ(n,r){var c,u,f=s.oH(r);for(c=n.length,u=0;u<n.length;n.length===c||(0,s.cN)(n),++u)f.C(0,r.a(n[u]));return f},nv(n){var r,c={};if(s.nL(n))return"{...}";r=new s.ac("");try{I.cJ.push(n),r.a+="{",c.a=!0,n.M(0,new s.jO(c,r)),r.a+="}"}finally{I.cJ.pop()}return c=r.a,c.charCodeAt(0)==0,c},e1:function(){},e4:function(r){var c=this;c.a=0,c.e=c.d=c.c=c.b=null,c.$ti=r},e2:function(r,c){this.a=r,this.$ti=c},e3:function(r,c,u){var f=this;f.a=r,f.b=c,f.c=0,f.d=null,f.$ti=u},e5:function(r,c,u,f){var m=this;m.w=r,m.x=c,m.y=u,m.a=0,m.f=m.e=m.d=m.c=m.b=null,m.r=0,m.$ti=f},mi:function(r){this.a=r},b_:function(r){var c=this;c.a=0,c.f=c.e=c.d=c.c=c.b=null,c.r=0,c.$ti=r},mj:function(r){this.a=r,this.c=this.b=null},cH:function(r,c,u){var f=this;f.a=r,f.b=c,f.d=f.c=null,f.$ti=u},aX:function(r,c){this.a=r,this.$ti=c},dw:function(){},dA:function(){},p:function(){},dB:function(){},jO:function(r,c){this.a=r,this.b=c},I:function(){},jP:function(r){this.a=r},fU:function(){},dC:function(){},bm:function(r,c){this.a=r,this.$ti=c},dM:function(){},ec:function(){},e6:function(){},em:function(){},eq:function(){},pB(n,r){var c,u,f=null;try{f=JSON.parse(n)}catch(m){throw c=s.M(m),u=s.R(String(c),null,null),s.d(u)}return u=s.mA(f),u},mA(n){var r;if(n==null)return null;if(typeof n!="object")return n;if(Object.getPrototypeOf(n)!==Array.prototype)return new s.fM(n,Object.create(null));for(r=0;r<n.length;++r)n[r]=s.mA(n[r]);return n},ve(n,r,c,u){var f,m;return r instanceof Uint8Array?(f=r,u=f.length,u-c<15||(m=s.vf(n,f,c,u),m!=null&&n&&m.indexOf("�")>=0)?null:m):null},vf(n,r,c,u){var f=n?I.tm():I.tl();return f==null?null:c===0&&u===r.length?s.p8(f,r):s.p8(f,r.subarray(c,s.aQ(c,u,r.length)))},p8(n,r){var c;try{return c=n.decode(r),c}catch{}return null},os(n,r,c,u,f,m){if(y.c.br(m,4)!==0)throw s.d(s.R("Invalid base64 padding, padded length must be multiple of four, is "+m,n,c));if(u+f!==m)throw s.d(s.R("Invalid base64 padding, '=' not at the end",n,r));if(f>2)throw s.d(s.R("Invalid base64 padding, more than two '=' characters",n,r))},vm(n,r,c,u,f,m){var v,S,B,L,F,z,O="Invalid encoding before padding",W="Invalid character",Y=y.c.ai(m,2),te=m&3,K=I.ok();for(v=r,S=0;v<c;++v){if(B=y.a.B(n,v),S|=B,L=K[B&127],L>=0){Y=(Y<<6|L)&16777215,te=te+1&3,te===0&&(F=f+1,u[f]=Y>>>16&255,f=F+1,u[F]=Y>>>8&255,F=f+1,u[f]=Y&255,f=F,Y=0);continue}else if(L===-1&&te>1){if(S>127)break;if(te===3){if((Y&3)!==0)throw s.d(s.R(O,n,v));u[f]=Y>>>10,u[f+1]=Y>>>2}else{if((Y&15)!==0)throw s.d(s.R(O,n,v));u[f]=Y>>>4}return z=(3-te)*3,B===37&&(z+=2),s.pc(n,v+1,c,-z-1)}throw s.d(s.R(W,n,v))}if(S>=0&&S<=127)return(Y<<2|te)>>>0;for(v=r;v<c&&(B=y.a.B(n,v),!(B>127));++v);throw s.d(s.R(W,n,v))},vk(n,r,c,u){var f=s.vl(n,r,c),m=(u&3)+(f-r),v=y.c.ai(m,2)*3,S=m&3;return S!==0&&f<c&&(v+=S-1),v>0?new Uint8Array(v):I.tn()},vl(n,r,c){for(var u,f=c,m=f,v=0;m>r&&v<2;)e:{if(--m,u=y.a.B(n,m),u===61){++v,f=m;break e}if((u|32)===100){if(m===r)break;--m,u=y.a.B(n,m)}if(u===51){if(m===r)break;--m,u=y.a.B(n,m)}if(u===37){++v,f=m;break e}break}return f},pc(n,r,c,u){var f,m;if(r===c)return u;for(f=-u-1;f>0;){if(m=y.a.B(n,r),f===3){if(m===61){f-=3,++r;break}if(m===37){if(--f,++r,r===c)break;m=y.a.B(n,r)}else break}if((f>3?f-3:f)===2){if(m!==51||(++r,--f,r===c))break;m=y.a.B(n,r)}if((m|32)!==100||(++r,--f,r===c))break}if(r!==c)throw s.d(s.R("Invalid padding character",n,r));return-f-1},ps(n){switch(n){case 65:return"Missing extension byte";case 67:return"Unexpected extension byte";case 69:return"Invalid UTF-8 byte";case 71:return"Overlong encoding";case 73:return"Out of unicode range";case 75:return"Encoded surrogate";case 77:return"Unfinished UTF-8 octet sequence";default:return""}},vZ(n,r,c){var u,f,m,v=c-r,S=new Uint8Array(v);for(u=V.V(n),f=0;f<v;++f)m=u.i(n,r+f),S[f]=(m&4294967040)>>>0?255:m;return S},fM:function(r,c){this.a=r,this.b=c,this.c=null},fN:function(r){this.a=r},mh:function(r,c,u){this.b=r,this.c=c,this.a=u},lD:function(){},lC:function(){},ha:function(){},hc:function(){},hb:function(){},lZ:function(){this.a=0},hd:function(){},eJ:function(){},fO:function(r,c,u){this.a=r,this.b=c,this.$ti=u},eN:function(){},eP:function(){},hW:function(){},iQ:function(){},iR:function(r){this.a=r},lr:function(){},ls:function(){},ef:function(){},mu:function(r,c,u){this.a=r,this.b=c,this.c=u},lA:function(){},lB:function(r){this.a=r},fV:function(r){this.a=r,this.b=16,this.c=0},cM(n,r){var c=s.oY(n,r);if(c!=null)return c;throw s.d(s.R(n,null,null))},u6(n){return n instanceof s.c7?n.k(0):"Instance of '"+s.b(s.ka(n))+"'"},u7(n,r){throw n=s.d(n),n.stack=V.as(r),n},U(n,r,c,u){var f,m=V.b8(n,u);if(n!==0&&r!=null)for(f=0;f<n;++f)m[f]=r;return m},uK(n,r){var c,u=s.a([],r.h("D<0>"));for(c=n.gH(n);c.q();)u.push(c.gt());return u},bc(n,r,c){var u;return r?s.oI(n,c):(u=V.nr(s.oI(n,c)),u)},oI(n,r){var c,u;if(Array.isArray(n))return s.a(n.slice(0),r.h("D<0>"));for(c=s.a([],r.h("D<0>")),u=V.aA(n);u.q();)c.push(u.gt());return c},oJ(n,r,c,u){var f,m=V.b8(n,u);for(f=0;f<n;++f)m[f]=r.$1(f);return m},p2(n,r,c){return N.bm.b(n)?s.v2(n,r,s.aQ(r,c,n.length)):s.va(n,r,c)},va(n,r,c){var u,f,m,v,S=null;if(r<0)throw s.d(s.Y(r,0,n.length,S,S));if(u=c==null,!u&&c<r)throw s.d(s.Y(c,r,n.length,S,S));for(f=new s.aa(n,n.length,s.ak(n).h("aa<p.E>")),m=0;m<r;++m)if(!f.q())throw s.d(s.Y(r,0,m,S,S));if(v=[],u)for(;f.q();)v.push(f.d);else for(m=r;m<c;++m){if(!f.q())throw s.d(s.Y(c,r,m,S,S));v.push(f.d)}return s.v0(v)},nx(n){return new s.iK(n,s.uk(n,!1,!0,!1,!1,!1))},ny(n,r,c){var u=V.aA(r);if(!u.q())return n;if(c.length===0)do n+=s.b(u.gt());while(u.q());else for(n+=s.b(u.gt());u.q();)n=n+c+s.b(u.gt());return n},uT(n,r,c,u,f){return new s.dH(n,r,c,u,f)},oy(n){var r=Math.abs(n),c=n<0?"-":"";return r>=1e3?""+n:r>=100?c+"0"+r:r>=10?c+"00"+r:c+"000"+r},u5(n){var r=Math.abs(n),c=n<0?"-":"+";return r>=1e5?c+r:c+"0"+r},oz(n){return n>=100?""+n:n>=10?"0"+n:"00"+n},b6(n){return n>=10?""+n:"0"+n},cS(n){return typeof n=="number"||s.eu(n)||n==null?V.as(n):typeof n=="string"?JSON.stringify(n):s.u6(n)},u8(n,r){s.bU(n,"error",N.K),s.bU(r,"stackTrace",N.gm),s.u7(n,r),s.bg(Ae.g)},eG(n){return new s.eF(n)},K(n,r){return new s.at(!1,null,r,n)},h7(n,r,c){return new s.at(!0,n,r,c)},h8(n,r){return n},Y(n,r,c,u,f){return new s.dL(r,c,!0,n,u,"Invalid value")},aQ(n,r,c){if(0>n||n>c)throw s.d(s.Y(n,0,c,"start",null));if(r!=null){if(n>r||r>c)throw s.d(s.Y(r,n,c,"end",null));return r}return c},aW(n,r){if(n<0)throw s.d(s.Y(n,0,null,r,null));return n},eW(n,r,c,u,f){return new s.eV(r,!0,n,f,"Index out of range")},ad(n){return new s.fz(n)},p4(n){return new s.fu(n)},d2(n){return new s.bJ(n)},ag(n){return new s.eO(n)},u9(n){return new s.e_(n)},R(n,r,c){return new s.aK(n,r,c)},oE(n,r,c){return n<=0?new s.b7(c.h("b7<0>")):new s.e0(n,r,c.h("e0<0>"))},oK(n,r,c,u,f){return new s.c6(n,r.h("@<0>").I(c).I(u).I(f).h("c6<1,2,3,4>"))},k6(n){var r,c,u=I.to();for(r=n.length,c=0;c<r;++c)u=u+V.bY(n[c])&536870911,u=u+((u&524287)<<10)&536870911,u^=u>>>6;return u=u+((u&67108863)<<3)&536870911,u^=u>>>11,u+((u&16383)<<15)&536870911},p6(n){var r,c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q,ae,me,fe,he=null,ve=n.length;if(ve>=5){if(r=s.pI(n,0),r===0)return c=s.lw(ve<ve?y.a.u(n,0,ve):n,5,he),c.gbo(c);if(r===32)return c=s.lw(y.a.u(n,5,ve),0,he),c.gbo(c)}return u=s.U(8,0,!1,N.S),u[0]=0,u[1]=-1,u[2]=-1,u[7]=-1,u[3]=0,u[4]=0,u[5]=ve,u[6]=ve,s.pG(n,0,ve,0,u)>=14&&(u[7]=ve),f=u[1],f>=0&&s.pG(n,0,f,20,u)===20&&(u[7]=f),m=u[2]+1,v=u[3],S=u[4],B=u[5],L=u[6],L<B&&(B=L),S<m?S=B:S<=f&&(S=f+1),v<m&&(v=S),F=u[7]<0,F?m>f+3?(z=he,F=!1):(c=v>0,c&&v+1===S?(z=he,F=!1):(y.a.U(n,"\\",S)?O=!0:m>0?O=y.a.U(n,"\\",m-1)||y.a.U(n,"\\",m-2):O=!1,O?(z=he,F=!1):(B<ve&&B===S+2&&y.a.U(n,"..",S)?O=!0:O=B>S+2&&y.a.U(n,"/..",B-3),O?(z=he,F=!1):(f===4?y.a.U(n,"file",0)?(m<=0?(y.a.U(n,"/",S)?(W="file://",Y=2):(W="file:///",Y=3),n=W+y.a.u(n,S,ve),f-=0,c=Y-0,B+=c,L+=c,ve=n.length,m=7,v=7,S=7):S===B&&(++L,te=B+1,n=y.a.aH(n,S,B,"/"),++ve,B=te),z="file"):y.a.U(n,"http",0)?(c&&v+3===S&&y.a.U(n,"80",v+1)&&(L-=3,K=S-3,B-=3,n=y.a.aH(n,v,S,""),ve-=3,S=K),z="http"):z=he:f===5&&y.a.U(n,"https",0)?(c&&v+4===S&&y.a.U(n,"443",v+1)&&(L-=4,K=S-4,B-=4,n=y.a.aH(n,v,S,""),ve-=3,S=K),z="https"):z=he,F=!0)))):z=he,F?(ve<n.length&&(n=y.a.u(n,0,ve),f-=0,m-=0,v-=0,S-=0,B-=0,L-=0),new s.fP(n,f,m,v,S,B,L,z)):(z==null&&(f>0?z=s.vS(n,0,f):(f===0&&(s.dc(n,0,"Invalid empty scheme"),s.bg(Ae.g)),z="")),m>0?(ie=f+3,de=ie<m?s.vT(n,ie,m-1):"",j=s.vO(n,m,v,!1),c=v+1,c<S?(q=s.oY(y.a.u(n,c,S),he),ae=s.vQ(q??s.Z(s.R("Invalid port",n,c)),z)):ae=he):(ae=he,j=ae,de=""),me=s.vP(n,S,B,he,z,j!=null),fe=B<L?s.vR(n,B+1,L,he):he,s.vJ(z,de,j,ae,me,fe,L<ve?s.vN(n,L+1,ve):he))},vd(n,r,c){var u,f,m,v,S,B,L="IPv4 address should contain exactly 4 parts",F="each part must be in the range 0..255",z=new s.lx(n),O=new Uint8Array(4);for(u=r,f=u,m=0;u<c;++u)v=y.a.B(n,u),v!==46?(v^48)>9&&z.$2("invalid character",u):(m===3&&z.$2(L,u),S=s.cM(y.a.u(n,f,u),null),S>255&&z.$2(F,f),B=m+1,O[m]=S,f=u+1,m=B);return m!==3&&z.$2(L,c),S=s.cM(y.a.u(n,f,c),null),S>255&&z.$2(F,f),O[m]=S,O},p7(n,r,c){var u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie=null,de=new s.ly(n),j=new s.lz(de,n);for(n.length<2&&de.$2("address is too short",ie),u=s.a([],N.Z),f=r,m=f,v=!1,S=!1;f<c;++f)B=y.a.B(n,f),B===58?(f===r&&(++f,y.a.B(n,f)!==58&&de.$2("invalid start colon.",f),m=f),f===m?(v&&de.$2("only one wildcard `::` is allowed",f),u.push(-1),v=!0):u.push(j.$2(m,f)),m=f+1):B===46&&(S=!0);for(u.length===0&&de.$2("too few parts",ie),L=m===c,F=y.d.gaV(u),L&&F!==-1&&de.$2("expected a part after last `:`",c),L||(S?(z=s.vd(n,m,c),u.push((z[0]<<8|z[1])>>>0),u.push((z[2]<<8|z[3])>>>0)):u.push(j.$2(m,c))),v?u.length>7&&de.$2("an address with a wildcard must have less than 7 parts",ie):u.length!==8&&de.$2("an address without a wildcard must contain exactly 8 parts",ie),O=new Uint8Array(16),F=u.length,W=9-F,f=0,Y=0;f<F;++f)if(te=u[f],te===-1)for(K=0;K<W;++K)O[Y]=0,O[Y+1]=0,Y+=2;else O[Y]=y.c.ai(te,8),O[Y+1]=te&255,Y+=2;return O},vJ(n,r,c,u,f,m,v){return new s.en(n,r,c,u,f,m,v)},pm(n){return n==="http"?80:n==="https"?443:0},dc(n,r,c){throw s.d(s.R(c,n,r))},vQ(n,r){var c=s.pm(r);return n===c?null:n},vO(n,r,c,u){var f,m,v,S,B,L;if(r===c)return"";if(y.a.B(n,r)===91)return f=c-1,y.a.B(n,f)!==93&&(s.dc(n,r,"Missing end `]` to match `[` in host"),s.bg(Ae.g)),m=r+1,v=s.vL(n,m,f),v<f?(S=v+1,B=s.pr(n,y.a.U(n,"25",S)?v+3:S,f,"%25")):B="",s.p7(n,m,v),y.a.u(n,r,v).toLowerCase()+B+"]";for(L=r;L<c;++L)if(y.a.B(n,L)===58)return v=y.a.bg(n,"%",r),v=v>=r&&v<c?v:c,v<c?(S=v+1,B=s.pr(n,y.a.U(n,"25",S)?v+3:S,c,"%25")):B="",s.p7(n,r,v),"["+y.a.u(n,r,v)+B+"]";return s.vV(n,r,c)},vL(n,r,c){var u=y.a.bg(n,"%",r);return u>=r&&u<c?u:c},pr(n,r,c,u){var f,m,v,S,B,L,F,z,O,W,Y=u!==""?new s.ac(u):null;for(f=r,m=f,v=!0;f<c;)if(S=y.a.B(n,f),S===37){if(B=s.nI(n,f,!0),L=B==null,L&&v){f+=3;continue}Y==null&&(Y=new s.ac("")),F=Y.a+=y.a.u(n,m,f),L?B=y.a.u(n,f,f+3):B==="%"&&(s.dc(n,f,"ZoneID should not contain % anymore"),s.bg(Ae.g)),Y.a=F+B,f+=3,m=f,v=!0}else S<127&&(y.av[S>>>4]&1<<(S&15))!==0?(v&&65<=S&&90>=S&&(Y==null&&(Y=new s.ac("")),m<f&&(Y.a+=y.a.u(n,m,f),m=f),v=!1),++f):((S&64512)===55296&&f+1<c?(z=y.a.B(n,f+1),(z&64512)===56320?(S=(S&1023)<<10|z&1023|65536,O=2):O=1):O=1,W=y.a.u(n,m,f),Y==null&&(Y=new s.ac("")),L=Y,L.a+=W,L.a+=s.nH(S),f+=O,m=f);return Y==null?y.a.u(n,r,c):(m<c&&(Y.a+=y.a.u(n,m,c)),L=Y.a,L.charCodeAt(0)==0,L)},vV(n,r,c){var u,f,m,v,S,B,L,F,z,O,W;for(u=r,f=u,m=null,v=!0;u<c;)if(S=y.a.B(n,u),S===37){if(B=s.nI(n,u,!0),L=B==null,L&&v){u+=3;continue}m==null&&(m=new s.ac("")),F=y.a.u(n,f,u),z=m.a+=v?F:F.toLowerCase(),L?(B=y.a.u(n,u,u+3),O=3):B==="%"?(B="%25",O=1):O=3,m.a=z+B,u+=O,f=u,v=!0}else S<127&&(y.db[S>>>4]&1<<(S&15))!==0?(v&&65<=S&&90>=S&&(m==null&&(m=new s.ac("")),f<u&&(m.a+=y.a.u(n,f,u),f=u),v=!1),++u):S<=93&&(y.an[S>>>4]&1<<(S&15))!==0?(s.dc(n,u,"Invalid character"),s.bg(Ae.g)):((S&64512)===55296&&u+1<c?(W=y.a.B(n,u+1),(W&64512)===56320?(S=(S&1023)<<10|W&1023|65536,O=2):O=1):O=1,F=y.a.u(n,f,u),v||(F=F.toLowerCase()),m==null&&(m=new s.ac("")),L=m,L.a+=F,L.a+=s.nH(S),u+=O,f=u);return m==null?y.a.u(n,r,c):(f<c&&(F=y.a.u(n,f,c),m.a+=v?F:F.toLowerCase()),L=m.a,L.charCodeAt(0)==0,L)},vS(n,r,c){var u,f,m,v=Ae.g;if(r===c)return"";for(s.po(y.a.J(n,r))||(s.dc(n,r,"Scheme not starting with alphabetic character"),s.bg(v)),u=r,f=!1;u<c;++u)m=y.a.J(n,u),m<128&&(y.as[m>>>4]&1<<(m&15))!==0||(s.dc(n,u,"Illegal scheme character"),s.bg(v)),65<=m&&m<=90&&(f=!0);return n=y.a.u(n,r,c),s.vK(f?n.toLowerCase():n)},vK(n){return n==="http"?"http":n==="file"?"file":n==="https"?"https":n==="package"?"package":n},vT(n,r,c){return s.eo(n,r,c,y.cQ,!1,!1)},vP(n,r,c,u,f,m){var v=f==="file",S=v||m,B=s.eo(n,r,c,y.ax,!0,!0);if(B.length===0){if(v)return"/"}else S&&!y.a.Y(B,"/")&&(B="/"+B);return s.vU(B,f,m)},vU(n,r,c){var u=r.length===0;return u&&!c&&!y.a.Y(n,"/")&&!y.a.Y(n,"\\")?s.vW(n,!u||c):s.vX(n)},vR(n,r,c,u){return s.eo(n,r,c,y.D,!0,!1)},vN(n,r,c){return s.eo(n,r,c,y.D,!0,!1)},nI(n,r,c){var u,f,m,v,S,B=r+2;return B>=n.length||(u=y.a.B(n,r+1),f=y.a.B(n,B),m=s.mW(u),v=s.mW(f),m<0||v<0)?"%":(S=m*16+v,S<127&&(y.av[y.c.ai(S,4)]&1<<(S&15))!==0?s.be(c&&65<=S&&90>=S?(S|32)>>>0:S):u>=97||f>=97?y.a.u(n,r,r+3).toUpperCase():null)},nH(n){var r,c,u,f,m,v="0123456789ABCDEF";if(n<128)r=new Uint8Array(3),r[0]=37,r[1]=y.a.J(v,n>>>4),r[2]=y.a.J(v,n&15);else for(n>2047?n>65535?(c=240,u=4):(c=224,u=3):(c=192,u=2),r=new Uint8Array(3*u),f=0;--u,u>=0;c=128)m=y.c.dT(n,6*u)&63|c,r[f]=37,r[f+1]=y.a.J(v,m>>>4),r[f+2]=y.a.J(v,m&15),f+=3;return s.p2(r,0,null)},eo(n,r,c,u,f,m){var v=s.pq(n,r,c,u,f,m);return v??y.a.u(n,r,c)},pq(n,r,c,u,f,m){var v,S,B,L,F,z,O,W,Y,te,K=null;for(v=!f,S=r,B=S,L=K;S<c;)if(F=y.a.B(n,S),F<127&&(u[F>>>4]&1<<(F&15))!==0)++S;else{if(F===37){if(z=s.nI(n,S,!1),z==null){S+=3;continue}z==="%"?(z="%25",O=1):O=3}else F===92&&m?(z="/",O=1):v&&F<=93&&(y.an[F>>>4]&1<<(F&15))!==0?(s.dc(n,S,"Invalid character"),s.bg(Ae.g),O=K,z=O):((F&64512)===55296?(W=S+1,W<c?(Y=y.a.B(n,W),(Y&64512)===56320?(F=(F&1023)<<10|Y&1023|65536,O=2):O=1):O=1):O=1,z=s.nH(F));L==null&&(L=new s.ac("")),W=L,te=W.a+=y.a.u(n,B,S),W.a=te+s.b(z),S+=O,B=S}return L==null?K:(B<c&&(L.a+=y.a.u(n,B,c)),v=L.a,v.charCodeAt(0)==0,v)},pp(n){return y.a.Y(n,".")?!0:y.a.bR(n,"/.")!==-1},vX(n){var r,c,u,f,m,v;if(!s.pp(n))return n;for(r=s.a([],N.s),c=n.split("/"),u=c.length,f=!1,m=0;m<u;++m)v=c[m],V.af(v,"..")?(r.length!==0&&(r.pop(),r.length===0&&r.push("")),f=!0):v==="."?f=!0:(r.push(v),f=!1);return f&&r.push(""),y.d.cQ(r,"/")},vW(n,r){var c,u,f,m,v,S;if(!s.pp(n))return r?n:s.pn(n);for(c=s.a([],N.s),u=n.split("/"),f=u.length,m=!1,v=0;v<f;++v)S=u[v],S===".."?c.length!==0&&y.d.gaV(c)!==".."?(c.pop(),m=!0):(c.push(".."),m=!1):S==="."?m=!0:(c.push(S),m=!1);return u=c.length,u!==0?u=u===1&&c[0].length===0:u=!0,u?"./":((m||y.d.gaV(c)==="..")&&c.push(""),r||(c[0]=s.pn(c[0])),y.d.cQ(c,"/"))},pn(n){var r,c,u=n.length;if(u>=2&&s.po(y.a.J(n,0)))for(r=1;r<u;++r){if(c=y.a.J(n,r),c===58)return y.a.u(n,0,r)+"%3A"+y.a.bu(n,r+1);if(c>127||(y.as[c>>>4]&1<<(c&15))===0)break}return n},vM(n,r){var c,u,f;for(c=0,u=0;u<2;++u)if(f=y.a.B(n,r+u),48<=f&&f<=57)c=c*16+f-48;else if(f|=32,97<=f&&f<=102)c=c*16+f-87;else throw s.d(s.K("Invalid URL encoding",null));return c},vY(n,r,c,u,f){for(var m,v,S,B,L=r;;){if(!(L<c)){m=!0;break}if(v=y.a.B(n,L),v<=127&&v!==37?S=!1:S=!0,S){m=!1;break}++L}if(m){if(y.ac!==u?S=!1:S=!0,S)return y.a.u(n,r,c);B=new s.c8(y.a.u(n,r,c))}else for(B=s.a([],N.Z),S=n.length,L=r;L<c;++L){if(v=y.a.B(n,L),v>127)throw s.d(s.K("Illegal percent encoding in URI",null));if(v===37){if(L+3>S)throw s.d(s.K("Truncated URI",null));B.push(s.vM(n,L+1)),L+=2}else B.push(v)}return y.em.e_(B)},po(n){var r=n|32;return 97<=r&&r<=122},p5(n){var r;if(n.length>=5){if(r=s.pI(n,0),r===0)return s.lw(n,5,null);if(r===32)return s.lw(y.a.bu(n,5),0,null)}throw s.d(s.R("Does not start with 'data:'",n,0))},lw(n,r,c){var u,f,m,v,S,B,L,F,z="Invalid MIME type",O=s.a([r-1],N.Z);for(u=n.length,f=r,m=-1,v=null;f<u&&(v=y.a.J(n,f),!(v===44||v===59));++f)if(v===47){if(m<0){m=f;continue}throw s.d(s.R(z,n,f))}if(m<0&&f>r)throw s.d(s.R(z,n,f));for(;v!==44;){for(O.push(f),++f,S=-1;f<u;++f)if(v=y.a.J(n,f),v===61)S<0&&(S=f);else if(v===59||v===44)break;if(S>=0)O.push(S);else{if(B=y.d.gaV(O),v!==44||f!==B+7||!y.a.U(n,"base64",B+1))throw s.d(s.R("Expecting '='",n,f));break}}return O.push(f),L=f+1,(O.length&1)===1?n=y.b7.ee(n,L,u):(F=s.pq(n,L,u,y.D,!0,!1),F!=null&&(n=y.a.aH(n,L,u,F))),new s.lv(n,O,c)},w6(){var n,r,c,u,f,m="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~!$&'()*+,;=",v=".",S=":",B="/",L="\\",F="?",z="#",O="/\\",W=s.a(new Array(22),N.gN);for(n=0;n<22;++n)W[n]=new Uint8Array(96);return r=new s.mB(W),c=new s.mC,u=new s.mD,f=r.$2(0,225),c.$3(f,m,1),c.$3(f,v,14),c.$3(f,S,34),c.$3(f,B,3),c.$3(f,L,227),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(14,225),c.$3(f,m,1),c.$3(f,v,15),c.$3(f,S,34),c.$3(f,O,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(15,225),c.$3(f,m,1),c.$3(f,"%",225),c.$3(f,S,34),c.$3(f,B,9),c.$3(f,L,233),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(1,225),c.$3(f,m,1),c.$3(f,S,34),c.$3(f,B,10),c.$3(f,L,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(2,235),c.$3(f,m,139),c.$3(f,B,131),c.$3(f,L,131),c.$3(f,v,146),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(3,235),c.$3(f,m,11),c.$3(f,B,68),c.$3(f,L,68),c.$3(f,v,18),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(4,229),c.$3(f,m,5),u.$3(f,"AZ",229),c.$3(f,S,102),c.$3(f,"@",68),c.$3(f,"[",232),c.$3(f,B,138),c.$3(f,L,138),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(5,229),c.$3(f,m,5),u.$3(f,"AZ",229),c.$3(f,S,102),c.$3(f,"@",68),c.$3(f,B,138),c.$3(f,L,138),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(6,231),u.$3(f,"19",7),c.$3(f,"@",68),c.$3(f,B,138),c.$3(f,L,138),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(7,231),u.$3(f,"09",7),c.$3(f,"@",68),c.$3(f,B,138),c.$3(f,L,138),c.$3(f,F,172),c.$3(f,z,205),c.$3(r.$2(8,8),"]",5),f=r.$2(9,235),c.$3(f,m,11),c.$3(f,v,16),c.$3(f,O,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(16,235),c.$3(f,m,11),c.$3(f,v,17),c.$3(f,O,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(17,235),c.$3(f,m,11),c.$3(f,B,9),c.$3(f,L,233),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(10,235),c.$3(f,m,11),c.$3(f,v,18),c.$3(f,B,10),c.$3(f,L,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(18,235),c.$3(f,m,11),c.$3(f,v,19),c.$3(f,O,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(19,235),c.$3(f,m,11),c.$3(f,O,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(11,235),c.$3(f,m,11),c.$3(f,B,10),c.$3(f,L,234),c.$3(f,F,172),c.$3(f,z,205),f=r.$2(12,236),c.$3(f,m,12),c.$3(f,F,12),c.$3(f,z,205),f=r.$2(13,237),c.$3(f,m,13),c.$3(f,F,13),u.$3(r.$2(20,245),"az",21),f=r.$2(21,245),u.$3(f,"az",21),u.$3(f,"09",21),c.$3(f,"+-.",21),W},pG(n,r,c,u,f){var m,v,S,B,L=I.ts();for(m=r;m<c;++m)v=L[u],S=y.a.J(n,m)^96,B=v[S>95?31:S],u=B&31,f[B>>>5]=m;return u},pI(n,r){return((y.a.J(n,r+4)^58)*3|y.a.J(n,r)^100|y.a.J(n,r+1)^97|y.a.J(n,r+2)^116|y.a.J(n,r+3)^97)>>>0},k2:function(r,c){this.a=r,this.b=c},dp:function(r,c){this.a=r,this.b=c},m2:function(){},H:function(){},eF:function(r){this.a=r},aG:function(){},fg:function(){},at:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},dL:function(r,c,u,f,m,v){var S=this;S.e=r,S.f=c,S.a=u,S.b=f,S.c=m,S.d=v},eV:function(r,c,u,f,m){var v=this;v.f=r,v.a=c,v.b=u,v.c=f,v.d=m},dH:function(r,c,u,f,m){var v=this;v.a=r,v.b=c,v.c=u,v.d=f,v.e=m},fz:function(r){this.a=r},fu:function(r){this.a=r},bJ:function(r){this.a=r},eO:function(r){this.a=r},fi:function(){},dO:function(){},eQ:function(r){this.a=r},e_:function(r){this.a=r},aK:function(r,c,u){this.a=r,this.b=c,this.c=u},j:function(){},e0:function(r,c,u){this.a=r,this.b=c,this.$ti=u},P:function(){},cY:function(r,c,u){this.a=r,this.b=c,this.$ti=u},l:function(){},c:function(){},fR:function(){},ac:function(r){this.a=r},lx:function(r){this.a=r},ly:function(r){this.a=r},lz:function(r,c){this.a=r,this.b=c},en:function(r,c,u,f,m,v,S){var B=this;B.a=r,B.b=c,B.c=u,B.d=f,B.e=m,B.f=v,B.r=S,B.y=B.w=I},lv:function(r,c,u){this.a=r,this.b=c,this.c=u},mB:function(r){this.a=r},mC:function(){},mD:function(){},fP:function(r,c,u,f,m,v,S,B){var L=this;L.a=r,L.b=c,L.c=u,L.d=f,L.e=m,L.f=v,L.r=S,L.w=B,L.x=null},fH:function(r,c,u,f,m,v,S){var B=this;B.a=r,B.b=c,B.c=u,B.d=f,B.e=m,B.f=v,B.r=S,B.y=B.w=I},nR(n){if(!N.I.b(n)&&!N.j.b(n))throw s.d(s.K("object must be a Map or Iterable",null));return s.w5(n)},w5(n){var r=new s.mz(new s.e4(N.aH)).$1(n);return r.toString,r},mz:function(r){this.a=r},tN(n,r){var c,u,f,m,v,S,B,L,F,z,O,W,Y,te="byteOffset",K=null,ie="normalized";switch(s.w(n,y.cZ,r),c=s.W(n,"bufferView",r,!1),c===-1?(u=n.v(te),u&&r.l(I.cO(),s.a(["bufferView"],N.M),te),f=0):f=s.a0(n,te,r,0,K,-1,0,!1),m=s.a0(n,"componentType",r,-1,y.cu,-1,0,!0),v=s.a0(n,"count",r,-1,K,-1,1,!0),S=s.J(n,"type",r,K,y.m.gN(),K,!0),B=s.pO(n,ie,r),S!=null&&m!==-1?(L=y.m.i(0,S),L!=null?m===5126?(u=N.V,F=s.ae(n,"min",r,K,s.a([L],u),1/0,-1/0,!0),z=s.ae(n,"max",r,K,s.a([L],u),1/0,-1/0,!0)):(F=s.pP(n,"min",r,m,L),z=s.pP(n,"max",r,m,L)):(F=K,z=F)):(F=K,z=F),O=s.T(n,"sparse",r,s.wK(),!1),B?u=m===5126||m===5125:u=!1,u&&r.n(I.ru(),ie),(S==="MAT2"||S==="MAT3"||S==="MAT4")&&f!==-1&&(f&3)!==0&&r.n(I.rt(),te),m){case 5120:case 5121:case 5122:case 5123:case 5125:u=N.w,u.a(z),u.a(F),s.J(n,"name",r,K,K,K,!1),u=s.t(n,y.S,r,K),W=s.x(n,r),Y=new s.fC(c,f,m,v,S,B,z,F,O,s.b0(m),u,W,!1),F!=null&&(u=r.S(),W=N.e,r.a_(Y,new s.f6(s.U(F.length,0,!1,W),s.U(F.length,0,!1,W),V.h4(F,!1),u))),z!=null&&(u=r.S(),W=N.e,r.a_(Y,new s.f4(s.U(z.length,0,!1,W),s.U(z.length,0,!1,W),V.h4(z,!1),u)));break;default:u=N.fy,u.a(z),u.a(F),s.J(n,"name",r,K,K,K,!1),u=s.t(n,y.S,r,K),W=s.x(n,r),Y=new s.fB(c,f,m,v,S,B,z,F,O,s.b0(m),u,W,!1),r.a_(Y,new s.eY(r.S())),F!=null&&(u=r.S(),r.a_(Y,new s.f5(s.U(F.length,0,!1,N.e),s.U(F.length,0,!1,N.F),V.h4(F,!1),u))),z!=null&&(u=r.S(),r.a_(Y,new s.f3(s.U(z.length,0,!1,N.e),s.U(z.length,0,!1,N.F),V.h4(z,!1),u)));break}return Y},bu(n,r,c,u,f,m){var v,S,B="byteOffset";if(n===-1)return!1;if(n%r!==0)if(m!=null)m.l(I.rv(),s.a([n,r],N.M),B);else return!1;if(v=u.x,v===-1)return!1;if(S=v+n,S%r!==0)if(m!=null)m.F(I.qM(),s.a([S,r],N.M));else return!1;if(v=u.y,n>v)if(m!=null)m.l(I.o3(),s.a([n,c,f,v],N.M),B);else return!1;else if(n+c>v)if(m!=null)m.F(I.o3(),s.a([n,c,f,v],N.M));else return!1;return!0},np(n,r,c,u){var f=r.byteLength,m=s.b0(n);if(f<c+m*u)return null;switch(n){case 5121:return s.nw(r,c,u);case 5123:return s.oO(r,c,u);case 5125:return s.oP(r,c,u);default:return null}},oq(n,r,c,u){var f=r.byteLength,m=s.b0(n);if(f<c+m*u)return null;switch(n){case 5126:return s.de(r,c,u),new Float32Array(r,c,u);default:return null}},or(n,r,c,u){var f=r.byteLength,m=s.b0(n);if(f<c+m*u)return null;switch(n){case 5120:return s.de(r,c,u),f=new Int8Array(r,c,u),f;case 5121:return s.nw(r,c,u);case 5122:return s.de(r,c,u),new Int16Array(r,c,u);case 5123:return s.oO(r,c,u);case 5125:return s.oP(r,c,u);default:return null}},tM(n,r){var c,u,f;return s.w(n,y.cH,r),c=s.a0(n,"count",r,-1,null,-1,1,!0),u=s.T(n,"indices",r,s.wI(),!0),f=s.T(n,"values",r,s.wJ(),!0),c===-1||u==null||f==null?null:new s.bZ(c,u,f,s.t(n,y.dP,r,null),s.x(n,r),!1)},tK(n,r){return s.w(n,y.cA,r),new s.c_(s.W(n,"bufferView",r,!0),s.a0(n,"byteOffset",r,0,null,-1,0,!1),s.a0(n,"componentType",r,-1,y.ce,-1,0,!0),s.t(n,y.dN,r,null),s.x(n,r),!1)},tL(n,r){return s.w(n,y.cD,r),new s.c0(s.W(n,"bufferView",r,!0),s.a0(n,"byteOffset",r,0,null,-1,0,!1),s.t(n,y.dO,r,null),s.x(n,r),!1)},a4:function(){},fC:function(r,c,u,f,m,v,S,B,L,F,z,O,W){var Y=this;Y.w=r,Y.x=c,Y.y=u,Y.z=f,Y.Q=m,Y.as=v,Y.at=S,Y.ax=B,Y.ay=L,Y.ch=F,Y.CW=null,Y.cx=0,Y.fr=Y.dy=null,Y.a=z,Y.b=O,Y.a$=W},lR:function(r,c,u,f,m){var v=this;v.a=r,v.b=c,v.c=u,v.d=f,v.e=m},lS:function(r){this.a=r},lT:function(){},lU:function(r,c,u,f,m){var v=this;v.a=r,v.b=c,v.c=u,v.d=f,v.e=m},lP:function(r){this.a=r},lQ:function(r){this.a=r},fB:function(r,c,u,f,m,v,S,B,L,F,z,O,W){var Y=this;Y.w=r,Y.x=c,Y.y=u,Y.z=f,Y.Q=m,Y.as=v,Y.at=S,Y.ax=B,Y.ay=L,Y.ch=F,Y.CW=null,Y.cx=0,Y.fr=Y.dy=null,Y.a=z,Y.b=O,Y.a$=W},lL:function(r,c,u,f,m){var v=this;v.a=r,v.b=c,v.c=u,v.d=f,v.e=m},lM:function(r){this.a=r},lN:function(){},lO:function(r,c,u,f,m){var v=this;v.a=r,v.b=c,v.c=u,v.d=f,v.e=m},bZ:function(r,c,u,f,m,v){var S=this;S.d=r,S.e=c,S.f=u,S.a=f,S.b=m,S.a$=v},c_:function(r,c,u,f,m,v){var S=this;S.d=r,S.e=c,S.f=u,S.r=null,S.a=f,S.b=m,S.a$=v},c0:function(r,c,u,f,m){var v=this;v.d=r,v.e=c,v.f=null,v.a=u,v.b=f,v.a$=m},eY:function(r){this.a=r},f5:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},f3:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},f6:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},f4:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},tP(n,r){var c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie=null,de="channels",j="extras",q="samplers";if(s.w(n,y.cF,r),c=s.eB(n,de,r),c!=null){for(u=c.gj(c),f=s.U(u,ie,!1,N.aA),m=new s.F(f,u,de,N.eq),u=r.c,u.push(de),v=N.h,S=0;S<c.gj(c);++S)B=c.i(0,S),u.push(y.c.k(S)),s.w(B,y.di,r),L=s.W(B,"sampler",r,!0),F=s.T(B,"target",r,s.wM(),!0),z=s.t(B,y.dQ,r,ie),O=B.i(0,j),O!=null&&!v.b(O)&&r.n(I.dk(),j),f[S]=new s.b2(L,F,z,O,!1),u.pop();u.pop()}else m=ie;if(W=s.eB(n,q,r),W!=null){for(u=W.gj(W),f=s.U(u,ie,!1,N.gW),Y=new s.F(f,u,q,N.az),u=r.c,u.push(q),v=N.h,S=0;S<W.gj(W);++S)te=W.i(0,S),u.push(y.c.k(S)),s.w(te,y.cW,r),L=s.W(te,"input",r,!0),F=s.J(te,"interpolation",r,"LINEAR",y.cq,ie,!1),z=s.W(te,"output",r,!0),K=s.t(te,y.dR,r,ie),O=te.i(0,j),O!=null&&!v.b(O)&&r.n(I.dk(),j),f[S]=new s.b3(L,F,z,K,O,!1),u.pop();u.pop()}else Y=ie;return s.J(n,"name",r,ie,ie,ie,!1),new s.bv(m,Y,s.t(n,y.T,r,ie),s.x(n,r),!1)},tO(n,r){var c,u;return s.w(n,y.d3,r),c=s.t(n,y.aC,r,y.T),u=new s.bw(s.W(n,"node",r,!1),s.J(n,"path",r,null,r.fy,null,!0),c,s.x(n,r),!1),r.W(u,s.bc(c.gX(),!0,N._)),u},bv:function(r,c,u,f,m){var v=this;v.w=r,v.x=c,v.a=u,v.b=f,v.a$=m},h5:function(r,c){this.a=r,this.b=c},h6:function(r,c,u){this.a=r,this.b=c,this.c=u},b2:function(r,c,u,f,m){var v=this;v.d=r,v.e=c,v.f=null,v.a=u,v.b=f,v.a$=m},bw:function(r,c,u,f,m){var v=this;v.d=r,v.e=c,v.f=null,v.a=u,v.b=f,v.a$=m},b3:function(r,c,u,f,m,v){var S=this;S.d=r,S.e=c,S.f=u,S.w=S.r=null,S.a=f,S.b=m,S.a$=v},eE:function(r){this.a=0,this.b=r},dK:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.e=m.d=0,m.$ti=f},tQ(n,r){var c,u,f,m,v=null,S="minVersion";return s.w(n,y.cC,r),s.J(n,"copyright",r,v,v,v,!1),c=s.J(n,"generator",r,v,v,v,!1),u=I.br(),f=s.J(n,"version",r,v,v,u,!0),u=s.J(n,S,r,v,v,u,!1),m=new s.bx(c,f,u,s.t(n,y.dS,r,v),s.x(n,r),!1),u!=null&&f!=null&&(m.gcS()<=m.gbj()?c=m.gcS()===m.gbj()&&m.ged()>m.gbW():c=!0,c&&r.l(I.rV(),s.a([u,f],N.M),S)),m},bx:function(r,c,u,f,m,v){var S=this;S.e=r,S.f=c,S.r=u,S.a=f,S.b=m,S.a$=v},tU(n,r){var c,u,f,m,v,S,B,L=null,F="uri";if(s.w(n,y.dk,r),m=s.a0(n,"byteLength",r,-1,L,-1,1,!0),c=null,v=n.v(F),v){if(u=s.J(n,F,r,L,L,L,!1),u!=null){r.dx&&r.n(I.o2(),F),f=null;try{f=s.p5(u)}catch(z){if(s.M(z)instanceof s.aK)c=s.pS(u,r);else throw z}if(f!=null)switch(r.dx&&r.n(I.o1(),F),f.gbV().toLowerCase()){case"application/gltf-buffer":case"application/octet-stream":S=f.cD();break;default:r.l(I.ry(),s.a([f.gbV()],N.M),F),S=L;break}else S=L}else S=L;v=!0}else S=L;return B=c,s.J(n,"name",r,L,L,L,!1),new s.aT(B,m,v,S,s.t(n,y.dT,r,L),s.x(n,r),!1)},aT:function(r,c,u,f,m,v,S){var B=this;B.w=r,B.x=c,B.y=u,B.z=f,B.a=m,B.b=v,B.a$=S},tT(n,r){var c,u,f,m,v,S=null,B="byteStride";return s.w(n,y.cp,r),c=s.a0(n,"byteLength",r,-1,S,-1,1,!0),u=s.a0(n,B,r,-1,S,252,4,!1),f=s.a0(n,"target",r,-1,y.cb,-1,0,!1),u!==-1&&(c!==-1&&u>c&&r.l(I.rz(),s.a([u,c],N.M),B),u%4!==0&&r.l(I.rr(),s.a([u,4],N.M),B),f===34963&&r.n(I.nj(),B)),m=s.W(n,"buffer",r,!0),v=s.a0(n,"byteOffset",r,0,S,-1,0,!1),s.J(n,"name",r,S,S,S,!1),new s.by(m,v,c,u,f,s.t(n,y.aD,r,S),s.x(n,r),!1)},by:function(r,c,u,f,m,v,S,B){var L=this;L.w=r,L.x=c,L.y=u,L.z=f,L.Q=m,L.at=L.as=null,L.ax=-1,L.a=v,L.b=S,L.a$=B},tX(n,r){var c=null,u="orthographic",f="perspective";switch(s.w(n,y.dj,r),n.v(u)&&n.v(f)&&r.F(I.oe(),y.aw),s.J(n,"type",r,c,y.aw,c,!0)){case"orthographic":s.T(n,u,r,s.wV(),!0);break;case"perspective":s.T(n,f,r,s.wW(),!0);break}return s.J(n,"name",r,c,c,c,!1),new s.bz(s.t(n,y.dW,r,c),s.x(n,r),!1)},tV(n,r){var c,u,f,m,v="xmag",S="ymag";return s.w(n,y.dq,r),c=s.E(n,v,r,NaN,1/0,-1/0,1/0,-1/0,!0,NaN),u=s.E(n,S,r,NaN,1/0,-1/0,1/0,-1/0,!0,NaN),f=s.E(n,"zfar",r,NaN,1/0,0,1/0,-1/0,!0,NaN),m=s.E(n,"znear",r,NaN,1/0,-1/0,1/0,0,!0,NaN),f<=m&&r.L(I.oh()),c===0?r.n(I.og(),v):c<0&&r.n(I.of(),v),u===0?r.n(I.og(),S):u<0&&r.n(I.of(),S),new s.c3(s.t(n,y.dU,r,null),s.x(n,r),!1)},tW(n,r){var c,u,f;return s.w(n,y.cB,r),c=s.E(n,"yfov",r,NaN,1/0,0,1/0,-1/0,!0,NaN),c>=3.141592653589793&&r.L(I.rA()),u=s.E(n,"zfar",r,NaN,1/0,0,1/0,-1/0,!1,NaN),f=s.E(n,"znear",r,NaN,1/0,0,1/0,-1/0,!0,NaN),u<=f&&r.L(I.oh()),s.E(n,"aspectRatio",r,NaN,1/0,0,1/0,-1/0,!1,NaN),new s.c4(s.t(n,y.dV,r,null),s.x(n,r),!1)},bz:function(r,c,u){this.a=r,this.b=c,this.a$=u},c3:function(r,c,u){this.a=r,this.b=c,this.a$=u},c4:function(r,c,u){this.a=r,this.b=c,this.a$=u},oC(n,r){var c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q,ae,me,fe,he,ve,Re,Le,Xe,xe,Pe,Ie,Fe,Ne,et,Ke,gt,ne="extensionsRequired",Oe="extensionsUsed",ye=null,we=new s.iw(r);if(we.$0(),s.w(n,y.dr,r),n.v(ne)&&!n.v(Oe)&&r.l(I.cO(),s.a(["extensionsUsed"],N.M),ne),c=s.pQ(n,Oe,r),c==null&&(c=s.a([],N.i)),u=s.pQ(n,ne,r),u==null&&(u=s.a([],N.i)),r.e9(c,u),f=new s.ix(n,we,r),m=new s.iy(we,n,r).$1$3$req("asset",s.wO(),!0,N.gP),(m==null?ye:m.f)==null)return ye;if(m.gbj()!==2)return v=I.t8(),S=m.gbj(),r.l(v,s.a([S],N.M),"version"),ye;for(m.gbW()>0&&(v=I.t9(),S=m.gbW(),r.l(v,s.a([S],N.M),"version")),B=f.$1$2("accessors",s.wL(),N.W),L=f.$1$2("animations",s.wN(),N.bj),F=f.$1$2("buffers",s.wT(),N.cT),z=f.$1$2("bufferViews",s.wU(),N.r),O=f.$1$2("cameras",s.wX(),N.h2),W=f.$1$2("images",s.xc(),N.ec),Y=f.$1$2("materials",s.xF(),N.fC),te=f.$1$2("meshes",s.xI(),N.eM),v=N.L,K=f.$1$2("nodes",s.xJ(),v),ie=f.$1$2("samplers",s.xK(),N.c2),de=f.$1$2("scenes",s.xL(),N.bn),we.$0(),j=s.W(n,"scene",r,!1),q=de.i(0,j),j!==-1&&q==null&&r.l(I.Q(),s.a([j],N.M),"scene"),ae=f.$1$2("skins",s.xM(),N.aV),me=f.$1$2("textures",s.xO(),N.ai),we.$0(),fe=s.t(n,y.U,r,ye),we.$0(),he=new s.du(c,u,B,L,m,F,z,O,W,Y,te,K,ie,q,ae,me,fe,s.x(n,r),!1),ve=new s.iu(r,he),ve.$2(z,y.aD),ve.$2(B,y.S),ve.$2(W,y.aE),ve.$2(me,y.W),ve.$2(Y,y.f),ve.$2(te,y.aG),ve.$2(K,y.V),ve.$2(ae,y.aK),ve.$2(L,y.T),ve.$2(de,y.aJ),fe.a!==0&&(S=r.c,S.push("extensions"),fe.M(0,new s.is(r,he)),S.pop()),S=r.c,S.push("nodes"),K.a4(new s.it(r,s.aD(v))),S.pop(),Re=[B,F,z,O,W,Y,te,K,ie,ae,me],Le=0;Le<11;++Le)if(Xe=Re[Le],Xe.gj(Xe)!==0){for(S.push(Xe.c),v=Xe.b,xe=Xe.a,Pe=xe.length,Ie=0;Ie<v;++Ie)Fe=Ie>=Pe,Fe=Fe?ye:xe[Ie],(Fe==null?ye:Fe.a$)===!1&&r.Z(I.h1(),Ie);S.pop()}if(v=r.x,v.a!==0){for(xe=s.uH(v,v.r,s.A(v).c);xe.q();)if(Pe=xe.d,Pe.gj(Pe)!==0)for(Ne=v.i(0,Pe),y.d.P(S),y.d.D(S,Ne),Fe=Pe.b,Pe=Pe.a,et=Pe.length,Ie=0;Ie<Fe;++Ie)Ke=Ie>=et,Ke=Ke?ye:Pe[Ie],(Ke==null?ye:Ke.a$)===!1&&r.Z(I.h1(),Ie);y.d.P(S)}for(S.push("meshes"),v=te.b,xe=te.a,Pe=xe.length,Ie=0;Ie<v;++Ie)Fe=Ie>=Pe,gt=Fe?ye:xe[Ie],(gt==null?ye:gt.x)!=null&>.a$&&!gt.y&&(S.push(y.c.k(Ie)),r.n(I.ro(),"weights"),S.pop());return y.d.P(S),he},du:function(r,c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j){var q=this;q.d=r,q.e=c,q.f=u,q.r=f,q.w=m,q.x=v,q.y=S,q.z=B,q.Q=L,q.as=F,q.at=z,q.ax=O,q.ay=W,q.ch=Y,q.cx=te,q.cy=K,q.a=ie,q.b=de,q.a$=j},iw:function(r){this.a=r},ix:function(r,c,u){this.a=r,this.b=c,this.c=u},iy:function(r,c,u){this.a=r,this.b=c,this.c=u},iu:function(r,c){this.a=r,this.b=c},iv:function(r,c){this.a=r,this.b=c},is:function(r,c){this.a=r,this.b=c},it:function(r,c){this.a=r,this.b=c},iq:function(){},ir:function(){},iz:function(r,c){this.a=r,this.b=c},iA:function(r,c){this.a=r,this.b=c},m:function(){},k:function(){},eR:function(){},fL:function(){},ug(n,r){var c,u,f,m,v,S,B,L,F="bufferView",z=null,O="uri";if(s.w(n,y.cE,r),m=s.W(n,F,r,!1),v=s.J(n,"mimeType",r,z,r.dy,z,!1),c=s.J(n,O,r,z,z,z,!1),S=m===-1,B=!S,B&&v==null&&r.l(I.cO(),s.a(["mimeType"],N.M),F),B&&c!=null?S=!0:S=S&&c==null,S&&r.F(I.oe(),s.a(["bufferView","uri"],N.M)),u=null,c!=null){r.dx&&r.n(I.o2(),O),f=null;try{f=s.p5(c)}catch(W){if(s.M(W)instanceof s.aK)u=s.pS(c,r);else throw W}f!=null?(r.dx&&r.n(I.o1(),O),L=f.cD(),S=s.oD(L),S=S==null?z:y.ci[S.a],S=S!==f.gbV().toLowerCase(),S&&(r.l(I.od(),s.a([c,"The declared mediatype does not match the embedded content."],N.M),O),L=z)):L=z}else L=z;return S=u,s.J(n,"name",r,z,z,z,!1),new s.aU(m,v,S,L,s.t(n,y.aE,r,z),s.x(n,r),!1)},aU:function(r,c,u,f,m,v,S){var B=this;B.w=r,B.x=c,B.y=u,B.z=f,B.as=B.Q=null,B.a=m,B.b=v,B.a$=S},uL(n,r){var c,u,f,m,v,S,B,L,F,z,O=null,W="alphaCutoff";return s.w(n,y.cs,r),c=s.T(n,"pbrMetallicRoughness",r,s.xH(),!1),u=s.T(n,"normalTexture",r,s.pV(),!1),f=s.T(n,"occlusionTexture",r,s.xG(),!1),m=s.T(n,"emissiveTexture",r,s.ao(),!1),v=s.ae(n,"emissiveFactor",r,y.ak,y.l,1,0,!1),S=s.J(n,"alphaMode",r,"OPAQUE",y.cr,O,!1),s.E(n,W,r,.5,1/0,-1/0,1/0,0,!1,NaN),S!=="MASK"&&n.v(W)&&r.n(I.rO(),W),B=s.pO(n,"doubleSided",r),L=s.t(n,y.f,r,O),s.J(n,"name",r,O,O,O,!1),F=new s.ai(c,u,f,m,v,B,s.a9(N.X,N.e),L,s.x(n,r),!1),z=s.a([c,u,f,m],N.M),y.d.D(z,L.gX()),r.W(F,z),F},uX(n,r){var c,u,f,m,v;return s.w(n,y.cG,r),s.ae(n,"baseColorFactor",r,y.al,y.P,1,0,!1),c=s.T(n,"baseColorTexture",r,s.ao(),!1),s.E(n,"metallicFactor",r,1,1/0,-1/0,1,0,!1,NaN),s.E(n,"roughnessFactor",r,1,1/0,-1/0,1,0,!1,NaN),u=s.T(n,"metallicRoughnessTexture",r,s.ao(),!1),f=s.t(n,y.ej,r,null),m=new s.cB(c,u,f,s.x(n,r),!1),v=s.a([c,u],N.M),y.d.D(v,f.gX()),r.W(m,v),m},uW(n,r){var c,u,f,m;return s.w(n,y.cU,r),c=s.t(n,y.aI,r,y.f),u=s.W(n,"index",r,!0),f=s.a0(n,"texCoord",r,0,null,-1,0,!1),s.E(n,"strength",r,1,1/0,-1/0,1,0,!1,NaN),m=new s.cA(u,f,c,s.x(n,r),!1),r.W(m,c.gX()),m},uV(n,r){var c,u,f,m;return s.w(n,y.cT,r),c=s.t(n,y.aH,r,y.f),u=s.W(n,"index",r,!0),f=s.a0(n,"texCoord",r,0,null,-1,0,!1),s.E(n,"scale",r,1,1/0,-1/0,1/0,-1/0,!1,NaN),m=new s.cz(u,f,c,s.x(n,r),!1),r.W(m,c.gX()),m},vb(n,r){var c,u;return s.w(n,y.cS,r),c=s.t(n,y.aL,r,y.f),u=new s.bj(s.W(n,"index",r,!0),s.a0(n,"texCoord",r,0,null,-1,0,!1),c,s.x(n,r),!1),r.W(u,c.gX()),u},ai:function(r,c,u,f,m,v,S,B,L,F){var z=this;z.w=r,z.x=c,z.y=u,z.z=f,z.Q=m,z.ax=v,z.ay=!1,z.ch=S,z.a=B,z.b=L,z.a$=F},jR:function(r,c){this.a=r,this.b=c},cB:function(r,c,u,f,m){var v=this;v.e=r,v.w=c,v.a=u,v.b=f,v.a$=m},cA:function(r,c,u,f,m){var v=this;v.d=r,v.e=c,v.f=null,v.a=u,v.b=f,v.a$=m},cz:function(r,c,u,f,m){var v=this;v.d=r,v.e=c,v.f=null,v.a=u,v.b=f,v.a$=m},bj:function(r,c,u,f,m){var v=this;v.d=r,v.e=c,v.f=null,v.a=u,v.b=f,v.a$=m},dl(n){return new s.y(n.Q,n.y,n.as)},c2:function(r){this.a=r},c1:function(r){this.a=r},y:function(r,c,u){this.a=r,this.b=c,this.c=u},uP(n,r){var c,u,f,m,v,S,B,L,F,z,O=null,W="primitives";if(s.w(n,y.da,r),c=s.ae(n,"weights",r,O,O,1/0,-1/0,!1),u=s.eB(n,W,r),u!=null){for(f=u.gj(u),m=s.U(f,O,!1,N.ft),v=new s.F(m,f,W,N.b_),f=r.c,f.push(W),S=0,B=0;B<u.gj(u);++B)f.push(y.c.k(B)),L=s.uO(u.i(0,B),r),F=L.w,z=F==null?O:F.length,z==null&&(z=0),B===0?S=z:S!==z&&(F=I.rU(),r.n(F,z>0?"targets":O)),m[B]=L,f.pop();f.pop(),c!=null&&S!==c.length&&r.l(I.rP(),s.a([c.length,S],N.M),"weights")}else v=O;return s.J(n,"name",r,O,O,O,!1),new s.aV(v,c,s.t(n,y.aG,r,O),s.x(n,r),!1)},uN(n,r,c,u,f,m,v,S,B,L,F,z,O,W){var Y,te=V.oF(z,N.e);for(Y=0;Y<z;++Y)te[Y]=Y;return new s.aE(n,r,c,u,f,v,S,L,F,z,s.a9(N.X,N.W),te,O,W,!1)},uO(n,r){var c,u,f,m,v,S,B,L,F="attributes",z={};return s.w(n,y.cY,r),z.a=z.b=z.c=!1,z.d=0,z.e=-1,z.f=0,z.r=-1,z.w=0,z.x=-1,z.y=0,z.z=-1,c=new s.jV,u=s.a0(n,"mode",r,4,null,6,0,!1),f=s.x5(n,F,r,new s.jS(z,r,c)),f!=null&&(m=r.c,m.push(F),z.c||r.L(I.rS()),!z.b&&z.a&&r.n(I.rT(),"TANGENT"),v=new s.jT(r),z.d=v.$3(z.e,z.d,"COLOR"),z.f=v.$3(z.r,z.f,"JOINTS"),z.w=v.$3(z.x,z.w,"WEIGHTS"),z.y=v.$3(z.z,z.y,"TEXCOORD"),v=z.f,S=z.w,v!==S&&(r.F(I.rR(),s.a([v,S],N.M)),z.w=z.f=0),m.pop()),B=s.x6(n,"targets",r,new s.jU(c,r)),L=s.uN(f,s.W(n,"indices",r,!1),s.W(n,"material",r,!1),u,B,z.c,z.b,z.a,z.d,z.f,z.w,z.y,s.t(n,y.aF,r,null),s.x(n,r)),r.W(L,L.a.gX()),L},aV:function(r,c,u,f,m){var v=this;v.w=r,v.x=c,v.y=!1,v.a=u,v.b=f,v.a$=m},k1:function(r,c){this.a=r,this.b=c},k0:function(r,c){this.a=r,this.b=c},aE:function(r,c,u,f,m,v,S,B,L,F,z,O,W,Y,te){var K=this;K.d=r,K.e=c,K.f=u,K.r=f,K.w=m,K.y=v,K.z=S,K.as=B,K.at=L,K.ax=F,K.ay=z,K.CW=K.ch=-1,K.db=K.cy=K.cx=null,K.dx=O,K.a=W,K.b=Y,K.a$=te},jV:function(){},jS:function(r,c,u){this.a=r,this.b=c,this.c=u},jT:function(r){this.a=r},jU:function(r,c){this.a=r,this.b=c},jX:function(r,c,u){this.a=r,this.b=c,this.c=u},jY:function(r,c){this.a=r,this.b=c},jZ:function(){},k_:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},jW:function(){},eU:function(r,c,u,f,m,v){var S=this;S.a=r,S.b=c,S.c=u,S.w=f,S.Q=S.z=0,S.as=m,S.at=v},uU(n,r){var c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q,ae,me,fe,he,ve,Re,Le,Xe,xe,Pe,Ie=null,Fe="matrix",Ne="translation",et="rotation";return s.w(n,y.cj,r),n.v(Fe)?(c=s.ae(n,Fe,r,Ie,y.c6,1/0,-1/0,!1),c!=null?(u=new Float32Array(16),f=new s.cZ(u),m=c[0],v=c[1],S=c[2],B=c[3],L=c[4],F=c[5],z=c[6],O=c[7],W=c[8],Y=c[9],te=c[10],K=c[11],ie=c[12],de=c[13],j=c[14],u[15]=c[15],u[14]=j,u[13]=de,u[12]=ie,u[11]=K,u[10]=te,u[9]=Y,u[8]=W,u[7]=O,u[6]=z,u[5]=F,u[4]=L,u[3]=B,u[2]=S,u[1]=v,u[0]=m):f=Ie):f=Ie,n.v(Ne)?(q=s.ae(n,Ne,r,Ie,y.l,1/0,-1/0,!1),ae=q!=null?s.pb(q):Ie):ae=Ie,n.v(et)?(me=s.ae(n,et,r,Ie,y.P,1,-1,!1),me!=null?(u=me[0],m=me[1],v=me[2],S=me[3],B=new Float32Array(4),fe=new s.fl(B),B[0]=u,B[1]=m,B[2]=v,B[3]=S,u=Math.sqrt(fe.gaW()),Math.abs(1-u)>.00769&&r.n(I.t5(),et)):fe=Ie):fe=Ie,n.v("scale")?(he=s.ae(n,"scale",r,Ie,y.l,1/0,-1/0,!1),ve=he!=null?s.pb(he):Ie):ve=Ie,Re=s.W(n,"camera",r,!1),Le=s.mR(n,"children",r,!1),Xe=s.W(n,"mesh",r,!1),xe=s.W(n,"skin",r,!1),Pe=s.ae(n,"weights",r,Ie,Ie,1/0,-1/0,!1),Xe===-1&&(xe!==-1&&r.l(I.cO(),s.a(["mesh"],N.M),"skin"),Pe!=null&&r.l(I.cO(),s.a(["mesh"],N.M),"weights")),f!=null&&((ae!=null||fe!=null||ve!=null)&&r.n(I.rZ(),Fe),f.cP()?r.n(I.rX(),Fe):s.xi(f)||r.n(I.t_(),Fe)),s.J(n,"name",r,Ie,Ie,Ie,!1),new s.ap(Re,Le,xe,f,Xe,ae,fe,ve,Pe,s.aD(N.bn),s.t(n,y.V,r,Ie),s.x(n,r),!1)},ap:function(r,c,u,f,m,v,S,B,L,F,z,O,W){var Y=this;Y.w=r,Y.x=c,Y.y=u,Y.z=f,Y.Q=m,Y.as=v,Y.at=S,Y.ax=B,Y.ay=L,Y.ch=F,Y.dx=Y.db=Y.cy=Y.cx=Y.CW=null,Y.dy=!1,Y.a=z,Y.b=O,Y.a$=W},k3:function(){},k4:function(){},k5:function(r,c){this.a=r,this.b=c},v6(n,r){var c=null;return s.w(n,y.dc,r),s.a0(n,"magFilter",r,-1,y.cg,-1,0,!1),s.a0(n,"minFilter",r,-1,y.ck,-1,0,!1),s.a0(n,"wrapS",r,10497,y.ao,-1,0,!1),s.a0(n,"wrapT",r,10497,y.ao,-1,0,!1),s.J(n,"name",r,c,c,c,!1),new s.bF(s.t(n,y.ek,r,c),s.x(n,r),!1)},bF:function(r,c,u){this.a=r,this.b=c,this.a$=u},v7(n,r){var c,u=null;return s.w(n,y.d4,r),c=s.mR(n,"nodes",r,!1),s.J(n,"name",r,u,u,u,!1),new s.bG(c,s.t(n,y.aJ,r,u),s.x(n,r),!1)},bG:function(r,c,u,f){var m=this;m.w=r,m.x=null,m.a=c,m.b=u,m.a$=f},ke:function(r,c){this.a=r,this.b=c},v8(n,r){var c,u,f,m=null;return s.w(n,y.cw,r),c=s.W(n,"inverseBindMatrices",r,!1),u=s.W(n,"skeleton",r,!1),f=s.mR(n,"joints",r,!0),s.J(n,"name",r,m,m,m,!1),new s.bI(c,u,f,s.aD(N.L),s.t(n,y.aK,r,m),s.x(n,r),!1)},bI:function(r,c,u,f,m,v,S){var B=this;B.w=r,B.x=c,B.y=u,B.as=B.Q=B.z=null,B.at=f,B.a=m,B.b=v,B.a$=S},lm:function(r){this.a=r},eT:function(r){this.a=r},vc(n,r){var c,u,f=null;return s.w(n,y.de,r),c=s.W(n,"sampler",r,!1),u=s.W(n,"source",r,!1),s.J(n,"name",r,f,f,f,!1),new s.bK(c,u,s.t(n,y.W,r,f),s.x(n,r),!1)},bK:function(r,c,u,f,m){var v=this;v.w=r,v.x=c,v.z=v.y=null,v.a=u,v.b=f,v.a$=m},p9(n,r,c,u){var f,m=N.X,v=s.aD(m);return m=s.aD(m),f=r??0,n!=null&&v.D(0,n),c!=null&&m.D(0,c),new s.lE(f,v,m,u)},u4(){return new s.ab(y.au,new s.hh,N.gw)},u3(n){var r,c,u,f,m=null,v=N.i,S=s.a([],v),B=N._,L=s.a([],N.d6),F=s.a9(N.al,N.f9),z=s.a([],v),O=s.a([],v),W=s.a([],N.fh),Y=s.a([],N.a9);return v=s.a(["image/jpeg","image/png"],v),r=N.aD,c=N.X,u=N.cn,f=s.nu(["POSITION",s.aP([y.k],r),"NORMAL",s.aP([y.k],r),"TANGENT",s.aP([y.n],r),"TEXCOORD",s.aP([y.a4,y.a0,y.a3],r),"COLOR",s.aP([y.k,y.H,y.I,y.n,y.y,y.z],r),"JOINTS",s.aP([y.b_,y.b0],r),"WEIGHTS",s.aP([y.n,y.y,y.z],r)],c,u),u=s.nu(["POSITION",s.aP([y.k],r),"NORMAL",s.aP([y.k],r),"TANGENT",s.aP([y.k],r),"TEXCOORD",s.aP([y.a4,y.a_,y.a0,y.a2,y.a3],r),"COLOR",s.aP([y.k,y.w,y.H,y.x,y.I,y.n,y.J,y.y,y.K,y.z],r)],c,u),c=s.bc(y.R,!0,c),r=n??s.p9(m,m,m,m),c=new s.i(r,S,s.a9(N.W,N.b7),s.a9(B,B),s.a9(N.f7,N.an),L,s.a9(N.r,N.gz),s.a9(N.b5,N.eG),F,z,O,W,s.aD(N.af),Y,new s.ac(""),v,f,u,c),u=N.em,c.ay=new s.aX(O,u),c.at=new s.aX(z,u),c.Q=new s.bm(F,N.f8),c.CW=new s.aX(W,N.go),c},lE:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},i:function(n,r,c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de){var j=this;j.b=n,j.c=r,j.d=c,j.e=u,j.f=f,j.r=m,j.w=v,j.x=S,j.y=!1,j.z=B,j.Q=null,j.as=L,j.at=null,j.ax=F,j.ay=null,j.ch=z,j.CW=null,j.cx=O,j.cy=W,j.db=Y,j.dx=!1,j.dy=te,j.fr=K,j.fx=ie,j.fy=de},hh:function(){},hg:function(){},hi:function(){},hl:function(r){this.a=r},hm:function(r){this.a=r},hj:function(r){this.a=r},hk:function(){},hn:function(r,c){this.a=r,this.b=c},bA:function(){},uf(n){var r,c,u={};return u.a=u.b=null,r=new s.C(I.B,N.dD),c=new s.ay(r,N.eP),u.c=!1,u.a=n.bT(new s.iC(u,c),new s.iD(u),new s.iE(u,c)),r},oD(n){var r,c;return n.length<14?null:(r=s.f7(n.buffer,n.byteOffset,14),c=r.getUint32(0,!0),(c&16777215)===16767231?y.ag:c===1196314761&&r.getUint32(4,!0)===169478669?y.ah:c===1179011410&&r.getUint32(8,!0)===1346520407&&r.getUint16(12,!0)===20566?y.ai:c===1481919403&&r.getUint32(4,!0)===3140497952&&r.getUint32(8,!0)===169478669?y.bV:null)},cU:function(r,c){this.a=r,this.b=c},dV:function(r,c){this.a=r,this.b=c},d5:function(r,c){this.a=r,this.b=c},cc:function(r,c){this.a=r,this.b=c},cd:function(r,c,u,f,m,v,S,B,L){var F=this;F.a=r,F.b=c,F.c=u,F.d=f,F.e=m,F.f=v,F.r=S,F.w=B,F.x=L},iC:function(r,c){this.a=r,this.b=c},iE:function(r,c){this.a=r,this.b=c},iD:function(r){this.a=r},iB:function(){},iM:function(r,c){var u=this;u.f=u.e=u.d=u.c=0,u.r=null,u.a=r,u.b=c},iO:function(){},iN:function(){},k7:function(r,c,u,f,m,v){var S=this;S.x=S.w=S.r=S.f=S.e=S.d=S.c=0,S.z=S.y=!1,S.Q=r,S.as=c,S.at=!1,S.ax=u,S.ay=f,S.a=m,S.b=v},k8:function(r){this.a=r},lJ:function(r,c,u){var f=this;f.c=r,f.d=0,f.a=c,f.b=u},dS:function(){},dR:function(){},aL:function(r){this.a=r},d9:function(r,c){this.a=r,this.b=c},fn:function(r){var c=this;c.a=r,c.f=c.e=c.d=c.c=c.b=null},kb:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},kc:function(r,c,u){this.a=r,this.b=c,this.c=u},kd:function(r,c){this.a=r,this.b=c},mJ(n){return n==null||n.Q==null||n.y===-1||n.z===-1||n.CW==null&&n.ay==null?null:n},xS(n,r){var c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q;for(n.f.a4(new s.ne(r)),s.wx(r),c=s.a([],N.b2),u=s.a([],N.bd),f=r.c,y.d.P(f),f.push("meshes"),m=n.at,v=m.b,S=n.ax,B=S.$ti.h("aa<p.E>"),L=n.cx,m=m.a,F=m.length,z=0;z<v;++z)if(O={},W=z>=F,Y=W?null:m[z],(Y==null?null:Y.w)!=null&&(W=Y.w,!W.be(W,new s.nf))){for(O.a=O.b=-1,te=new s.aa(S,S.gj(S),B);te.q();)K=te.d,K.cy==Y?(ie=K.dx,ie=(ie==null?null:ie.Q)!=null):ie=!1,ie&&(K=K.dx,de=K.Q.length,ie=O.b,(ie===-1||de<ie)&&(O.b=de,O.a=L.bR(L,K)));O.b<1||(f.push(y.c.k(z)),f.push("primitives"),W.a4(new s.ng(O,r,c,u)),f.pop(),f.pop())}if(f.pop(),c.length!==0)for(;s.wD(c);)for(f=u.length,j=0;j<u.length;u.length===f||(0,s.cN)(u),++j)q=u[j],q.w||q.dY(r)},wD(n){var r,c;for(r=n.length,c=0;c<n.length;n.length===r||(0,s.cN)(n),++c)n[c].q();return n.fixed$length&&s.Z(s.ad("removeWhere")),y.d.dP(n,new s.mL,!0),n.length!==0},wx(n){var r,c,u,f,m,v,S,B,L,F,z,O;for(r=n.d.ge4(),r=r.gH(r),c=n.c;r.q();)if(u=r.gt(),f=s.mJ(u.a),f!=null){for(m=y.m.i(0,f.Q),m==null&&(m=0),v=u.b,y.d.P(c),u=f.af(),u=new s.aH(u.a(),s.A(u).h("aH<1>")),S=V.V(v),B=0,L=0,F=!1;u.q();F=!0){for(z=u.gt(),O=0;O<S.gj(v);++O)S.i(v,O).a0(n,B,L,z);++L,L===m&&(L=0),++B}if(F)for(O=0;O<S.gj(v);++O)S.i(v,O).aF(n)}},ne:function(r){this.a=r},nf:function(){},ng:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},mL:function(){},eX:function(r,c,u,f,m,v){var S=this;S.a=r,S.b=c,S.c=u,S.d=f,S.e=m,S.r=S.f=0,S.w=!1,S.y=S.x=0,S.z=v},G(n,r,c){return new s.ho(c,n,r)},am(n,r,c){return new s.kf(c,n,r)},r(n,r,c){return new s.kw(c,n,r)},v(n,r,c){return new s.iY(c,n,r)},al(n,r,c){return new s.hZ(c,n,r)},wy(n){return"'"+s.b(n)+"'"},wu(n){return typeof n=="string"?"'"+n+"'":V.as(n)},bH:function(r,c){this.a=r,this.b=c},iH:function(){},ho:function(r,c,u){this.a=r,this.b=c,this.c=u},hL:function(){},hM:function(){},hE:function(){},hD:function(){},ht:function(){},hs:function(){},hI:function(){},hz:function(){},hr:function(){},hF:function(){},hx:function(){},hu:function(){},hw:function(){},hv:function(){},hp:function(){},hq:function(){},hH:function(){},hG:function(){},hy:function(){},hO:function(){},hQ:function(){},hT:function(){},hU:function(){},hR:function(){},hS:function(){},hP:function(){},hV:function(){},hN:function(){},hB:function(){},hA:function(){},hJ:function(){},hK:function(){},hC:function(){},iF:function(r,c,u){this.a=r,this.b=c,this.c=u},iG:function(){},kf:function(r,c,u){this.a=r,this.b=c,this.c=u},kh:function(){},ki:function(){},kg:function(){},kk:function(){},kl:function(){},km:function(){},kj:function(){},kn:function(){},ko:function(){},kp:function(){},ku:function(){},kv:function(){},kt:function(){},kq:function(){},kr:function(){},ks:function(){},kw:function(r,c,u){this.a=r,this.b=c,this.c=u},lj:function(){},lk:function(){},l4:function(){},kL:function(){},ky:function(){},kz:function(){},kx:function(){},kA:function(){},kB:function(){},kC:function(){},kE:function(){},kD:function(){},kF:function(){},kG:function(){},kH:function(){},kI:function(){},kX:function(){},l_:function(){},l3:function(){},l1:function(){},kZ:function(){},l2:function(){},l0:function(){},kY:function(){},l8:function(){},l6:function(){},l9:function(){},lg:function(){},ll:function(){},lf:function(){},kK:function(){},l7:function(){},lc:function(){},lb:function(){},la:function(){},lh:function(){},li:function(){},le:function(){},l5:function(){},ld:function(){},kJ:function(){},kM:function(){},kN:function(){},kO:function(){},kP:function(){},kQ:function(){},kR:function(){},kS:function(){},kW:function(){},kV:function(){},kT:function(){},kU:function(){},iY:function(r,c,u){this.a=r,this.b=c,this.c=u},j0:function(){},iZ:function(){},j_:function(){},j1:function(){},j4:function(){},j2:function(){},j3:function(){},j8:function(){},j6:function(){},ja:function(){},j7:function(){},j9:function(){},j5:function(){},jb:function(){},je:function(){},jd:function(){},jc:function(){},jf:function(){},jg:function(){},jh:function(){},jl:function(){},jm:function(){},ju:function(){},jk:function(){},jj:function(){},jq:function(){},jp:function(){},jo:function(){},jv:function(){},jt:function(){},jn:function(){},jw:function(){},js:function(){},jr:function(){},jx:function(){},jy:function(){},jB:function(){},jz:function(){},jA:function(){},jC:function(){},jE:function(){},jD:function(){},jF:function(){},jG:function(){},jH:function(){},jI:function(){},jJ:function(){},jM:function(){},jL:function(){},jK:function(){},ji:function(){},hZ:function(r,c,u){this.a=r,this.b=c,this.c=u},i5:function(){},i6:function(){},i8:function(){},i_:function(){},i7:function(){},i0:function(){},i3:function(){},i2:function(){},i1:function(){},ib:function(){},ia:function(){},ic:function(){},id:function(){},i9:function(){},ie:function(){},i4:function(){},cW:function(r,c,u,f,m){var v=this;v.a=r,v.b=c,v.c=u,v.d=f,v.e=m},we(n){n.dy.push("image/webp")},ua(n,r){return r.toString,s.w(n,y.df,r),new s.ca(s.W(n,"source",r,!1),s.t(n,y.dY,r,null),s.x(n,r),!1)},ca:function(r,c,u,f){var m=this;m.d=r,m.e=null,m.a=c,m.b=u,m.a$=f},un(n,r){return r.toString,s.w(n,y.d9,r),s.J(n,"pointer",r,null,null,I.qK(),!0),new s.cf(s.t(n,y.dZ,r,null),s.x(n,r),!1)},wf(n){n.fy.push("pointer")},cf:function(r,c,u){this.a=r,this.b=c,this.a$=u},uo(n,r){var c,u,f,m,v,S,B,L,F,z,O,W=null,Y="lights",te="spot";if(r.toString,s.w(n,y.d0,r),c=s.eB(n,Y,r),u=N.cp,c!=null){for(f=c.gj(c),u=s.U(f,W,!1,u),m=new s.F(u,f,Y,N.E),f=r.c,f.push(Y),v=N.h,S=0;S<c.gj(c);++S)B=c.i(0,S),f.push(y.c.k(S)),s.w(B,y.co,r),s.ae(B,"color",r,y.C,y.l,1,0,!1),s.E(B,"intensity",r,1,1/0,-1/0,1/0,0,!1,NaN),L=s.J(B,"type",r,W,y.cJ,W,!0),L==="spot"?s.T(B,te,r,s.xm(),!0):(F=B.v(te),F&&r.n(I.oi(),te)),z=s.E(B,"range",r,NaN,1/0,0,1/0,-1/0,!1,NaN),L==="directional"&&!isNaN(z)&&r.n(I.oi(),"range"),s.J(B,"name",r,W,W,W,!1),F=s.t(B,y.e1,r,W),O=B.i(0,"extras"),O!=null&&!v.b(O)&&r.n(I.dk(),"extras"),u[S]=new s.ba(F,O,!1),f.pop();f.pop()}else u=V.b8(0,u),m=new s.F(u,0,Y,N.E);return new s.bC(m,s.t(n,y.e_,r,W),s.x(n,r),!1)},up(n,r){var c,u,f="outerConeAngle";return s.w(n,y.cV,r),c=s.E(n,"innerConeAngle",r,0,1.5707963267948966,-1/0,1/0,0,!1,NaN),u=s.E(n,f,r,.7853981633974483,1/0,0,1.5707963267948966,-1/0,!1,NaN),u<=c&&r.l(I.rF(),s.a([c,u],N.M),f),new s.cg(s.t(n,y.e0,r,null),s.x(n,r),!1)},uq(n,r){return r.toString,s.w(n,y.d_,r),new s.ch(s.W(n,"light",r,!0),s.t(n,y.e2,r,null),s.x(n,r),!1)},bC:function(r,c,u,f){var m=this;m.d=r,m.a=c,m.b=u,m.a$=f},iS:function(r,c){this.a=r,this.b=c},ba:function(r,c,u){this.a=r,this.b=c,this.a$=u},cg:function(r,c,u){this.a=r,this.b=c,this.a$=u},ch:function(r,c,u,f){var m=this;m.d=r,m.e=null,m.a=c,m.b=u,m.a$=f},ur(n,r){var c,u,f,m;return r.toString,s.w(n,y.cv,r),s.E(n,"anisotropyStrength",r,0,1/0,-1/0,1,0,!1,NaN),s.E(n,"anisotropyRotation",r,0,1/0,-1/0,1/0,-1/0,!1,NaN),c=s.T(n,"anisotropyTexture",r,s.ao(),!1),u=s.t(n,y.e3,r,null),f=new s.ci(c,u,s.x(n,r),!1),m=s.a([c],N.M),y.d.D(m,u.gX()),r.W(f,m),f},ci:function(r,c,u,f){var m=this;m.f=r,m.a=c,m.b=u,m.a$=f},us(n,r){var c,u,f,m,v,S;return r.toString,s.w(n,y.ca,r),s.E(n,"clearcoatFactor",r,0,1/0,-1/0,1,0,!1,NaN),c=s.T(n,"clearcoatTexture",r,s.ao(),!1),s.E(n,"clearcoatRoughnessFactor",r,0,1/0,-1/0,1,0,!1,NaN),u=s.T(n,"clearcoatRoughnessTexture",r,s.ao(),!1),f=s.T(n,"clearcoatNormalTexture",r,s.pV(),!1),m=s.t(n,y.e4,r,null),v=new s.cj(c,u,f,m,s.x(n,r),!1),S=s.a([c,u,f],N.M),y.d.D(S,m.gX()),r.W(v,S),v},cj:function(r,c,u,f,m,v){var S=this;S.e=r,S.r=c,S.w=u,S.a=f,S.b=m,S.a$=v},ut(n,r){return r.toString,s.w(n,y.cK,r),s.E(n,"dispersion",r,0,1/0,-1/0,1/0,0,!1,NaN),new s.ck(s.t(n,y.e5,r,null),s.x(n,r),!1)},ck:function(r,c,u){this.a=r,this.b=c,this.a$=u},uu(n,r){return r.toString,s.w(n,y.cL,r),new s.cl(s.E(n,"emissiveStrength",r,1,1/0,-1/0,1/0,0,!1,NaN),s.t(n,y.e6,r,null),s.x(n,r),!1)},cl:function(r,c,u,f){var m=this;m.d=r,m.a=c,m.b=u,m.a$=f},uv(n,r){return r.toString,s.w(n,y.cX,r),s.E(n,"ior",r,1.5,1/0,-1/0,1/0,1,!1,0),new s.cm(s.t(n,y.e7,r,null),s.x(n,r),!1)},cm:function(r,c,u){this.a=r,this.b=c,this.a$=u},uw(n,r){var c,u,f,m,v,S,B,L="iridescenceThicknessMinimum",F="iridescenceThicknessTexture";return r.toString,s.w(n,y.dg,r),s.E(n,"iridescenceFactor",r,0,1/0,-1/0,1,0,!1,NaN),c=s.T(n,"iridescenceTexture",r,s.ao(),!1),s.E(n,"iridescenceIor",r,1.3,1/0,-1/0,1/0,1,!1,NaN),u=s.E(n,L,r,100,1/0,-1/0,1/0,0,!1,NaN),f=s.E(n,"iridescenceThicknessMaximum",r,400,1/0,-1/0,1/0,0,!1,NaN),m=s.T(n,F,r,s.ao(),!1),m!=null?u===f&&r.n(I.rL(),F):!isNaN(u)&&n.v(L)&&r.n(I.rK(),L),v=s.t(n,y.e8,r,null),S=new s.cn(c,m,v,s.x(n,r),!1),B=s.a([c,m],N.M),y.d.D(B,v.gX()),r.W(S,B),S},cn:function(r,c,u,f,m){var v=this;v.e=r,v.x=c,v.a=u,v.b=f,v.a$=m},ux(n,r){var c,u,f,m,v;return r.toString,s.w(n,y.cI,r),s.ae(n,"diffuseFactor",r,y.al,y.P,1,0,!1),c=s.T(n,"diffuseTexture",r,s.ao(),!1),s.ae(n,"specularFactor",r,y.C,y.l,1,0,!1),s.E(n,"glossinessFactor",r,1,1/0,-1/0,1,0,!1,NaN),u=s.T(n,"specularGlossinessTexture",r,s.ao(),!1),f=s.t(n,y.dX,r,null),m=new s.co(c,u,f,s.x(n,r),!1),v=s.a([c,u],N.M),y.d.D(v,f.gX()),r.W(m,v),m},co:function(r,c,u,f,m){var v=this;v.e=r,v.w=c,v.a=u,v.b=f,v.a$=m},uy(n,r){var c,u,f,m,v;return r.toString,s.w(n,y.c9,r),s.ae(n,"sheenColorFactor",r,y.ak,y.l,1,0,!1),c=s.T(n,"sheenColorTexture",r,s.ao(),!1),s.E(n,"sheenRoughnessFactor",r,0,1/0,-1/0,1,0,!1,NaN),u=s.T(n,"sheenRoughnessTexture",r,s.ao(),!1),f=s.t(n,y.e9,r,null),m=new s.cp(c,u,f,s.x(n,r),!1),v=s.a([c,u],N.M),y.d.D(v,f.gX()),r.W(m,v),m},cp:function(r,c,u,f,m){var v=this;v.e=r,v.r=c,v.a=u,v.b=f,v.a$=m},uz(n,r){var c,u,f,m,v;return r.toString,s.w(n,y.cc,r),s.E(n,"specularFactor",r,1,1/0,-1/0,1,0,!1,NaN),c=s.T(n,"specularTexture",r,s.ao(),!1),s.ae(n,"specularColorFactor",r,y.C,y.l,1/0,0,!1),u=s.T(n,"specularColorTexture",r,s.ao(),!1),f=s.t(n,y.ea,r,null),m=new s.cq(c,u,f,s.x(n,r),!1),v=s.a([c,u],N.M),y.d.D(v,f.gX()),r.W(m,v),m},cq:function(r,c,u,f,m){var v=this;v.e=r,v.r=c,v.a=u,v.b=f,v.a$=m},uA(n,r){var c,u,f,m;return r.toString,s.w(n,y.cf,r),s.E(n,"transmissionFactor",r,0,1/0,-1/0,1,0,!1,NaN),c=s.T(n,"transmissionTexture",r,s.ao(),!1),u=s.t(n,y.eb,r,null),f=new s.cr(c,u,s.x(n,r),!1),m=s.a([c],N.M),y.d.D(m,u.gX()),r.W(f,m),f},cr:function(r,c,u,f){var m=this;m.e=r,m.a=c,m.b=u,m.a$=f},uB(n,r){return r.toString,s.w(n,y.cM,r),new s.cs(s.t(n,y.ec,r,null),s.x(n,r),!1)},cs:function(r,c,u){this.a=r,this.b=c,this.a$=u},uC(n,r){var c,u,f,m,v,S,B,L,F,z=null,O="variants";if(r.toString,s.w(n,y.dl,r),c=s.eB(n,O,r),u=N.J,c!=null){for(f=c.gj(c),u=s.U(f,z,!1,u),m=new s.F(u,f,O,N.u),f=r.c,f.push(O),v=N.h,S=0;S<c.gj(c);++S)B=c.i(0,S),f.push(y.c.k(S)),s.w(B,y.d2,r),s.J(B,"name",r,z,z,z,!0),L=s.t(B,y.ef,r,z),F=B.i(0,"extras"),F!=null&&!v.b(F)&&r.n(I.dk(),"extras"),u[S]=new s.aM(L,F,!1),f.pop();f.pop()}else u=V.b8(0,u),m=new s.F(u,0,O,N.u);return new s.bD(m,s.t(n,y.ed,r,z),s.x(n,r),!1)},uD(n,r){var c,u,f,m,v,S,B,L,F,z,O,W,Y=null,te="mappings";if(r.toString,s.w(n,y.d1,r),c=s.eB(n,te,r),u=N.aa,c!=null){for(f=c.gj(c),u=s.U(f,Y,!1,u),m=new s.F(u,f,te,N.B),f=r.c,f.push(te),v=N.h,S=0;S<c.gj(c);++S)B=c.i(0,S),f.push(y.c.k(S)),s.w(B,y.dm,r),L=s.mR(B,"variants",r,!0),F=s.W(B,"material",r,!0),s.J(B,"name",r,Y,Y,Y,!1),z=s.t(B,y.ee,r,Y),O=B.i(0,"extras"),O!=null&&!v.b(O)&&r.n(I.dk(),"extras"),u[S]=new s.bb(L,F,z,O,!1),f.pop();f.pop()}else u=V.b8(0,u),m=new s.F(u,0,te,N.B);return W=new s.ct(m,s.t(n,y.el,r,Y),s.x(n,r),!1),r.W(W,s.bc(m,!0,N._)),W},bD:function(r,c,u,f){var m=this;m.d=r,m.a=c,m.b=u,m.a$=f},iT:function(r,c){this.a=r,this.b=c},aM:function(r,c,u){this.a=r,this.b=c,this.a$=u},ct:function(r,c,u,f){var m=this;m.d=r,m.a=c,m.b=u,m.a$=f},iW:function(r,c,u){this.a=r,this.b=c,this.c=u},bb:function(r,c,u,f,m){var v=this;v.d=r,v.e=c,v.r=null,v.a=u,v.b=f,v.a$=m},iU:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},iV:function(r,c){this.a=r,this.b=c},uE(n,r){var c,u,f,m,v;return r.toString,s.w(n,y.dp,r),s.ae(n,"attenuationColor",r,y.C,y.l,1,0,!1),s.E(n,"attenuationDistance",r,NaN,1/0,0,1/0,-1/0,!1,NaN),c=s.E(n,"thicknessFactor",r,0,1/0,-1/0,1/0,0,!1,NaN),u=s.T(n,"thicknessTexture",r,s.ao(),!1),f=s.t(n,y.eg,r,null),m=new s.cu(c,u,f,s.x(n,r),!1),v=s.a([u],N.M),y.d.D(v,f.gX()),r.W(m,v),m},cu:function(r,c,u,f,m){var v=this;v.f=r,v.r=c,v.a=u,v.b=f,v.a$=m},iX:function(){},uF(n,r){return r.toString,s.w(n,y.d8,r),s.ae(n,"offset",r,y.c5,y.am,1/0,-1/0,!1),s.E(n,"rotation",r,0,1/0,-1/0,1/0,-1/0,!1,NaN),s.ae(n,"scale",r,y.c7,y.am,1/0,-1/0,!1),new s.cv(s.a0(n,"texCoord",r,-1,null,-1,0,!1),s.t(n,y.eh,r,null),s.x(n,r),!1)},cv:function(r,c,u,f){var m=this;m.r=r,m.a=c,m.b=u,m.a$=f},L:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},O:function(r,c,u){this.a=r,this.b=c,this.c=u},cb:function(r,c){this.a=r,this.b=c},cw:function(r,c){this.a=r,this.b=c},fo:function(r,c){this.a=r,this.b=c},oA(n,r){var c=null,u=new Uint8Array(12),f=new s.dt(u,n,new s.ay(new s.C(I.B,N.f),N.G));return r.dx=!0,f.f=r,f.b=s.f7(u.buffer,0,c),f.ch=s.p1(c,c,c,N.w),f},dt:function(r,c,u){var f=this;f.a=r,f.b=null,f.c=c,f.d=null,f.e=u,f.f=null,f.as=f.Q=f.z=f.y=f.x=f.w=f.r=0,f.at=!1,f.ch=f.ay=f.ax=null,f.CW=!1,f.cx=null},ii:function(r){this.a=r},ij:function(r){this.a=r},ig:function(r){this.a=r},ih:function(r){this.a=r},ue(n,r){var c,u={},f=new s.C(I.B,N.eD);return u.a=!1,u.b=null,c=s.p1(new s.il(u),new s.im(u),new s.io(u),N.w),u.b=n.ea(new s.ip(u,c,new s.ay(f,N.a_),r),c.gdZ()),f},oB(n,r){var c=new s.cT(n,new s.ay(new s.C(I.B,N.f),N.G));return c.e=r,c},ud(n,r){var c,u,f,m=null,v=null;try{v=y.ab.e1(n)}catch(S){if(f=s.M(S),f instanceof s.aK)return c=f,r.aE(I.h3(),s.a([c],N.M),!0),m;throw S}if(N.t.b(v))try{return u=s.oC(v,r),new s.au("model/gltf+json",u,m)}catch(S){if(s.M(S)instanceof s.bA)return m;throw S}else return r.aE(I.a2(),s.a([v,"object"],N.M),!0),m},au:function(r,c,u){this.a=r,this.b=c,this.c=u},im:function(r){this.a=r},io:function(r){this.a=r},il:function(r){this.a=r},ip:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},cT:function(r,c){var u=this;u.a=r,u.b=null,u.c=c,u.e=u.d=null,u.f=!0},ik:function(r){this.a=r},dv:function(){},az(n,r,c,u){var f=n.i(0,r);return f==null&&n.v(r)&&u.l(I.a2(),s.a([null,c],N.M),r),f},mM(n){return typeof n=="number"&&Math.floor(n)===n?V.no(n):n},W(n,r,c,u){var f=s.mM(s.az(n,r,"integer",c));if(s.aI(f)){if(f>=0)return f;c.n(I.h2(),r)}else f==null?u&&c.F(I.bs(),s.a([r],N.M)):c.l(I.a2(),s.a([f,"integer"],N.M),r);return-1},pO(n,r,c){var u=s.az(n,r,"boolean",c);return u==null?!1:s.eu(u)?u:(c.l(I.a2(),s.a([u,"boolean"],N.M),r),!1)},a0(n,r,c,u,f,m,v,S){var B,L=s.mM(s.az(n,r,"integer",c));if(s.aI(L)){if(f!=null){if(!s.nN(r,L,f,c,!1))return-1}else if(L<v?B=!0:B=m!==-1&&L>m,B)return c.l(I.ni(),s.a([L],N.M),r),-1;return L}else if(L==null){if(!S)return u;c.F(I.bs(),s.a([r],N.M))}else c.l(I.a2(),s.a([L,"integer"],N.M),r);return-1},E(n,r,c,u,f,m,v,S,B,L){var F,z=s.az(n,r,"number",c);if(typeof z=="number")return z!==L?F=z<S||z<=m||z>v||z>=f:F=!1,F?(c.l(I.ni(),s.a([z],N.M),r),NaN):z;if(z==null){if(!B)return u;c.F(I.bs(),s.a([r],N.M))}else c.l(I.a2(),s.a([z,"number"],N.M),r);return NaN},J(n,r,c,u,f,m,v){var S,B=s.az(n,r,"string",c);if(typeof B=="string"){if(f!=null)s.nN(r,B,f,c,!1);else if(m==null?S=null:(S=m.b,S=S.test(B)),S===!1)return c.l(I.rp(),s.a([B,m.a],N.M),r),null;return B}else if(B==null){if(!v)return u;c.F(I.bs(),s.a([r],N.M))}else c.l(I.a2(),s.a([B,"string"],N.M),r);return null},pS(n,r){var c,u,f;try{return c=s.p6(n),f=c,(f.gcK()||f.gbN()||f.gcJ()||f.gbP()||f.gbO())&&r.l(I.t3(),s.a([n],N.M),"uri"),c}catch(m){if(f=s.M(m),f instanceof s.aK)return u=f,r.l(I.od(),s.a([n,u],N.M),"uri"),null;throw m}},nP(n,r,c,u){var f=s.az(n,r,"object",c);if(N.t.b(f))return f;if(f==null){if(u)return c.F(I.bs(),s.a([r],N.M)),null}else if(c.l(I.a2(),s.a([f,"object"],N.M),r),u)return null;return s.a9(N.X,N._)},T(n,r,c,u,f){var m,v,S=s.az(n,r,"object",c);return N.t.b(S)?(m=c.c,m.push(r),v=u.$2(S,c),m.pop(),v):(S==null?f&&c.F(I.bs(),s.a([r],N.M)):c.l(I.a2(),s.a([S,"object"],N.M),r),null)},mR(n,r,c,u){var f,m,v,S,B,L,F=s.az(n,r,"array",c);if(N.m.b(F)){if(f=V.V(F),f.gA(F))return c.n(I.bX(),r),null;for(m=c.c,m.push(r),v=N.e,S=s.aD(v),B=0;B<f.gj(F);++B)L=f.i(F,B),typeof L=="number"&&Math.floor(L)===L&&(L=V.no(L)),s.aI(L)&&L>=0?(S.C(0,L)||c.Z(I.ob(),B),f.m(F,B,L)):(f.m(F,B,-1),c.Z(I.h2(),B));return m.pop(),f.aj(F,v)}else F==null?u&&c.F(I.bs(),s.a([r],N.M)):c.l(I.a2(),s.a([F,"array"],N.M),r);return null},x5(n,r,c,u){var f,m=s.az(n,r,"object",c);return N.t.b(m)?m.gA(m)?(c.n(I.bX(),r),null):(f=c.c,f.push(r),m.M(0,new s.mS(u,m,c)),f.pop(),m.ak(0,N.X,N.e)):(f=N.M,m==null?c.F(I.bs(),s.a([r],f)):c.l(I.a2(),s.a([m,"object"],f),r),null)},x6(n,r,c,u){var f,m,v,S,B,L,F,z=s.az(n,r,"array",c);if(N.m.b(z)){if(f=V.V(z),f.gA(z))return c.n(I.bX(),r),null;for(m=c.c,m.push(r),v=N.M,S=N.t,B=!1,L=0;L<f.gj(z);++L)F=f.i(z,L),S.b(F)?F.gA(F)?(c.Z(I.bX(),L),B=!0):(m.push(y.c.k(L)),F.M(0,new s.mT(u,F,c)),m.pop()):(c.F(I.eC(),s.a([F,"object"],v)),B=!0);return m.pop(),B?null:(f=V.nn(z,N.h),m=s.A(f).h("ab<p.E,h<e*,f*>*>"),s.bc(new s.ab(f,new s.mU,m),!1,m.h("ah.E")))}else z!=null&&c.l(I.a2(),s.a([z,"array"],N.M),r);return null},ae(n,r,c,u,f,m,v,S){var B,L,F,z,O,W,Y,te,K=null,ie=s.az(n,r,"array",c);if(N.m.b(ie)){if(B=V.V(ie),B.gA(ie))return c.n(I.bX(),r),K;if(f!=null&&!s.nN(r,B.gj(ie),f,c,!0))return K;for(L=s.U(B.gj(ie),0,!1,N.F),F=N.M,z=c.c,O=!1,W=0;W<B.gj(ie);++W)Y=B.i(ie,W),typeof Y=="number"?(te=Y==1/0||Y==-1/0||Y<v||Y>m,te&&(z.push(r),c.ao(I.ni(),s.a([Y],F),W),z.pop(),O=!0),S?(te=I.ol(),te[0]=Y,L[W]=te[0]):L[W]=Y):(c.l(I.eC(),s.a([Y,"number"],F),r),O=!0);return O?K:L}else{if(ie==null)return u==null?B=K:B=V.cX(u.slice(0),s.a_(u).c),B;c.l(I.a2(),s.a([ie,"array"],N.M),r)}return K},pP(n,r,c,u,f){var m,v,S,B,L,F,z,O,W,Y=s.az(n,r,"array",c);if(N.m.b(Y)){if(m=V.V(Y),m.gj(Y)!==f)return c.l(I.oc(),s.a([m.gj(Y),s.a([f],N.V)],N.M),r),null;for(v=s.xR(u),S=s.q1(u),B=s.x_(u,f),L=N.M,F=!1,z=0;z<m.gj(Y);++z)O=m.i(Y,z),typeof O=="number"&&Math.floor(O)===O&&(O=V.no(O)),s.aI(O)?(W=O<v||O>S,W&&(c.l(I.rC(),s.a([O,y.ay.i(0,u)],L),r),F=!0),B[z]=O):(c.l(I.eC(),s.a([O,"integer"],L),r),F=!0);return F?null:B}else Y!=null&&c.l(I.a2(),s.a([Y,"array"],N.M),r);return null},pQ(n,r,c){var u,f,m,v,S,B,L,F,z=s.az(n,r,"array",c);if(N.m.b(z)){if(u=V.V(z),u.gA(z))return c.n(I.bX(),r),null;for(f=c.c,f.push(r),m=N.X,v=s.aD(m),S=N.M,B=!1,L=0;L<u.gj(z);++L)F=u.i(z,L),typeof F=="string"?v.C(0,F)||c.Z(I.ob(),L):(c.ao(I.eC(),s.a([F,"string"],S),L),B=!0);return f.pop(),B?null:u.aj(z,m)}else z!=null&&c.l(I.a2(),s.a([z,"array"],N.M),r);return null},eB(n,r,c){var u,f,m,v,S,B,L=s.az(n,r,"array",c);if(N.m.b(L)){if(u=V.V(L),u.gA(L))return c.n(I.bX(),r),null;for(f=u.gH(L),m=N.t,v=N.M,S=!1;f.q();)B=f.gt(),m.b(B)||(c.l(I.eC(),s.a([B,"object"],v),r),S=!0);return S?null:u.aj(L,m)}else u=N.M,L==null?c.F(I.bs(),s.a([r],u)):c.l(I.a2(),s.a([L,"array"],u),r);return null},t(n,r,c,u){var f,m,v,S,B,L,F,z,O,W,Y,te,K="extensions",ie=s.a9(N.X,N._),de=s.nP(n,K,c,!1);if(de.gA(de))return ie;for(f=c.c,f.push(K),m=de.gN(),m=m.gH(m),v=N.ax,S=N.c,B=u==null,L=c.f,F=c.r;m.q();){if(z=m.gt(),O=s.nP(de,z,c,!1),W=c.ay,!W.G(W,z)){W=c.at,W=W.G(W,z),W||c.n(I.rk(),z),ie.m(0,z,O);continue}if(Y=c.Q.a.i(0,new s.cb(r,z)),Y==null){c.n(I.rl(),z);continue}de.gj(de)>1&&Y.b&&c.n(I.rW(),z),O!=null&&(f.push(z),te=Y.a.$2(O,c),ie.m(0,z,te),!Y.c&&S.b(te)&&(z=B?r:u,z=L.c_(z,new s.mQ),W=s.a(f.slice(0),s.a_(f)),W.fixed$length=Array,V.nm(z,new s.cw(te,W))),v.b(te)&&(z=s.a(f.slice(0),s.a_(f)),z.fixed$length=Array,F.push(new s.fo(te,z))),f.pop())}return f.pop(),ie},x(n,r){var c=n.i(0,"extras");return c!=null&&!N.h.b(c)&&r.n(I.dk(),"extras"),c},nN(n,r,c,u,f){var m;return V.on(c,r)?!0:(m=f?I.oc():I.rs(),u.l(m,s.a([r,c],N.M),n),!1)},w(n,r,c){var u,f,m;for(u=n.gN(),u=u.gH(u);u.q();)f=u.gt(),y.d.G(r,f)?m=!1:(m=y.d.G(y.cP,f),m=!m),m&&c.n(I.rq(),f)},nT(n,r,c,u,f,m){var v,S,B,L,F,z,O=f.c;for(O.push(u),v=N.M,S=c.a,B=S.length,L=0;L<n.gj(n);++L)F=n.i(0,L),F!==-1&&(z=F==null||F<0||F>=B?null:S[F],z!=null?(z.a$=!0,r[L]=z,m.$3(z,F,L)):f.ao(I.Q(),s.a([F],v),L));O.pop()},xi(n){var r,c,u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j,q,ae,me,fe,he,ve,Re,Le,Xe,xe,Pe,Ie,Fe,Ne,et,Ke,gt,ne=n.a;return ne[3]!==0||ne[7]!==0||ne[11]!==0||ne[15]!==1||n.cG()===0?!1:(r=I.tt(),c=I.tq(),u=I.tr(),f=I.oN,f==null&&(f=I.oN=new s.cE(new Float32Array(3))),f.bt(ne[0],ne[1],ne[2]),m=Math.sqrt(f.gaW()),f.bt(ne[4],ne[5],ne[6]),v=Math.sqrt(f.gaW()),f.bt(ne[8],ne[9],ne[10]),S=Math.sqrt(f.gaW()),n.cG()<0&&(m=-m),r=r.a,r[0]=ne[12],r[1]=ne[13],r[2]=ne[14],B=1/m,L=1/v,F=1/S,z=I.oL,z==null&&(z=I.oL=new s.cZ(new Float32Array(16))),O=z.a,O[15]=ne[15],O[14]=ne[14],O[13]=ne[13],O[12]=ne[12],O[11]=ne[11],O[10]=ne[10],O[9]=ne[9],O[8]=ne[8],O[7]=ne[7],O[6]=ne[6],O[5]=ne[5],O[4]=ne[4],O[3]=ne[3],O[2]=ne[2],O[1]=ne[1],O[0]=ne[0],O[0]=O[0]*B,O[1]=O[1]*B,O[2]=O[2]*B,O[4]=O[4]*L,O[5]=O[5]*L,O[6]=O[6]*L,O[8]=O[8]*F,O[9]=O[9]*F,O[10]=O[10]*F,W=I.oM,W==null&&(W=I.oM=new s.f2(new Float32Array(9))),Y=W.a,Y[0]=O[0],Y[1]=O[1],Y[2]=O[2],Y[3]=O[4],Y[4]=O[5],Y[5]=O[6],Y[6]=O[8],Y[7]=O[9],Y[8]=O[10],c.toString,ne=Y[0],O=Y[4],te=Y[8],K=0+ne+O+te,K>0?(ie=Math.sqrt(K+1),ne=c.a,ne[3]=ie*.5,ie=.5/ie,ne[0]=(Y[5]-Y[7])*ie,ne[1]=(Y[6]-Y[2])*ie,ne[2]=(Y[1]-Y[3])*ie):(ne<O?de=O<te?2:1:de=ne<te?2:0,j=(de+1)%3,q=(de+2)%3,ne=de*3,O=j*3,te=q*3,ie=Math.sqrt(Y[ne+de]-Y[O+j]-Y[te+q]+1),c=c.a,c[de]=ie*.5,ie=.5/ie,c[3]=(Y[O+q]-Y[te+j])*ie,c[j]=(Y[ne+j]+Y[O+de])*ie,c[q]=(Y[ne+q]+Y[te+de])*ie,ne=c),u=u.a,u[0]=m,u[1]=v,u[2]=S,c=I.tp(),ae=ne[0],me=ne[1],fe=ne[2],he=ne[3],ve=ae+ae,Re=me+me,Le=fe+fe,Xe=ae*ve,xe=ae*Re,Pe=ae*Le,Ie=me*Re,Fe=me*Le,Ne=fe*Le,et=he*ve,Ke=he*Re,gt=he*Le,ne=c.a,ne[0]=1-(Ie+Ne),ne[1]=xe+gt,ne[2]=Pe-Ke,ne[3]=0,ne[4]=xe-gt,ne[5]=1-(Xe+Ne),ne[6]=Fe+et,ne[7]=0,ne[8]=Pe+Ke,ne[9]=Fe-et,ne[10]=1-(Xe+Ie),ne[11]=0,ne[12]=r[0],ne[13]=r[1],ne[14]=r[2],ne[15]=1,m=u[0],v=u[1],S=u[2],ne[0]=ne[0]*m,ne[1]=ne[1]*m,ne[2]=ne[2]*m,ne[3]=ne[3]*m,ne[4]=ne[4]*v,ne[5]=ne[5]*v,ne[6]=ne[6]*v,ne[7]=ne[7]*v,ne[8]=ne[8]*S,ne[9]=ne[9]*S,ne[10]=ne[10]*S,ne[11]=ne[11]*S,ne[12]=ne[12],ne[13]=ne[13],ne[14]=ne[14],ne[15]=ne[15],Math.abs(c.cL()-n.cL())<5e-5)},x_(n,r){switch(n){case 5120:return new Int8Array(r);case 5121:return new Uint8Array(r);case 5122:return new Int16Array(r);case 5123:return new Uint16Array(r);case 5124:return new Int32Array(r);case 5125:return new Uint32Array(r);default:throw s.d(s.K(null,null))}},mS:function(r,c,u){this.a=r,this.b=c,this.c=u},mT:function(r,c,u){this.a=r,this.b=c,this.c=u},mU:function(){},mQ:function(){},F:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.$ti=f},a1:function(){},fv:function(r,c){this.a=0,this.b=r,this.c=c},fw:function(r,c){this.a=0,this.b=r,this.c=c},eK:function(r){this.a=r},lF:function(r,c,u,f){var m=this;m.a=r,m.b=c,m.c=u,m.d=f},lI:function(r,c){this.a=r,this.b=c},lH:function(){},lG:function(){},uM(){return new s.cZ(new Float32Array(16))},v3(){return new s.fl(new Float32Array(4))},pb(n){var r=new Float32Array(3);return r[2]=n[2],r[1]=n[1],r[0]=n[0],new s.cE(r)},pa(){return new s.cE(new Float32Array(3))},f2:function(r){this.a=r},cZ:function(r){this.a=r},fl:function(r){this.a=r},cE:function(r){this.a=r},fA:function(r){this.a=r},xD(){var n=new s.nb;V.tE(t.exports,s.cK(new s.n7(n))),V.tF(t.exports,s.cK(new s.n8(n))),V.tG(t.exports,s.cK(new s.n9)),V.tD(t.exports,s.cK(new s.na))},h_(n,r){return s.xT(n,r)},xT(n,r){var c=0,u=s.ex(N.t),f,m=2,v,S,B,L,F,z,O,W,Y,te=s.ez(function(K,ie){for(K===1&&(v=ie,c=m);;)switch(c){case 0:if(!N.a.b(n))throw s.d(s.K("data: Argument must be a Uint8Array.",null));L=s.pv(r),S=s.pz(L),B=null,F=s.w0(L==null?null:V.tw(L));case 3:switch(F==null?null:F.toLowerCase()){case"glb":c=5;break;case"gltf":c=6;break;default:c=7;break}break;case 5:B=s.oA(s.fs(n,N.w),S),c=4;break;case 6:B=s.oB(s.fs(n,N.w),S),c=4;break;case 7:return m=9,c=12,s.dd(s.ue(s.fs(n,N.w),S),te);case 12:B=ie,m=2,c=11;break;case 9:throw m=8,z=v,s.M(z)instanceof s.dv,z;case 8:c=2;break;case 11:case 4:return O=s,W=L,Y=S,c=13,s.dd(B.c0(),te);case 13:f=O.fY(W,Y,ie),c=1;break;case 1:return s.es(f,u);case 2:return s.er(v,u)}});return s.et(te,u)},nV(n,r){var c=0,u=s.ex(N.t),f,m,v,S=s.ez(function(B,L){if(B===1)return s.er(L,u);for(;;)switch(c){case 0:if(typeof n!="string")throw s.d(s.K("json: Argument must be a string.",null));m=s.pv(r),v=s.pz(m),f=s.fY(m,v,s.ud(n,v)),c=1;break;case 1:return s.es(f,u)}});return s.et(S,u)},pv(n){var r;if(n!=null?r=typeof n=="number"||s.eu(n)||typeof n=="string"||N.l.b(n):r=!1,r)throw s.d(s.K("options: Value must be an object.",null));return N.bv.a(n)},fY(n,r,c){var u=0,f=s.ex(N.t),m,v,S,B,L,F=s.ez(function(z,O){if(z===1)return s.er(O,f);for(;;)switch(u){case 0:if(L=n==null,L)S=null,B=null;else{if(v=V.b1(n),S=s.wd(v.gbo(n)),v.gbL(n)!=null&&!N.b1.b(v.gbL(n)))throw s.d(s.K("options.externalResourceFunction: Value must be a function.",null));if(B=v.gbL(n),v.gc6(n)!=null&&!s.eu(v.gc6(n)))throw s.d(s.K("options.writeTimestamp: Value must be a boolean.",null))}u=(c==null?null:c.b)!=null?3:4;break;case 3:return u=5,s.dd(s.wc(r,c,B).aX(),F);case 5:case 4:L=L?null:V.tz(n),m=new s.lF(S,r,c,L??!0).bn(),u=1;break;case 1:return s.es(m,f)}});return s.et(F,f)},wd(n){var r,c;if(n!=null)if(typeof n=="string")try{return c=s.p6(n),c}catch(u){throw c=s.M(u),c instanceof s.aK?(r=c,s.d(s.K("options.uri: "+s.b(r)+".",null))):u}else throw s.d(s.K("options.uri: Value must be a string.",null));return null},pz(n){var r,c,u,f,m,v,S,B,L,F,z=null,O="]: Value must be a non-empty String.";if(n!=null){if(r=V.b1(n),r.gbM(n)!=null&&typeof r.gbM(n)!="string")throw s.d(s.K("options.format: Value must be a string.",z));if(r.gbk(n)!=null?c=!s.aI(r.gbk(n))||r.gbk(n)<0:c=!1,c)throw s.d(s.K("options.maxIssues: Value must be a non-negative integer.",z));if(r.gaY(n)!=null&&r.gaU(n)!=null)throw s.d(s.K("options.onlyIssues cannot be used along with options.ignoredIssues.",z));if(r.gaY(n)!=null){if(!N.l.b(r.gaY(n)))throw s.d(s.K("options.onlyIssues: Value must be an array.",z));for(u=s.a([],N.i),f=0;f<V.a3(r.gaY(n));++f)if(m=V.nl(r.gaY(n),f),typeof m=="string"&&m.length!==0)u.push(m);else throw s.d(s.K("options.onlyIssues["+f+O,z))}else u=z;if(r.gaU(n)!=null){if(!N.l.b(r.gaU(n)))throw s.d(s.K("options.ignoredIssues: Value must be an array.",z));for(v=s.a([],N.i),f=0;f<V.a3(r.gaU(n));++f)if(m=V.nl(r.gaU(n),f),typeof m=="string"&&m.length!==0)v.push(m);else throw s.d(s.K("options.ignoredIssues["+f+O,z))}else v=z;if(r.gam(n)!=null){if(typeof r.gam(n)=="number"||s.eu(r.gam(n))||typeof r.gam(n)=="string"||N.l.b(r.gam(n)))throw s.d(s.K("options.severityOverrides: Value must be an object.",z));for(c=N.X,S=s.a9(c,N.dz),c=V.nn(t.Object.keys(r.gam(n)),c),c=new s.aa(c,c.gj(c),s.A(c).h("aa<p.E>"));c.q();)if(B=c.d,L=r.gam(n)[B],s.aI(L)&&L>=0&&L<=3)S.m(0,B,y.cn[L]);else throw s.d(s.K('options.severityOverrides["'+s.b(B)+'"]: Value must be one of [0, 1, 2, 3].',z))}else S=z;F=s.p9(v,r.gbk(n),u,S)}else F=z;return s.u3(F)},wc(n,r,c){var u=new s.mG(c),f=new s.e_("options.externalResourceFunction is required to load this resource.");return new s.kb(r.b,n,new s.mE(n,r,c,u,f),new s.mF(c,u,f))},bf:function(){},hX:function(){},d8:function(){},nb:function(){},n7:function(r){this.a=r},n6:function(r,c,u){this.a=r,this.b=c,this.c=u},n3:function(r){this.a=r},n4:function(r,c){this.a=r,this.b=c},n8:function(r){this.a=r},n5:function(r,c,u){this.a=r,this.b=c,this.c=u},n1:function(r){this.a=r},n2:function(r,c){this.a=r,this.b=c},n9:function(){},na:function(){},mG:function(r){this.a=r},mH:function(r){this.a=r},mI:function(r){this.a=r},mE:function(r,c,u,f,m){var v=this;v.a=r,v.b=c,v.c=u,v.d=f,v.e=m},mF:function(r,c,u){this.a=r,this.b=c,this.c=u},ff:function(r){this.a=r},nU(n){return s.Z(s.uG(n))},w4(n){var r,c=n.$dart_jsFunction;return c??(r=(function(u,f){return function(){return u(f,Array.prototype.slice.apply(arguments))}})(s.w3,n),r[I.nW()]=n,n.$dart_jsFunction=r,r)},w3(n,r){return s.v_(n,r,null)},cK(n){return typeof n=="function"?n:s.w4(n)},wg(n){var r="POSITION",c="TEXCOORD",u=n.fr;u.i(0,r).D(0,y.dh),u.i(0,"NORMAL").D(0,y.Q),u.i(0,"TANGENT").D(0,y.ds),u.i(0,c).D(0,y.cd),u=n.fx,u.i(0,r).D(0,y.cx),u.i(0,"NORMAL").D(0,y.Q),u.i(0,"TANGENT").D(0,y.Q),u.i(0,c).D(0,y.dn)},b0(n){switch(n){case 5120:case 5121:return 1;case 5122:case 5123:return 2;case 5124:case 5125:case 5126:return 4;default:return-1}},xR(n){switch(n){case 5121:case 5123:case 5125:return 0;case 5120:return-128;case 5122:return-32768;case 5124:return-2147483648;default:throw s.d(s.K(null,null))}},q1(n){switch(n){case 5120:return 127;case 5121:return 255;case 5122:return 32767;case 5123:return 65535;case 5124:return 2147483647;case 5125:return 4294967295;default:throw s.d(s.K(null,null))}},fW(n,r){var c=n+r&536870911;return c=c+((c&524287)<<10)&536870911,c^c>>>6},px(n){var r=n+((n&67108863)<<3)&536870911;return r^=r>>>11,r+((r&16383)<<15)&536870911}},V={nS(n,r,c,u){return{i:n,p:r,e:c,x:u}},mV(n){var r,c,u,f,m,v=n[re.dispatchPropertyName];if(v==null&&I.nQ==null&&(s.xe(),v=n[re.dispatchPropertyName]),v!=null){if(r=v.p,r===!1)return v.i;if(r===!0)return n;if(c=Object.getPrototypeOf(n),r===c)return v.i;if(v.e===c)throw s.d(s.p4("Return interceptor for "+s.b(r(n,v))))}return u=n.constructor,u==null?f=null:(m=I.mg,m==null&&(m=I.mg=re.getIsolateTag("_$dart_js")),f=u[m]),f!=null||(f=s.xC(n),f!=null)?f:typeof n=="function"?y.c2:(r=Object.getPrototypeOf(n),r==null||r===Object.prototype?y.aA:(typeof u=="function"&&(m=I.mg,m==null&&(m=I.mg=re.getIsolateTag("_$dart_js")),Object.defineProperty(u,m,{value:y.X,enumerable:!1,writable:!0,configurable:!0})),y.X))},b8(n,r){if(n<0||n>4294967295)throw s.d(s.Y(n,0,4294967295,"length",null));return V.cX(new Array(n),r)},oF(n,r){if(n>4294967295)throw s.d(s.Y(n,0,4294967295,"length",null));return V.cX(new Array(n),r)},cX(n,r){return V.nr(s.a(n,r.h("D<0>")))},nr(n){return n.fixed$length=Array,n},uj(n){if(n<256)switch(n){case 9:case 10:case 11:case 12:case 13:case 32:case 133:case 160:return!0;default:return!1}switch(n){case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8232:case 8233:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}},oG(n,r){for(var c,u;r>0&&(c=r-1,u=y.a.B(n,c),!(u!==32&&u!==13&&!V.uj(u)));r=c);return r},bV(n){return typeof n=="number"?Math.floor(n)==n?V.dy.prototype:V.eZ.prototype:typeof n=="string"?V.bB.prototype:n==null?V.dz.prototype:typeof n=="boolean"?V.dx.prototype:n.constructor==Array?V.D.prototype:typeof n!="object"?typeof n=="function"?V.b9.prototype:n:n instanceof s.c?n:V.mV(n)},V(n){return typeof n=="string"?V.bB.prototype:n==null?n:n.constructor==Array?V.D.prototype:typeof n!="object"?typeof n=="function"?V.b9.prototype:n:n instanceof s.c?n:V.mV(n)},bp(n){return n==null?n:n.constructor==Array?V.D.prototype:typeof n!="object"?typeof n=="function"?V.b9.prototype:n:n instanceof s.c?n:V.mV(n)},x7(n){return typeof n=="number"?V.ce.prototype:n==null||n instanceof s.c?n:V.bL.prototype},x8(n){return typeof n=="number"?V.ce.prototype:typeof n=="string"?V.bB.prototype:n==null||n instanceof s.c?n:V.bL.prototype},x9(n){return typeof n=="string"?V.bB.prototype:n==null||n instanceof s.c?n:V.bL.prototype},b1(n){return n==null?n:typeof n!="object"?typeof n=="function"?V.b9.prototype:n:n instanceof s.c?n:V.mV(n)},om(n,r){return typeof n=="number"&&typeof r=="number"?n+r:V.x8(n).ae(n,r)},af(n,r){return n==null?r==null:typeof n!="object"?r!=null&&n===r:V.bV(n).O(n,r)},nl(n,r){return typeof r=="number"&&(n.constructor==Array||typeof n=="string"||s.pU(n,n[re.dispatchPropertyName]))&&r>>>0===r&&r<n.length?n[r]:V.V(n).i(n,r)},tv(n,r,c){return typeof r=="number"&&(n.constructor==Array||s.pU(n,n[re.dispatchPropertyName]))&&!n.immutable$list&&r>>>0===r&&r<n.length?n[r]=c:V.bp(n).m(n,r,c)},nm(n,r){return V.bp(n).C(n,r)},nn(n,r){return V.bp(n).aj(n,r)},on(n,r){return V.bp(n).G(n,r)},eD(n,r){return V.bp(n).V(n,r)},tw(n){return V.b1(n).gbM(n)},bY(n){return V.bV(n).gE(n)},oo(n){return V.V(n).gA(n)},tx(n){return V.V(n).ga8(n)},aA(n){return V.bp(n).gH(n)},a3(n){return V.V(n).gj(n)},ty(n){return V.b1(n).ger(n)},tz(n){return V.b1(n).gc6(n)},tA(n,r,c){return V.bp(n).b0(n,r,c)},bt(n,r,c){return V.bp(n).al(n,r,c)},tB(n,r){return V.bV(n).bm(n,r)},tC(n,r){return V.V(n).sj(n,r)},tD(n,r){return V.b1(n).sdf(n,r)},tE(n,r){return V.b1(n).seB(n,r)},tF(n,r){return V.b1(n).seD(n,r)},tG(n,r){return V.b1(n).seE(n,r)},op(n,r){return V.bp(n).a6(n,r)},tH(n,r,c){return V.b1(n).d1(n,r,c)},tI(n,r,c){return V.b1(n).es(n,r,c)},no(n){return V.x7(n).eu(n)},h4(n,r){return V.bp(n).b_(n,r)},as(n){return V.bV(n).k(n)},tJ(n){return V.x9(n).ey(n)},cV:function(){},dx:function(){},dz:function(){},f_:function(){},aN:function(){},fj:function(){},bL:function(){},b9:function(){},D:function(r){this.$ti=r},iL:function(r){this.$ti=r},b4:function(r,c,u){var f=this;f.a=r,f.b=c,f.c=0,f.d=null,f.$ti=u},ce:function(){},dy:function(){},eZ:function(){},bB:function(){}},y={},ee=[s,V,y],I={};s.ns.prototype={},V.cV.prototype={O(n,r){return n===r},gE(n){return s.d0(n)},k(n){return"Instance of '"+s.b(s.ka(n))+"'"},bm(n,r){throw s.d(new s.dH(n,r.gcT(),r.gcX(),r.gcU(),null))}},V.dx.prototype={k(n){return String(n)},gE(n){return n?519018:218159},$iS:1},V.dz.prototype={O(n,r){return r==null},k(n){return"null"},gE(n){return 0},bm(n,r){return this.d6(n,r)},$il:1},V.f_.prototype={},V.aN.prototype={gE(n){return 0},k(n){return String(n)},$ibf:1,$id8:1,ger(n){return n.then},d1(n,r){return n.then(r)},es(n,r,c){return n.then(r,c)},seB(n,r){return n.validateBytes=r},seD(n,r){return n.validateString=r},seE(n,r){return n.version=r},sdf(n,r){return n.supportedExtensions=r},gbo(n){return n.uri},gbM(n){return n.format},gbL(n){return n.externalResourceFunction},gc6(n){return n.writeTimestamp},gbk(n){return n.maxIssues},gaU(n){return n.ignoredIssues},gaY(n){return n.onlyIssues},gam(n){return n.severityOverrides}},V.fj.prototype={},V.bL.prototype={},V.b9.prototype={k(n){var r=n[I.nW()];return r==null?this.da(n):"JavaScript function for "+s.b(V.as(r))},$iaB:1},V.D.prototype={aj(n,r){return new s.b5(n,s.a_(n).h("@<1>").I(r).h("b5<1,2>"))},C(n,r){n.fixed$length&&s.Z(s.ad("add")),n.push(r)},dP(n,r,c){var u,f,m,v=[],S=n.length;for(u=0;u<S;++u)if(f=n[u],r.$1(f)||v.push(f),n.length!==S)throw s.d(s.ag(n));if(m=v.length,m!==S)for(this.sj(n,m),u=0;u<v.length;++u)n[u]=v[u]},D(n,r){var c;if(n.fixed$length&&s.Z(s.ad("addAll")),Array.isArray(r)){this.di(n,r);return}for(c=V.aA(r);c.q();)n.push(c.gt())},di(n,r){var c,u=r.length;if(u!==0){if(n===r)throw s.d(s.ag(n));for(c=0;c<u;++c)n.push(r[c])}},P(n){n.fixed$length&&s.Z(s.ad("clear")),n.length=0},al(n,r,c){return new s.ab(n,r,s.a_(n).h("@<1>").I(c).h("ab<1,2>"))},cQ(n,r){var c,u=s.U(n.length,"",!1,N.R);for(c=0;c<n.length;++c)u[c]=s.b(n[c]);return u.join(r)},a6(n,r){return s.dQ(n,r,null,s.a_(n).c)},bf(n,r,c){var u,f,m=n.length;for(u=0;u<m;++u){if(f=n[u],r.$1(f))return f;if(n.length!==m)throw s.d(s.ag(n))}return c.$0()},V(n,r){return n[r]},a1(n,r,c){if(r<0||r>n.length)throw s.d(s.Y(r,0,n.length,"start",null));if(c<r||c>n.length)throw s.d(s.Y(c,r,n.length,"end",null));return r===c?s.a([],s.a_(n)):s.a(n.slice(r,c),s.a_(n))},b0(n,r,c){return s.aQ(r,c,n.length),s.dQ(n,r,c,s.a_(n).c)},gaV(n){var r=n.length;if(r>0)return n[r-1];throw s.d(s.nq())},G(n,r){var c;for(c=0;c<n.length;++c)if(V.af(n[c],r))return!0;return!1},gA(n){return n.length===0},ga8(n){return n.length!==0},k(n){return s.iI(n,"[","]")},b_(n,r){var c=V.cX(n.slice(0),s.a_(n).c);return c},c3(n){return s.uJ(n,s.a_(n).c)},gH(n){return new V.b4(n,n.length,s.a_(n).h("b4<1>"))},gE(n){return s.d0(n)},gj(n){return n.length},sj(n,r){if(n.fixed$length&&s.Z(s.ad("set length")),r<0)throw s.d(s.Y(r,0,null,"newLength",null));n.length=r},i(n,r){if(!(r>=0&&r<n.length))throw s.d(s.eA(n,r));return n[r]},m(n,r,c){if(n.immutable$list&&s.Z(s.ad("indexed set")),!(r>=0&&r<n.length))throw s.d(s.eA(n,r));n[r]=c},$iq:1,$ij:1,$io:1},V.iL.prototype={},V.b4.prototype={gt(){return this.d},q(){var n,r=this,c=r.a,u=c.length;if(r.b!==u)throw s.d(s.cN(c));return n=r.c,n>=u?(r.d=null,!1):(r.d=c[n],r.c=n+1,!0)},$iP:1},V.ce.prototype={eu(n){var r;if(n>=-2147483648&&n<=2147483647)return n|0;if(isFinite(n))return r=n<0?Math.ceil(n):Math.floor(n),r+0;throw s.d(s.ad(""+n+".toInt()"))},av(n,r){var c,u,f,m;if(r<2||r>36)throw s.d(s.Y(r,2,36,"radix",null));return c=n.toString(r),y.a.B(c,c.length-1)!==41?c:(u=/^([\da-z]+)(?:\.([\da-z]+))?\(e\+(\d+)\)$/.exec(c),u==null&&s.Z(s.ad("Unexpected toString result: "+c)),c=u[1],f=+u[3],m=u[2],m!=null&&(c+=m,f-=m.length),c+y.a.bs("0",f))},k(n){return n===0&&1/n<0?"-0.0":""+n},gE(n){var r,c,u,f,m=n|0;return n===m?m&536870911:(r=Math.abs(n),c=Math.log(r)/.6931471805599453|0,u=Math.pow(2,c),f=r<1?r/u:u/r,((f*9007199254740992|0)+(f*0xc95a6c285a6c9|0))*599197+c*1259&536870911)},br(n,r){var c=n%r;return c===0?0:c>0?c:c+r},aw(n,r){return(n|0)===n&&(r>=1||r<-1)?n/r|0:this.cv(n,r)},bJ(n,r){return(n|0)===n?n/r|0:this.cv(n,r)},cv(n,r){var c=n/r;if(c>=-2147483648&&c<=2147483647)return c|0;if(c>0){if(c!==1/0)return Math.floor(c)}else if(c>-1/0)return Math.ceil(c);throw s.d(s.ad("Result of truncating division is "+s.b(c)+": "+s.b(n)+" ~/ "+r))},aI(n,r){if(r<0)throw s.d(s.cL(r));return r>31?0:n<<r>>>0},ai(n,r){var c;return n>0?c=this.cu(n,r):(c=r>31?31:r,c=n>>c>>>0),c},dT(n,r){if(0>r)throw s.d(s.cL(r));return this.cu(n,r)},cu(n,r){return r>31?0:n>>>r},$iz:1,$iN:1},V.dy.prototype={$if:1},V.eZ.prototype={},V.bB.prototype={B(n,r){if(r<0)throw s.d(s.eA(n,r));return r>=n.length&&s.Z(s.eA(n,r)),n.charCodeAt(r)},J(n,r){if(r>=n.length)throw s.d(s.eA(n,r));return n.charCodeAt(r)},ae(n,r){if(typeof r!="string")throw s.d(s.h7(r,null,null));return n+r},aH(n,r,c,u){var f=s.aQ(r,c,n.length);return n.substring(0,r)+u+n.substring(f)},U(n,r,c){var u;if(c<0||c>n.length)throw s.d(s.Y(c,0,n.length,null,null));return u=c+r.length,u>n.length?!1:r===n.substring(c,u)},Y(n,r){return this.U(n,r,0)},u(n,r,c){return n.substring(r,s.aQ(r,c,n.length))},bu(n,r){return this.u(n,r,null)},ey(n){var r,c,u;if(typeof n.trimRight<"u"){if(r=n.trimRight(),c=r.length,c===0)return r;u=c-1,this.B(r,u)===133&&(c=V.oG(r,u))}else c=V.oG(n,n.length),r=n;return c===r.length?r:c===0?"":r.substring(0,c)},bs(n,r){var c,u;if(0>=r)return"";if(r===1||n.length===0)return n;if(r!==r>>>0)throw s.d(y.bh);for(c=n,u="";(r&1)===1&&(u=c+u),r=r>>>1,r!==0;)c+=c;return u},aq(n,r,c){var u=r-n.length;return u<=0?n:this.bs(c,u)+n},bg(n,r,c){var u;if(c<0||c>n.length)throw s.d(s.Y(c,0,n.length,null,null));return u=n.indexOf(r,c),u},bR(n,r){return this.bg(n,r,0)},k(n){return n},gE(n){var r,c,u;for(r=n.length,c=0,u=0;u<r;++u)c=c+n.charCodeAt(u)&536870911,c=c+((c&524287)<<10)&536870911,c^=c>>6;return c=c+((c&67108863)<<3)&536870911,c^=c>>11,c+((c&16383)<<15)&536870911},gj(n){return n.length},$ie:1},s.bM.prototype={gH(n){var r=s.A(this);return new s.dm(V.aA(this.gaa()),r.h("@<1>").I(r.z[1]).h("dm<1,2>"))},gj(n){return V.a3(this.gaa())},gA(n){return V.oo(this.gaa())},ga8(n){return V.tx(this.gaa())},a6(n,r){var c=s.A(this);return s.he(V.op(this.gaa(),r),c.c,c.z[1])},V(n,r){return s.A(this).z[1].a(V.eD(this.gaa(),r))},G(n,r){return V.on(this.gaa(),r)},k(n){return V.as(this.gaa())}},s.dm.prototype={q(){return this.a.q()},gt(){return this.$ti.z[1].a(this.a.gt())},$iP:1},s.c5.prototype={gaa(){return this.a}},s.dZ.prototype={$iq:1},s.dU.prototype={i(n,r){return this.$ti.z[1].a(V.nl(this.a,r))},m(n,r,c){V.tv(this.a,r,this.$ti.c.a(c))},sj(n,r){V.tC(this.a,r)},C(n,r){V.nm(this.a,this.$ti.c.a(r))},b0(n,r,c){var u=this.$ti;return s.he(V.tA(this.a,r,c),u.c,u.z[1])},$iq:1,$io:1},s.b5.prototype={aj(n,r){return new s.b5(this.a,this.$ti.h("@<1>").I(r).h("b5<1,2>"))},gaa(){return this.a}},s.c6.prototype={ak(n,r,c){var u=this.$ti;return new s.c6(this.a,u.h("@<1>").I(u.z[1]).I(r).I(c).h("c6<1,2,3,4>"))},v(n){return this.a.v(n)},i(n,r){return this.$ti.h("4?").a(this.a.i(0,r))},m(n,r,c){var u=this.$ti;this.a.m(0,u.c.a(r),u.z[1].a(c))},M(n,r){this.a.M(0,new s.hf(this,r))},gN(){var n=this.$ti;return s.he(this.a.gN(),n.c,n.z[2])},gj(n){var r=this.a;return r.gj(r)},gA(n){var r=this.a;return r.gA(r)}},s.hf.prototype={$2(n,r){var c=this.a.$ti;this.b.$2(c.z[2].a(n),c.z[3].a(r))},$S(){return this.a.$ti.h("~(1,2)")}},s.f1.prototype={k(n){return"LateInitializationError: "+this.a}},s.fm.prototype={k(n){return"ReachabilityError: "+this.a}},s.c8.prototype={gj(n){return this.a.length},i(n,r){return y.a.B(this.a,r)}},s.nd.prototype={$0(){var n=new s.C(I.B,N.U);return n.ah(null),n},$S:47},s.dI.prototype={k(n){return"Null is not a valid value for '"+this.a+"' of type '"+s.pL(this.$ti.c).k(0)+"'"},$iaG:1},s.q.prototype={},s.ah.prototype={gH(n){var r=this;return new s.aa(r,r.gj(r),s.A(r).h("aa<ah.E>"))},gA(n){return this.gj(this)===0},G(n,r){var c,u=this,f=u.gj(u);for(c=0;c<f;++c){if(V.af(u.V(0,c),r))return!0;if(f!==u.gj(u))throw s.d(s.ag(u))}return!1},al(n,r,c){return new s.ab(this,r,s.A(this).h("@<ah.E>").I(c).h("ab<1,2>"))},a6(n,r){return s.dQ(this,r,null,s.A(this).h("ah.E"))}},s.dP.prototype={gdu(){var n=V.a3(this.a),r=this.c;return r==null||r>n?n:r},gdU(){var n=V.a3(this.a),r=this.b;return r>n?n:r},gj(n){var r,c=V.a3(this.a),u=this.b;return u>=c?0:(r=this.c,r==null||r>=c?c-u:r-u)},V(n,r){var c=this,u=c.gdU()+r;if(r<0||u>=c.gdu())throw s.d(s.eW(r,c.gj(c),c,null,"index"));return V.eD(c.a,u)},a6(n,r){var c,u,f=this;return s.aW(r,"count"),c=f.b+r,u=f.c,u!=null&&c>=u?new s.b7(f.$ti.h("b7<1>")):s.dQ(f.a,c,u,f.$ti.c)},b_(n,r){var c,u,f,m=this,v=m.b,S=m.a,B=V.V(S),L=B.gj(S),F=m.c;if(F!=null&&F<L&&(L=F),c=L-v,c<=0)return S=V.b8(0,m.$ti.c),S;for(u=s.U(c,B.V(S,v),!1,m.$ti.c),f=1;f<c;++f)if(u[f]=B.V(S,v+f),B.gj(S)<L)throw s.d(s.ag(m));return u}},s.aa.prototype={gt(){return this.d},q(){var n,r=this,c=r.a,u=V.V(c),f=u.gj(c);if(r.b!==f)throw s.d(s.ag(c));return n=r.c,n>=f?(r.d=null,!1):(r.d=u.V(c,n),++r.c,!0)},$iP:1},s.bd.prototype={gH(n){var r=s.A(this);return new s.dD(V.aA(this.a),this.b,r.h("@<1>").I(r.z[1]).h("dD<1,2>"))},gj(n){return V.a3(this.a)},gA(n){return V.oo(this.a)},V(n,r){return this.b.$1(V.eD(this.a,r))}},s.c9.prototype={$iq:1},s.dD.prototype={q(){var n=this,r=n.b;return r.q()?(n.a=n.c.$1(r.gt()),!0):(n.a=null,!1)},gt(){return this.a}},s.ab.prototype={gj(n){return V.a3(this.a)},V(n,r){return this.b.$1(V.eD(this.a,r))}},s.lK.prototype={gH(n){return new s.cF(V.aA(this.a),this.b,this.$ti.h("cF<1>"))},al(n,r,c){return new s.bd(this,r,this.$ti.h("@<1>").I(c).h("bd<1,2>"))}},s.cF.prototype={q(){var n,r;for(n=this.a,r=this.b;n.q();)if(r.$1(n.gt()))return!0;return!1},gt(){return this.a.gt()}},s.bh.prototype={a6(n,r){return s.h8(r,"count"),s.aW(r,"count"),new s.bh(this.a,this.b+r,s.A(this).h("bh<1>"))},gH(n){return new s.dN(V.aA(this.a),this.b,s.A(this).h("dN<1>"))}},s.cR.prototype={gj(n){var r=V.a3(this.a)-this.b;return r>=0?r:0},a6(n,r){return s.h8(r,"count"),s.aW(r,"count"),new s.cR(this.a,this.b+r,this.$ti)},$iq:1},s.dN.prototype={q(){var n,r;for(n=this.a,r=0;r<this.b;++r)n.q();return this.b=0,n.q()},gt(){return this.a.gt()}},s.b7.prototype={gH(n){return y.b9},gA(n){return!0},gj(n){return 0},V(n,r){throw s.d(s.Y(r,0,0,"index",null))},G(n,r){return!1},al(n,r,c){return new s.b7(c.h("b7<0>"))},a6(n,r){return s.aW(r,"count"),this}},s.dq.prototype={q(){return!1},gt(){throw s.d(s.nq())},$iP:1},s.ds.prototype={sj(n,r){throw s.d(s.ad("Cannot change the length of a fixed-length list"))},C(n,r){throw s.d(s.ad("Cannot add to a fixed-length list"))}},s.fy.prototype={m(n,r,c){throw s.d(s.ad("Cannot modify an unmodifiable list"))},sj(n,r){throw s.d(s.ad("Cannot change the length of an unmodifiable list"))},C(n,r){throw s.d(s.ad("Cannot add to an unmodifiable list"))}},s.d4.prototype={},s.d3.prototype={gE(n){var r=this._hashCode;return r!=null||(r=664597*V.bY(this.a)&536870911,this._hashCode=r),r},k(n){return'Symbol("'+s.b(this.a)+'")'},O(n,r){return r==null?!1:r instanceof s.d3&&this.a==r.a},$icD:1},s.ep.prototype={},s.dn.prototype={},s.cQ.prototype={ak(n,r,c){var u=s.A(this);return s.oK(this,u.c,u.z[1],r,c)},gA(n){return this.gj(this)===0},k(n){return s.nv(this)},m(n,r,c){s.u2(),s.bg(Ae.g)},$ih:1},s.aJ.prototype={gj(n){return this.a},v(n){return typeof n!="string"||n==="__proto__"?!1:this.b.hasOwnProperty(n)},i(n,r){return this.v(r)?this.b[r]:null},M(n,r){var c,u,f,m,v=this.c;for(c=v.length,u=this.b,f=0;f<c;++f)m=v[f],r.$2(m,u[m])},gN(){return new s.dW(this,this.$ti.h("dW<1>"))}},s.dW.prototype={gH(n){var r=this.a.c;return new V.b4(r,r.length,s.a_(r).h("b4<1>"))},gj(n){return this.a.c.length}},s.X.prototype={aM(){var n,r,c=this,u=c.$map;return u==null&&(n=c.$ti,r=s.uc(n.h("1?")),u=s.uI(s.wt(),r,n.c,n.z[1]),s.pN(c.a,u),c.$map=u),u},v(n){return this.aM().v(n)},i(n,r){return this.aM().i(0,r)},M(n,r){this.aM().M(0,r)},gN(){var n=this.aM();return new s.aO(n,s.A(n).h("aO<1>"))},gj(n){return this.aM().a}},s.hY.prototype={$1(n){return this.a.b(n)},$S:14},s.iJ.prototype={gcT(){var n=this.a;return n},gcX(){var n,r,c,u,f=this;if(f.c===1||(n=f.d,r=n.length-f.e.length-f.f,r===0))return y.at;for(c=[],u=0;u<r;++u)c.push(n[u]);return c.fixed$length=Array,c.immutable$list=Array,c},gcU(){var n,r,c,u,f,m,v=this;if(v.c!==0||(n=v.e,r=n.length,c=v.d,u=c.length-r-v.f,r===0))return y.az;for(f=new s.aC(N.eo),m=0;m<r;++m)f.m(0,new s.d3(n[m]),c[u+m]);return new s.dn(f,N.gF)}},s.k9.prototype={$2(n,r){var c=this.a;c.b=c.b+"$"+s.b(n),this.b.push(n),this.c.push(r),++c.a},$S:69},s.lt.prototype={a9(n){var r,c,u=this,f=new RegExp(u.a).exec(n);return f==null?null:(r=Object.create(null),c=u.b,c!==-1&&(r.arguments=f[c+1]),c=u.c,c!==-1&&(r.argumentsExpr=f[c+1]),c=u.d,c!==-1&&(r.expr=f[c+1]),c=u.e,c!==-1&&(r.method=f[c+1]),c=u.f,c!==-1&&(r.receiver=f[c+1]),r)}},s.dJ.prototype={k(n){var r=this.b;return r==null?"NoSuchMethodError: "+s.b(this.a):"NoSuchMethodError: method not found: '"+r+"' on null"}},s.f0.prototype={k(n){var r,c=this,u="NoSuchMethodError: method not found: '",f=c.b;return f==null?"NoSuchMethodError: "+s.b(c.a):(r=c.c,r==null?u+f+"' ("+s.b(c.a)+")":u+f+"' on '"+r+"' ("+s.b(c.a)+")")}},s.fx.prototype={k(n){var r=this.a;return r.length===0?"Error":"Error: "+r}},s.fh.prototype={k(n){return"Throw of null ('"+(this.a===null?"null":"undefined")+"' from JavaScript)"},$ia8:1},s.dr.prototype={},s.ed.prototype={k(n){var r,c=this.b;return c??(c=this.a,r=c!==null&&typeof c=="object"?c.stack:null,this.b=r??"")},$ian:1},s.c7.prototype={k(n){var r=this.constructor,c=r==null?null:r.name;return"Closure '"+s.q2(c??"unknown")+"'"},$iaB:1,geF(){return this},$C:"$1",$R:1,$D:null},s.eL.prototype={$C:"$0",$R:0},s.eM.prototype={$C:"$2",$R:2},s.ft.prototype={},s.fq.prototype={k(n){var r=this.$static_name;return r==null?"Closure of unknown static method":"Closure '"+s.q2(r)+"'"}},s.cP.prototype={O(n,r){return r==null?!1:this===r?!0:r instanceof s.cP?this.$_target===r.$_target&&this.a===r.a:!1},gE(n){return(s.fZ(this.a)^s.d0(this.$_target))>>>0},k(n){return"Closure '"+s.b(this.$_name)+"' of "+("Instance of '"+s.b(s.ka(this.a))+"'")}},s.fp.prototype={k(n){return"RuntimeError: "+this.a}},s.mm.prototype={},s.aC.prototype={gj(n){return this.a},gA(n){return this.a===0},gN(){return new s.aO(this,s.A(this).h("aO<1>"))},gX(){var n=s.A(this);return s.jQ(new s.aO(this,n.h("aO<1>")),new s.iP(this),n.c,n.z[1])},v(n){var r,c;return typeof n=="string"?(r=this.b,r==null?!1:r[n]!=null):typeof n=="number"&&(n&1073741823)===n?(c=this.c,c==null?!1:c[n]!=null):this.cM(n)},cM(n){var r=this.d;return r==null?!1:this.bi(r[this.bh(n)],n)>=0},i(n,r){var c,u,f,m,v=null;return typeof r=="string"?(c=this.b,c==null?v:(u=c[r],f=u==null?v:u.b,f)):typeof r=="number"&&(r&1073741823)===r?(m=this.c,m==null?v:(u=m[r],f=u==null?v:u.b,f)):this.cN(r)},cN(n){var r,c,u=this.d;return u==null||(r=u[this.bh(n)],c=this.bi(r,n),c<0)?null:r[c].b},m(n,r,c){var u,f,m=this;typeof r=="string"?(u=m.b,m.ca(u??(m.b=m.bH()),r,c)):typeof r=="number"&&(r&1073741823)===r?(f=m.c,m.ca(f??(m.c=m.bH()),r,c)):m.cO(r,c)},cO(n,r){var c,u,f,m=this,v=m.d;v==null&&(v=m.d=m.bH()),c=m.bh(n),u=v[c],u==null?v[c]=[m.bI(n,r)]:(f=m.bi(u,n),f>=0?u[f].b=r:u.push(m.bI(n,r)))},c_(n,r){var c;return this.v(n)?this.i(0,n):(c=r.$0(),this.m(0,n,c),c)},M(n,r){for(var c=this,u=c.e,f=c.r;u!=null;){if(r.$2(u.a,u.b),f!==c.r)throw s.d(s.ag(c));u=u.c}},ca(n,r,c){var u=n[r];u==null?n[r]=this.bI(r,c):u.b=c},bI(n,r){var c=this,u=new s.jN(n,r);return c.e==null?c.e=c.f=u:c.f=c.f.c=u,++c.a,c.r=c.r+1&1073741823,u},bh(n){return V.bY(n)&1073741823},bi(n,r){var c,u;if(n==null)return-1;for(c=n.length,u=0;u<c;++u)if(V.af(n[u].a,r))return u;return-1},k(n){return s.nv(this)},bH(){var n=Object.create(null);return n["<non-identifier-key>"]=n,delete n["<non-identifier-key>"],n}},s.iP.prototype={$1(n){return this.a.i(0,n)},$S(){return s.A(this.a).h("2(1)")}},s.jN.prototype={},s.aO.prototype={gj(n){return this.a.a},gA(n){return this.a.a===0},gH(n){var r=this.a,c=new s.cx(r,r.r,this.$ti.h("cx<1>"));return c.c=r.e,c},G(n,r){return this.a.v(r)}},s.cx.prototype={gt(){return this.d},q(){var n,r=this,c=r.a;if(r.b!==c.r)throw s.d(s.ag(c));return n=r.c,n==null?(r.d=null,!1):(r.d=n.a,r.c=n.c,!0)},$iP:1},s.mX.prototype={$1(n){return this.a(n)},$S:30},s.mY.prototype={$2(n,r){return this.a(n,r)},$S:33},s.mZ.prototype={$1(n){return this.a(n)},$S:50},s.iK.prototype={k(n){return"RegExp/"+this.a+"/"+this.b.flags},aT(n){var r;return typeof n!="string"&&s.Z(s.cL(n)),r=this.b.exec(n),r==null?null:new s.mk(r)}},s.mk.prototype={},s.dF.prototype={dE(n,r,c,u){var f=s.Y(r,0,c,u,null);throw s.d(f)},ci(n,r,c,u){(r>>>0!==r||r>c)&&this.dE(n,r,c,u)}},s.d_.prototype={gj(n){return n.length},dS(n,r,c,u,f){var m,v,S=n.length;if(this.ci(n,r,S,"start"),this.ci(n,c,S,"end"),r>c)throw s.d(s.Y(r,0,c,null,null));if(m=c-r,f<0)throw s.d(s.K(f,null));if(v=u.length,v-f<m)throw s.d(s.d2("Not enough elements"));(f!==0||v!==m)&&(u=u.subarray(f,f+m)),n.set(u,r)},$iav:1},s.dE.prototype={i(n,r){return s.bo(r,n,n.length),n[r]},m(n,r,c){s.bo(r,n,n.length),n[r]=c},$iq:1,$ij:1,$io:1},s.aw.prototype={m(n,r,c){s.bo(r,n,n.length),n[r]=c},a5(n,r,c,u,f){if(N.eB.b(u)){this.dS(n,r,c,u,f);return}this.dc(n,r,c,u,f)},d5(n,r,c,u){return this.a5(n,r,c,u,0)},$iq:1,$ij:1,$io:1},s.f8.prototype={a1(n,r,c){return new Float32Array(n.subarray(r,s.bR(r,c,n.length)))}},s.f9.prototype={a1(n,r,c){return new Float64Array(n.subarray(r,s.bR(r,c,n.length)))}},s.fa.prototype={i(n,r){return s.bo(r,n,n.length),n[r]},a1(n,r,c){return new Int16Array(n.subarray(r,s.bR(r,c,n.length)))}},s.fb.prototype={i(n,r){return s.bo(r,n,n.length),n[r]},a1(n,r,c){return new Int32Array(n.subarray(r,s.bR(r,c,n.length)))}},s.fc.prototype={i(n,r){return s.bo(r,n,n.length),n[r]},a1(n,r,c){return new Int8Array(n.subarray(r,s.bR(r,c,n.length)))}},s.fd.prototype={i(n,r){return s.bo(r,n,n.length),n[r]},a1(n,r,c){return new Uint16Array(n.subarray(r,s.bR(r,c,n.length)))}},s.fe.prototype={i(n,r){return s.bo(r,n,n.length),n[r]},a1(n,r,c){return new Uint32Array(n.subarray(r,s.bR(r,c,n.length)))}},s.dG.prototype={gj(n){return n.length},i(n,r){return s.bo(r,n,n.length),n[r]},a1(n,r,c){return new Uint8ClampedArray(n.subarray(r,s.bR(r,c,n.length)))}},s.cy.prototype={gj(n){return n.length},i(n,r){return s.bo(r,n,n.length),n[r]},a1(n,r,c){return new Uint8Array(n.subarray(r,s.bR(r,c,n.length)))},$icy:1,$ia6:1},s.e7.prototype={},s.e8.prototype={},s.e9.prototype={},s.ea.prototype={},s.aF.prototype={h(n){return s.mt(re.typeUniverse,this,n)},I(n){return s.vG(re.typeUniverse,this,n)}},s.fK.prototype={},s.eh.prototype={k(n){return s.ar(this.a,null)},$ibk:1},s.fJ.prototype={k(n){return this.a}},s.ei.prototype={$iaG:1},s.lW.prototype={$1(n){var r=this.a,c=r.a;r.a=null,c.$0()},$S:15},s.lV.prototype={$1(n){var r,c;this.a.a=n,r=this.b,c=this.c,r.firstChild?r.removeChild(c):r.appendChild(c)},$S:122},s.lX.prototype={$0(){this.a.$0()},$S:2},s.lY.prototype={$0(){this.a.$0()},$S:2},s.mr.prototype={dg(n,r){if(t.setTimeout!=null)t.setTimeout(s.mO(new s.ms(this,r),0),n);else throw s.d(s.ad("`setTimeout()` not found."))}},s.ms.prototype={$0(){this.b.$0()},$S:1},s.fD.prototype={a3(n){var r,c=this;c.b?(r=c.a,c.$ti.h("a5<1>").b(n)?r.cf(n):r.bA(n)):c.a.ah(n)},bK(n,r){var c;r==null&&(r=s.eI(n)),c=this.a,this.b?c.aA(n,r):c.b5(n,r)}},s.mx.prototype={$1(n){return this.a.$2(0,n)},$S:34},s.my.prototype={$2(n,r){this.a.$2(1,new s.dr(n,r))},$S:42},s.mN.prototype={$2(n,r){this.a(n,r)},$S:48},s.d7.prototype={k(n){return"IterationMarker("+this.b+", "+s.b(this.a)+")"}},s.aH.prototype={gt(){var n=this.c;return n==null?this.b:n.gt()},q(){for(var n,r,c,u,f,m=this;;){if(n=m.c,n!=null){if(n.q())return!0;m.c=null}if(r=(function(v,S,B){for(var L,F=S;;)try{return v(F,L)}catch(z){L=z,F=B}})(m.a,0,1),r instanceof s.d7)if(c=r.b,c===2){if(u=m.d,u==null||u.length===0)return m.b=null,!1;m.a=u.pop();continue}else{if(n=r.a,c===3)throw n;if(f=V.aA(n),f instanceof s.aH){n=m.d,n==null&&(n=m.d=[]),n.push(m.a),m.a=f.a;continue}else{m.c=f;continue}}else return m.b=r,!0}return!1},$iP:1},s.eg.prototype={gH(n){return new s.aH(this.a(),this.$ti.h("aH<1>"))}},s.eH.prototype={k(n){return s.b(this.a)},$iH:1,gb2(){return this.b}},s.fG.prototype={bK(n,r){var c;if(s.bU(n,"error",N.K),c=this.a,(c.a&30)!==0)throw s.d(s.d2("Future already completed"));r==null&&(r=s.eI(n)),c.b5(n,r)},R(n){return this.bK(n,null)}},s.ay.prototype={a3(n){var r=this.a;if((r.a&30)!==0)throw s.d(s.d2("Future already completed"));r.ah(n)},bd(){return this.a3(null)}},s.bN.prototype={ec(n){return(this.c&15)!==6?!0:this.b.b.c2(this.d,n.a)},e7(n){var r=this.e,c=null,u=this.b.b;N.C.b(r)?c=u.el(r,n.a,n.b):c=u.c2(r,n.a);try{return u=c,u}catch(f){throw N.eK.b(s.M(f))?(this.c&1)!==0?s.d(s.K("The error handler of Future.then must return a value of the returned future's type","onError")):s.d(s.K("The error handler of Future.catchError must return a value of the future's type","onError")):f}}},s.C.prototype={au(n,r,c,u){var f,m,v=I.B;if(v===y.i){if(c!=null&&!N.C.b(c)&&!N.v.b(c))throw s.d(s.h7(c,"onError",Ae.c))}else c!=null&&(c=s.wA(c,v));return f=new s.C(v,u.h("C<0>")),m=c==null?1:3,this.b4(new s.bN(f,m,r,c,this.$ti.h("@<1>").I(u).h("bN<1,2>"))),f},d1(n,r,c){return this.au(n,r,null,c)},cz(n,r,c){var u=new s.C(I.B,c.h("C<0>"));return this.b4(new s.bN(u,3,n,r,this.$ti.h("@<1>").I(c).h("bN<1,2>"))),u},bp(n){var r=this.$ti,c=new s.C(I.B,r);return this.b4(new s.bN(c,8,n,null,r.h("@<1>").I(r.c).h("bN<1,2>"))),c},dQ(n){this.a=this.a&1|16,this.c=n},by(n){this.a=n.a&30|this.a&1,this.c=n.c},b4(n){var r=this,c=r.a;if(c<=3)n.a=r.c,r.c=n;else{if((c&4)!==0){if(c=r.c,(c.a&24)===0){c.b4(n);return}r.by(c)}s.cI(null,null,r.b,new s.m3(r,n))}},cs(n){var r,c,u,f,m,v=this,S={};if(S.a=n,n!=null)if(r=v.a,r<=3){if(c=v.c,v.c=n,c!=null){for(u=n.a,f=n;u!=null;f=u,u=m)m=u.a;f.a=c}}else{if((r&4)!==0){if(r=v.c,(r.a&24)===0){r.cs(n);return}v.by(r)}S.a=v.bc(n),s.cI(null,null,v.b,new s.ma(S,v))}},bb(){var n=this.c;return this.c=null,this.bc(n)},bc(n){var r,c,u;for(r=n,c=null;r!=null;c=r,r=u)u=r.a,r.a=c;return c},ce(n){var r,c,u=this;u.a^=2;try{n.au(0,new s.m6(u),new s.m7(u),N.P)}catch(f){r=s.M(f),c=s.aS(f),s.q_(new s.m8(u,r,c))}},bA(n){var r=this,c=r.bb();r.a=8,r.c=n,s.d6(r,c)},aA(n,r){var c=this.bb();this.dQ(s.h9(n,r)),s.d6(this,c)},ah(n){if(this.$ti.h("a5<1>").b(n)){this.cf(n);return}this.dk(n)},dk(n){this.a^=2,s.cI(null,null,this.b,new s.m5(this,n))},cf(n){var r=this;if(r.$ti.b(n)){(n.a&16)!==0?(r.a^=2,s.cI(null,null,r.b,new s.m9(r,n))):s.nz(n,r);return}r.ce(n)},b5(n,r){this.a^=2,s.cI(null,null,this.b,new s.m4(this,n,r))},$ia5:1},s.m3.prototype={$0(){s.d6(this.a,this.b)},$S:1},s.ma.prototype={$0(){s.d6(this.b,this.a.a)},$S:1},s.m6.prototype={$1(n){var r,c,u=this.a;u.a^=2;try{u.bA(u.$ti.c.a(n))}catch(f){r=s.M(f),c=s.aS(f),u.aA(r,c)}},$S:15},s.m7.prototype={$2(n,r){this.a.aA(n,r)},$S:52},s.m8.prototype={$0(){this.a.aA(this.b,this.c)},$S:1},s.m5.prototype={$0(){this.a.bA(this.b)},$S:1},s.m9.prototype={$0(){s.nz(this.b,this.a)},$S:1},s.m4.prototype={$0(){this.a.aA(this.b,this.c)},$S:1},s.md.prototype={$0(){var n,r,c,u,f,m=this,v=null;try{c=m.a.a,v=c.b.b.cZ(c.d)}catch(S){n=s.M(S),r=s.aS(S),m.c?(c=m.b.a.c.a,u=n,u=c==null?u==null:c===u,c=u):c=!1,u=m.a,c?u.c=m.b.a.c:u.c=s.h9(n,r),u.b=!0;return}if(v instanceof s.C&&(v.a&24)!==0){(v.a&16)!==0&&(c=m.a,c.c=v.c,c.b=!0);return}N.d.b(v)&&(f=m.b.a,c=m.a,c.c=V.tH(v,new s.me(f),N.z),c.b=!1)},$S:1},s.me.prototype={$1(n){return this.a},$S:53},s.mc.prototype={$0(){var n,r,c,u;try{c=this.a,u=c.a,c.c=u.b.b.c2(u.d,this.b)}catch(f){n=s.M(f),r=s.aS(f),c=this.a,c.c=s.h9(n,r),c.b=!0}},$S:1},s.mb.prototype={$0(){var n,r,c,u,f,m,v,S=this;try{n=S.a.a.c,u=S.b,u.a.ec(n)&&u.a.e!=null&&(u.c=u.a.e7(n),u.b=!1)}catch(B){r=s.M(B),c=s.aS(B),u=S.a.a.c,f=u.a,m=r,v=S.b,(f==null?m==null:f===m)?v.c=u:v.c=s.h9(r,c),v.b=!0}},$S:1},s.fE.prototype={},s.bi.prototype={gj(n){var r={},c=new s.C(I.B,N.fJ);return r.a=0,this.bU(new s.lp(r,this),!0,new s.lq(r,c),c.gdq()),c}},s.ln.prototype={$1(n){var r=this.a;r.aJ(n),r.aK()},$S(){return this.b.h("l(0)")}},s.lo.prototype={$2(n,r){var c=this.a;c.b3(n,r),c.aK()},$S:55},s.lp.prototype={$1(n){++this.a.a},$S(){return this.b.$ti.h("~(1)")}},s.lq.prototype={$0(){var n=this.b,r=this.a.a,c=n.bb();n.a=8,n.c=r,s.d6(n,c)},$S:1},s.fr.prototype={},s.da.prototype={gdL(){return(this.b&8)===0?this.a:this.a.gc5()},b6(){var n,r=this;return(r.b&8)===0?(n=r.a,n??(r.a=new s.eb)):(n=r.a.gc5(),n)},gaD(){var n=this.a;return(this.b&8)!==0?n.gc5():n},bv(){return(this.b&4)!==0?new s.bJ("Cannot add event after closing"):new s.bJ("Cannot add event while adding a stream")},ck(){var n=this.c;return n==null&&(n=this.c=(this.b&2)!==0?I.h0():new s.C(I.B,N.D)),n},C(n,r){if(this.b>=4)throw s.d(this.bv());this.aJ(r)},a7(){var n=this,r=n.b;if((r&4)!==0)return n.ck();if(r>=4)throw s.d(n.bv());return n.aK(),n.ck()},aK(){var n=this.b|=4;(n&1)!==0?this.aO():(n&3)===0&&this.b6().C(0,y.M)},aJ(n){var r=this.b;(r&1)!==0?this.aC(n):(r&3)===0&&this.b6().C(0,new s.cG(n))},b3(n,r){var c=this.b;(c&1)!==0?this.aP(n,r):(c&3)===0&&this.b6().C(0,new s.dY(n,r))},dV(n,r,c,u){var f,m,v,S,B,L,F=this;if((F.b&3)!==0)throw s.d(s.d2("Stream has already been listened to."));return f=I.B,m=u?1:0,v=s.vn(f,r),S=new s.dX(F,n,v,c,f,m),B=F.gdL(),f=F.b|=1,(f&8)!==0?(L=F.a,L.sc5(S),L.ar()):F.a=S,S.dR(B),S.bF(new s.mq(F)),S},dN(n){var r,c,u,f,m,v,S=this,B=null;if((S.b&8)!==0&&(B=S.a.K()),S.a=null,S.b=S.b&4294967286|2,r=S.r,r!=null)if(B==null)try{c=r.$0(),N.bq.b(c)&&(B=c)}catch(L){u=s.M(L),f=s.aS(L),m=new s.C(I.B,N.D),m.b5(u,f),B=m}else B=B.bp(r);return v=new s.mp(S),B!=null?B=B.bp(v):v.$0(),B}},s.mq.prototype={$0(){s.nM(this.a.d)},$S:1},s.mp.prototype={$0(){var n=this.a.c;n!=null&&(n.a&30)===0&&n.ah(null)},$S:1},s.fS.prototype={aC(n){this.gaD().aJ(n)},aP(n,r){this.gaD().b3(n,r)},aO(){this.gaD().dn()}},s.fF.prototype={aC(n){this.gaD().az(new s.cG(n))},aP(n,r){this.gaD().az(new s.dY(n,r))},aO(){this.gaD().az(y.M)}},s.aZ.prototype={},s.db.prototype={},s.aj.prototype={gE(n){return(s.d0(this.a)^892482866)>>>0},O(n,r){return r==null?!1:this===r?!0:r instanceof s.aj&&r.a===this.a}},s.dX.prototype={cp(){return this.w.dN(this)},b9(){var n=this.w;(n.b&8)!==0&&n.a.aZ(),s.nM(n.e)},ba(){var n=this.w;(n.b&8)!==0&&n.a.ar(),s.nM(n.f)}},s.dT.prototype={dR(n){var r=this;n!=null&&(r.r=n,n.c!=null&&(r.e=(r.e|64)>>>0,n.b1(r)))},cW(n){var r,c,u=this,f=u.e;(f&8)===0&&(r=(f+128|4)>>>0,u.e=r,f<128&&(c=u.r,c!=null&&c.a===1&&(c.a=3)),(f&4)===0&&(r&32)===0&&u.bF(u.gcq()))},aZ(){return this.cW(null)},ar(){var n=this,r=n.e;(r&8)===0&&r>=128&&(r=n.e=r-128,r<128&&((r&64)!==0&&n.r.c!=null?n.r.b1(n):(r=(r&4294967291)>>>0,n.e=r,(r&32)===0&&n.bF(n.gcr()))))},K(){var n=this,r=(n.e&4294967279)>>>0;return n.e=r,(r&8)===0&&n.bw(),r=n.f,r??I.h0()},bw(){var n,r=this,c=r.e=(r.e|8)>>>0;(c&64)!==0&&(n=r.r,n.a===1&&(n.a=3)),(c&32)===0&&(r.r=null),r.f=r.cp()},aJ(n){var r=this.e;(r&8)===0&&(r<32?this.aC(n):this.az(new s.cG(n)))},b3(n,r){var c=this.e;(c&8)===0&&(c<32?this.aP(n,r):this.az(new s.dY(n,r)))},dn(){var n=this,r=n.e;(r&8)===0&&(r=(r|2)>>>0,n.e=r,r<32?n.aO():n.az(y.M))},b9(){},ba(){},cp(){return null},az(n){var r,c=this,u=c.r;u==null&&(u=c.r=new s.eb),u.C(0,n),r=c.e,(r&64)===0&&(r=(r|64)>>>0,c.e=r,r<128&&u.b1(c))},aC(n){var r=this,c=r.e;r.e=(c|32)>>>0,r.d.d0(r.a,n),r.e=(r.e&4294967263)>>>0,r.bx((c&4)!==0)},aP(n,r){var c,u=this,f=u.e,m=new s.m0(u,n,r);(f&1)!==0?(u.e=(f|16)>>>0,u.bw(),c=u.f,c!=null&&c!==I.h0()?c.bp(m):m.$0()):(m.$0(),u.bx((f&4)!==0))},aO(){var n,r=this,c=new s.m_(r);r.bw(),r.e=(r.e|16)>>>0,n=r.f,n!=null&&n!==I.h0()?n.bp(c):c.$0()},bF(n){var r=this,c=r.e;r.e=(c|32)>>>0,n.$0(),r.e=(r.e&4294967263)>>>0,r.bx((c&4)!==0)},bx(n){var r,c,u=this,f=u.e;for((f&64)!==0&&u.r.c==null&&(f=u.e=(f&4294967231)>>>0,(f&4)!==0&&f<128?(r=u.r,r=r==null?null:r.c==null,r=r!==!1):r=!1,r&&(f=(f&4294967291)>>>0,u.e=f));;n=c){if((f&8)!==0){u.r=null;return}if(c=(f&4)!==0,n===c)break;u.e=(f^32)>>>0,c?u.b9():u.ba(),f=(u.e&4294967263)>>>0,u.e=f}(f&64)!==0&&f<128&&u.r.b1(u)}},s.m0.prototype={$0(){var n,r,c=this.a,u=c.e;(u&8)!==0&&(u&16)===0||(c.e=(u|32)>>>0,n=c.b,u=this.b,r=c.d,N.k.b(n)?r.eo(n,u,this.c):r.d0(n,u),c.e=(c.e&4294967263)>>>0)},$S:1},s.m_.prototype={$0(){var n=this.a,r=n.e;(r&16)!==0&&(n.e=(r|42)>>>0,n.d.d_(n.c),n.e=(n.e&4294967263)>>>0)},$S:1},s.ee.prototype={bU(n,r,c,u){return this.a.dV(n,u,c,r===!0)},bT(n,r,c){return this.bU(n,null,r,c)},ea(n,r){return this.bU(n,null,r,null)}},s.fI.prototype={gaG(){return this.a},saG(n){return this.a=n}},s.cG.prototype={bY(n){n.aC(this.b)}},s.dY.prototype={bY(n){n.aP(this.b,this.c)}},s.m1.prototype={bY(n){n.aO()},gaG(){return null},saG(n){throw s.d(s.d2("No events after a done."))}},s.eb.prototype={b1(n){var r=this,c=r.a;if(c!==1){if(c>=1){r.a=1;return}s.q_(new s.ml(r,n)),r.a=1}},C(n,r){var c=this,u=c.c;u==null?c.b=c.c=r:(u.saG(r),c.c=r)}},s.ml.prototype={$0(){var n,r,c=this.a,u=c.a;c.a=0,u!==3&&(n=c.b,r=n.gaG(),c.b=r,r==null&&(c.c=null),n.bY(this.b))},$S:1},s.fQ.prototype={},s.mw.prototype={},s.mK.prototype={$0(){s.u8(this.a,this.b),s.bg(Ae.g)},$S:1},s.mn.prototype={d_(n){var r,c;try{if(y.i===I.B){n.$0();return}s.pC(null,null,this,n)}catch(u){r=s.M(u),c=s.aS(u),s.dh(r,c)}},eq(n,r){var c,u;try{if(y.i===I.B){n.$1(r);return}s.pE(null,null,this,n,r)}catch(f){c=s.M(f),u=s.aS(f),s.dh(c,u)}},d0(n,r){return this.eq(n,r,N.z)},en(n,r,c){var u,f;try{if(y.i===I.B){n.$2(r,c);return}s.pD(null,null,this,n,r,c)}catch(m){u=s.M(m),f=s.aS(m),s.dh(u,f)}},eo(n,r,c){return this.en(n,r,c,N.z,N.z)},cB(n){return new s.mo(this,n)},ek(n){return I.B===y.i?n.$0():s.pC(null,null,this,n)},cZ(n){return this.ek(n,N.z)},ep(n,r){return I.B===y.i?n.$1(r):s.pE(null,null,this,n,r)},c2(n,r){return this.ep(n,r,N.z,N.z)},em(n,r,c){return I.B===y.i?n.$2(r,c):s.pD(null,null,this,n,r,c)},el(n,r,c){return this.em(n,r,c,N.z,N.z,N.z)},eh(n){return n},c1(n){return this.eh(n,N.z,N.z,N.z)}},s.mo.prototype={$0(){return this.a.d_(this.b)},$S:1},s.e1.prototype={gj(n){return this.a},gA(n){return this.a===0},gN(){return new s.e2(this,this.$ti.h("e2<1>"))},v(n){var r,c;return typeof n=="string"&&n!=="__proto__"?(r=this.b,r==null?!1:r[n]!=null):typeof n=="number"&&(n&1073741823)===n?(c=this.c,c==null?!1:c[n]!=null):this.dt(n)},dt(n){var r=this.d;return r==null?!1:this.an(this.cl(r,n),n)>=0},i(n,r){var c,u,f;return typeof r=="string"&&r!=="__proto__"?(c=this.b,u=c==null?null:s.pe(c,r),u):typeof r=="number"&&(r&1073741823)===r?(f=this.c,u=f==null?null:s.pe(f,r),u):this.dw(r)},dw(n){var r,c,u=this.d;return u==null?null:(r=this.cl(u,n),c=this.an(r,n),c<0?null:r[c+1])},m(n,r,c){var u,f,m,v,S,B=this;typeof r=="string"&&r!=="__proto__"?(u=B.b,B.dj(u??(B.b=s.pf()),r,c)):(f=B.d,f==null&&(f=B.d=s.pf()),m=s.fZ(r)&1073741823,v=f[m],v==null?(s.nA(f,m,[r,c]),++B.a,B.e=null):(S=B.an(v,r),S>=0?v[S+1]=c:(v.push(r,c),++B.a,B.e=null)))},M(n,r){var c,u,f,m=this,v=m.cj();for(c=v.length,u=0;u<c;++u)if(f=v[u],r.$2(f,m.i(0,f)),v!==m.e)throw s.d(s.ag(m))},cj(){var n,r,c,u,f,m,v,S,B,L,F=this,z=F.e;if(z!=null)return z;if(z=s.U(F.a,null,!1,N.z),n=F.b,n!=null)for(r=Object.getOwnPropertyNames(n),c=r.length,u=0,f=0;f<c;++f)z[u]=r[f],++u;else u=0;if(m=F.c,m!=null)for(r=Object.getOwnPropertyNames(m),c=r.length,f=0;f<c;++f)z[u]=+r[f],++u;if(v=F.d,v!=null)for(r=Object.getOwnPropertyNames(v),c=r.length,f=0;f<c;++f)for(S=v[r[f]],B=S.length,L=0;L<B;L+=2)z[u]=S[L],++u;return F.e=z},dj(n,r,c){n[r]==null&&(++this.a,this.e=null),s.nA(n,r,c)},cl(n,r){return n[s.fZ(r)&1073741823]}},s.e4.prototype={an(n,r){var c,u,f;if(n==null)return-1;for(c=n.length,u=0;u<c;u+=2)if(f=n[u],f==null?r==null:f===r)return u;return-1}},s.e2.prototype={gj(n){return this.a.a},gA(n){return this.a.a===0},gH(n){var r=this.a;return new s.e3(r,r.cj(),this.$ti.h("e3<1>"))},G(n,r){return this.a.v(r)}},s.e3.prototype={gt(){return this.d},q(){var n=this,r=n.b,c=n.c,u=n.a;if(r!==u.e)throw s.d(s.ag(u));return c>=r.length?(n.d=null,!1):(n.d=r[c],n.c=c+1,!0)},$iP:1},s.e5.prototype={i(n,r){return this.y.$1(r)?this.d8(r):null},m(n,r,c){this.d9(r,c)},v(n){return this.y.$1(n)?this.d7(n):!1},bh(n){return this.x.$1(n)&1073741823},bi(n,r){var c,u,f;if(n==null)return-1;for(c=n.length,u=this.w,f=0;f<c;++f)if(u.$2(n[f].a,r))return f;return-1}},s.mi.prototype={$1(n){return this.a.b(n)},$S:63},s.b_.prototype={gH(n){var r=this,c=new s.cH(r,r.r,s.A(r).h("cH<1>"));return c.c=r.e,c},gj(n){return this.a},gA(n){return this.a===0},ga8(n){return this.a!==0},G(n,r){var c,u;return typeof r=="string"&&r!=="__proto__"?(c=this.b,c==null?!1:c[r]!=null):typeof r=="number"&&(r&1073741823)===r?(u=this.c,u==null?!1:u[r]!=null):this.ds(r)},ds(n){var r=this.d;return r==null?!1:this.an(r[this.bB(n)],n)>=0},C(n,r){var c,u,f=this;return typeof r=="string"&&r!=="__proto__"?(c=f.b,f.cc(c??(f.b=s.nC()),r)):typeof r=="number"&&(r&1073741823)===r?(u=f.c,f.cc(u??(f.c=s.nC()),r)):f.dh(r)},dh(n){var r,c,u=this,f=u.d;if(f==null&&(f=u.d=s.nC()),r=u.bB(n),c=f[r],c==null)f[r]=[u.bz(n)];else{if(u.an(c,n)>=0)return!1;c.push(u.bz(n))}return!0},ei(n,r){var c=this;return typeof r=="string"&&r!=="__proto__"?c.ct(c.b,r):typeof r=="number"&&(r&1073741823)===r?c.ct(c.c,r):c.dO(r)},dO(n){var r,c,u,f,m=this,v=m.d;return v==null||(r=m.bB(n),c=v[r],u=m.an(c,n),u<0)?!1:(f=c.splice(u,1)[0],c.length===0&&delete v[r],m.cA(f),!0)},dv(n,r){for(var c,u,f,m,v=this,S=v.e;S!=null;S=u){if(c=S.a,u=S.b,f=v.r,m=n.$1(c),f!==v.r)throw s.d(s.ag(v));m===!1&&v.ei(0,c)}},P(n){var r=this;r.a>0&&(r.b=r.c=r.d=r.e=r.f=null,r.a=0,r.bG())},cc(n,r){return n[r]!=null?!1:(n[r]=this.bz(r),!0)},ct(n,r){var c;return n==null||(c=n[r],c==null)?!1:(this.cA(c),delete n[r],!0)},bG(){this.r=this.r+1&1073741823},bz(n){var r,c=this,u=new s.mj(n);return c.e==null?c.e=c.f=u:(r=c.f,r.toString,u.c=r,c.f=r.b=u),++c.a,c.bG(),u},cA(n){var r=this,c=n.c,u=n.b;c==null?r.e=u:c.b=u,u==null?r.f=c:u.c=c,--r.a,r.bG()},bB(n){return V.bY(n)&1073741823},an(n,r){var c,u;if(n==null)return-1;for(c=n.length,u=0;u<c;++u)if(V.af(n[u].a,r))return u;return-1}},s.mj.prototype={},s.cH.prototype={gt(){return this.d},q(){var n=this,r=n.c,c=n.a;if(n.b!==c.r)throw s.d(s.ag(c));return r==null?(n.d=null,!1):(n.d=r.a,n.c=r.b,!0)},$iP:1},s.aX.prototype={aj(n,r){return new s.aX(V.nn(this.a,r),r.h("aX<0>"))},gj(n){return V.a3(this.a)},i(n,r){return V.eD(this.a,r)}},s.dw.prototype={},s.dA.prototype={$iq:1,$ij:1,$io:1},s.p.prototype={gH(n){return new s.aa(n,this.gj(n),s.ak(n).h("aa<p.E>"))},V(n,r){return this.i(n,r)},gA(n){return this.gj(n)===0},ga8(n){return!this.gA(n)},gcH(n){if(this.gj(n)===0)throw s.d(s.nq());return this.i(n,0)},G(n,r){var c,u=this.gj(n);for(c=0;c<u;++c){if(V.af(this.i(n,c),r))return!0;if(u!==this.gj(n))throw s.d(s.ag(n))}return!1},be(n,r){var c,u=this.gj(n);for(c=0;c<u;++c){if(!r.$1(this.i(n,c)))return!1;if(u!==this.gj(n))throw s.d(s.ag(n))}return!0},aR(n,r){var c,u=this.gj(n);for(c=0;c<u;++c){if(r.$1(this.i(n,c)))return!0;if(u!==this.gj(n))throw s.d(s.ag(n))}return!1},al(n,r,c){return new s.ab(n,r,s.ak(n).h("@<p.E>").I(c).h("ab<1,2>"))},a6(n,r){return s.dQ(n,r,null,s.ak(n).h("p.E"))},b_(n,r){var c,u,f,m,v=this;if(v.gA(n))return c=V.b8(0,s.ak(n).h("p.E")),c;for(u=v.i(n,0),f=s.U(v.gj(n),u,!1,s.ak(n).h("p.E")),m=1;m<v.gj(n);++m)f[m]=v.i(n,m);return f},c3(n){var r,c=s.oH(s.ak(n).h("p.E"));for(r=0;r<this.gj(n);++r)c.C(0,this.i(n,r));return c},C(n,r){var c=this.gj(n);this.sj(n,c+1),this.m(n,c,r)},aj(n,r){return new s.b5(n,s.ak(n).h("@<p.E>").I(r).h("b5<1,2>"))},a1(n,r,c){var u=this.gj(n);return s.aQ(r,c,u),s.uK(this.b0(n,r,c),s.ak(n).h("p.E"))},b0(n,r,c){return s.aQ(r,c,this.gj(n)),s.dQ(n,r,c,s.ak(n).h("p.E"))},e5(n,r,c,u){var f;for(s.aQ(r,c,this.gj(n)),f=r;f<c;++f)this.m(n,f,u)},a5(n,r,c,u,f){var m,v,S,B,L;if(s.aQ(r,c,this.gj(n)),m=c-r,m!==0){if(s.aW(f,"skipCount"),s.ak(n).h("o<p.E>").b(u)?(v=f,S=u):(S=V.op(u,f).b_(0,!1),v=0),B=V.V(S),v+m>B.gj(S))throw s.d(s.ui());if(v<r)for(L=m-1;L>=0;--L)this.m(n,r+L,B.i(S,v+L));else for(L=0;L<m;++L)this.m(n,r+L,B.i(S,v+L))}},bR(n,r){var c;for(c=0;c<this.gj(n);++c)if(V.af(this.i(n,c),r))return c;return-1},k(n){return s.iI(n,"[","]")}},s.dB.prototype={},s.jO.prototype={$2(n,r){var c,u=this.a;u.a||(this.b.a+=", "),u.a=!1,u=this.b,c=u.a+=s.b(n),u.a=c+": ",u.a+=s.b(r)},$S:64},s.I.prototype={ak(n,r,c){var u=s.A(this);return s.oK(this,u.h("I.K"),u.h("I.V"),r,c)},M(n,r){var c,u;for(c=this.gN(),c=c.gH(c);c.q();)u=c.gt(),r.$2(u,this.i(0,u))},ge4(){return this.gN().al(0,new s.jP(this),s.A(this).h("cY<I.K,I.V>"))},v(n){return this.gN().G(0,n)},gj(n){var r=this.gN();return r.gj(r)},gA(n){var r=this.gN();return r.gA(r)},k(n){return s.nv(this)},$ih:1},s.jP.prototype={$1(n){var r=this.a,c=s.A(r);return new s.cY(n,r.i(0,n),c.h("@<I.K>").I(c.h("I.V")).h("cY<1,2>"))},$S(){return s.A(this.a).h("cY<I.K,I.V>(I.K)")}},s.fU.prototype={m(n,r,c){throw s.d(s.ad("Cannot modify unmodifiable map"))}},s.dC.prototype={ak(n,r,c){return this.a.ak(0,r,c)},i(n,r){return this.a.i(0,r)},m(n,r,c){this.a.m(0,r,c)},v(n){return this.a.v(n)},M(n,r){this.a.M(0,r)},gA(n){var r=this.a;return r.gA(r)},gj(n){var r=this.a;return r.gj(r)},gN(){return this.a.gN()},k(n){return this.a.k(0)},$ih:1},s.bm.prototype={ak(n,r,c){return new s.bm(this.a.ak(0,r,c),r.h("@<0>").I(c).h("bm<1,2>"))}},s.dM.prototype={gA(n){return this.a===0},ga8(n){return this.a!==0},D(n,r){var c;for(c=V.aA(r);c.q();)this.C(0,c.gt())},al(n,r,c){return new s.c9(this,r,s.A(this).h("@<1>").I(c).h("c9<1,2>"))},k(n){return s.iI(this,"{","}")},be(n,r){var c;for(c=s.nB(this,this.r,s.A(this).c);c.q();)if(!r.$1(c.d))return!1;return!0},a6(n,r){return s.p0(this,r,s.A(this).c)},bf(n,r,c){var u,f;for(u=s.nB(this,this.r,s.A(this).c);u.q();)if(f=u.d,r.$1(f))return f;return c.$0()},V(n,r){var c,u,f,m=this,v="index";for(s.bU(r,v,N.S),s.aW(r,v),c=s.nB(m,m.r,s.A(m).c),u=0;c.q();){if(f=c.d,r===u)return f;++u}throw s.d(s.eW(r,u,m,null,v))}},s.ec.prototype={$iq:1,$ij:1,$id1:1},s.e6.prototype={},s.em.prototype={},s.eq.prototype={},s.fM.prototype={i(n,r){var c,u=this.b;return u==null?this.c.i(0,r):typeof r!="string"?null:(c=u[r],typeof c>"u"?this.dM(r):c)},gj(n){return this.b==null?this.c.a:this.aL().length},gA(n){return this.gj(this)===0},gN(){if(this.b==null){var n=this.c;return new s.aO(n,s.A(n).h("aO<1>"))}return new s.fN(this)},m(n,r,c){var u,f,m=this;m.b==null?m.c.m(0,r,c):m.v(r)?(u=m.b,u[r]=c,f=m.a,(f==null?u!=null:f!==u)&&(f[r]=null)):m.dW().m(0,r,c)},v(n){return this.b==null?this.c.v(n):typeof n!="string"?!1:Object.prototype.hasOwnProperty.call(this.a,n)},M(n,r){var c,u,f,m,v=this;if(v.b==null)return v.c.M(0,r);for(c=v.aL(),u=0;u<c.length;++u)if(f=c[u],m=v.b[f],typeof m>"u"&&(m=s.mA(v.a[f]),v.b[f]=m),r.$2(f,m),c!==v.c)throw s.d(s.ag(v))},aL(){var n=this.c;return n==null&&(n=this.c=s.a(Object.keys(this.a),N.s)),n},dW(){var n,r,c,u,f,m=this;if(m.b==null)return m.c;for(n=s.a9(N.R,N.z),r=m.aL(),c=0;u=r.length,c<u;++c)f=r[c],n.m(0,f,m.i(0,f));return u===0?r.push(""):y.d.P(r),m.a=m.b=null,m.c=n},dM(n){var r;return Object.prototype.hasOwnProperty.call(this.a,n)?(r=s.mA(this.a[n]),this.b[n]=r):null}},s.fN.prototype={gj(n){var r=this.a;return r.gj(r)},V(n,r){var c=this.a;return c.b==null?c.gN().V(0,r):c.aL()[r]},gH(n){var r=this.a;return r.b==null?(r=r.gN(),r=r.gH(r)):(r=r.aL(),r=new V.b4(r,r.length,s.a_(r).h("b4<1>"))),r},G(n,r){return this.a.v(r)}},s.mh.prototype={a7(){var n,r,c,u=this;u.de(),n=u.a,r=n.a,n.a="",n=u.c,c=n.b,c.push(s.pB((r.charCodeAt(0)==0,r),u.b)),n.a.$1(c)}},s.lD.prototype={$0(){var n;try{return n=new TextDecoder("utf-8",{fatal:!0}),n}catch{}return null},$S:7},s.lC.prototype={$0(){var n;try{return n=new TextDecoder("utf-8",{fatal:!1}),n}catch{}return null},$S:7},s.ha.prototype={ee(n,r,c){var u,f,m,v,S,B,L,F,z,O,W,Y,te,K,ie,de,j="Invalid base64 encoding length ";for(c=s.aQ(r,c,n.length),u=I.ok(),f=r,m=f,v=null,S=-1,B=-1,L=0;f<c;f=F){if(F=f+1,z=y.a.J(n,f),z===37?(O=F+2,O<=c?(W=s.pW(n,F),W===37&&(W=-1),F=O):W=-1):W=z,0<=W&&W<=127){if(Y=u[W],Y>=0){if(W=y.a.B("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y),W===z)continue;z=W}else{if(Y===-1&&(S<0&&(te=v==null?null:v.a.length,te==null&&(te=0),S=te+(f-m),B=f),++L,z===61))continue;z=W}if(Y!==-2){v==null&&(v=new s.ac("")),te=v,K=te.a+=y.a.u(n,m,f),te.a=K+s.be(z),m=F;continue}}throw s.d(s.R("Invalid base64 data",n,f))}if(v!=null){if(te=v.a+=y.a.u(n,m,c),K=te.length,S>=0)s.os(n,B,c,S,L,K);else{if(ie=y.c.br(K-1,4)+1,ie===1)throw s.d(s.R(j,n,c));for(;ie<4;)te+="=",v.a=te,++ie}return te=v.a,y.a.aH(n,r,c,(te.charCodeAt(0)==0,te))}if(de=c-r,S>=0)s.os(n,B,c,S,L,de);else{if(ie=y.c.br(de,4),ie===1)throw s.d(s.R(j,n,c));ie>1&&(n=y.a.aH(n,c,c,ie===2?"==":"="))}return n}},s.hc.prototype={},s.hb.prototype={e0(n,r){var c,u,f,m=s.aQ(r,null,n.length);return r===m?new Uint8Array(0):(c=new s.lZ,u=c.e2(n,r,m),u.toString,f=c.a,f<-1&&s.Z(s.R("Missing padding character",n,m)),f>0&&s.Z(s.R("Invalid length, must be multiple of four",n,m)),c.a=-1,u)}},s.lZ.prototype={e2(n,r,c){var u,f=this,m=f.a;return m<0?(f.a=s.pc(n,r,c,m),null):r===c?new Uint8Array(0):(u=s.vk(n,r,c,m),f.a=s.vm(n,r,c,u,0,f.a),u)}},s.hd.prototype={},s.eJ.prototype={},s.fO.prototype={},s.eN.prototype={},s.eP.prototype={},s.hW.prototype={},s.iQ.prototype={e1(n){var r=s.pB(n,this.gcF().a);return r},gcF(){return y.c4}},s.iR.prototype={},s.lr.prototype={},s.ls.prototype={},s.ef.prototype={a7(){}},s.mu.prototype={a7(){this.a.e6(this.c),this.b.a7()},dX(n,r,c,u){this.c.a+=this.a.cE(n,r,c,!1)}},s.lA.prototype={},s.lB.prototype={e_(n){var r=this.a,c=s.ve(r,n,0,null);return c??new s.fV(r).cE(n,0,null,!0)}},s.fV.prototype={cE(n,r,c,u){var f,m,v,S,B,L=this,F=s.aQ(r,c,V.a3(n));if(r===F)return"";if(N.gc.b(n)?(f=n,m=0):(f=s.vZ(n,r,F),F-=r,m=r,r=0),v=L.bC(f,r,F,u),S=L.b,(S&1)!==0)throw B=s.ps(S),L.b=0,s.d(s.R(B,n,m+L.c));return v},bC(n,r,c,u){var f,m,v=this;return c-r>1e3?(f=y.c.bJ(r+c,2),m=v.bC(n,r,f,!1),(v.b&1)!==0?m:m+v.bC(n,f,c,u)):v.e3(n,r,c,u)},e6(n){var r=this.b;if(this.b=0,!(r<=32))if(this.a)n.a+=s.be(65533);else throw s.d(s.R(s.ps(77),null,null))},e3(n,r,c,u){var f,m,v,S,B,L,F,z=this,O=65533,W=z.b,Y=z.c,te=new s.ac(""),K=r+1,ie=n[r];e:for(f=z.a;;){for(;;K=S){if(m=y.a.J("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHIHHHJEEBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBKCCCCCCCCCCCCDCLONNNMEEEEEEEEEEE",ie)&31,Y=W<=32?ie&61694>>>m:(ie&63|Y<<6)>>>0,W=y.a.J(" \x000:XECCCCCN:lDb \x000:XECCCCCNvlDb \x000:XECCCCCN:lDb AAAAA\0\0\0\0\0AAAAA00000AAAAA:::::AAAAAGG000AAAAA00KKKAAAAAG::::AAAAA:IIIIAAAAA0000AAAAA\0\0\0\0 AAAAA",W+m),W===0){if(te.a+=s.be(Y),K===c)break e;break}else if((W&1)!==0){if(f)switch(W){case 69:case 67:te.a+=s.be(O);break;case 65:te.a+=s.be(O),--K;break;default:v=te.a+=s.be(O),te.a=v+s.be(O);break}else return z.b=W,z.c=K-1,"";W=0}if(K===c)break e;S=K+1,ie=n[K]}if(S=K+1,ie=n[K],ie<128){for(;;){if(!(S<c)){B=c;break}if(L=S+1,ie=n[S],ie>=128){B=L-1,S=L;break}S=L}if(B-K<20)for(F=K;F<B;++F)te.a+=s.be(n[F]);else te.a+=s.p2(n,K,B);if(B===c)break e;K=S}else K=S}if(u&&W>32)if(f)te.a+=s.be(O);else return z.b=77,z.c=c,"";return z.b=W,z.c=Y,f=te.a,f.charCodeAt(0)==0,f}},s.k2.prototype={$2(n,r){var c=this.b,u=this.a,f=c.a+=u.a;f+=s.b(n.a),c.a=f,c.a=f+": ",c.a+=s.cS(r),u.a=", "},$S:75},s.dp.prototype={O(n,r){return r==null?!1:r instanceof s.dp&&this.a===r.a&&this.b===r.b},gE(n){var r=this.a;return(r^y.c.ai(r,30))&1073741823},ew(){var n,r;return this.b?this:(n=this.a,Math.abs(n)<=864e13?r=!1:r=!0,r&&s.Z(s.K("DateTime is outside valid range: "+n,null)),s.bU(!0,"isUtc",N.y),new s.dp(n,!0))},k(n){var r=this,c=s.oy(s.fk(r)),u=s.b6(s.oW(r)),f=s.b6(s.oS(r)),m=s.b6(s.oT(r)),v=s.b6(s.oV(r)),S=s.b6(s.oX(r)),B=s.oz(s.oU(r)),L=c+"-"+u;return r.b?L+"-"+f+" "+m+":"+v+":"+S+"."+B+"Z":L+"-"+f+" "+m+":"+v+":"+S+"."+B},ev(){var n=this,r=s.fk(n)>=-9999&&s.fk(n)<=9999?s.oy(s.fk(n)):s.u5(s.fk(n)),c=s.b6(s.oW(n)),u=s.b6(s.oS(n)),f=s.b6(s.oT(n)),m=s.b6(s.oV(n)),v=s.b6(s.oX(n)),S=s.oz(s.oU(n)),B=r+"-"+c;return n.b?B+"-"+u+"T"+f+":"+m+":"+v+"."+S+"Z":B+"-"+u+"T"+f+":"+m+":"+v+"."+S}},s.m2.prototype={k(n){return this.aB()}},s.H.prototype={gb2(){return s.aS(this.$thrownJsError)}},s.eF.prototype={k(n){var r=this.a;return r!=null?"Assertion failed: "+s.cS(r):"Assertion failed"}},s.aG.prototype={},s.fg.prototype={k(n){return"Throw of null."},$iaG:1},s.at.prototype={gbE(){return"Invalid argument"+(this.a?"":"(s)")},gbD(){return""},k(n){var r=this,c=r.c,u=c==null?"":" ("+c+")",f=r.d,m=f==null?"":": "+s.b(f),v=r.gbE()+u+m;return r.a?v+r.gbD()+": "+s.cS(r.gbS()):v},gbS(){return this.b}},s.dL.prototype={gbS(){return this.b},gbE(){return"RangeError"},gbD(){var n,r=this.e,c=this.f;return r==null?n=c!=null?": Not less than or equal to "+s.b(c):"":c==null?n=": Not greater than or equal to "+s.b(r):c>r?n=": Not in inclusive range "+s.b(r)+".."+s.b(c):n=c<r?": Valid value range is empty":": Only valid value is "+s.b(r),n}},s.eV.prototype={gbS(){return this.b},gbE(){return"RangeError"},gbD(){if(this.b<0)return": index must not be negative";var n=this.f;return n===0?": no indices are valid":": index should be less than "+n},gj(n){return this.f}},s.dH.prototype={k(n){var r,c,u,f,m,v,S,B,L=this,F={},z=new s.ac("");for(F.a="",r=L.c,c=r.length,u=0,f="",m="";u<c;++u,m=", ")v=r[u],z.a=f+m,f=z.a+=s.cS(v),F.a=", ";return L.d.M(0,new s.k2(F,z)),S=s.cS(L.a),B=z.k(0),"NoSuchMethodError: method not found: '"+s.b(L.b.a)+`'
|
|
5726
5730
|
Receiver: `+S+`
|
|
5727
5731
|
Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.a}},s.fu.prototype={k(n){var r=this.a;return r!=null?"UnimplementedError: "+r:"UnimplementedError"}},s.bJ.prototype={k(n){return"Bad state: "+this.a}},s.eO.prototype={k(n){var r=this.a;return r==null?"Concurrent modification during iteration.":"Concurrent modification during iteration: "+s.cS(r)+"."}},s.fi.prototype={k(n){return"Out of Memory"},gb2(){return null},$iH:1},s.dO.prototype={k(n){return"Stack Overflow"},gb2(){return null},$iH:1},s.eQ.prototype={k(n){var r=this.a;return r==null?"Reading static variable during its initialization":"Reading static variable '"+r+"' during its initialization"}},s.e_.prototype={k(n){return"Exception: "+this.a},$ia8:1},s.aK.prototype={k(n){var r,c,u,f,m,v,S,B,L,F,z,O=this.a,W=O!=null&&O!==""?"FormatException: "+s.b(O):"FormatException",Y=this.c,te=this.b;if(typeof te=="string"){if(Y!=null?r=Y<0||Y>te.length:r=!1,r&&(Y=null),Y==null)return te.length>78&&(te=y.a.u(te,0,75)+"..."),W+`
|
|
5728
5732
|
`+te;for(c=1,u=0,f=!1,m=0;m<Y;++m)v=y.a.J(te,m),v===10?((u!==m||!f)&&++c,u=m+1,f=!1):v===13&&(++c,u=m+1,f=!0);for(W=c>1?W+(" (at line "+c+", character "+(Y-u+1)+`)
|
|
@@ -5887,7 +5891,7 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
5887
5891
|
font-weight: 400;
|
|
5888
5892
|
font-size: ${be(Se.Size.Text.Small.$value)};
|
|
5889
5893
|
}
|
|
5890
|
-
`]}show(){this.shadowRoot?.host.toggleAttribute("hide",!1)}hide(){this.shadowRoot?.host.toggleAttribute("hide",!0)}__showLogo(){this.__loadingLogoParent.classList.remove("hidden")}_renderLoaderByType(){let e=Ee`${
|
|
5894
|
+
`]}show(){this.shadowRoot?.host.toggleAttribute("hide",!1)}hide(){this.shadowRoot?.host.toggleAttribute("hide",!0)}__showLogo(){this.__loadingLogoParent.classList.remove("hidden")}_renderLoaderByType(){let e=Ee`${Ue}`;return this.loaderType==="bar"?e=Ee`<epg-progress-bar class="epg-progress-bar" current-progress=${this.currentProgress}></epg-progress-bar>`:e=Ee`<epg-loader-circle class="epg-loader-circle" loader-size="35px"></epg-loader-circle>`,e}_renderLabel(){let e=Ee`${Ue}`;return this.loadingLabel!==""&&(e=Ee`<label for="loadingProgress" class="loading-label"> ${this.loadingLabel} </label>`),e}render(){return Ee`
|
|
5891
5895
|
${super.render()}
|
|
5892
5896
|
|
|
5893
5897
|
<slot name = "replace-all">
|
|
@@ -6046,7 +6050,7 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
6046
6050
|
right-icon=""
|
|
6047
6051
|
label="Done"
|
|
6048
6052
|
></epg-button-primary>
|
|
6049
|
-
`}__renderPoweredByEpigraph(){let e=Ee`${
|
|
6053
|
+
`}__renderPoweredByEpigraph(){let e=Ee`${Ue}`;return this.poweredByEpigraph&&(e=Ee`
|
|
6050
6054
|
<slot name="powered-by-epigraph-footer">
|
|
6051
6055
|
<a href=${this.poweredByEpigraphHref} target="_blank">
|
|
6052
6056
|
<div class="powered-by-epigraph-footer">
|
|
@@ -6366,8 +6370,8 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
6366
6370
|
}
|
|
6367
6371
|
`]}doClick(){if(this.disabled)return;this.toggleActive(),typeof this.onClickCallback=="function"&&this.onClickCallback.bind(this);const e=new CustomEvent("epgonclick");this.dispatchEvent(e)}handleKeyDown(e){this.isKeyDown||this.disabled||(this.isKeyDown=!0,(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.doClick()))}handleKeyUp(e){(e.key==="Enter"||e.key===" ")&&(this.isKeyDown=!1)}updated(e){super.updated(e),this.ariaChecked=String(this.active),this.ariaPressed=String(this.active),this.ariaDisabled=String(this.disabled)}toggleActive(){this.active=!this.active}_defaultContents(){return Ee`
|
|
6368
6372
|
<div class="child boolean-indicator"></div>
|
|
6369
|
-
${this.iconName?Ee`<epg-icon class="icon" icon-name=${this.iconName}></epg-icon
|
|
6370
|
-
${this.label?Ee`<span class="label-text">${this.label}</span
|
|
6373
|
+
${this.iconName?Ee`<epg-icon class="icon" icon-name=${this.iconName}></epg-icon>`:Ue}
|
|
6374
|
+
${this.label?Ee`<span class="label-text">${this.label}</span>`:Ue}
|
|
6371
6375
|
`}render(){return Ee`
|
|
6372
6376
|
${super.render()}
|
|
6373
6377
|
|
|
@@ -6429,8 +6433,8 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
6429
6433
|
<div class="default-contents">
|
|
6430
6434
|
<input type="checkbox" ?checked=${this.active}>
|
|
6431
6435
|
<span class="child radio"></span>
|
|
6432
|
-
${this.iconName?Ee`<epg-icon class="icon" icon-name=${this.iconName}></epg-icon
|
|
6433
|
-
${this.label?Ee`<span class="label-text">${this.label}</span
|
|
6436
|
+
${this.iconName?Ee`<epg-icon class="icon" icon-name=${this.iconName}></epg-icon>`:Ue}
|
|
6437
|
+
${this.label?Ee`<span class="label-text">${this.label}</span>`:Ue}
|
|
6434
6438
|
</div>
|
|
6435
6439
|
`}}window.customElements.get(Rw)||window.customElements.define(Rw,Pz);var Lz=Object.defineProperty,ip=(o,e,t,i)=>{for(var a=void 0,l=o.length-1,h;l>=0;l--)(h=o[l])&&(a=h(e,t,a)||a);return a&&Lz(e,t,a),a};class iu extends Vi{constructor(){super(...arguments),this.label=ZC.label.defaultValue.toString(),this.activeIndex=0,this.__radioButtons=[]}static{this.styles=[super.styles,ct`
|
|
6436
6440
|
:host {
|
|
@@ -6446,7 +6450,7 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
6446
6450
|
}
|
|
6447
6451
|
`]}firstUpdated(e){super.firstUpdated(e),this.fetchNewRadioButtons()}_onRadioButtonClicked(e){if(!e.target||!(e.target instanceof HTMLElement))return;for(const[i,a]of Object.entries(this.__radioButtons))e.target===a?(this.activeIndex=parseInt(i),a.toggleAttribute("active",!0)):a.toggleAttribute("active",!1);const t=new CustomEvent("epgonchanged",{detail:{index:this.activeIndex}});this.dispatchEvent(t)}fetchNewRadioButtons(){this.__radioButtons=this._getSlottedElements(this.__radioButtonsSlot);for(const[e,t]of Object.entries(this.__radioButtons))t.toggleAttribute("active",parseInt(e)===this.activeIndex),t.addEventListener("epgonclick",this._onRadioButtonClicked.bind(this))}render(){return Ee`
|
|
6448
6452
|
<slot name="replace-all">
|
|
6449
|
-
${this.label?Ee`<div class="label">${this.label}</div
|
|
6453
|
+
${this.label?Ee`<div class="label">${this.label}</div>`:Ue}
|
|
6450
6454
|
<slot id="radioButtonsSlot" @slotchange=${this.fetchNewRadioButtons}>
|
|
6451
6455
|
<epg-toggle-radio label="Radio 1"></epg-toggle-radio>
|
|
6452
6456
|
<epg-toggle-radio label="Radio 2"></epg-toggle-radio>
|
|
@@ -6496,7 +6500,7 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
6496
6500
|
`]}_defaultContents(){return Ee`
|
|
6497
6501
|
<div class="default-contents">
|
|
6498
6502
|
<input type="checkbox" ?checked=${this.active}>
|
|
6499
|
-
${this.iconName?Ee`<epg-icon class="icon" icon-name="nav-arrow-up"></epg-icon
|
|
6503
|
+
${this.iconName?Ee`<epg-icon class="icon" icon-name="nav-arrow-up"></epg-icon>`:Ue}
|
|
6500
6504
|
</div>
|
|
6501
6505
|
`}}window.customElements.get(Bw)||window.customElements.define(Bw,Dz);const Pw="epg-toggle-checkbox";class eT extends fr{static{this.styles=[super.styles,ct`
|
|
6502
6506
|
/* ================ CHECKMARK STARTS HERE ================ */
|
|
@@ -6546,8 +6550,8 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
6546
6550
|
<div class="default-contents">
|
|
6547
6551
|
<input type="checkbox" ?checked=${this.active}>
|
|
6548
6552
|
<span class="child checkmark"></span>
|
|
6549
|
-
${this.iconName?Ee`<epg-icon class="icon" icon-name=${this.iconName}></epg-icon
|
|
6550
|
-
${this.label?Ee`<span class="label-text">${this.label}</span
|
|
6553
|
+
${this.iconName?Ee`<epg-icon class="icon" icon-name=${this.iconName}></epg-icon>`:Ue}
|
|
6554
|
+
${this.label?Ee`<span class="label-text">${this.label}</span>`:Ue}
|
|
6551
6555
|
</div>
|
|
6552
6556
|
`}}window.customElements.get(Pw)||window.customElements.define(Pw,eT);const Lw="epg-toggle-checkbox-int";class Nz extends eT{static{this.styles=[super.styles,ct`
|
|
6553
6557
|
/* Create the checkmark/indicator (hidden when not checked) */
|
|
@@ -6649,8 +6653,8 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
6649
6653
|
<div class="default-contents">
|
|
6650
6654
|
<input type="checkbox" ?checked=${this.active}>
|
|
6651
6655
|
<span class="child switch"></span>
|
|
6652
|
-
${this.iconName?Ee`<epg-icon class="icon" icon-name=${this.iconName}></epg-icon
|
|
6653
|
-
${this.label?Ee`<span class="label-text">${this.label}</span
|
|
6656
|
+
${this.iconName?Ee`<epg-icon class="icon" icon-name=${this.iconName}></epg-icon>`:Ue}
|
|
6657
|
+
${this.label?Ee`<span class="label-text">${this.label}</span>`:Ue}
|
|
6654
6658
|
</div>
|
|
6655
6659
|
`}}window.customElements.get(Nw)||window.customElements.define(Nw,kz);const Ow="epg-tool-help",fl={orientation:{name:"orientation",defaultValue:"horizontal"},canPan:{name:"can-pan"},isTouch:{name:"is-touch"}};var Uz=Object.defineProperty,k_=(o,e,t,i)=>{for(var a=void 0,l=o.length-1,h;l>=0;l--)(h=o[l])&&(a=h(e,t,a)||a);return a&&Uz(e,t,a),a};class sp extends Vi{constructor(){super(...arguments),this.canPan=!1,this.isTouch=!1,this.orientation=fl.orientation.defaultValue.toString()}static{this.styles=[super.styles,ct`
|
|
6656
6660
|
:host {
|
|
@@ -6706,7 +6710,7 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
6706
6710
|
width: 24px;
|
|
6707
6711
|
height: 24px;
|
|
6708
6712
|
}
|
|
6709
|
-
`]}__touchControlsHelp(){let e=Ee`${
|
|
6713
|
+
`]}__touchControlsHelp(){let e=Ee`${Ue}`;return this.isTouch?e=Ee`<epg-icon icon-name="tap-closed-hand-gesture"></epg-icon>`:e=Ee`<epg-icon icon-name="mouse-button-left"></epg-icon>`,e}__panControls(){return Ee`
|
|
6710
6714
|
<div class="help-icon-text" >
|
|
6711
6715
|
${this.isTouch?Ee`<epg-icon icon-name="two-tap-closed-hand-gesture"></epg-icon>`:Ee`<epg-icon icon-name="mouse-button-right"></epg-icon>`}
|
|
6712
6716
|
<span>+ Drag to Pan </span>
|
|
@@ -6719,7 +6723,7 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
6719
6723
|
${this.__touchControlsHelp()}
|
|
6720
6724
|
<span> + Drag to Rotate</span>
|
|
6721
6725
|
</div>
|
|
6722
|
-
${this.canPan?this.__panControls()
|
|
6726
|
+
${this.canPan?this.__panControls():Ue}
|
|
6723
6727
|
</slot>
|
|
6724
6728
|
`}}k_([ue({type:Boolean,attribute:fl.canPan.name})],sp.prototype,"canPan");k_([ue({type:Boolean,attribute:fl.isTouch.name})],sp.prototype,"isTouch");k_([ue({attribute:fl.orientation.name})],sp.prototype,"orientation");window.customElements.get(Ow)||window.customElements.define(Ow,sp);const kw="epg-tool-powered-by-epigraph",zd={urlToOpen:{name:"url-to-open",defaultValue:"https://epigraph.us"},label:{defaultValue:""},tooltipPlacement:{defaultValue:"right"}};var Fz=Object.defineProperty,$z=(o,e,t,i)=>{for(var a=void 0,l=o.length-1,h;l>=0;l--)(h=o[l])&&(a=h(e,t,a)||a);return a&&Fz(e,t,a),a};class tT extends di{constructor(){super(...arguments),this.urlToOpen=zd.urlToOpen.defaultValue.toString(),this.label=zd.label.defaultValue.toString(),this.rightIcon="",this.leftIcon="epigraph-icon",this.tooltipPlacement=zd.tooltipPlacement.defaultValue.toString(),this.tooltipLabel="",this.__allowClick=!0}static{this.styles=[super.styles,ct`
|
|
6725
6729
|
:host {
|
|
@@ -6832,7 +6836,7 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
6832
6836
|
`]}collapse(){this.shadowRoot?.host.toggleAttribute("collapsed",!0)}expand(){this.shadowRoot?.host.toggleAttribute("collapsed",!1)}onCollapseButtonClick(){this.collapsed=!this.collapsed,this.collapsed?this.collapse():this.expand()}__renderExpandControl(){return Ee`<epg-toggle-expand class="collapse-expand-button" @epgonclick=${this.onCollapseButtonClick} tooltip-placement="none"></epg-toggle-expand>`}__onToolControlClick(){this.collapsible&&this.collapse()}render(){return Ee`
|
|
6833
6837
|
${super.render()}
|
|
6834
6838
|
|
|
6835
|
-
${this.collapsible?this.__renderExpandControl()
|
|
6839
|
+
${this.collapsible?this.__renderExpandControl():Ue}
|
|
6836
6840
|
<div class="tools-container" @click=${this.__onToolControlClick}>
|
|
6837
6841
|
<slot>
|
|
6838
6842
|
<epg-tool-control
|
|
@@ -6850,7 +6854,7 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
6850
6854
|
></epg-tool-control>
|
|
6851
6855
|
</slot>
|
|
6852
6856
|
</div>
|
|
6853
|
-
`}}U_([ue({attribute:Dr.expandOrientation.name})],rp.prototype,"expandOrientation");U_([ue({type:Boolean,attribute:Dr.collapsible.name})],rp.prototype,"collapsible");U_([ue({type:Boolean,attribute:Dr.collapsed.name})],rp.prototype,"collapsed");window.customElements.get(Uw)||window.customElements.define(Uw,rp);var Gz=Object.defineProperty,On=(o,e,t,i)=>{for(var a=void 0,l=o.length-1,h;l>=0;l--)(h=o[l])&&(a=h(e,t,a)||a);return a&&Gz(e,t,a),a};const wn=class Gd extends Yf{constructor(){super(),this._loggerContext="HOTSPOTS MANAGER",this.hotspots=new Map,this.activeHotspot=void 0,this.activeHotspotIndex=-1,this.isPortrait=!0,this.__cardsState=Wi.collapsed,this.__leftCardContents
|
|
6857
|
+
`}}U_([ue({attribute:Dr.expandOrientation.name})],rp.prototype,"expandOrientation");U_([ue({type:Boolean,attribute:Dr.collapsible.name})],rp.prototype,"collapsible");U_([ue({type:Boolean,attribute:Dr.collapsed.name})],rp.prototype,"collapsed");window.customElements.get(Uw)||window.customElements.define(Uw,rp);var Gz=Object.defineProperty,On=(o,e,t,i)=>{for(var a=void 0,l=o.length-1,h;l>=0;l--)(h=o[l])&&(a=h(e,t,a)||a);return a&&Gz(e,t,a),a};const wn=class Gd extends Yf{constructor(){super(),this._loggerContext="HOTSPOTS MANAGER",this.hotspots=new Map,this.activeHotspot=void 0,this.activeHotspotIndex=-1,this.isPortrait=!0,this.__cardsState=Wi.collapsed,this.__leftCardContents=Ue,this.__rightCardContents=Ue,this.__allCards=[],this.__currentCardsPerView=1}static{this.webComponentName="hotspots-manager"}static{this.styles=[Uv.styles,ct`
|
|
6854
6858
|
:host {
|
|
6855
6859
|
position: absolute;
|
|
6856
6860
|
top: 0;
|
|
@@ -6936,6 +6940,10 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
6936
6940
|
right: var(--landscape-cards-offset);
|
|
6937
6941
|
transform: translateX(30%) translateY(0%);
|
|
6938
6942
|
}
|
|
6943
|
+
|
|
6944
|
+
&.navigation-hidden {
|
|
6945
|
+
margin-bottom: 20px;
|
|
6946
|
+
}
|
|
6939
6947
|
}
|
|
6940
6948
|
|
|
6941
6949
|
.hotspot-cards-container.show {
|
|
@@ -7059,7 +7067,7 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
7059
7067
|
}
|
|
7060
7068
|
}
|
|
7061
7069
|
}
|
|
7062
|
-
`]}updateActiveHotspotIndex(){this.activeHotspot&&(this.activeHotspotIndex=this.hotspotsOrder.indexOf(this.activeHotspot?.hotspotId))}static setupWebComponent(){window.customElements.get(Gd.webComponentName)||window.customElements.define(Gd.webComponentName,Gd)}firstUpdated(e){super.firstUpdated(e),this.__setupEventListeners()}updated(e){if(e.has("__cardsState")){const
|
|
7070
|
+
`]}updateActiveHotspotIndex(){this.activeHotspot&&(this.activeHotspotIndex=this.hotspotsOrder.indexOf(this.activeHotspot?.hotspotId))}static setupWebComponent(){window.customElements.get(Gd.webComponentName)||window.customElements.define(Gd.webComponentName,Gd)}firstUpdated(e){super.firstUpdated(e),this.__setupEventListeners()}updated(e){if(e.has("__cardsState")){const t=this.__currentCardsPerView,i=this.__cardsState===Wi.collapsed?1.2:1.03;if(Et.animateValue(t,i,500,a=>{this.__currentCardsPerView=a}),this?.cardsCarouselSwiperContainer?.swiper!==void 0){this.cardsCarouselSwiperContainer.swiper.allowTouchMove=this.__cardsState===Wi.collapsed;const a=this.cardsCarouselSwiperContainer.querySelectorAll("epg-card");for(const l of a)l.showPreviousButton=this.__cardsState===Wi.expanded&&!l.hasAttribute("is-first-hotspot"),l.showNextButton=this.__cardsState===Wi.expanded&&!l.hasAttribute("is-last-hotspot")}}this.cardsCarouselSwiperContainer?.swiper?.slideTo(this.activeHotspotIndex,400)}addHotspot(e,t=!0){const i=new Uv({config:e,appWcRef:this.appWcRef,hotspotManagerRef:this});this.hotspots.set(i.hotspotId,i);const a=this.appWcRef.sceneManager.sceneStructure.getEntityForAssetId(e.assetId);a&&a.addHotspot(i),t&&this.updateHotspotsOrder(Array.from(this.hotspots.keys()))}updateHotspot(e,t){const i=this.hotspots.get(e);if(!i){window.epigraph.logger.error({title:`Invalid hotspot ID: ${e}`});return}i.updateConfig(t),this.__resolveHotspotCardContents()}removeHotspot(e,t=!0){this.hotspots.delete(e),t&&this.updateHotspotsOrder(Array.from(this.hotspots.keys()))}stepHotspots(e){const t=this.activeHotspotIndex;if(t===null)return;const i=this.hotspotsOrder.length;let a=t;e==="next"?(a=t+1,a>=i&&(a=0)):e==="prev"&&(a=t-1,a<0&&(a=i-1));const l=this.hotspotsOrder[a];this.setActiveHotspot({hotspotId:l})}nextHotspot(){return this.stepHotspots("next"),this.appWcRef.eventsManager.hotspotNextEvent.fire({hotspot:this.activeHotspot}),this.activeHotspot}previousHotspot(){return this.stepHotspots("prev"),this.appWcRef.eventsManager.hotspotPreviousEvent.fire({hotspot:this.activeHotspot}),this.activeHotspot}openHotspot({hotspotId:e,state:t,skipHotspotOpenEvent:i=!1}){this.appWcRef.playInteractionPrompt=!1,this.setActiveHotspot({hotspotId:e,state:t}),i||this.appWcRef.eventsManager.hotspotOpenEvent.fire({hotspot:this.activeHotspot});const a=new ir(!0,ir.PANEL_TYPE.HOTSPOT_PANEL,ir.TRIGGER_SOURCE.HOTSPOT,[]);this.appWcRef.epigraphAnalytics.sendEvent(a)}closeActiveHotspot(){const e=this.activeHotspot?.hotspotId;this.setActiveHotspot({hotspotId:null}),this.appWcRef.eventsManager.hotspotClosedEvent.fire({hotspotId:e});const t=new nr(!0,nr.PANEL_TYPE.HOTSPOT_PANEL,nr.TRIGGER_SOURCE.BUTTON,[]);this.appWcRef.epigraphAnalytics.sendEvent(t)}updateHotspotsOrder(e){this.hotspotsOrder=e}removeAllHotspots(){for(const e of this.hotspots.keys())this.removeHotspot(e)}setActiveHotspotByIndex(e){const t=this.hotspotsOrder[e];this.setActiveHotspot({hotspotId:t,state:this.__cardsState})}setActiveHotspot({hotspotId:e,state:t=this.__cardsState}){if(this.activeHotspot?.hotspotId===e)return;if(e===null){const a=!!this.activeHotspot;this.activeHotspot=void 0,this.updateActiveHotspotIndex(),a&&this.appWcRef.cameraManager.resetCurrentCameraTransformsToLastSavedState();return}this.enabled===!1&&(this.enabled=!0);const i=!this.activeHotspot;if(this.activeHotspot=this.hotspots.get(e),this.updateActiveHotspotIndex(),this.setActiveHotspotState(t),this.__resolveHotspotCardContents(),this.appWcRef.eventsManager.cameraMoveToTransform.fire({cameraTransforms:this.activeHotspot?.camera,saveFirst:i}),this.appWcRef.isPortraitOrientation){const a=this.appWcRef.cameraManager.mainCameraControls,l=new se;a.getTarget(l,!0);const h=new se;a.getPosition(h,!0),a.setLookAt(h.x-l.x,h.y,h.z-l.z,0,l.y,0,!0),a.setFocalOffset(0,.1,0,!0)}window.addEventListener("keydown",a=>{a.key==="Escape"&&this.closeActiveHotspot()},{once:!0})}expandCards(){this.__cardsState=Wi.expanded}collapseCards(){this.__cardsState=Wi.collapsed}setActiveHotspotState(e=Wi.collapsed){if(this.activeHotspot)switch(this.appWcRef.clientHeight<420&&(e=Wi.expanded),e){case Wi.collapsed:this.collapseCards();break;case Wi.expanded:this.expandCards();break}}__resolveHotspotCardContents(){this.__allCards=[];let e=0;const t=this.hotspots.size-1,i=this.hotspots.size>1,a=this.appWcRef.experienceData.productSettings.hotspots.showNavigationButtons;for(const l of this.hotspots.values()){const h=e===0,d=e===t,p=Ee`
|
|
7063
7071
|
<swiper-slide part="swiper-slide">
|
|
7064
7072
|
<style>
|
|
7065
7073
|
.expand-button {
|
|
@@ -7103,11 +7111,11 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
7103
7111
|
</style>
|
|
7104
7112
|
|
|
7105
7113
|
<div class="expand-button" part="epg-card-expand-button">
|
|
7106
|
-
${
|
|
7114
|
+
${l.renderCardTemplate({isFirstHotspot:h,isLastHotspot:d,showNextButton:a&&i,showPreviousButton:a&&i})}
|
|
7107
7115
|
<span class="epg-card-expand-button-span">EXPAND</span>
|
|
7108
7116
|
</div>
|
|
7109
7117
|
</swiper-slide>
|
|
7110
|
-
`;this.__allCards.push(
|
|
7118
|
+
`;this.__allCards.push(p),e++}if(this.activeHotspot?.desktopPlacement.toLowerCase()===Zc.LEFT){this.leftHotspotCardsContainerElem.classList.add("fade-out");const l=this.__leftCardContents===Ue||!this.leftHotspotCardsContainerElem.classList.contains("show");setTimeout(()=>{this.activeHotspot?this.__leftCardContents=this.activeHotspot?.renderCardTemplate({showNextButton:a&&i,showPreviousButton:a&&i}):this.__leftCardContents=Ue,this.leftHotspotCardsContainerElem.classList.remove("fade-out")},l?0:500)}else if(this.activeHotspot?.desktopPlacement.toLowerCase()===Zc.RIGHT){this.rightHotspotCardsContainerElem.classList.add("fade-out");const l=this.__rightCardContents===Ue||!this.rightHotspotCardsContainerElem.classList.contains("show");setTimeout(()=>{this.activeHotspot?this.__rightCardContents=this.activeHotspot?.renderCardTemplate({showNextButton:a&&i,showPreviousButton:a&&i}):this.__rightCardContents=Ue,this.rightHotspotCardsContainerElem.classList.remove("fade-out")},l?0:500)}}recalculateHotspotPositions(){this.requestUpdate()}__renderHotspotIndicatorTemplates(){return Array.from(this.hotspots.values()).map(e=>e.renderAnnotationTemplate(this.activeHotspot?.hotspotId))}__onCardsCarouselSlideChange(e){this.setActiveHotspotByIndex(e.detail[0].activeIndex)}__onExpandButtonClicked(e){e.stopPropagation(),e.preventDefault(),this.setActiveHotspotState(Wi.expanded)}__renderMobileHotspotCardTemplates(){const e=this.appWcRef.isPortraitOrientation&&this.activeHotspot?"show":"",t=this.__cardsState===Wi.expanded?Wi.expanded:Wi.collapsed;return Ee`
|
|
7111
7119
|
<div
|
|
7112
7120
|
id="mobileHotspotCardsContainer"
|
|
7113
7121
|
class="hotspot-cards-container ${e} carousel ${t}"
|
|
@@ -7179,7 +7187,7 @@ Arguments: [`+B+"]"}},s.fz.prototype={k(n){return"Unsupported operation: "+this.
|
|
|
7179
7187
|
${this.__renderHotspotIndicatorTemplates()}
|
|
7180
7188
|
${this.__renderDesktopHotspotCardTemplates()}
|
|
7181
7189
|
${this.__renderMobileHotspotCardTemplates()}
|
|
7182
|
-
`)
|
|
7190
|
+
`):Ue}};On([ue({attribute:!1})],wn.prototype,"hotspots");On([ue({attribute:!1})],wn.prototype,"hotspotsOrder");On([ue({attribute:!1})],wn.prototype,"activeHotspot");On([ue({attribute:!1})],wn.prototype,"activeHotspotIndex");On([ue({type:Boolean,attribute:"is-portrait",reflect:!0})],wn.prototype,"isPortrait");On([Hi()],wn.prototype,"__cardsState");On([Hi()],wn.prototype,"__leftCardContents");On([Hi()],wn.prototype,"__rightCardContents");On([Hi()],wn.prototype,"__allCards");On([Ut("#cardsCarouselSwiperContainer")],wn.prototype,"cardsCarouselSwiperContainer");On([Ut("#leftHotspotCardsContainer")],wn.prototype,"leftHotspotCardsContainerElem");On([Ut("#rightHotspotCardsContainer")],wn.prototype,"rightHotspotCardsContainerElem");On([Hi()],wn.prototype,"__currentCardsPerView");let Hz=wn;const oi={apiMode:{name:"api-mode"},customVersionId:{name:"custom-version-id"},debug:{name:"debug"},gaMeasurementId:{name:"ga-measurement-id"},sku:{name:"sku",defaultValue:""},shopifyVariantId:{name:"shopify-variant-id",defaultValue:""},upc:{name:"upc",defaultValue:""},asin:{name:"asin",defaultValue:""},experienceId:{name:"experience-id",defaultValue:""},productVariantUuid:{name:"product-variant-uuid",defaultValue:""},dimensionsUnit:{name:"dimensions-unit",defaultValue:Qe.inch,argType:{options:[Qe.foot,Qe.inch,Qe.meter,Qe.millimeter,Qe.centimeter]}},dimensionsUnitSymbol:{name:"dimensions-unit-symbol",defaultValue:'"'},baseUrlOverride:{name:"base-url-override",defaultValue:window.location.href}},c0={slotCustomViewInYourSpaceButton:{name:"slot-custom-view-in-your-space-button",defaultValue:"",argType:{control:"text"}}};class Tf{constructor(){if(this.gltfLoader={},this.textureLoader={},Tf.instance)return Tf.instance;this.gltfLoader=this.initializeGltfLoader(),this.textureLoader=this.initializeTextureLoader()}initializeGltfLoader(){const e=new oC,t=new aC;return t.setDecoderPath("https://asset.myepigraph.com/configurator-assets/configurator-lite/external-libs/draco/"),e.setDRACOLoader(t),e}initializeTextureLoader(){return new i_}}/* @license
|
|
7183
7191
|
* Copyright 2019 Google LLC. All Rights Reserved.
|
|
7184
7192
|
* Licensed under the Apache License, Version 2.0 (the 'License');
|
|
7185
7193
|
* you may not use this file except in compliance with the License.
|
|
@@ -8351,7 +8359,7 @@ void main() {
|
|
|
8351
8359
|
`:Ee`
|
|
8352
8360
|
${super.render()}
|
|
8353
8361
|
${this.__renderQrModal()}
|
|
8354
|
-
`}};co([Ut("#modelViewer")],ia.prototype,"modelViewerElem");co([Ut("#arModal")],ia.prototype,"arModalElem");co([Ut("#qrModal")],ia.prototype,"qrModalElem");co([ue({attribute:!1})],ia.prototype,"appWcRef");co([ue({type:String,attribute:"glb-src"})],ia.prototype,"glbSrc");co([ue({type:String,attribute:"usdz-src"})],ia.prototype,"usdzSrc");co([ue({type:Boolean,attribute:"debug"})],ia.prototype,"debug");let SH=ia;class wt{constructor(e,t,i=""){this.__name="app:generic:event",this.__eventsManager=e,this.__name=t,this.__detail=i}get name(){return this.__name}get detail(){return this.__detail}fire(e){const t=new CustomEvent(this.__name,{detail:e??this.__detail});this.__eventsManager.eventHubRef.dispatchEvent(t)}}class CH extends EventTarget{constructor(e){super(),this._loggerContext="EVENTS MANAGER",window.epigraph.logger.info({title:"Initializing...",contextOverride:this._loggerContext}),e?this.eventHubRef=e:this.eventHubRef=this,this.assetLoadProgress=new wt(this,"assetLoadProgress",""),this.experienceUpdatedEvent=new wt(this,"experienceUpdated",""),this.appReadyEvent=new wt(this,"appReady",""),this.appFailedEvent=new wt(this,"appFailed",""),this.productClassChangedEvent=new wt(this,"productClassChanged",""),this.productChangedEvent=new wt(this,"productChanged",""),this.variantChangedEvent=new wt(this,"variantChanged",""),this.structureNodeAddedEvent=new wt(this,"structureNodeAdded",""),this.structureNodeRemovedEvent=new wt(this,"structureNodeRemoved",""),this.structureChangedEvent=new wt(this,"structureChanged",""),this.showNodeLoadingIcon=new wt(this,"nodeLoadingShow",""),this.hideNodeLoadingIcon=new wt(this,"nodeLoadingHide",""),this.cameraFitEvent=new wt(this,"cameraFit",""),this.hotspotsUpdatedEvent=new wt(this,"hotspotsUpdated",""),this.hotspotsVisibilityChanged=new wt(this,"hotspotsVisibilityChanged",""),this.hotspotClickedEvent=new wt(this,"hotspotClicked",""),this.hotspotOpenEvent=new wt(this,"hotspotOpen",""),this.hotspotClosedEvent=new wt(this,"hotspotClosed",""),this.hotspotNextEvent=new wt(this,"hotspotNext",""),this.hotspotPreviousEvent=new wt(this,"hotspotPrevious",""),this.sceneBoundsChanged=new wt(this,"sceneBoundsChanged",""),this.dimensionsPositionChanged=new wt(this,"dimensionsPositionChanged",""),this.dimensionsValueChanged=new wt(this,"dimensionsValueChanged",""),this.dimensionsVisibilityChanged=new wt(this,"dimensionsVisibilityChanged",""),this.arModelReadyEvent=new wt(this,"arGlbReady",""),this.cartChangedEvent=new wt(this,"cartChanged",""),this.sceneRestartedEvent=new wt(this,"sceneRestarted",""),this.pickerFoundPosition=new wt(this,"pickerFoundPosition",""),this.frameUpdated=new wt(this,"frameUpdated",""),this.cameraControlsStart=new wt(this,"cameraControlsStart",""),this.inputStart=new wt(this,"inputStart",""),this.inputMove=new wt(this,"inputMove",""),this.inputEnd=new wt(this,"inputEnd",""),this.cameraMoveToTransform=new wt(this,"cameraMoveToTransform",""),this.debugChanged=new wt(this,"debugChanged","")}}class TH{constructor(e,t){this.__assets=new Map,this.__appWcRef=t,this.__config=e}async initialize(){for(const e in this.__config){const t=new yC(this.__config[e],this.__appWcRef);await t.load(),this.__assets.set(e,t)}}async loadAllProxies(){for(const e of this.__assets.values())await e.loadProxyGltf()}async loadAllRenderAssets(){for(const e of this.__assets.values())await e.loadRenderGltf(!0)}getAssetByName(e){return this.__assets.get(e)}getFirstAsset(){return this.__assets.values().next().value}}class IH{constructor(e){this.__assetClass=e.assetClass,this.__asset=e.asset,this.__assetId=e.assetId,this.__finish=e.finish,this.__productOptionValue=e.productOptionValue}get assetClass(){return this.__assetClass}get asset(){return this.__asset}get assetId(){return this.__assetId}get finish(){return this.__finish}get productOptionValue(){return this.__productOptionValue}}class MH{constructor(e,t){this.__productParts=[],this.__id=e.id,this.__name=e.name,this.__productId=t,this.__sku=e.sku,this.__upc=e.upc,this.__asin=e.asin,this.__shopifyVariantId=e.shopifyVariantId,this.__uuid=e.uuid,this.parseProductParts(e.productParts)}get id(){return this.__id}get name(){return this.__name}get productId(){return this.__productId}get sku(){return this.__sku}get upc(){return this.__upc}get asin(){return this.__asin}get shopifyVariantId(){return this.__shopifyVariantId}get uuid(){return this.__uuid}get productParts(){return this.__productParts}parseProductParts(e){for(const t of e){const i=new IH(t);this.__productParts.push(i)}}}class RH{constructor(e,t){this.__productVariants=new Map,this.__productVariantNames=new Map,this.__productVariantSkus=new Map,this.__productVariantUpcs=new Map,this.__productVariantAsins=new Map,this.__productVariantShopifyVariantIds=new Map,this.__productVariantUuids=new Map,this.__productId=t;for(const i of e){const a=new MH(i,this.__productId);a&&this.addProductVariant(a)}}addProductVariant(e){this.__productVariants.set(e.id,e),this.__productVariantNames.set(e.name,e),e.sku&&this.__productVariantSkus.set(e.sku,e),e.upc&&this.__productVariantUpcs.set(e.upc,e),e.asin&&this.__productVariantAsins.set(e.asin,e),e.shopifyVariantId&&this.__productVariantShopifyVariantIds.set(e.shopifyVariantId,e),e.uuid&&this.__productVariantUuids.set(e.uuid,e)}removeProductVariant(e){e.sku&&this.__productVariantSkus.delete(e.sku),e.upc&&this.__productVariantUpcs.delete(e.upc),e.asin&&this.__productVariantAsins.delete(e.asin),e.shopifyVariantId&&this.__productVariantShopifyVariantIds.delete(e.shopifyVariantId),this.__productVariantNames.delete(e.name),this.__productVariants.delete(e.id)}getAllProductVariants(){return Array.from(this.__productVariants.values())}getAllProductVariantIds(){return Array.from(this.__productVariants.keys())}getAllProductVariantNames(){return Array.from(this.__productVariantNames.keys())}getProductVariantById(e){return this.__productVariants.get(e)}getProductVariantByName(e){return this.__productVariantNames.get(e)}getProductVariantBySku(e){return this.__productVariantSkus.get(e)}getProductVariantByUpc(e){return this.__productVariantUpcs.get(e)}getProductVariantByAsin(e){return this.__productVariantAsins.get(e)}getProductVariantByShopifyVariantId(e){return this.__productVariantShopifyVariantIds.get(e)}getProductVariantByUuid(e){return this.__productVariantUuids.get(e)}getProductVariantByIdentifierAndType(e,t){switch(t){case Ta.SKU:return this.getProductVariantBySku(e);case Ta.SHOPIFY_VARIANT_ID:return this.getProductVariantByShopifyVariantId(e);case Ta.ASIN:return this.getProductVariantByAsin(e);case Ta.UPC:return this.getProductVariantByUpc(e);case Ta.EXPERIENCE_ID:return;case Ta.PRODUCT_VARIANT_UUID:return this.getProductVariantByUuid(e);default:return}}}class FT{constructor(){this.productSettings={postEffect:{ao:!1},camera:{initial:null,backgroundColor:"#ffffff",backgroundAlpha:1,focalLength:35,nearClip:.01,farClip:1e3,canPan:!0,canZoom:!0,minDistance:2,maxDistance:8,minPolarAngle:null,maxPolarAngle:null,minAzimuthAngle:null,maxAzimuthAngle:null},renderQuality:{antiAlias:!0},screenshots:{enabled:!1},shadows:{shadowType:EC.NONE,accumulativeShadows:{shadowMaterial:{opacity:.8,alphaTest:.75,color:"#000000",blend:1},shadowParams:{frames:30,scale:10,radius:.8,ambient:.5},light:{direction:{x:3,y:5,z:3}}},contactShadows:{planeLength:3,planeWidth:3,cameraHeight:1,intensity:1,softness:1}}}}_deepCopyProductSettings(e){const t=this.productSettings;e.camera&&(e.camera.initial&&(t.camera.initial=e.camera.initial),e.camera.backgroundColor&&(t.camera.backgroundColor=e.camera.backgroundColor),e.camera.backgroundAlpha&&(t.camera.backgroundAlpha=e.camera.backgroundAlpha),e.camera.focalLength&&(t.camera.focalLength=e.camera.focalLength),e.camera.canPan&&(t.camera.canPan=e.camera.canPan),e.camera.canZoom&&(t.camera.canZoom=e.camera.canZoom),e.camera.minDistance&&(t.camera.minDistance=e.camera.minDistance),e.camera.maxDistance&&(t.camera.maxDistance=e.camera.maxDistance),e.camera.minPolarAngle&&(t.camera.minPolarAngle=e.camera.minPolarAngle),e.camera.maxPolarAngle&&(t.camera.maxPolarAngle=e.camera.maxPolarAngle),e.camera.minAzimuthAngle&&(t.camera.minAzimuthAngle=e.camera.minAzimuthAngle),e.camera.maxAzimuthAngle&&(t.camera.maxAzimuthAngle=e.camera.maxAzimuthAngle)),e.postEffect&&(t.postEffect=e.postEffect),e.renderQuality&&(t.renderQuality=e.renderQuality),e.screenshots&&(t.screenshots=e.screenshots),e.shadows?.shadowType&&(t.shadows.shadowType=e.shadows.shadowType),e.shadows?.accumulativeShadows&&(t.shadows.accumulativeShadows=e.shadows.accumulativeShadows),e.shadows?.contactShadows&&(e.shadows.contactShadows.cameraHeight&&(t.shadows.contactShadows.cameraHeight=e.shadows.contactShadows.cameraHeight),e.shadows.contactShadows.intensity&&(t.shadows.contactShadows.intensity=e.shadows.contactShadows.intensity),e.shadows.contactShadows.planeLength&&(t.shadows.contactShadows.planeLength=e.shadows.contactShadows.planeLength),e.shadows.contactShadows.planeWidth&&(t.shadows.contactShadows.planeWidth=e.shadows.contactShadows.planeWidth),e.shadows.contactShadows.softness&&(t.shadows.contactShadows.softness=e.shadows.contactShadows.softness))}}class BH extends FT{constructor({nexusApiResultPayload:e,appWcRef:t}){super(),this.__needsRootPlug=!1,window.epigraph.logger.info({title:"nexusApiPayload",details:e}),this._appWcRef=t,this._data=e,this._data.product_data.settings&&this._deepCopyProductSettings(this._data.product_data.settings);const i=this._data.product_data.assets;if(Object.values(i).length===1){const a=Object.values(i)[0];a?.proxyGeo?window.epigraph.logger.warn({title:"Single asset experience detected and a proxy was provided. Please ensure that the proxy provided has a root plug in it. Expand for the asset config used...",details:a,contextOverride:"ASSET COLLECTION"}):(a.proxyGeo="https://asset.myepigraph.com/configurator-assets/epigraph-solution-assets/staging-assets/pipeline-assets/3d-assets/proxies/null-proxy.glb",this.__needsRootPlug=!0,a.autoGenerateProxyEntity=!0)}}async __parseAssets(){return this.__assetCollection=new TH(this._data.product_data.assets,this._appWcRef),await this.__assetCollection.initialize(),this.__needsRootPlug&&this.__assetCollection.getFirstAsset()?.proxyGltf?.plugs.push(new Jr({name:"root@plug",isPrimary:!0,connectionId:"root",position:new se,rotation:new bn})),this.__assetCollection}getAssetCollection(){return this.__assetCollection}__parseProductVariants(){this.__productVariantCollection=new RH(this._data.product_data.product.productVariants,this._data.product_data.product.id)}get productVariantCollection(){return this.__productVariantCollection}async initialize(){await this.__parseAssets(),await this.__parseProductVariants()}getExperienceDataSettings(){return{}}}var wh=function(){var o=0,e=document.createElement("div");e.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",e.addEventListener("click",function(A){A.preventDefault(),i(++o%e.children.length)},!1);function t(A){return e.appendChild(A.dom),A}function i(A){for(var _=0;_<e.children.length;_++)e.children[_].style.display=_===A?"block":"none";o=A}var a=(performance||Date).now(),l=a,h=0,d=t(new wh.Panel("FPS","#0ff","#002")),p=t(new wh.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var g=t(new wh.Panel("MB","#f08","#201"));return i(0),{REVISION:16,dom:e,addPanel:t,showPanel:i,begin:function(){a=(performance||Date).now()},end:function(){h++;var A=(performance||Date).now();if(p.update(A-a,200),A>=l+1e3&&(d.update(h*1e3/(A-l),100),l=A,h=0,g)){var _=performance.memory;g.update(_.usedJSHeapSize/1048576,_.jsHeapSizeLimit/1048576)}return A},update:function(){a=this.end()},domElement:e,setMode:i}};wh.Panel=function(o,e,t){var i=1/0,a=0,l=Math.round,h=l(window.devicePixelRatio||1),d=80*h,p=48*h,g=3*h,A=2*h,_=3*h,b=15*h,w=74*h,E=30*h,C=document.createElement("canvas");C.width=d,C.height=p,C.style.cssText="width:80px;height:48px";var T=C.getContext("2d");return T.font="bold "+9*h+"px Helvetica,Arial,sans-serif",T.textBaseline="top",T.fillStyle=t,T.fillRect(0,0,d,p),T.fillStyle=e,T.fillText(o,g,A),T.fillRect(_,b,w,E),T.fillStyle=t,T.globalAlpha=.9,T.fillRect(_,b,w,E),{dom:C,update:function(x,P){i=Math.min(i,x),a=Math.max(a,x),T.fillStyle=t,T.globalAlpha=1,T.fillRect(0,0,d,b),T.fillStyle=e,T.fillText(l(x)+" "+o+" ("+l(i)+"-"+l(a)+")",g,A),T.drawImage(C,_+h,b,w-h,E,_,b,w-h,E),T.fillRect(_+w-h,b,h,E),T.fillStyle=t,T.globalAlpha=.9,T.fillRect(_+w-h,b,h,l((1-x/P)*E))}}};class as extends Yf{constructor(){super(),this._loggerContext="DEBUG MANAGER",this.stats=new wh}static{this.webComponentName="debug-manager"}static setupWebComponent(){window.customElements.get(as.webComponentName)||window.customElements.define(as.webComponentName,as)}static{this.styles=ct`
|
|
8362
|
+
`}};co([Ut("#modelViewer")],ia.prototype,"modelViewerElem");co([Ut("#arModal")],ia.prototype,"arModalElem");co([Ut("#qrModal")],ia.prototype,"qrModalElem");co([ue({attribute:!1})],ia.prototype,"appWcRef");co([ue({type:String,attribute:"glb-src"})],ia.prototype,"glbSrc");co([ue({type:String,attribute:"usdz-src"})],ia.prototype,"usdzSrc");co([ue({type:Boolean,attribute:"debug"})],ia.prototype,"debug");let SH=ia;class wt{constructor(e,t,i=""){this.__name="app:generic:event",this.__eventsManager=e,this.__name=t,this.__detail=i}get name(){return this.__name}get detail(){return this.__detail}fire(e){const t=new CustomEvent(this.__name,{detail:e??this.__detail});this.__eventsManager.eventHubRef.dispatchEvent(t)}}class CH extends EventTarget{constructor(e){super(),this._loggerContext="EVENTS MANAGER",window.epigraph.logger.info({title:"Initializing...",contextOverride:this._loggerContext}),e?this.eventHubRef=e:this.eventHubRef=this,this.assetLoadProgress=new wt(this,"assetLoadProgress",""),this.experienceUpdatedEvent=new wt(this,"experienceUpdated",""),this.appReadyEvent=new wt(this,"appReady",""),this.appFailedEvent=new wt(this,"appFailed",""),this.productClassChangedEvent=new wt(this,"productClassChanged",""),this.productChangedEvent=new wt(this,"productChanged",""),this.variantChangedEvent=new wt(this,"variantChanged",""),this.structureNodeAddedEvent=new wt(this,"structureNodeAdded",""),this.structureNodeRemovedEvent=new wt(this,"structureNodeRemoved",""),this.structureChangedEvent=new wt(this,"structureChanged",""),this.showNodeLoadingIcon=new wt(this,"nodeLoadingShow",""),this.hideNodeLoadingIcon=new wt(this,"nodeLoadingHide",""),this.cameraFitEvent=new wt(this,"cameraFit",""),this.hotspotsUpdatedEvent=new wt(this,"hotspotsUpdated",""),this.hotspotsVisibilityChanged=new wt(this,"hotspotsVisibilityChanged",""),this.hotspotClickedEvent=new wt(this,"hotspotClicked",""),this.hotspotOpenEvent=new wt(this,"hotspotOpen",""),this.hotspotClosedEvent=new wt(this,"hotspotClosed",""),this.hotspotNextEvent=new wt(this,"hotspotNext",""),this.hotspotPreviousEvent=new wt(this,"hotspotPrevious",""),this.sceneBoundsChanged=new wt(this,"sceneBoundsChanged",""),this.dimensionsPositionChanged=new wt(this,"dimensionsPositionChanged",""),this.dimensionsValueChanged=new wt(this,"dimensionsValueChanged",""),this.dimensionsVisibilityChanged=new wt(this,"dimensionsVisibilityChanged",""),this.arModelReadyEvent=new wt(this,"arGlbReady",""),this.cartChangedEvent=new wt(this,"cartChanged",""),this.sceneRestartedEvent=new wt(this,"sceneRestarted",""),this.pickerFoundPosition=new wt(this,"pickerFoundPosition",""),this.frameUpdated=new wt(this,"frameUpdated",""),this.cameraControlsStart=new wt(this,"cameraControlsStart",""),this.inputStart=new wt(this,"inputStart",""),this.inputMove=new wt(this,"inputMove",""),this.inputEnd=new wt(this,"inputEnd",""),this.cameraMoveToTransform=new wt(this,"cameraMoveToTransform",""),this.debugChanged=new wt(this,"debugChanged","")}}class TH{constructor(e,t){this.__assets=new Map,this.__appWcRef=t,this.__config=e}async initialize(){for(const e in this.__config){const t=new yC(this.__config[e],this.__appWcRef);await t.load(),this.__assets.set(e,t)}}async loadAllProxies(){for(const e of this.__assets.values())await e.loadProxyGltf()}async loadAllRenderAssets(){for(const e of this.__assets.values())await e.loadRenderGltf(!0)}getAssetByName(e){return this.__assets.get(e)}getFirstAsset(){return this.__assets.values().next().value}}class IH{constructor(e){this.__assetClass=e.assetClass,this.__asset=e.asset,this.__assetId=e.assetId,this.__finish=e.finish,this.__productOptionValue=e.productOptionValue}get assetClass(){return this.__assetClass}get asset(){return this.__asset}get assetId(){return this.__assetId}get finish(){return this.__finish}get productOptionValue(){return this.__productOptionValue}}class MH{constructor(e,t){this.__productParts=[],this.__id=e.id,this.__name=e.name,this.__productId=t,this.__sku=e.sku,this.__upc=e.upc,this.__asin=e.asin,this.__shopifyVariantId=e.shopifyVariantId,this.__uuid=e.uuid,this.parseProductParts(e.productParts)}get id(){return this.__id}get name(){return this.__name}get productId(){return this.__productId}get sku(){return this.__sku}get upc(){return this.__upc}get asin(){return this.__asin}get shopifyVariantId(){return this.__shopifyVariantId}get uuid(){return this.__uuid}get productParts(){return this.__productParts}parseProductParts(e){for(const t of e){const i=new IH(t);this.__productParts.push(i)}}}class RH{constructor(e,t){this.__productVariants=new Map,this.__productVariantNames=new Map,this.__productVariantSkus=new Map,this.__productVariantUpcs=new Map,this.__productVariantAsins=new Map,this.__productVariantShopifyVariantIds=new Map,this.__productVariantUuids=new Map,this.__productId=t;for(const i of e){const a=new MH(i,this.__productId);a&&this.addProductVariant(a)}}addProductVariant(e){this.__productVariants.set(e.id,e),this.__productVariantNames.set(e.name,e),e.sku&&this.__productVariantSkus.set(e.sku,e),e.upc&&this.__productVariantUpcs.set(e.upc,e),e.asin&&this.__productVariantAsins.set(e.asin,e),e.shopifyVariantId&&this.__productVariantShopifyVariantIds.set(e.shopifyVariantId,e),e.uuid&&this.__productVariantUuids.set(e.uuid,e)}removeProductVariant(e){e.sku&&this.__productVariantSkus.delete(e.sku),e.upc&&this.__productVariantUpcs.delete(e.upc),e.asin&&this.__productVariantAsins.delete(e.asin),e.shopifyVariantId&&this.__productVariantShopifyVariantIds.delete(e.shopifyVariantId),this.__productVariantNames.delete(e.name),this.__productVariants.delete(e.id)}getAllProductVariants(){return Array.from(this.__productVariants.values())}getAllProductVariantIds(){return Array.from(this.__productVariants.keys())}getAllProductVariantNames(){return Array.from(this.__productVariantNames.keys())}getProductVariantById(e){return this.__productVariants.get(e)}getProductVariantByName(e){return this.__productVariantNames.get(e)}getProductVariantBySku(e){return this.__productVariantSkus.get(e)}getProductVariantByUpc(e){return this.__productVariantUpcs.get(e)}getProductVariantByAsin(e){return this.__productVariantAsins.get(e)}getProductVariantByShopifyVariantId(e){return this.__productVariantShopifyVariantIds.get(e)}getProductVariantByUuid(e){return this.__productVariantUuids.get(e)}getProductVariantByIdentifierAndType(e,t){switch(t){case Ta.SKU:return this.getProductVariantBySku(e);case Ta.SHOPIFY_VARIANT_ID:return this.getProductVariantByShopifyVariantId(e);case Ta.ASIN:return this.getProductVariantByAsin(e);case Ta.UPC:return this.getProductVariantByUpc(e);case Ta.EXPERIENCE_ID:return;case Ta.PRODUCT_VARIANT_UUID:return this.getProductVariantByUuid(e);default:return}}}class FT{constructor(){this.productSettings={postEffect:{ao:!1},camera:{initial:null,backgroundColor:"#ffffff",backgroundAlpha:1,focalLength:35,nearClip:.01,farClip:1e3,canPan:!0,canZoom:!0,minDistance:2,maxDistance:8,minPolarAngle:null,maxPolarAngle:null,minAzimuthAngle:null,maxAzimuthAngle:null},renderQuality:{antiAlias:!0},screenshots:{enabled:!1},shadows:{shadowType:EC.NONE,accumulativeShadows:{shadowMaterial:{opacity:.8,alphaTest:.75,color:"#000000",blend:1},shadowParams:{frames:30,scale:10,radius:.8,ambient:.5},light:{direction:{x:3,y:5,z:3}}},contactShadows:{planeLength:3,planeWidth:3,cameraHeight:1,intensity:1,softness:1}},hotspots:{showNavigationButtons:!0}}}_deepCopyProductSettings(e){const t=this.productSettings;e.camera&&(e.camera.initial&&(t.camera.initial=e.camera.initial),e.camera.backgroundColor&&(t.camera.backgroundColor=e.camera.backgroundColor),e.camera.backgroundAlpha&&(t.camera.backgroundAlpha=e.camera.backgroundAlpha),e.camera.focalLength&&(t.camera.focalLength=e.camera.focalLength),e.camera.canPan&&(t.camera.canPan=e.camera.canPan),e.camera.canZoom&&(t.camera.canZoom=e.camera.canZoom),e.camera.minDistance&&(t.camera.minDistance=e.camera.minDistance),e.camera.maxDistance&&(t.camera.maxDistance=e.camera.maxDistance),e.camera.minPolarAngle&&(t.camera.minPolarAngle=e.camera.minPolarAngle),e.camera.maxPolarAngle&&(t.camera.maxPolarAngle=e.camera.maxPolarAngle),e.camera.minAzimuthAngle&&(t.camera.minAzimuthAngle=e.camera.minAzimuthAngle),e.camera.maxAzimuthAngle&&(t.camera.maxAzimuthAngle=e.camera.maxAzimuthAngle)),e.postEffect&&(t.postEffect=e.postEffect),e.renderQuality&&(t.renderQuality=e.renderQuality),e.screenshots&&(t.screenshots=e.screenshots),e.shadows?.shadowType&&(t.shadows.shadowType=e.shadows.shadowType),e.shadows?.accumulativeShadows&&(t.shadows.accumulativeShadows=e.shadows.accumulativeShadows),e.shadows?.contactShadows&&(e.shadows.contactShadows.cameraHeight&&(t.shadows.contactShadows.cameraHeight=e.shadows.contactShadows.cameraHeight),e.shadows.contactShadows.intensity&&(t.shadows.contactShadows.intensity=e.shadows.contactShadows.intensity),e.shadows.contactShadows.planeLength&&(t.shadows.contactShadows.planeLength=e.shadows.contactShadows.planeLength),e.shadows.contactShadows.planeWidth&&(t.shadows.contactShadows.planeWidth=e.shadows.contactShadows.planeWidth),e.shadows.contactShadows.softness&&(t.shadows.contactShadows.softness=e.shadows.contactShadows.softness)),e.hotspots?.showNavigationButtons&&(t.hotspots.showNavigationButtons=e.hotspots.showNavigationButtons)}}class BH extends FT{constructor({nexusApiResultPayload:e,appWcRef:t}){super(),this.__needsRootPlug=!1,window.epigraph.logger.info({title:"nexusApiPayload",details:e}),this._appWcRef=t,this._data=e,this._data.product_data.settings&&this._deepCopyProductSettings(this._data.product_data.settings);const i=this._data.product_data.assets;if(Object.values(i).length===1){const a=Object.values(i)[0];a?.proxyGeo?window.epigraph.logger.warn({title:"Single asset experience detected and a proxy was provided. Please ensure that the proxy provided has a root plug in it. Expand for the asset config used...",details:a,contextOverride:"ASSET COLLECTION"}):(a.proxyGeo="https://asset.myepigraph.com/configurator-assets/epigraph-solution-assets/staging-assets/pipeline-assets/3d-assets/proxies/null-proxy.glb",this.__needsRootPlug=!0,a.autoGenerateProxyEntity=!0)}}async __parseAssets(){return this.__assetCollection=new TH(this._data.product_data.assets,this._appWcRef),await this.__assetCollection.initialize(),this.__needsRootPlug&&this.__assetCollection.getFirstAsset()?.proxyGltf?.plugs.push(new Jr({name:"root@plug",isPrimary:!0,connectionId:"root",position:new se,rotation:new bn})),this.__assetCollection}getAssetCollection(){return this.__assetCollection}__parseProductVariants(){this.__productVariantCollection=new RH(this._data.product_data.product.productVariants,this._data.product_data.product.id)}get productVariantCollection(){return this.__productVariantCollection}async initialize(){await this.__parseAssets(),await this.__parseProductVariants()}getExperienceDataSettings(){return{}}}var wh=function(){var o=0,e=document.createElement("div");e.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",e.addEventListener("click",function(A){A.preventDefault(),i(++o%e.children.length)},!1);function t(A){return e.appendChild(A.dom),A}function i(A){for(var _=0;_<e.children.length;_++)e.children[_].style.display=_===A?"block":"none";o=A}var a=(performance||Date).now(),l=a,h=0,d=t(new wh.Panel("FPS","#0ff","#002")),p=t(new wh.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var g=t(new wh.Panel("MB","#f08","#201"));return i(0),{REVISION:16,dom:e,addPanel:t,showPanel:i,begin:function(){a=(performance||Date).now()},end:function(){h++;var A=(performance||Date).now();if(p.update(A-a,200),A>=l+1e3&&(d.update(h*1e3/(A-l),100),l=A,h=0,g)){var _=performance.memory;g.update(_.usedJSHeapSize/1048576,_.jsHeapSizeLimit/1048576)}return A},update:function(){a=this.end()},domElement:e,setMode:i}};wh.Panel=function(o,e,t){var i=1/0,a=0,l=Math.round,h=l(window.devicePixelRatio||1),d=80*h,p=48*h,g=3*h,A=2*h,_=3*h,b=15*h,w=74*h,E=30*h,C=document.createElement("canvas");C.width=d,C.height=p,C.style.cssText="width:80px;height:48px";var T=C.getContext("2d");return T.font="bold "+9*h+"px Helvetica,Arial,sans-serif",T.textBaseline="top",T.fillStyle=t,T.fillRect(0,0,d,p),T.fillStyle=e,T.fillText(o,g,A),T.fillRect(_,b,w,E),T.fillStyle=t,T.globalAlpha=.9,T.fillRect(_,b,w,E),{dom:C,update:function(x,P){i=Math.min(i,x),a=Math.max(a,x),T.fillStyle=t,T.globalAlpha=1,T.fillRect(0,0,d,b),T.fillStyle=e,T.fillText(l(x)+" "+o+" ("+l(i)+"-"+l(a)+")",g,A),T.drawImage(C,_+h,b,w-h,E,_,b,w-h,E),T.fillRect(_+w-h,b,h,E),T.fillStyle=t,T.globalAlpha=.9,T.fillRect(_+w-h,b,h,l((1-x/P)*E))}}};class as extends Yf{constructor(){super(),this._loggerContext="DEBUG MANAGER",this.stats=new wh}static{this.webComponentName="debug-manager"}static setupWebComponent(){window.customElements.get(as.webComponentName)||window.customElements.define(as.webComponentName,as)}static{this.styles=ct`
|
|
8355
8363
|
.debug-label {
|
|
8356
8364
|
position: absolute;
|
|
8357
8365
|
top: 0%;
|
|
@@ -8534,7 +8542,7 @@ void main() {
|
|
|
8534
8542
|
<div id="appCanvasContainer" class="app-canvas-container">
|
|
8535
8543
|
<span id="cameraAimIndicator" class="camera-aim-indicator hide"></span>
|
|
8536
8544
|
</div>
|
|
8537
|
-
|
|
8545
|
+
`:Ue}getWebComponentName(){return ah.webComponentName}async _resolveIdentifierAndType(){this.sku?(this._identifierType="sku",this._identifier=this.sku):this.shopify_variant_id?(this._identifierType="shopify_variant_id",this._identifier=this.shopify_variant_id):this.upc?(this._identifierType="upc",this._identifier=this.upc):this.asin?(this._identifierType="asin",this._identifier=this.asin):this.experience_id?(this._identifierType="experience_id",this._identifier=this.experience_id):this.product_variant_uuid&&(this._identifierType="product_variant_uuid",this._identifier=this.product_variant_uuid)}async _onAuthenticationFailed(e){window.epigraph.logger.error({title:"AUTHENTICATION FAILED: Expand for details...",details:e,contextOverride:this._loggerContext}),this.onLoadFailed(ey.MODULE_FAILED_ERRORS.AUTHENTICATION_FAILED,{errorCode:tN.AuthenticationFailedError,message:e}),await this.disconnectedCallback()}async setupRenderEngine(){window.epigraph.logger.info({title:"Initiliazing Render Engine"}),this._renderEngine=new nF(this);const{canvasHtmlElem:e}=await this._renderEngine.setup();this.appCanvasContainerElemRef.appendChild(e),new ResizeObserver(this.__onWebComponentResize.bind(this)).observe(this.appCanvasContainerElemRef)}_showCustomViewInYourSpaceButton(){this._getSlottedElements(this.customViewInYourSpaceButtonSlotElem).forEach(t=>{const i=t;i.style.visibility="visible",i.style.transition="opacity 0.5s ease-in-out",i.style.opacity="1"})}_hideCustomViewInYourSpaceButton(){this._getSlottedElements(this.customViewInYourSpaceButtonSlotElem).forEach(t=>{const i=t,a=500;i.style.transition=`opacity ${a/1e3}s ease-in-out`,i.style.opacity="0",setTimeout(()=>i.style.visibility="hidden",a)})}_sendAnalyticsEventsOnModuleLoadStart(){const e=new CI(!1);this._epigraphAnalytics.sendEvent(e)}_sendAnalyticsEventsOnModuleLoadFinish(){const e=this.timeElapsedSinceLoadBegin,t=new TI(!1,e);this._epigraphAnalytics.sendEvent(t);const i=window.epigraph.isSessionWebGL2Compatible();let a;this.viewInYourSpaceManager.canLaunchAr()?a=i?hc.SUPPORT_TYPE.AR_WEBGL2:hc.SUPPORT_TYPE.AR:a=i?hc.SUPPORT_TYPE.QR_WEBGL2:hc.SUPPORT_TYPE.QR;const l=new hc(a);this._epigraphAnalytics.sendEvent(l)}_onNewExperienceLoadStart(){this.isLoading=!0,this._loadingProgress=0,this._hideCustomViewInYourSpaceButton(),this.showSplashScreen(),this._sendAnalyticsEventsOnModuleLoadStart()}_onNewExperienceLoadFinish(){this._onSceneHierarchyUpdate(),this.isLoading=!1,this._showCustomViewInYourSpaceButton(),this._eventsManager.experienceUpdatedEvent.fire(),this._eventsManager.appReadyEvent.fire(),this.hideSplashScreen(),setTimeout(()=>{this.playInteractionPrompt=!0},1e3),this._sendAnalyticsEventsOnModuleLoadFinish()}_onDimensionsToolControlClick(e){e.stopPropagation(),e.preventDefault();const t=e.target;t.active?this.showDimensions():this.hideDimensions();const i=new gr(gr.BUTTON_TYPE.DIMENSION_TOGGLE,t.id);this._epigraphAnalytics.sendEvent(i)}_onViewInYourSpaceToolControlClick(e){e.stopPropagation(),e.preventDefault();const t=e.target;this.launchAR();const i=new gr(gr.BUTTON_TYPE.AR_VIEW,t.id);this._epigraphAnalytics.sendEvent(i)}async _onSceneHierarchyUpdate(e=!1){if(this.sceneManager.recalculateSceneBounds(),this.featuresToEnable.dimensions&&this.dimensionsManager.repopulateDimensionIndicators(),this.featuresToEnable.hotspots&&this._repopulateHotspots(),e)return Promise.resolve([]);await this._cameraManager.fitCameraToSceneBounds()}_renderAppManagers(){return Ee`
|
|
8538
8546
|
<div id="appManagersContainer" class="app-managers-container">
|
|
8539
8547
|
${this._renderDimensionsManager()}
|
|
8540
8548
|
|
|
@@ -8581,7 +8589,7 @@ void main() {
|
|
|
8581
8589
|
?active=${this.areHotspotsActive}
|
|
8582
8590
|
@epgonclick=${this._onHotspotsToolControlClick}
|
|
8583
8591
|
></epg-tool-control>
|
|
8584
|
-
|
|
8592
|
+
`:Ue}_renderHelpToolControl(){return Ee`
|
|
8585
8593
|
<epg-tool-control
|
|
8586
8594
|
id="helpToolControl"
|
|
8587
8595
|
size="medium"
|
|
@@ -8603,16 +8611,16 @@ void main() {
|
|
|
8603
8611
|
?collapsed=${this._isToolsetLargerThanTheLeftBottomQuadrant}
|
|
8604
8612
|
>
|
|
8605
8613
|
<!-- Dimensions Tool -->
|
|
8606
|
-
${this.featuresToEnable.dimensions?this._renderDimensionsToolControl()
|
|
8614
|
+
${this.featuresToEnable.dimensions?this._renderDimensionsToolControl():Ue}
|
|
8607
8615
|
|
|
8608
8616
|
<!-- View in your space Tool -->
|
|
8609
|
-
${this.featuresToEnable.viewInYourSpace?this._renderViewInYourSpaceToolControl()
|
|
8617
|
+
${this.featuresToEnable.viewInYourSpace?this._renderViewInYourSpaceToolControl():Ue}
|
|
8610
8618
|
|
|
8611
8619
|
<!-- Hotspots Tool -->
|
|
8612
|
-
${this.featuresToEnable.hotspots?this._renderHotspotsToolControl()
|
|
8620
|
+
${this.featuresToEnable.hotspots?this._renderHotspotsToolControl():Ue}
|
|
8613
8621
|
|
|
8614
8622
|
<!-- Help Tool -->
|
|
8615
|
-
${this.featuresToEnable.help?this._renderHelpToolControl()
|
|
8623
|
+
${this.featuresToEnable.help?this._renderHelpToolControl():Ue}
|
|
8616
8624
|
</epg-toolset>
|
|
8617
8625
|
`}_renderPoweredByEpigraphButton(){return Ee`
|
|
8618
8626
|
<epg-tool-powered-by-epigraph
|
|
@@ -8655,7 +8663,7 @@ void main() {
|
|
|
8655
8663
|
class="splash-screen"
|
|
8656
8664
|
current-progress=${this._loadingProgress}
|
|
8657
8665
|
></epg-loader-scene>
|
|
8658
|
-
`}async _resetSession(){this._autoGeneratedProxyMesh?.scale.set(1,1,1),this._autoGeneratedProxyMesh?.position.set(0,0,0),this._autoGeneratedProxyMesh?.updateMatrixWorld(),await this.renderEngine.emptyScene()}_setupEventListeners(){window.epigraph.logger.info({title:"Setting up event listeners for this app."}),this.addEventListener(this.eventsManager.sceneBoundsChanged.name,()=>{this.cameraManager.fitCameraToSceneBounds()}),this.addEventListener(this.eventsManager.structureNodeAddedEvent.name,()=>{this._onSceneHierarchyUpdate()}),this.addEventListener(this.eventsManager.experienceUpdatedEvent.name,()=>{this.renderEngine.accumulativeShadows&&!this.renderEngine.accumulativeShadows.camera&&(this.renderEngine.accumulativeShadows.camera=this.cameraManager.getCameras().main),this.renderEngine.accumulativeShadows?.reset(),this.renderEngine.contactShadows&&this.renderEngine.contactShadows.updateSettings(this._experienceData.productSettings.shadows.contactShadows),this.cameraManager.updateCameraSettings(this._experienceData.productSettings.camera),this.productSettings.camera.initial&&this.cameraManager.moveCameraToLocation({newCameraTransforms:this.productSettings.camera.initial,transition:!0})}),this.addEventListener(this.eventsManager.dimensionsPositionChanged.name,this.__onDimensionsPositionChanged),this.addEventListener(this.eventsManager.cameraControlsStart.name,(e=>{switch(e.detail.type){case"rotate":(this.sessionState==="default"||this.sessionState==="cameraUpdate")&&(this.style.cursor="grabbing");break;case"pan":(this.sessionState==="default"||this.sessionState==="cameraUpdate")&&(this.style.cursor="move"),this.showCameraAim();break}this.hotspotsManager&&this.hotspotsManager.activeHotspot&&this.sessionState==="default"&&this.hotspotsManager.closeActiveHotspot()})),this.addEventListener(this.eventsManager.inputEnd.name,()=>{(this.sessionState==="default"||this.sessionState==="cameraUpdate")&&(this.style.cursor="grab"),this.hideCameraAim()}),this.addEventListener(this.eventsManager.hotspotOpenEvent.name,()=>{this.hideDimensions(!0)}),this.addEventListener(this.eventsManager.assetLoadProgress.name,(e=>{this._loadingProgress=e.detail.progress})),this.addEventListener(this.eventsManager.hotspotOpenEvent.name,(e=>{this._hasActiveHotspot=!0,this._resolveAnimationsOnHotspotEntry(e.detail.hotspot.animation)})),this.addEventListener(this.eventsManager.hotspotNextEvent.name,(e=>{this._resolveAnimationsOnHotspotEntry(e.detail.hotspot.animation)})),this.addEventListener(this.eventsManager.hotspotPreviousEvent.name,(e=>{this._resolveAnimationsOnHotspotEntry(e.detail.hotspot.animation)})),this.addEventListener(this.eventsManager.hotspotClosedEvent.name,(e=>{this._hasActiveHotspot=!1;const i=this.hotspotsManager.hotspots.get(e.detail.hotspotId)?.animation;if(i)for(const a of i){const l=a.loop,h=a.exit;l&&this.stopAnimationByName(l);let d;h?d=this.playAnimationByName({animationName:h}):d=this.playAnimationByName({animationName:a.entry,reverse:!0}),setTimeout(()=>{d?.targetAnimationAction.reset(),this._activeAnimations.delete(d?.animationName??"")},this._animationFadeDurationInMiliseconds)}})),this.appCanvasContainerElemRef.onpointerdown=e=>{this._isSceneInteractedWith=!0,this.playInteractionPrompt=!1,this.hideHelp(),this.eventsManager.inputStart.fire({event:e})},this.appCanvasContainerElemRef.onpointermove=e=>{this.eventsManager.inputMove.fire({event:e})},this.appCanvasContainerElemRef.onpointerup=e=>{this.eventsManager.inputEnd.fire({event:e})},this.appCanvasContainerElemRef.onpointerout=e=>{this.eventsManager.inputEnd.fire({event:e})},this.cameraManager.mainCameraControls.addEventListener("update",this._onCameraPositionUpdate.bind(this)),this.hotspotsManager?.addEventListener("pointerdown",()=>{this._isSceneInteractedWith=!0,this.playInteractionPrompt=!1,this.hideHelp()})}_onCameraPositionUpdate(){this.dimensionsManager?.enabled&&this.dimensionsManager.repopulateDimensionIndicators(),this.hotspotsManager?.enabled&&this.hotspotsManager.recalculateHotspotPositions()}_setupAutoGeneratedProxyContainers(){const e=new Wn,t=new wi({color:65280,opacity:.5,transparent:!0});this._autoGeneratedProxyMesh=new ot(e,t)}get productSettings(){return this._experienceData?this._experienceData.productSettings:this._defaultProductSettings.productSettings}async _setup(){window.epigraph.logger.table({title:"Setting up..."}),this._eventsManager=new CH(this),this._sceneManager=new zU(this),this._sceneManager.initialize(),await this._sceneManager.sceneStructure.setupRootEntity().catch(e=>{this.onLoadFailed(C0.SCENE_LOAD_ERROR,e)}),this._cameraManager=new oF({appWcRef:this}),this._cameraManager.initialize(),await this.setupRenderEngine(),await this._cameraManager.setup({mainRenderer:this.renderEngine.mainRenderer,screenshotRenderer:this.renderEngine.screenshotRenderer,cameraSettings:this.productSettings.camera}),this._setupAutoGeneratedProxyContainers(),this._setupEventListeners()}_resolveAnimationsOnHotspotEntry(e){this.stopAllAnimations();for(const t of e)this._activeAnimations.get(t.entry)||this.playAnimationByName({animationName:t.entry,clampWhenFinished:!0}),setTimeout(()=>{this._activeAnimations.delete(t.entry),this._activeAnimations.get(t.loop)?.loop||this.playAnimationByName({animationName:t.loop,loop:!0})},this._animationFadeDurationInMiliseconds)}_renderDimensionsManager(){let e
|
|
8666
|
+
`}async _resetSession(){this._autoGeneratedProxyMesh?.scale.set(1,1,1),this._autoGeneratedProxyMesh?.position.set(0,0,0),this._autoGeneratedProxyMesh?.updateMatrixWorld(),await this.renderEngine.emptyScene()}_setupEventListeners(){window.epigraph.logger.info({title:"Setting up event listeners for this app."}),this.addEventListener(this.eventsManager.sceneBoundsChanged.name,()=>{this.cameraManager.fitCameraToSceneBounds()}),this.addEventListener(this.eventsManager.structureNodeAddedEvent.name,()=>{this._onSceneHierarchyUpdate()}),this.addEventListener(this.eventsManager.experienceUpdatedEvent.name,()=>{this.renderEngine.accumulativeShadows&&!this.renderEngine.accumulativeShadows.camera&&(this.renderEngine.accumulativeShadows.camera=this.cameraManager.getCameras().main),this.renderEngine.accumulativeShadows?.reset(),this.renderEngine.contactShadows&&this.renderEngine.contactShadows.updateSettings(this._experienceData.productSettings.shadows.contactShadows),this.cameraManager.updateCameraSettings(this._experienceData.productSettings.camera),this.productSettings.camera.initial&&this.cameraManager.moveCameraToLocation({newCameraTransforms:this.productSettings.camera.initial,transition:!0})}),this.addEventListener(this.eventsManager.dimensionsPositionChanged.name,this.__onDimensionsPositionChanged),this.addEventListener(this.eventsManager.cameraControlsStart.name,(e=>{switch(e.detail.type){case"rotate":(this.sessionState==="default"||this.sessionState==="cameraUpdate")&&(this.style.cursor="grabbing");break;case"pan":(this.sessionState==="default"||this.sessionState==="cameraUpdate")&&(this.style.cursor="move"),this.showCameraAim();break}this.hotspotsManager&&this.hotspotsManager.activeHotspot&&this.sessionState==="default"&&this.hotspotsManager.closeActiveHotspot()})),this.addEventListener(this.eventsManager.inputEnd.name,()=>{(this.sessionState==="default"||this.sessionState==="cameraUpdate")&&(this.style.cursor="grab"),this.hideCameraAim()}),this.addEventListener(this.eventsManager.hotspotOpenEvent.name,()=>{this.hideDimensions(!0)}),this.addEventListener(this.eventsManager.assetLoadProgress.name,(e=>{this._loadingProgress=e.detail.progress})),this.addEventListener(this.eventsManager.hotspotOpenEvent.name,(e=>{this._hasActiveHotspot=!0,this._resolveAnimationsOnHotspotEntry(e.detail.hotspot.animation)})),this.addEventListener(this.eventsManager.hotspotNextEvent.name,(e=>{this._resolveAnimationsOnHotspotEntry(e.detail.hotspot.animation)})),this.addEventListener(this.eventsManager.hotspotPreviousEvent.name,(e=>{this._resolveAnimationsOnHotspotEntry(e.detail.hotspot.animation)})),this.addEventListener(this.eventsManager.hotspotClosedEvent.name,(e=>{this._hasActiveHotspot=!1;const i=this.hotspotsManager.hotspots.get(e.detail.hotspotId)?.animation;if(i)for(const a of i){const l=a.loop,h=a.exit;l&&this.stopAnimationByName(l);let d;h?d=this.playAnimationByName({animationName:h}):d=this.playAnimationByName({animationName:a.entry,reverse:!0}),setTimeout(()=>{d?.targetAnimationAction.reset(),this._activeAnimations.delete(d?.animationName??"")},this._animationFadeDurationInMiliseconds)}})),this.appCanvasContainerElemRef.onpointerdown=e=>{this._isSceneInteractedWith=!0,this.playInteractionPrompt=!1,this.hideHelp(),this.eventsManager.inputStart.fire({event:e})},this.appCanvasContainerElemRef.onpointermove=e=>{this.eventsManager.inputMove.fire({event:e})},this.appCanvasContainerElemRef.onpointerup=e=>{this.eventsManager.inputEnd.fire({event:e})},this.appCanvasContainerElemRef.onpointerout=e=>{this.eventsManager.inputEnd.fire({event:e})},this.cameraManager.mainCameraControls.addEventListener("update",this._onCameraPositionUpdate.bind(this)),this.hotspotsManager?.addEventListener("pointerdown",()=>{this._isSceneInteractedWith=!0,this.playInteractionPrompt=!1,this.hideHelp()})}_onCameraPositionUpdate(){this.dimensionsManager?.enabled&&this.dimensionsManager.repopulateDimensionIndicators(),this.hotspotsManager?.enabled&&this.hotspotsManager.recalculateHotspotPositions()}_setupAutoGeneratedProxyContainers(){const e=new Wn,t=new wi({color:65280,opacity:.5,transparent:!0});this._autoGeneratedProxyMesh=new ot(e,t)}get productSettings(){return this._experienceData?this._experienceData.productSettings:this._defaultProductSettings.productSettings}async _setup(){window.epigraph.logger.table({title:"Setting up..."}),this._eventsManager=new CH(this),this._sceneManager=new zU(this),this._sceneManager.initialize(),await this._sceneManager.sceneStructure.setupRootEntity().catch(e=>{this.onLoadFailed(C0.SCENE_LOAD_ERROR,e)}),this._cameraManager=new oF({appWcRef:this}),this._cameraManager.initialize(),await this.setupRenderEngine(),await this._cameraManager.setup({mainRenderer:this.renderEngine.mainRenderer,screenshotRenderer:this.renderEngine.screenshotRenderer,cameraSettings:this.productSettings.camera}),this._setupAutoGeneratedProxyContainers(),this._setupEventListeners()}_resolveAnimationsOnHotspotEntry(e){this.stopAllAnimations();for(const t of e)this._activeAnimations.get(t.entry)||this.playAnimationByName({animationName:t.entry,clampWhenFinished:!0}),setTimeout(()=>{this._activeAnimations.delete(t.entry),this._activeAnimations.get(t.loop)?.loop||this.playAnimationByName({animationName:t.loop,loop:!0})},this._animationFadeDurationInMiliseconds)}_renderDimensionsManager(){let e=Ue;return this.featuresToEnable.dimensions&&(gF.setupWebComponent(),e=Ee`
|
|
8659
8667
|
<dimensions-manager
|
|
8660
8668
|
id="dimensionsManager"
|
|
8661
8669
|
.appWcRef=${this}
|
|
@@ -8663,21 +8671,21 @@ void main() {
|
|
|
8663
8671
|
.dimensionsUnitSymbol=${this.dimensionsUnitSymbol}
|
|
8664
8672
|
?enabled=${this.areDimensionsActive}
|
|
8665
8673
|
></dimensions-manager>
|
|
8666
|
-
`),e}_renderHotspotsManager(){let e
|
|
8674
|
+
`),e}_renderHotspotsManager(){let e=Ue;return this.featuresToEnable.hotspots&&(Hz.setupWebComponent(),e=Ee`
|
|
8667
8675
|
<hotspots-manager
|
|
8668
8676
|
id="hotspotsManager"
|
|
8669
8677
|
class="hotspots-manager"
|
|
8670
8678
|
.appWcRef=${this}
|
|
8671
8679
|
?enabled=${this.areHotspotsActive}
|
|
8672
8680
|
></hotspots-manager>
|
|
8673
|
-
`),e}_renderDebugManager(){let e
|
|
8681
|
+
`),e}_renderDebugManager(){let e=Ue;return this.debug&&(as.setupWebComponent(),e=Ee`
|
|
8674
8682
|
<debug-manager
|
|
8675
8683
|
id="debugManager"
|
|
8676
8684
|
class="debug-manager"
|
|
8677
8685
|
.appWcRef=${this}
|
|
8678
8686
|
?enabled=${this.debug}
|
|
8679
8687
|
></debug-manager>
|
|
8680
|
-
`),e}_renderViewInYourSpaceManager(){let e
|
|
8688
|
+
`),e}_renderViewInYourSpaceManager(){let e=Ue;return this.featuresToEnable.viewInYourSpace&&(SH.setupWebComponent(),e=Ee`
|
|
8681
8689
|
<view-in-your-space-manager
|
|
8682
8690
|
id="viewInYourSpaceManager"
|
|
8683
8691
|
class="view-in-your-space-manager"
|
|
@@ -8726,7 +8734,7 @@ void main() {
|
|
|
8726
8734
|
.camera-interaction-prompt-indicator {
|
|
8727
8735
|
display: none;
|
|
8728
8736
|
}
|
|
8729
|
-
`]}getWebComponentName(){return Ko.webComponentName}async _fetchExperienceDataConfig(){const e=new M0(Et.resolveNexusEndpoint(this.apiMode),window.location.href,window.epigraph.epigraphSessionId,this.solutionVersion,this.xPath);let t=null;switch(this._identifierType){case"sku":t=await e.getButtonBySku(this._identifier,this.customVersionId);break;case"shopify_variant_id":t=await e.getButtonByShopifyVariantId(this._identifier,this.customVersionId);break;case"upc":t=await e.getButtonByUpc(this._identifier,this.customVersionId);break;case"asin":t=await e.getButtonByAsin(this._identifier,this.customVersionId);break;case"product_variant_uuid":t=await e.getTourByUuid(this._identifier,this.customVersionId);break;default:return window.epigraph.logger.error({title:`Identifier type: '${this._identifierType}' not supported!`,contextOverride:this._loggerContext}),Promise.reject()}return t}_renderSplashScreen(){return
|
|
8737
|
+
`]}getWebComponentName(){return Ko.webComponentName}async _fetchExperienceDataConfig(){const e=new M0(Et.resolveNexusEndpoint(this.apiMode),window.location.href,window.epigraph.epigraphSessionId,this.solutionVersion,this.xPath);let t=null;switch(this._identifierType){case"sku":t=await e.getButtonBySku(this._identifier,this.customVersionId);break;case"shopify_variant_id":t=await e.getButtonByShopifyVariantId(this._identifier,this.customVersionId);break;case"upc":t=await e.getButtonByUpc(this._identifier,this.customVersionId);break;case"asin":t=await e.getButtonByAsin(this._identifier,this.customVersionId);break;case"product_variant_uuid":t=await e.getTourByUuid(this._identifier,this.customVersionId);break;default:return window.epigraph.logger.error({title:`Identifier type: '${this._identifierType}' not supported!`,contextOverride:this._loggerContext}),Promise.reject()}return t}_renderSplashScreen(){return Ue}_renderCustomViewInYourSpaceButtonSlot(){return Ee`<slot
|
|
8730
8738
|
id="customViewInYourSpaceButtonSlotElem"
|
|
8731
8739
|
@click=${this.launchAR}
|
|
8732
8740
|
class="slot-custom-view-in-your-space-button"
|
|
@@ -8736,7 +8744,7 @@ void main() {
|
|
|
8736
8744
|
id="viewInYourSpaceButton"
|
|
8737
8745
|
?is-loading=${this.isLoading}
|
|
8738
8746
|
></epg-button-view-in-your-space>
|
|
8739
|
-
</slot>`}_renderPoweredByEpigraphButton(){return
|
|
8747
|
+
</slot>`}_renderPoweredByEpigraphButton(){return Ue}_renderToolset(){return Ue}};OH([ue({type:String,attribute:$T.label.name})],zT.prototype,"label");let kH=zT;class GT{constructor(e){this._appWcRef=e}async viewInYourSpace(){return await this._appWcRef.launchAR()}async launchAR(){return await this._appWcRef.launchAR()}async getViewInYourSpaceUrl(){return""}async getViewInYourSpaceQR(){return""}canLaunchAR(){return this._appWcRef.viewInYourSpaceManager.canLaunchAr()}isARSessionActive(){return this._appWcRef.viewInYourSpaceManager.isARSessionActive()}getMinimumRequirementsString(){return this._appWcRef.viewInYourSpaceManager.getMinimumRequirementsString()}setCameraZoomLimits({minDistance:e,maxDistance:t}){this._appWcRef.cameraManager.setCameraZoomLimits({minDistance:e,maxDistance:t})}disableCameraZoomLimits(){this._appWcRef.cameraManager.disableCameraZoomLimits()}getCameraTransforms(){return this._appWcRef.cameraManager.getCurrentCameraTransforms()}setCameraTransforms(e){return void this._appWcRef.cameraManager.moveCameraToLocation({newCameraTransforms:e})}getCameraRotation(){return this._appWcRef.cameraManager.getCurrentCameraRotation()}async setCameraRotation(e,t){const{azimuthAngle:i,polarAngle:a,distance:l}=e;return await this._appWcRef.cameraManager.rotateCameraToLocation({azimuthAngle:i,polarAngle:a,distance:l,transition:t})}getCameraFocalLength(){return this._appWcRef.cameraManager.getCameraFocalLength()}setCameraFocalLength(e){this._appWcRef.cameraManager.setCameraFocalLength(e)}getPositionOnMeshFromPoint(e,t){return this._appWcRef.getPositionOnMeshFromPoint(e,t)}getIntersectionOnProductFromPoint(e,t){return this._appWcRef.getIntersectionOnProductFromPoint(e,t)}highlightEntityByAssetId(e){this._appWcRef.highlightEntityByAssetId(e)}unhighlightAllEntities(){this._appWcRef.unhighlightAllEntities()}showDimensions(){this._appWcRef.showDimensions()}hideDimensions(){this._appWcRef.hideDimensions()}areDimensionsVisible(){return this._appWcRef.areDimensionsActive}getDimensions(){return this._appWcRef.getDimensions()}toggleDimensions(){}getAllAnimations(){return this._appWcRef.getAllAnimations()}getAllAnimationNames(){return this._appWcRef.getAllAnimationNames()}playAnimationByName({animationName:e,clampWhenFinished:t=!1,loop:i=!1,repetitions:a=1/0,reverse:l=!1}){this._appWcRef.playAnimationByName({animationName:e,clampWhenFinished:t,loop:i,repetitions:a,reverse:l})}stopAnimationByName(e){this._appWcRef.stopAnimationByName(e)}pauseActiveAnimations(e){this._appWcRef.pauseActiveAnimations(e)}resumeActiveAnimations(){this._appWcRef.resumeActiveAnimations()}stopAllAnimations(){this._appWcRef.stopAllAnimations()}showHelp(){this._appWcRef.showHelp()}hideHelp(){this._appWcRef.hideHelp()}toggleHelp(){this._appWcRef.toggleHelp()}isHelpVisible(){return this._appWcRef.isHelpVisible}}var UH=Object.defineProperty,FH=(o,e,t,i)=>{for(var a=void 0,l=o.length-1,h;l>=0;l--)(h=o[l])&&(a=h(e,t,a)||a);return a&&UH(e,t,a),a};const HT=class Ia extends $_{constructor(){super(),this.featuresToEnable={viewer:!0,hotspots:!1,dimensions:!0,viewInYourSpace:!0,help:!0,sceneManager:!0},this.epigraphWebsiteRedirectUrls={icon:"https://www.epigraph.us/?utm_source=epigraph&utm_medium=experience&utm_campaign=powered-by&utm_id=powered-by-icon&utm_content=viewer",modal:"https://www.epigraph.us/?utm_source=epigraph&utm_medium=experience&utm_campaign=powered-by&utm_id=powered-by-modal&utm_content=viewer"},this._loggerContext=Ia.webComponentName.toUpperCase(),window.epigraph.logger.info({title:`Initializing ${Ia.webComponentName}...`,contextOverride:this._loggerContext}),this.api=new GT(this)}static{this.webComponentName="epigraph-viewer"}static{this.styles=[super.styles,ct`
|
|
8740
8748
|
:host {
|
|
8741
8749
|
position: relative;
|
|
8742
8750
|
}
|