define(["./when-b60132fc","./Cartesian2-47311507","./ArcType-29cf2197","./BoundingSphere-561b54d0","./Cartographic-3309dd0d","./Color-5008547b","./ComponentDatatype-c140a87d","./Check-7b2a090c","./GeometryAttribute-3a42bbdc","./GeometryAttributes-252e9929","./IndexDatatype-8a5eead4","./Math-119be1a3","./PolylinePipeline-971d8853","./PrimitiveType-39acab88","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./FeatureDetection-c3b71206","./WebGLConstants-4ae0db90","./Transforms-cb0006b0","./buildModuleUrl-3addfe33","./EllipsoidGeodesic-0f19ac62","./EllipsoidRhumbLine-ed1a6bf4","./IntersectionTests-0c6d0a14","./Plane-097b3a8f"],(function(e,o,r,t,a,i,l,n,s,p,d,c,y,u,f,h,C,g,T,m,b,v,P,_){"use strict";function B(e,o,r,t,a,l,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(i.Color.equals(r,t)){for(s=0;s
0?new Array(s):void 0;for(n=0;n0&&(a.Cartesian3.pack(q,f,W),W+=3,g=m[n-1],C[Y++]=i.Color.floatToByte(g.red),C[Y++]=i.Color.floatToByte(g.green),C[Y++]=i.Color.floatToByte(g.blue),C[Y++]=i.Color.floatToByte(g.alpha)),G&&n===w-1)break;a.Cartesian3.pack(q,f,W),W+=3,e.defined(m)&&(g=m[n],C[Y++]=i.Color.floatToByte(g.red),C[Y++]=i.Color.floatToByte(g.green),C[Y++]=i.Color.floatToByte(g.blue),C[Y++]=i.Color.floatToByte(g.alpha))}}var z=new p.GeometryAttributes;z.position=new s.GeometryAttribute({componentDatatype:l.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:f}),e.defined(m)&&(z.color=new s.GeometryAttribute({componentDatatype:l.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:4,values:C,normalize:!0}));var J=2*((h=f.length/3)-1),j=d.IndexDatatype.createTypedArray(h,J),K=0;for(n=0;n