define(["exports","./ArcType-31298545","./arrayRemoveDuplicates-f7eaafa2","./Cartesian2-6033fa5d","./Cartographic-67e73ef9","./ComponentDatatype-81047f82","./when-92c6cf3c","./Rectangle-bab7abf0","./EllipsoidRhumbLine-8847d1a1","./GeometryAttribute-ef657318","./GeometryAttributes-7f66ea53","./GeometryPipeline-f4eddf07","./IndexDatatype-4c0e98b8","./Math-92c3b5f7","./PrimitiveType-cdfe443e","./PolygonPipeline-b86e8785","./WindingOrder-1b9c8a87"],(function(e,t,r,n,i,a,o,s,u,h,l,c,f,p,v,g,y){"use strict";function d(){this._array=[],this._offset=0,this._length=0}Object.defineProperties(d.prototype,{length:{get:function(){return this._length}}}),d.prototype.enqueue=function(e){this._array.push(e),this._length++},d.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}},d.prototype.peek=function(){if(0!==this._length)return this._array[this._offset]},d.prototype.contains=function(e){return-1!==this._array.indexOf(e)},d.prototype.clear=function(){this._array.length=this._offset=this._length=0},d.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 n=r.pop();if(o.e(n)){t+=2;var a=n.positions,s=n.holes;if(o.e(a)&&(t+=a.length*i.t.packedLength),o.e(s))for(var u=s.length,h=0;h0;){var a=n.pop();if(o.e(a)){var s=a.positions,u=a.holes;if(t[r++]=o.e(s)?s.length:0,t[r++]=o.e(u)?u.length:0,o.e(s))for(var h=s.length,l=0;l0?new Array(n):void 0,s=0;s