define(["./when-b60132fc","./Cartesian2-47311507","./ArcType-29cf2197","./buildModuleUrl-57a32107","./Cartographic-3309dd0d","./Color-5008547b","./ComponentDatatype-c140a87d","./Check-7b2a090c","./GeometryAttribute-c42d25b7","./GeometryAttributes-252e9929","./IndexDatatype-8a5eead4","./Math-119be1a3","./PolylinePipeline-4ec7a59e","./Matrix4-cde86d0e","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./FeatureDetection-c3b71206","./EllipsoidGeodesic-0f19ac62","./EllipsoidRhumbLine-ed1a6bf4","./IntersectionTests-5e35c2ab","./Plane-ca0357f4"],(function(e,o,r,t,a,l,i,n,s,p,d,c,y,u,f,h,C,g,T,m,v,b){"use strict";function P(e,o,r,t,a,i,n){var s,p=y.PolylinePipeline.numberOfPoints(e,o,a),d=r.red,c=r.green,u=r.blue,f=r.alpha,h=t.red,C=t.green,g=t.blue,T=t.alpha;if(l.Color.equals(r,t)){for(s=0;s0?new Array(s):void 0;for(n=0;n0&&(a.Cartesian3.pack(Y,u,H),H+=3,C=T[n-1],h[W++]=l.Color.floatToByte(C.red),h[W++]=l.Color.floatToByte(C.green),h[W++]=l.Color.floatToByte(C.blue),h[W++]=l.Color.floatToByte(C.alpha)),D&&n===G-1)break;a.Cartesian3.pack(Y,u,H),H+=3,e.defined(T)&&(C=T[n],h[W++]=l.Color.floatToByte(C.red),h[W++]=l.Color.floatToByte(C.green),h[W++]=l.Color.floatToByte(C.blue),h[W++]=l.Color.floatToByte(C.alpha))}}var q=new p.GeometryAttributes;q.position=new s.GeometryAttribute({componentDatatype:i.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:u}),e.defined(T)&&(q.color=new s.GeometryAttribute({componentDatatype:i.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:4,values:h,normalize:!0}));var z=2*((f=u.length/3)-1),J=d.IndexDatatype.createTypedArray(f,z),j=0;for(n=0;n