define(["./AttributeCompression-49f7b62a","./EllipsoidTangentPlane-53184efd","./buildModuleUrl-3d15f25c","./Cartesian2-6033fa5d","./Cartographic-67e73ef9","./when-92c6cf3c","./Rectangle-bab7abf0","./TerrainEncoding-5d55ad09","./IndexDatatype-4c0e98b8","./Math-92c3b5f7","./PrimitiveType-cdfe443e","./OrientedBoundingBox-513cf61d","./Check-52a7d806","./GeometryAttribute-ef657318","./WebMercatorProjection-39906b85","./createTaskProcessorWorker","./Intersect-b97e930a","./Cartesian4-ad128b5d","./IntersectionTests-a42760d9","./Plane-f8d22530","./Event-3390cd7d","./RuntimeError-c6a62a80","./ComponentDatatype-81047f82","./WebGLConstants-71f10989","./PolygonPipeline-b86e8785","./WindingOrder-1b9c8a87","./EllipsoidRhumbLine-8847d1a1","./Buffer-1d0f8963","./RenderState-94064c70","./BoundingRectangle-418864a2","./Color-45274500","./FeatureDetection-067cb23c"],(function(t,e,r,n,i,o,a,s,h,d,c,u,l,I,m,g,T,f,y,v,w,E,p,N,b,S,A,x,P,_,F,M){"use strict";function B(){l.t.throwInstantiationError()}Object.defineProperties(B.prototype,{errorEvent:{get:l.t.throwInstantiationError},credit:{get:l.t.throwInstantiationError},tilingScheme:{get:l.t.throwInstantiationError},ready:{get:l.t.throwInstantiationError},readyPromise:{get:l.t.throwInstantiationError},hasWaterMask:{get:l.t.throwInstantiationError},hasVertexNormals:{get:l.t.throwInstantiationError},availability:{get:l.t.throwInstantiationError}});var G=[];B.getRegularGridIndices=function(t,e){if(t*e>=d.e.FOUR_GIGABYTES)throw new l.t("The total number of vertices (width * height) must be less than 4,294,967,296.");var r=G[t];o.e(r)||(G[t]=r=[]);var n=r[e];return o.e(n)||C(t,e,n=t*e=d.e.FOUR_GIGABYTES)throw new l.t("The total number of vertices (width * height) must be less than 4,294,967,296.");var r=G[t];o.e(r)||(G[t]=r=[]);var n=r[e];return o.e(n)||C(t,e,n=t*e=d.e.FOUR_GIGABYTES)throw new l.t("The total number of vertices (width * height) must be less than 4,294,967,296.");var r=W[t];o.e(r)||(W[t]=r=[]);var n=r[e];if(!o.e(n)){var i=B.getRegularGridIndices(t,e),a=R(t,e),s=a.westIndicesSouthToNorth,h=a.southIndicesEastToWest,c=a.eastIndicesNorthToSouth,u=a.northIndicesWestToEast;n=r[e]={indices:i,westIndicesSouthToNorth:s,southIndicesEastToWest:h,eastIndicesNorthToSouth:c,northIndicesWestToEast:u}}return n};var O=[];function R(t,e){var r,n=new Array(e),i=new Array(t),o=new Array(e),a=new Array(t);for(r=0;r=d.e.FOUR_GIGABYTES)throw new l.t("The total number of vertices (width * height) must be less than 4,294,967,296.");var r=O[t];o.e(r)||(O[t]=r=[]);var n=r[e];if(!o.e(n)){var i=t*e,a=(t-1)*(e-1)*6,s=2*t+2*e,c=i+s,u=3*(t+e-2),I=a+6*Math.max(0,s-4)+u,m=R(t,e),g=m.westIndicesSouthToNorth,T=m.southIndicesEastToWest,f=m.eastIndicesNorthToSouth,y=m.northIndicesWestToEast,v=h.IndexDatatype.createTypedArray(c,I);C(t,e,v,0),B.addSkirtIndices(g,T,f,y,i,v,a+u),n=r[e]={indices:v,westIndicesSouthToNorth:g,southIndicesEastToWest:T,eastIndicesNorthToSouth:f,northIndicesWestToEast:y,indexCountWithoutSkirts:a}}return n},B.addSkirtIndices=function(t,e,r,n,i,o,a,s){var h=i;a=Y(t,h,o,a,s),a=Y(e,h+=t.length,o,a,s),a=Y(r,h+=e.length,o,a,s),Y(n,h+=r.length,o,a,s)},B.heightmapTerrainQuality=.25,B.getEstimatedLevelZeroGeometricErrorForAHeightmap=function(t,e,r){return 2*t.maximumRadius*Math.PI*B.heightmapTerrainQuality/(e*r)},B.prototype.requestTileGeometry=l.t.throwInstantiationError,B.prototype.getLevelMaximumGeometricError=l.t.throwInstantiationError,B.prototype.getTileDataAvailable=l.t.throwInstantiationError,B.prototype.loadTileDataAvailability=l.t.throwInstantiationError;var k=32767,H=new i.t,V=new i.t,U=new i.t,z=new i.t$1,L=new n.o,D=new i.t,j=new c.y,q=new c.y;function K(t,e,r,n,o,a,s,h,u){var l=Number.POSITIVE_INFINITY,I=o.north,m=o.south,g=o.east,T=o.west;g