define(["exports","./arrayFill-0358accf","./buildModuleUrl-3d15f25c","./Cartesian2-6033fa5d","./Cartographic-67e73ef9","./Check-52a7d806","./ComponentDatatype-81047f82","./when-92c6cf3c","./EllipseGeometryLibrary-f97eafbd","./Rectangle-bab7abf0","./Intersect-b97e930a","./GeometryAttribute-ef657318","./GeometryAttributes-7f66ea53","./GeometryInstance-da5e91bc","./GeometryOffsetAttribute-b4d599f5","./GeometryPipeline-f4eddf07","./IndexDatatype-4c0e98b8","./Math-92c3b5f7","./PrimitiveType-cdfe443e","./VertexFormat-f496a3f1"],(function(t,e,o,r,n,i,a,s,u,m,l,c,p,y,d,f,h,A,x,g){"use strict";var _=new n.t,v=new n.t,b=new n.t,w=new n.t,I=new r.o,T=new x.p,N=new x.p,M=new c.n,E=new n.t,P=new n.t,D=new n.t,F=new n.t$1,O=new n.t,S=new r.o,C=new r.o;function R(t,o,i){var m=o.vertexFormat,y=o.center,f=o.semiMajorAxis,h=o.semiMinorAxis,A=o.ellipsoid,g=o.stRotation,w=i?t.length/3*2:t.length/3,R=o.shadowVolume,L=m.st?new Float32Array(2*w):void 0,j=m.normal?new Float32Array(3*w):void 0,z=m.tangent?new Float32Array(3*w):void 0,G=m.bitangent?new Float32Array(3*w):void 0,V=R?new Float32Array(3*w):void 0,k=0,Y=E,B=P,H=D,U=new l.n(A),W=U.project(A.cartesianToCartographic(y,F),O),q=A.scaleToGeodeticSurface(y,_);A.geodeticSurfaceNormal(q,q);var Q=T,J=N;if(0!==g){var Z=c.n.fromAxisAngle(q,g,M);Q=x.p.fromQuaternion(Z,Q),Z=c.n.fromAxisAngle(q,-g,M),J=x.p.fromQuaternion(Z,J)}else Q=x.p.clone(x.p.IDENTITY,Q),J=x.p.clone(x.p.IDENTITY,J);for(var $=r.o.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,S),K=r.o.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,C),X=t.length,tt=i?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;iA.e.PI&&(d.north=d.north>0?A.e.PI_OVER_TWO-A.e.EPSILON7:d.north,d.south=d.south<0?A.e.EPSILON7-A.e.PI_OVER_TWO:d.south,d.east=A.e.PI,d.west=-A.e.PI),d}function Y(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,A.e.RADIANS_PER_DEGREE),l=s.u(t.vertexFormat,g.n.DEFAULT);if(i.o.defined("options.center",e),i.o.typeOf.number("options.semiMajorAxis",r),i.o.typeOf.number("options.semiMinorAxis",a),r