define(["./arrayRemoveDuplicates-06991c15","./BoundingRectangle-d5f7d679","./Transforms-3ac41eb6","./Matrix2-fc7e9822","./RuntimeError-c581ca93","./ComponentDatatype-4a60b8d6","./CoplanarPolygonGeometryLibrary-fc33f0ca","./defaultValue-94c3e563","./GeometryAttribute-a441ff32","./GeometryAttributes-7df9bef6","./GeometryInstance-97bd792f","./GeometryPipeline-a88e5bfc","./IndexDatatype-db156785","./PolygonGeometryLibrary-5dd81ed2","./PolygonPipeline-113e3161","./VertexFormat-e46f29d6","./_commonjsHelpers-3aae1032-f55dc0c4","./combine-761d9c3f","./WebGLConstants-7dccdc96","./OrientedBoundingBox-1e0d2855","./EllipsoidTangentPlane-53e32153","./AxisAlignedBoundingBox-7a3018c0","./IntersectionTests-68fbc42d","./Plane-e20fba8c","./AttributeCompression-4d18cc04","./EncodedCartesian3-d3e254ea","./ArcType-0cf52f8c","./EllipsoidRhumbLine-daebc75b"],(function(e,t,n,o,a,r,i,s,l,c,y,p,d,u,m,g,f,C,h,b,x,P,A,L,w,G,F,v){"use strict";const k=new o.Cartesian3,E=new t.BoundingRectangle,_=new o.Cartesian2,T=new o.Cartesian2,D=new o.Cartesian3,V=new o.Cartesian3,H=new o.Cartesian3,R=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 C=e.positions;let h=m.PolygonPipeline.triangulate(e.positions2D,e.holes);h.length<3&&(h=[0,1,2]);const b=d.IndexDatatype.createTypedArray(C.length,h.length);b.set(h);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=T;t.st&&(P.x=a.x,P.y=a.y);const A=C.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,E=t.st?new Float32Array(2*A):void 0;let D=0,V=0,H=0,R=0,I=0;for(let n=0;n