define(["exports","./buildModuleUrl-8cce5713","./FeatureDetection-ab6f364c","./when-b60132fc","./Check-7b2a090c","./GeometryAttribute-923c2729","./GeometryAttributes-252e9929","./GeometryPipeline-54076c24","./IndexDatatype-3565e02d","./WebMercatorProjection-6d3eefcc"],(function(e,t,r,n,i,o,a,s,d,p){"use strict";function u(e,t,r){e=n.defaultValue(e,0),t=n.defaultValue(t,0),r=n.defaultValue(r,0),this.value=new Float32Array([e,t,r])}function c(e,t){var n=e.attributes,i=n.position,a=i.values.length/i.componentsPerAttribute;n.batchId=new o.GeometryAttribute({componentDatatype:r.ComponentDatatype.FLOAT,componentsPerAttribute:1,values:new Float32Array(a)});for(var s=n.batchId.values,d=0;d1){var p=e[0].modelMatrix;for(o=1;o=0){var p=i[d];o=p.offset+p.count,a=r[s=p.index].indices.length}else o=0,a=r[s=0].indices.length;for(var u=e.length,c=0;ca&&(o=0,a=r[++s].indices.length),i.push({index:s,offset:o,count:m}),o+=m}}}Object.defineProperties(u.prototype,{componentDatatype:{get:function(){return r.ComponentDatatype.FLOAT}},componentsPerAttribute:{get:function(){return 3}},normalize:{get:function(){return!1}}}),u.fromCartesian3=function(e){return new u(e.x,e.y,e.z)},u.toValue=function(e,t){return n.defined(t)||(t=new Float32Array([e.x,e.y,e.z])),t[0]=e.x,t[1]=e.y,t[2]=e.z,t};var l={};function h(e,t){var r=e.attributes;for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];n.defined(o)&&n.defined(o.values)&&t.push(o.values.buffer)}n.defined(e.indices)&&t.push(e.indices.buffer)}function g(e,r){var i=e.length,o=new Float64Array(1+19*i),a=0;o[a++]=i;for(var s=0;s0&&((r=f(e)).length>0&&(i=s.GeometryPipeline.createAttributeLocations(r[0]),e.createPickOffsets&&(o=function(e,t){var r=[];return m(e,"geometry",t,r),m(e,"westHemisphereGeometry",t,r),m(e,"eastHemisphereGeometry",t,r),r}(d,r))),n.defined(d[0].attributes)&&n.defined(d[0].attributes.offset)&&(a=new Array(p),u=!0));for(var c=new Array(p),l=new Array(p),h=0;h0&&(i.set(u.indices,d),d+=G)}}return r.push(i.buffer),{stringTable:o,packedData:i}},l.unpackCreateGeometryResults=function(e){for(var n,i=e.stringTable,s=e.packedData,p=new Array(s[0]),u=0,c=1;c0){var A=h.length/g;for(G=d.IndexDatatype.createTypedArray(A,l),n=0;n