// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("../chunks/tslib.es6 ../core/string ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/subclass ./Geometry ./Point ./SpatialReference ./support/contains ./support/intersectsBase ./support/spatialReferenceUtils ./support/webMercatorUtils".split(" "),function(k,D,l,h,I,J,E,F,G,z,C,H,w,t){function u(a,b,c){return null==b?c:null==c?b:a(b,c)}function A(a,b){const [c,f]=b.valid;b=2*f;var e=0;a>f?(e=Math.ceil(Math.abs(a-f)/b), a-=e*b):a=c&&a<=f&&e>=c&&e<=f||(b=this.center);return b}_normalize(a,b,c){const f=this.spatialReference;if(!f)return this;c=c??w.getInfo(f);if(null==c)return this;const e=this._getParts(c).map(d=>d.extent);if(2>e.length)return e[0]||this;if(2{d.hasZ||(g=!1);d.hasM||(m=!1)});return{rings:e.map(d=>{const q= [[d.xmin,d.ymin],[d.xmin,d.ymax],[d.xmax,d.ymax],[d.xmax,d.ymin],[d.xmin,d.ymin]];if(g){var n=(d.zmax-d.zmin)/2;for(let r=0;r2*x){c=new p(fa||q?b.push({extent:new p(m,n,x,r,v),frameIds:[d]},{extent:new p(B,n,a,r,v),frameIds:[g]}):b.push({extent:new p(m,n,a,r,v),frameIds:[d]}); this.cache._parts=b}g=this.hasZ;c=this.hasM;if(g||c)for(d={},g&&(d.zmin=this.zmin,d.zmax=this.zmax),c&&(d.mmin=this.mmin,d.mmax=this.mmax),g=0;g