define(["./arrayRemoveDuplicates-7cd4e18c","./BoundingRectangle-8d15888c","./Transforms-4a1d2c0e","./Matrix2-f0fc6cd3","./RuntimeError-8f3d96ee","./ComponentDatatype-5f63ec93","./CoplanarPolygonGeometryLibrary-9fd8c9bf","./when-229515d6","./GeometryAttribute-4b6dfc85","./GeometryAttributes-b253752a","./GeometryInstance-28411208","./GeometryPipeline-c36432c1","./IndexDatatype-c2b69fc2","./PolygonGeometryLibrary-0cf237e6","./PolygonPipeline-583f5389","./VertexFormat-af764a6f","./combine-6d9c3903","./WebGLConstants-f63312fc","./OrientedBoundingBox-1136cfae","./EllipsoidTangentPlane-3f1b123a","./AxisAlignedBoundingBox-0ebb51f1","./IntersectionTests-3a1d2826","./Plane-863ea815","./AttributeCompression-0ee09568","./EncodedCartesian3-55eee0ea","./ArcType-e1641d8d","./EllipsoidRhumbLine-0893952b"],(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){"use strict";const E=new o.Cartesian3,v=new t.BoundingRectangle,T=new o.Cartesian2,D=new o.Cartesian2,_=new o.Cartesian3,V=new o.Cartesian3,k=new o.Cartesian3,R=new o.Cartesian3,I=new o.Cartesian3,M=new o.Cartesian3,B=new n.Quaternion,H=new o.Matrix3,O=new o.Matrix3,z=new o.Cartesian3;function S(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=H;if(0!==i){let e=n.Quaternion.fromAxisAngle(p,i,B);if(h=o.Matrix3.fromQuaternion(e,h),t.tangent||t.bitangent){e=n.Quaternion.fromAxisAngle(p,-i,B);const a=o.Matrix3.fromQuaternion(e,O);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=D;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 v=0,_=0,V=0,k=0,R=0;for(let e=0;e