define(["./arrayRemoveDuplicates-3a9a9480","./Transforms-d5dbea8d","./Cartesian2-b4b7b0b3","./Check-5e798bbf","./ComponentDatatype-ce69354e","./CoplanarPolygonGeometryLibrary-8723ad5f","./when-208fe5b0","./GeometryAttribute-3314089a","./GeometryAttributes-b0b294d8","./GeometryInstance-3ec54139","./GeometryPipeline-cd170892","./IndexDatatype-da7c58eb","./PolygonGeometryLibrary-5fcc0c80","./Math-8386669c","./RuntimeError-7f634f5d","./WebGLConstants-76bb35d1","./OrientedBoundingBox-9c75ee89","./EllipsoidTangentPlane-7dd3130c","./IntersectionTests-eb44dd99","./Plane-06d5a63d","./AttributeCompression-9711314b","./EncodedCartesian3-21af0f3b","./ArcType-dc1c5aee","./EllipsoidRhumbLine-73a4e3eb","./PolygonPipeline-7bfe45de"],function(a,y,l,e,c,p,o,s,u,d,m,b,g,t,r,n,i,f,h,P,G,v,L,C,T){"use strict";function E(e){e=(e=o.defaultValue(e,o.defaultValue.EMPTY_OBJECT)).polygonHierarchy;this._polygonHierarchy=e,this._workerName="createCoplanarPolygonOutlineGeometry",this.packedLength=g.PolygonGeometryLibrary.computeHierarchyPackedLength(e)+1}E.fromPositions=function(e){return new E({polygonHierarchy:{positions:(e=o.defaultValue(e,o.defaultValue.EMPTY_OBJECT)).positions}})},E.pack=function(e,t,r){return r=o.defaultValue(r,0),t[r=g.PolygonGeometryLibrary.packPolygonHierarchy(e._polygonHierarchy,t,r)]=e.packedLength,t};var k={polygonHierarchy:{}};return E.unpack=function(e,t,r){t=o.defaultValue(t,0);var n=g.PolygonGeometryLibrary.unpackPolygonHierarchy(e,t);t=n.startingIndex,delete n.startingIndex;t=e[t];return(r=!o.defined(r)?new E(k):r)._polygonHierarchy=n,r.packedLength=t,r},E.createGeometry=function(e){var t=e._polygonHierarchy,e=t.positions,e=a.arrayRemoveDuplicates(e,l.Cartesian3.equalsEpsilon,!0);if(!(e.length<3)&&p.CoplanarPolygonGeometryLibrary.validOutline(e)){var r=g.PolygonGeometryLibrary.polygonOutlinesFromHierarchy(t,!1);if(0!==r.length){for(var n=[],o=0;o