define(["./arrayRemoveDuplicates-7d5d09a3","./BoundingRectangle-e2b9571d","./Transforms-3afcc791","./Matrix2-1ba2543c","./RuntimeError-ac440aa5","./ComponentDatatype-07fbb0d4","./CoplanarPolygonGeometryLibrary-f62a086d","./defaultValue-69ee94f4","./GeometryAttribute-ad6fe63d","./GeometryAttributes-1b4134a9","./GeometryInstance-5555f2e4","./GeometryPipeline-58ed3258","./IndexDatatype-0b020dfb","./PolygonGeometryLibrary-cc36562e","./PolygonPipeline-b1cbbe6f","./VertexFormat-e68722dd","./_commonjsHelpers-3aae1032-15991586","./combine-0259f56f","./WebGLConstants-f63312fc","./OrientedBoundingBox-87e36f5f","./EllipsoidTangentPlane-d431886c","./AxisAlignedBoundingBox-e89a3bd3","./IntersectionTests-c9a542c8","./Plane-faef0199","./AttributeCompression-4c4a8822","./EncodedCartesian3-8da855cc","./ArcType-e1641d8d","./EllipsoidRhumbLine-001b8738"],(function(e,t,n,o,a,r,i,s,l,c,y,p,d,u,m,g,f,b,C,h,x,P,A,L,w,G,F,v){"use strict";const E=new o.Cartesian3,_=new t.BoundingRectangle,T=new o.Cartesian2,k=new o.Cartesian2,D=new o.Cartesian3,V=new o.Cartesian3,R=new o.Cartesian3,H=new o.Cartesian3,I=new o.Cartesian3,M=new o.Cartesian3,B=new n.Quaternion,O=new o.Matrix3,z=new o.Matrix3,S=new o.Cartesian3;function N(e,t,a,i,y,p,u,g,f){const b=e.positions;let C=m.PolygonPipeline.triangulate(e.positions2D,e.holes);C.length<3&&(C=[0,1,2]);const h=d.IndexDatatype.createTypedArray(b.length,C.length);h.set(C);let x=O;if(0!==i){let e=n.Quaternion.fromAxisAngle(u,i,B);if(x=o.Matrix3.fromQuaternion(e,x),t.tangent||t.bitangent){e=n.Quaternion.fromAxisAngle(u,-i,B);const a=o.Matrix3.fromQuaternion(e,z);g=o.Cartesian3.normalize(o.Matrix3.multiplyByVector(a,g,g),g),t.bitangent&&(f=o.Cartesian3.normalize(o.Cartesian3.cross(u,g,f),f))}}else x=o.Matrix3.clone(o.Matrix3.IDENTITY,x);const P=k;t.st&&(P.x=a.x,P.y=a.y);const A=b.length,L=3*A,w=new Float64Array(L),G=t.normal?new Float32Array(L):void 0,F=t.tangent?new Float32Array(L):void 0,v=t.bitangent?new Float32Array(L):void 0,_=t.st?new Float32Array(2*A):void 0;let D=0,V=0,R=0,H=0,I=0;for(let e=0;e