import{cA as m,a as h,ci as c}from"./index.6c049565.js";function u(e,n){return n?"xoffset"in n&&n.xoffset?Math.max(e,Math.abs(n.xoffset)):"yoffset"in n&&n.yoffset?Math.max(e,Math.abs(n.yoffset||0)):e:e}function b(e){let n=0,t=0;for(let s=0;sa.type==="size").map(a=>{const{maxSize:f,minSize:o}=a;return(p(f,e)+p(o,e))/2});let s=0;const r=t.length;if(r===0)return e;for(let a=0;a{i=u(i,a.symbol)}),i}if(n.type==="class-breaks"){let i=s;return n.classBreakInfos.forEach(a=>{i=u(i,a.symbol)}),i}return n.type==="dot-density"||n.type,s}function z(e,n,t,s=new m){let r;if(t.type==="2d")r=n*t.resolution;else if(t.type==="3d"){const x=t.overlayPixelSizeInMapUnits(e),l=t.basemapSpatialReference;r=h(l)&&!l.equals(t.spatialReference)?c(l)/c(t.spatialReference):n*x}const i=e.x-r,a=e.y-r,f=e.x+r,o=e.y+r,{spatialReference:y}=t;return s.xmin=Math.min(i,f),s.ymin=Math.min(a,o),s.xmax=Math.max(i,f),s.ymax=Math.max(a,o),s.spatialReference=y,s}new m;export{z as a,d as s};