define(["exports","./Check-5e798bbf","./when-208fe5b0","./Math-8386669c"],function(e,t,h,r){"use strict";var l=r.CesiumMath.EPSILON10;e.arrayRemoveDuplicates=function(e,t,r){if(h.defined(e)){r=h.defaultValue(r,!1);var n,f,i,u=e.length;if(u<2)return e;for(n=1;n<u&&!t(f=e[n-1],i=e[n],l);++n);if(n===u)return r&&t(e[0],e[e.length-1],l)?e.slice(1):e;for(var a=e.slice(0,n);n<u;++n)t(f,i=e[n],l)||(a.push(i),f=i);return r&&1<a.length&&t(a[0],a[a.length-1],l)&&a.shift(),a}}});
