define(["./arrayRemoveDuplicates-fe254feb","./BoundingRectangle-7249f3f3","./Transforms-3e1dc9c2","./Matrix2-52f9f880","./RuntimeError-ac440aa5","./ComponentDatatype-a9820060","./CoplanarPolygonGeometryLibrary-96be3116","./defaultValue-69ee94f4","./GeometryAttribute-c774c37f","./GeometryAttributes-1b4134a9","./GeometryInstance-90cd14f9","./GeometryPipeline-ccff615d","./IndexDatatype-1cbc8622","./PolygonGeometryLibrary-fcf4ee2d","./PolygonPipeline-c00ad6b5","./VertexFormat-e68722dd","./_commonjsHelpers-3aae1032-15991586","./combine-0259f56f","./PixelFormat-9ceadbf3","./WebGLConstants-f63312fc","./OrientedBoundingBox-9a45cb70","./EllipsoidTangentPlane-6299303d","./AxisAlignedBoundingBox-be6909d8","./IntersectionTests-088640d2","./Plane-e5b2f6e0","./AttributeCompression-5e4af6de","./EncodedCartesian3-8ce94cd2","./ArcType-e1641d8d","./EllipsoidRhumbLine-683f2cb5"],(function(e,t,n,o,a,r,i,s,l,c,p,y,u,m,d,g,f,b,h,x,C,P,A,w,F,G,L,E,v){"use strict";const T=new o.Cartesian3,D=new t.BoundingRectangle,_=new o.Cartesian2,V=new o.Cartesian2,k=new o.Cartesian3,R=new o.Cartesian3,I=new o.Cartesian3,M=new o.Cartesian3,B=new o.Cartesian3,H=new o.Cartesian3,O=new n.Quaternion,z=new o.Matrix3,S=new o.Matrix3,N=new o.Cartesian3;function Q(e,t,a,i,s,p,y,m){const g=e.positions;let f=d.PolygonPipeline.triangulate(e.positions2D,e.holes);f.length<3&&(f=[0,1,2]);const b=u.IndexDatatype.createTypedArray(g.length,f.length);b.set(f);let h=z;if(0!==i){let e=n.Quaternion.fromAxisAngle(p,i,O);if(h=o.Matrix3.fromQuaternion(e,h),t.tangent||t.bitangent){e=n.Quaternion.fromAxisAngle(p,-i,O);const a=o.Matrix3.fromQuaternion(e,S);y=o.Cartesian3.normalize(o.Matrix3.multiplyByVector(a,y,y),y),t.bitangent&&(m=o.Cartesian3.normalize(o.Cartesian3.cross(p,y,m),m))}}else h=o.Matrix3.clone(o.Matrix3.IDENTITY,h);const x=V;t.st&&(x.x=a.x,x.y=a.y);const C=g.length,P=3*C,A=new Float64Array(P),w=t.normal?new Float32Array(P):void 0,F=t.tangent?new Float32Array(P):void 0,G=t.bitangent?new Float32Array(P):void 0,L=t.st?new Float32Array(2*C):void 0;let E=0,v=0,D=0,k=0,R=0;for(let e=0;e