define(["exports","./ArcType-98a7a011","./arrayRemoveDuplicates-a4c6347e","./Cartesian2-1b9b0d8a","./Cartographic-1bbcab04","./ComponentDatatype-d430c7f7","./when-515d5295","./Rectangle-e170be8b","./EllipsoidRhumbLine-f50fdea6","./GeometryAttribute-9bc31a7f","./GeometryAttributes-7d904f0f","./GeometryPipeline-137aa28e","./IndexDatatype-eefd5922","./Math-5e38123d","./PrimitiveType-b38a4004","./PolygonPipeline-b8b35011","./WindingOrder-8479ef05"],(function(e,t,r,a,n,i,o,s,u,h,l,c,f,p,v,g,d){"use strict";function y(){this._array=[],this._offset=0,this._length=0}Object.defineProperties(y.prototype,{length:{get:function(){return this._length}}}),y.prototype.enqueue=function(e){this._array.push(e),this._length++},y.prototype.dequeue=function(){if(0!==this._length){var e=this._array,t=this._offset,r=e[t];return e[t]=void 0,++t>10&&2*t>e.length&&(this._array=e.slice(t),t=0),this._offset=t,this._length--,r}},y.prototype.peek=function(){if(0!==this._length)return this._array[this._offset]},y.prototype.contains=function(e){return-1!==this._array.indexOf(e)},y.prototype.clear=function(){this._array.length=this._offset=this._length=0},y.prototype.sort=function(e){this._offset>0&&(this._array=this._array.slice(this._offset),this._offset=0),this._array.sort(e)};var m={computeHierarchyPackedLength:function(e){for(var t=0,r=[e];r.length>0;){var a=r.pop();if(o.t(a)){t+=2;var i=a.positions,s=a.holes;if(o.t(i)&&(t+=i.length*n.a.packedLength),o.t(s))for(var u=s.length,h=0;h0;){var i=a.pop();if(o.t(i)){var s=i.positions,u=i.holes;if(t[r++]=o.t(s)?s.length:0,t[r++]=o.t(u)?u.length:0,o.t(s))for(var h=s.length,l=0;l0?new Array(a):void 0,s=0;s