define(["exports","./buildModuleUrl-3d15f25c","./ComponentDatatype-81047f82","./when-92c6cf3c","./Check-52a7d806","./Rectangle-bab7abf0","./Intersect-b97e930a","./GeometryAttribute-ef657318","./GeometryAttributes-7f66ea53","./GeometryPipeline-f4eddf07","./IndexDatatype-4c0e98b8","./PrimitiveType-cdfe443e","./WebMercatorProjection-39906b85"],(function(e,t,r,n,o,i,a,s,c,p,u,f,m){"use strict";function d(e,t,r){e=n.u(e,0),t=n.u(t,0),r=n.u(r,0),this.value=new Float32Array([e,t,r])}function h(e,t){var n=e.attributes,o=n.position,i=o.values.length/o.componentsPerAttribute;n.batchId=new s.o({componentDatatype:r.ComponentDatatype.FLOAT,componentsPerAttribute:1,values:new Float32Array(i)});for(var a=n.batchId.values,c=0;c1){var s=e[0].modelMatrix;for(o=1;o=0){var p=o[c];i=p.offset+p.count,a=r[s=p.index].indices.length}else i=0,a=r[s=0].indices.length;for(var u=e.length,f=0;fa&&(i=0,a=r[++s].indices.length),o.push({index:s,offset:i,count:d}),i+=d}}}Object.defineProperties(d.prototype,{componentDatatype:{get:function(){return r.ComponentDatatype.FLOAT}},componentsPerAttribute:{get:function(){return 3}},normalize:{get:function(){return!1}}}),d.fromCartesian3=function(e){return o.o.defined("offset",e),new d(e.x,e.y,e.z)},d.toValue=function(e,t){return o.o.defined("offset",e),n.e(t)||(t=new Float32Array([e.x,e.y,e.z])),t[0]=e.x,t[1]=e.y,t[2]=e.z,t};var y={};function v(e,t){var r=e.attributes;for(var o in r)if(r.hasOwnProperty(o)){var i=r[o];n.e(i)&&n.e(i.values)&&t.push(i.values.buffer)}n.e(e.indices)&&t.push(e.indices.buffer)}function b(e,t){var r=e.length,o=new Float64Array(1+19*r),i=0;o[i++]=r;for(var a=0;a0&&((r=l(e)).length>0&&(o=p.k.createAttributeLocations(r[0]),e.createPickOffsets&&(i=function(e,t){var r=[];return g(e,"geometry",t,r),g(e,"westHemisphereGeometry",t,r),g(e,"eastHemisphereGeometry",t,r),r}(s,r))),n.e(s[0].attributes)&&n.e(s[0].attributes.offset)&&(a=new Array(c),u=!0));for(var f=new Array(c),m=new Array(c),d=0;d0&&(o.set(u.indices,c),c+=k)}}return r.push(o.buffer),{stringTable:i,packedData:o}},y.unpackCreateGeometryResults=function(e){for(var n,o=e.stringTable,i=e.packedData,a=new Array(i[0]),p=0,f=1;f0){var O=v.length/b;for(k=u.IndexDatatype.createTypedArray(O,y),n=0;n