define(["./arrayRemoveDuplicates-0d8dde26","./BoundingRectangle-db6e4466","./Transforms-ef48b970","./Matrix2-69530458","./Matrix3-f420af38","./ComponentDatatype-ab629b88","./CoplanarPolygonGeometryLibrary-1d16c314","./defaultValue-f6d5e6da","./GeometryAttribute-ac3ada2c","./GeometryAttributes-1e4ddcd2","./GeometryInstance-f4883896","./GeometryPipeline-eff5c7a6","./IndexDatatype-a9b1bc18","./Math-355606c6","./PolygonGeometryLibrary-da73f4c8","./PolygonPipeline-3ee3239c","./VertexFormat-fbdec922","./combine-0c102d93","./RuntimeError-9b4ce3fb","./WebGLConstants-7f557f93","./OrientedBoundingBox-e0bc9e6f","./EllipsoidTangentPlane-312cf901","./AxisAlignedBoundingBox-817cca2a","./IntersectionTests-36dc9259","./Plane-a470374c","./AttributeCompression-913aafb2","./EncodedCartesian3-d30ed3f7","./ArcType-26a3f38d","./EllipsoidRhumbLine-40cccc3b"],(function(e,t,n,o,r,a,i,s,l,y,c,p,u,m,d,g,h,x,C,b,f,P,A,w,L,G,F,v,E){"use strict";const _=new r.Cartesian3,T=new t.BoundingRectangle,k=new o.Cartesian2,D=new o.Cartesian2,V=new r.Cartesian3,R=new r.Cartesian3,H=new r.Cartesian3,I=new r.Cartesian3,M=new r.Cartesian3,B=new r.Cartesian3,O=new n.Quaternion,z=new r.Matrix3,S=new r.Matrix3,N=new r.Cartesian3;function Q(e,t,i,c,p,d,h,x,C){const b=e.positions;let f=g.PolygonPipeline.triangulate(e.positions2D,e.holes);f.length<3&&(f=[0,1,2]);const P=u.IndexDatatype.createTypedArray(b.length,f.length);P.set(f);let A=z;if(0!==c){let e=n.Quaternion.fromAxisAngle(h,c,O);if(A=r.Matrix3.fromQuaternion(e,A),t.tangent||t.bitangent){e=n.Quaternion.fromAxisAngle(h,-c,O);const o=r.Matrix3.fromQuaternion(e,S);x=r.Cartesian3.normalize(r.Matrix3.multiplyByVector(o,x,x),x),t.bitangent&&(C=r.Cartesian3.normalize(r.Cartesian3.cross(h,x,C),C))}}else A=r.Matrix3.clone(r.Matrix3.IDENTITY,A);const w=D;t.st&&(w.x=i.x,w.y=i.y);const L=b.length,G=3*L,F=new Float64Array(G),v=t.normal?new Float32Array(G):void 0,E=t.tangent?new Float32Array(G):void 0,T=t.bitangent?new Float32Array(G):void 0,V=t.st?new Float32Array(2*L):void 0;let R=0,H=0,I=0,M=0,B=0;for(let e=0;e