define(["./AxisAlignedBoundingBox-9efb5e58","./Matrix2-9599853a","./Matrix3-2b60b40d","./defaultValue-abec0268","./TerrainEncoding-245bc7b6","./IndexDatatype-5f9fa3ed","./Math-a56d1479","./Transforms-98e4fe15","./WebMercatorProjection-c25ac936","./createTaskProcessorWorker","./RuntimeError-279c39be","./AttributeCompression-8346a48c","./ComponentDatatype-565a8190","./WebGLConstants-292d99ef","./combine-7a07cedd"],(function(e,t,r,n,o,i,a,s,c,h,l,d,u,I,g){"use strict";function m(){s.DeveloperError.throwInstantiationError()}Object.defineProperties(m.prototype,{errorEvent:{get:s.DeveloperError.throwInstantiationError},credit:{get:s.DeveloperError.throwInstantiationError},tilingScheme:{get:s.DeveloperError.throwInstantiationError},ready:{get:s.DeveloperError.throwInstantiationError},readyPromise:{get:s.DeveloperError.throwInstantiationError},hasWaterMask:{get:s.DeveloperError.throwInstantiationError},hasVertexNormals:{get:s.DeveloperError.throwInstantiationError},availability:{get:s.DeveloperError.throwInstantiationError}});const f=[];m.getRegularGridIndices=function(e,t){let r=f[e];n.defined(r)||(f[e]=r=[]);let o=r[t];return n.defined(o)||(o=e*tMath.min(o[0],i[0])&&e[0]<=Math.max(o[0],i[0])&&e[1]<=Math.max(o[1],i[1])&&o[0]!==i[0]&&(n=(e[0]-o[0])*(i[1]-o[1])/(i[0]-o[0])+o[1],(o[1]===i[1]||e[1]<=n)&&a++),o=i;return a%2!=0}function k(e,t,r,n){const o=(e.x-r.x)*(t.y-r.y)-(e.y-r.y)*(t.x-r.x),i=(e.x-n.x)*(t.y-n.y)-(e.y-n.y)*(t.x-n.x);if(o*i>=0)return!1;const a=(r.x-e.x)*(n.y-e.y)-(r.y-e.y)*(n.x-e.x);if(a*(a+o-i)>=0)return!1;const s=a/(i-o),c=s*(t.x-e.x),h=s*(t.y-e.y);return{x:e.x+c,y:e.y+h}}function D(e,n,o,i,s,c,h,l,d){let u=Number.POSITIVE_INFINITY;const I=s.north,g=s.south;let m=s.east;const f=s.west;m