text: // All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  // See https://js.arcgis.com/4.11/esri/copyright.txt for details.
  //>>built
  define(["require","exports","./boundsUtils"],function(n,d,e){function f(a,c,b){void 0===c&&(c=!1);void 0===b&&(b=!1);return c?b?{xmin:a[0],ymin:a[1],zmin:a[2],mmin:a[3],xmax:a[4],ymax:a[5],zmax:a[6],mmax:a[7]}:{xmin:a[0],ymin:a[1],zmin:a[2],xmax:a[3],ymax:a[4],zmax:a[5]}:b?{xmin:a[0],ymin:a[1],mmin:a[2],xmax:a[3],ymax:a[4],mmax:a[5]}:{xmin:a[0],ymin:a[1],xmax:a[2],ymax:a[3]}}function h(a){var c=a.hasZ,b=a.hasM;return f(e.getPointsBounds(g,a.points,c,b),c,b)}function k(a){var c=a.x,b=a.y,d=a.z;a=a.m;
  var e=null!=a;return null!=d?e?{xmin:c,ymin:b,zmin:d,mmin:a,xmax:c,ymax:b,zmax:d,mmax:a}:{xmin:c,ymin:b,zmin:d,xmax:c,ymax:b,zmax:d}:e?{xmin:c,ymin:b,mmin:a,xmax:c,ymax:b,mmax:a}:{xmin:c,ymin:b,xmax:c,ymax:b}}function l(a){var c=a.hasZ,b=a.hasM;return f(e.getRingsOrPathsBounds(g,a.rings,c,b),c,b)}function m(a){var c=a.hasZ,b=a.hasM;return f(e.getRingsOrPathsBounds(g,a.paths,c,b),c,b)}Object.defineProperty(d,"__esModule",{value:!0});var g=[];d.getGeometryExtent=function(a){return a?void 0!==a.xmin&&
  void 0!==a.ymin&&void 0!==a.xmax&&void 0!==a.ymax?a:void 0!==a.x&&void 0!==a.y?k(a):void 0!==a.rings?l(a):void 0!==a.paths?m(a):void 0!==a.points?h(a):null:null};d.getMultipointExtent=h;d.getPointExtent=k;d.getPolygonExtent=l;d.getPolylineExtent=m});