define(["exports","./arrayFill-deb10550","./buildModuleUrl-d920237a","./Cartesian2-2b41fabe","./Cartographic-1d953166","./Check-2514d21d","./ComponentDatatype-07894a2b","./when-d186add7","./EllipseGeometryLibrary-39c9f059","./Rectangle-f841217d","./GeometryAttribute-95780fd1","./GeometryAttributes-9c67dd14","./GeometryInstance-2076821b","./GeometryOffsetAttribute-da5a1d35","./GeometryPipeline-6f0b08bc","./IndexDatatype-61ffec74","./Math-7f5f2992","./FeatureDetection-4281d393","./VertexFormat-769ac289"],(function(t,e,o,r,n,i,a,s,u,m,l,c,p,d,y,f,h,A,x){"use strict";var g=new n.t,_=new n.t,v=new n.t,b=new n.t,w=new r.o,I=new A.p,T=new A.p,N=new l.n,M=new n.t,E=new n.t,P=new n.t,D=new n.t$1,F=new n.t,O=new r.o,S=new r.o;function C(t,i,m){var p=i.vertexFormat,y=i.center,f=i.semiMajorAxis,h=i.semiMinorAxis,x=i.ellipsoid,b=i.stRotation,C=m?t.length/3*2:t.length/3,R=i.shadowVolume,L=p.st?new Float32Array(2*C):void 0,j=p.normal?new Float32Array(3*C):void 0,z=p.tangent?new Float32Array(3*C):void 0,G=p.bitangent?new Float32Array(3*C):void 0,V=R?new Float32Array(3*C):void 0,k=0,Y=M,B=E,H=P,U=new o.n(x),W=U.project(x.cartesianToCartographic(y,D),F),q=x.scaleToGeodeticSurface(y,g);x.geodeticSurfaceNormal(q,q);var Q=I,J=T;if(0!==b){var Z=l.n.fromAxisAngle(q,b,N);Q=A.p.fromQuaternion(Z,Q),Z=l.n.fromAxisAngle(q,-b,N),J=A.p.fromQuaternion(Z,J)}else Q=A.p.clone(A.p.IDENTITY,Q),J=A.p.clone(A.p.IDENTITY,J);for(var $=r.o.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,O),K=r.o.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,S),X=t.length,tt=m?X:0,et=tt/3*2,ot=0;ot1;--n){for(a[s++]=e++,a[s++]=e,a[s++]=r,o=2*n,i=0;ih.e.PI&&(y.north=y.north>0?h.e.PI_OVER_TWO-h.e.EPSILON7:y.north,y.south=y.south<0?h.e.EPSILON7-h.e.PI_OVER_TWO:y.south,y.east=h.e.PI,y.west=-h.e.PI),y}function k(t){var e=(t=s.u(t,s.u.EMPTY_OBJECT)).center,o=s.u(t.ellipsoid,m.t.WGS84),r=t.semiMajorAxis,a=t.semiMinorAxis,u=s.u(t.granularity,h.e.RADIANS_PER_DEGREE),l=s.u(t.vertexFormat,x.n.DEFAULT);if(i.o.defined("options.center",e),i.o.typeOf.number("options.semiMajorAxis",r),i.o.typeOf.number("options.semiMinorAxis",a),r