/* 2020-9-22 15:23:25 | 版权所有 军懋国兴  */
define(["exports","./when-cbf8cd21","./Check-35e1a91d","./Math-69007a69"],function(e,h,l,t){"use strict";var s=t.CesiumMath.EPSILON10;e.arrayRemoveDuplicates=function(e,t,n){if(l.Check.defined("equalsEpsilon",t),h.defined(e)){n=h.defaultValue(n,!1);var i,r,a,f=e.length;if(f<2)return e;for(i=1;i<f&&!t(r=e[i-1],a=e[i],s);++i);if(i===f)return n&&t(e[0],e[e.length-1],s)?e.slice(1):e;for(var u=e.slice(0,i);i<f;++i)t(r,a=e[i],s)||(u.push(a),r=a);return n&&1<u.length&&t(u[0],u[u.length-1],s)&&u.shift(),u}}});