define(["./when-229515d6","./Matrix2-2fec35ad","./ArcType-1da7fdca","./Transforms-75891ac8","./Color-2e02034e","./ComponentDatatype-17b06483","./RuntimeError-ffe03243","./GeometryAttribute-c0946387","./GeometryAttributes-b253752a","./IndexDatatype-b10faa0b","./PolylinePipeline-f3398bb8","./PixelFormat-daf99ebc","./WebGLConstants-4e26b85a","./combine-8ce3f24b","./EllipsoidGeodesic-cadbe242","./EllipsoidRhumbLine-0b875bcf","./IntersectionTests-c2481e4c","./Plane-c66ae040"],(function(e,o,r,t,a,l,i,n,s,p,d,c,f,y,u,h,C,T){"use strict";function g(e,o,r,t,l,i,n){var s,p=d.PolylinePipeline.numberOfPoints(e,o,l),c=r.red,f=r.green,y=r.blue,u=r.alpha,h=t.red,C=t.green,T=t.blue,g=t.alpha;if(a.Color.equals(r,t)){for(s=0;s0?new Array(n):void 0;for(i=0;i0&&(o.Cartesian3.pack(W,f,F),F+=3,h=T[c-1],u[H++]=a.Color.floatToByte(h.red),u[H++]=a.Color.floatToByte(h.green),u[H++]=a.Color.floatToByte(h.blue),u[H++]=a.Color.floatToByte(h.alpha)),k&&c===G-1)break;o.Cartesian3.pack(W,f,F),F+=3,e.defined(T)&&(h=T[c],u[H++]=a.Color.floatToByte(h.red),u[H++]=a.Color.floatToByte(h.green),u[H++]=a.Color.floatToByte(h.blue),u[H++]=a.Color.floatToByte(h.alpha))}}var Y=new s.GeometryAttributes;Y.position=new n.GeometryAttribute({componentDatatype:l.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:f}),e.defined(T)&&(Y.color=new n.GeometryAttribute({componentDatatype:l.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:4,values:u,normalize:!0}));var q=2*((y=f.length/3)-1),z=p.IndexDatatype.createTypedArray(y,q),J=0;for(c=0;c