define(["./when-cbf8cd21","./Check-35e1a91d","./Math-6a1814d8","./Cartesian2-c451a606","./Transforms-e4be2a30","./RuntimeError-f4c64df1","./WebGLConstants-95ceb4e9","./ComponentDatatype-7ee14e67","./GeometryAttribute-6f280ece","./GeometryAttributes-90846c5f","./IndexDatatype-354a5ea3","./createTaskProcessorWorker","./GeometryOffsetAttribute-84f7eff3","./VertexFormat-cc24f342","./BoxGeometry-42281bde","./CylinderGeometryLibrary-07878882","./CylinderGeometry-f4876345","./EllipsoidGeometry-59db9dd4","./Color-bfeeb147"],function(F,e,t,R,Z,n,r,a,i,o,D,d,s,c,P,f,q,W,S){"use strict";function T(e){this.offset=e.offset,this.count=e.count,this.color=e.color,this.batchIds=e.batchIds}var l=new R.Cartesian3,u=Z.Matrix4.packedLength+R.Cartesian3.packedLength,h=Z.Matrix4.packedLength+2,p=Z.Matrix4.packedLength+R.Cartesian3.packedLength,b=R.Cartesian3.packedLength+1,y={modelMatrix:new Z.Matrix4,boundingVolume:new Z.BoundingSphere};function _(e,t){var n=t*u,r=R.Cartesian3.unpack(e,n,l);n+=R.Cartesian3.packedLength;var a=Z.Matrix4.unpack(e,n,y.modelMatrix);Z.Matrix4.multiplyByScale(a,r,a);var i=y.boundingVolume;return R.Cartesian3.clone(R.Cartesian3.ZERO,i.center),i.radius=Math.sqrt(3),y}function N(e,t){var n=t*h,r=e[n++],a=e[n++],i=R.Cartesian3.fromElements(r,r,a,l),o=Z.Matrix4.unpack(e,n,y.modelMatrix);Z.Matrix4.multiplyByScale(o,i,o);var d=y.boundingVolume;return R.Cartesian3.clone(R.Cartesian3.ZERO,d.center),d.radius=Math.sqrt(2),y}function Y(e,t){var n=t*p,r=R.Cartesian3.unpack(e,n,l);n+=R.Cartesian3.packedLength;var a=Z.Matrix4.unpack(e,n,y.modelMatrix);Z.Matrix4.multiplyByScale(a,r,a);var i=y.boundingVolume;return R.Cartesian3.clone(R.Cartesian3.ZERO,i.center),i.radius=1,y}function j(e,t){var n=t*b,r=e[n++],a=R.Cartesian3.unpack(e,n,l),i=Z.Matrix4.fromTranslation(a,y.modelMatrix);Z.Matrix4.multiplyByUniformScale(i,r,i);var o=y.boundingVolume;return R.Cartesian3.clone(R.Cartesian3.ZERO,o.center),o.radius=1,y}var V=new R.Cartesian3;function z(e,t,n,r,a){if(F.defined(t)){for(var i=n.length,o=r.attributes.position.values,d=r.indices,s=e.positions,c=e.vertexBatchIds,f=e.indices,l=e.batchIds,u=e.batchTableColors,h=e.batchedIndices,p=e.indexOffsets,b=e.indexCounts,y=e.boundingVolumes,x=e.modelMatrix,g=e.center,v=e.positionOffset,C=e.batchIdIndex,m=e.indexOffset,I=e.batchedIndicesOffset,k=0;k